2 * FILE : src/mac/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "String type required";
97 // Implementations of some alternate "constructors"
99 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
100 return new wxBitmap(width
, height
, depth
);
103 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
104 char** cArray
= NULL
;
107 if (!PyList_Check(listOfStrings
)) {
108 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
111 count
= PyList_Size(listOfStrings
);
112 cArray
= new char*[count
];
114 for(int x
=0; x
<count
; x
++) {
115 // TODO: Need some validation and error checking here
116 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
122 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
123 char** cArray
= NULL
;
126 cArray
= ConvertListOfStrings(listOfStrings
);
129 bmp
= new wxBitmap(cArray
);
135 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
136 return new wxBitmap(icon
);
140 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
141 return new wxBitmap(bits
, width
, height
, depth
);
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
156 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
157 return new wxMask(bitmap
, colour
);
159 // Implementations of some alternate "constructors"
160 wxIcon
* wxEmptyIcon() {
164 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
165 char** cArray
= NULL
;
168 cArray
= ConvertListOfStrings(listOfStrings
);
171 icon
= new wxIcon(cArray
);
175 // Alternate 'constructor'
176 wxCursor
* wxPyStockCursor(int id
) {
177 return new wxCursor(id
);
179 // Alternate 'constructor'
180 wxColour
* wxNamedColour(const wxString
& colorName
) {
181 return new wxColour(colorName
);
184 class wxPyPen
: public wxPen
{
186 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
187 : wxPen(colour
, width
, style
)
194 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
197 m_dash
= new wxDash
[nb_dashes
];
198 for (int i
=0; i
<nb_dashes
; i
++) {
201 wxPen::SetDashes(nb_dashes
, m_dash
);
208 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
214 // Alternate 'constructor'
215 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
216 return new wxMemoryDC(oldDC
);
220 extern wxFont
* wxNORMAL_FONT
;
221 extern wxFont
* wxSMALL_FONT
;
222 extern wxFont
* wxITALIC_FONT
;
223 extern wxFont
* wxSWISS_FONT
;
224 extern wxPen
* wxRED_PEN
;
225 extern wxPen
* wxCYAN_PEN
;
226 extern wxPen
* wxGREEN_PEN
;
227 extern wxPen
* wxBLACK_PEN
;
228 extern wxPen
* wxWHITE_PEN
;
229 extern wxPen
* wxTRANSPARENT_PEN
;
230 extern wxPen
* wxBLACK_DASHED_PEN
;
231 extern wxPen
* wxGREY_PEN
;
232 extern wxPen
* wxMEDIUM_GREY_PEN
;
233 extern wxPen
* wxLIGHT_GREY_PEN
;
234 extern wxBrush
* wxBLUE_BRUSH
;
235 extern wxBrush
* wxGREEN_BRUSH
;
236 extern wxBrush
* wxWHITE_BRUSH
;
237 extern wxBrush
* wxBLACK_BRUSH
;
238 extern wxBrush
* wxTRANSPARENT_BRUSH
;
239 extern wxBrush
* wxCYAN_BRUSH
;
240 extern wxBrush
* wxRED_BRUSH
;
241 extern wxBrush
* wxGREY_BRUSH
;
242 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
243 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
244 extern wxColour
* wxBLACK
;
245 extern wxColour
* wxWHITE
;
246 extern wxColour
* wxRED
;
247 extern wxColour
* wxBLUE
;
248 extern wxColour
* wxGREEN
;
249 extern wxColour
* wxCYAN
;
250 extern wxColour
* wxLIGHT_GREY
;
251 extern wxCursor
* wxSTANDARD_CURSOR
;
252 extern wxCursor
* wxHOURGLASS_CURSOR
;
253 extern wxCursor
* wxCROSS_CURSOR
;
254 extern wxBitmap wxNullBitmap
;
255 extern wxIcon wxNullIcon
;
256 extern wxCursor wxNullCursor
;
257 extern wxPen wxNullPen
;
258 extern wxBrush wxNullBrush
;
259 extern wxPalette wxNullPalette
;
260 extern wxFont wxNullFont
;
261 extern wxColour wxNullColour
;
262 extern wxFontList
* wxTheFontList
;
263 extern wxPenList
* wxThePenList
;
264 extern wxBrushList
* wxTheBrushList
;
265 extern wxColourDatabase
* wxTheColourDatabase
;
271 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
272 PyObject
* _resultobj
;
276 int _arg2
= (int ) -1;
277 char *_kwnames
[] = { "width","height","depth", NULL
};
281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
285 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
287 wxPyEndAllowThreads(__tstate
);
288 if (PyErr_Occurred()) return NULL
;
290 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
291 _resultobj
= Py_BuildValue("s",_ptemp
);
294 _resultobj
= Py_None
;
299 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
300 PyObject
* _resultobj
;
303 PyObject
* _obj0
= 0;
304 char *_kwnames
[] = { "listOfStrings", NULL
};
308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
315 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
317 wxPyEndAllowThreads(__tstate
);
318 if (PyErr_Occurred()) return NULL
;
320 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
321 _resultobj
= Py_BuildValue("s",_ptemp
);
324 _resultobj
= Py_None
;
329 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
330 PyObject
* _resultobj
;
333 PyObject
* _argo0
= 0;
334 char *_kwnames
[] = { "icon", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
349 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
351 wxPyEndAllowThreads(__tstate
);
352 if (PyErr_Occurred()) return NULL
;
354 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
355 _resultobj
= Py_BuildValue("s",_ptemp
);
358 _resultobj
= Py_None
;
363 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
364 PyObject
* _resultobj
;
369 int _arg3
= (int ) 1;
370 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
378 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
380 wxPyEndAllowThreads(__tstate
);
381 if (PyErr_Occurred()) return NULL
;
383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
384 _resultobj
= Py_BuildValue("s",_ptemp
);
387 _resultobj
= Py_None
;
392 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
393 PyObject
* _resultobj
;
397 PyObject
* _argo0
= 0;
399 PyObject
* _obj1
= 0;
400 char *_kwnames
[] = { "bitmap","colour", NULL
};
404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
415 if (! wxColour_helper(_obj1
, &_arg1
))
419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
420 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
422 wxPyEndAllowThreads(__tstate
);
423 if (PyErr_Occurred()) return NULL
;
425 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
426 _resultobj
= Py_BuildValue("s",_ptemp
);
429 _resultobj
= Py_None
;
434 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
435 PyObject
* _resultobj
;
437 char *_kwnames
[] = { NULL
};
441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
445 _result
= (wxIcon
*)wxEmptyIcon();
447 wxPyEndAllowThreads(__tstate
);
448 if (PyErr_Occurred()) return NULL
;
450 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
451 _resultobj
= Py_BuildValue("s",_ptemp
);
454 _resultobj
= Py_None
;
459 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
460 PyObject
* _resultobj
;
463 PyObject
* _obj0
= 0;
464 char *_kwnames
[] = { "listOfStrings", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
475 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
477 wxPyEndAllowThreads(__tstate
);
478 if (PyErr_Occurred()) return NULL
;
480 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
481 _resultobj
= Py_BuildValue("s",_ptemp
);
484 _resultobj
= Py_None
;
489 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
490 PyObject
* _resultobj
;
493 char *_kwnames
[] = { "id", NULL
};
497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
501 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
503 wxPyEndAllowThreads(__tstate
);
504 if (PyErr_Occurred()) return NULL
;
506 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
507 _resultobj
= Py_BuildValue("s",_ptemp
);
510 _resultobj
= Py_None
;
515 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 PyObject
* _resultobj
;
519 PyObject
* _obj0
= 0;
520 char *_kwnames
[] = { "colorName", NULL
};
524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
527 #if PYTHON_API_VERSION >= 1009
528 char* tmpPtr
; int tmpSize
;
529 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
533 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
535 _arg0
= new wxString(tmpPtr
, tmpSize
);
537 if (!PyString_Check(_obj0
)) {
538 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
541 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 _result
= (wxColour
*)wxNamedColour(*_arg0
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
551 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
552 _resultobj
= Py_BuildValue("s",_ptemp
);
555 _resultobj
= Py_None
;
564 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
566 wxMemoryDC
* _result
;
568 PyObject
* _argo0
= 0;
569 char *_kwnames
[] = { "oldDC", NULL
};
573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
583 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
584 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
586 wxPyEndAllowThreads(__tstate
);
587 if (PyErr_Occurred()) return NULL
;
589 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
590 _resultobj
= Py_BuildValue("s",_ptemp
);
593 _resultobj
= Py_None
;
598 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
600 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
604 static PyObject
*_wrap_wxNORMAL_FONT_get() {
608 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
609 pyobj
= PyString_FromString(ptemp
);
613 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
615 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
619 static PyObject
*_wrap_wxSMALL_FONT_get() {
623 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
624 pyobj
= PyString_FromString(ptemp
);
628 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
630 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
634 static PyObject
*_wrap_wxITALIC_FONT_get() {
638 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
639 pyobj
= PyString_FromString(ptemp
);
643 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
645 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
649 static PyObject
*_wrap_wxSWISS_FONT_get() {
653 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
654 pyobj
= PyString_FromString(ptemp
);
658 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
660 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
664 static PyObject
*_wrap_wxRED_PEN_get() {
668 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
669 pyobj
= PyString_FromString(ptemp
);
673 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
675 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
679 static PyObject
*_wrap_wxCYAN_PEN_get() {
683 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
684 pyobj
= PyString_FromString(ptemp
);
688 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
690 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
694 static PyObject
*_wrap_wxGREEN_PEN_get() {
698 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
699 pyobj
= PyString_FromString(ptemp
);
703 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
705 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
709 static PyObject
*_wrap_wxBLACK_PEN_get() {
713 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
714 pyobj
= PyString_FromString(ptemp
);
718 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
720 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
724 static PyObject
*_wrap_wxWHITE_PEN_get() {
728 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
729 pyobj
= PyString_FromString(ptemp
);
733 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
735 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
739 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
743 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
744 pyobj
= PyString_FromString(ptemp
);
748 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
750 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
754 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
758 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
759 pyobj
= PyString_FromString(ptemp
);
763 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
765 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
769 static PyObject
*_wrap_wxGREY_PEN_get() {
773 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
774 pyobj
= PyString_FromString(ptemp
);
778 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
780 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
784 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
788 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
789 pyobj
= PyString_FromString(ptemp
);
793 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
795 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
799 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
803 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
804 pyobj
= PyString_FromString(ptemp
);
808 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
810 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
814 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
818 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
819 pyobj
= PyString_FromString(ptemp
);
823 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
825 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
829 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
833 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
834 pyobj
= PyString_FromString(ptemp
);
838 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
840 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
844 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
848 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
849 pyobj
= PyString_FromString(ptemp
);
853 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
855 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
859 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
863 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
864 pyobj
= PyString_FromString(ptemp
);
868 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
870 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
874 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
878 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
879 pyobj
= PyString_FromString(ptemp
);
883 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
885 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
889 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
893 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
894 pyobj
= PyString_FromString(ptemp
);
898 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
900 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
904 static PyObject
*_wrap_wxRED_BRUSH_get() {
908 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
909 pyobj
= PyString_FromString(ptemp
);
913 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
915 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
919 static PyObject
*_wrap_wxGREY_BRUSH_get() {
923 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
924 pyobj
= PyString_FromString(ptemp
);
928 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
930 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
934 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
938 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
939 pyobj
= PyString_FromString(ptemp
);
943 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
945 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
949 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
953 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
954 pyobj
= PyString_FromString(ptemp
);
958 static int _wrap_wxBLACK_set(PyObject
*val
) {
960 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
964 static PyObject
*_wrap_wxBLACK_get() {
968 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
969 pyobj
= PyString_FromString(ptemp
);
973 static int _wrap_wxWHITE_set(PyObject
*val
) {
975 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
979 static PyObject
*_wrap_wxWHITE_get() {
983 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
984 pyobj
= PyString_FromString(ptemp
);
988 static int _wrap_wxRED_set(PyObject
*val
) {
990 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
994 static PyObject
*_wrap_wxRED_get() {
998 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
999 pyobj
= PyString_FromString(ptemp
);
1003 static int _wrap_wxBLUE_set(PyObject
*val
) {
1005 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1009 static PyObject
*_wrap_wxBLUE_get() {
1013 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1014 pyobj
= PyString_FromString(ptemp
);
1018 static int _wrap_wxGREEN_set(PyObject
*val
) {
1020 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1024 static PyObject
*_wrap_wxGREEN_get() {
1028 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1029 pyobj
= PyString_FromString(ptemp
);
1033 static int _wrap_wxCYAN_set(PyObject
*val
) {
1035 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1039 static PyObject
*_wrap_wxCYAN_get() {
1043 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1044 pyobj
= PyString_FromString(ptemp
);
1048 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1050 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1054 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1058 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1059 pyobj
= PyString_FromString(ptemp
);
1063 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1065 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1069 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1073 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1074 pyobj
= PyString_FromString(ptemp
);
1078 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1080 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1084 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1088 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1089 pyobj
= PyString_FromString(ptemp
);
1093 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1095 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1099 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1103 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1104 pyobj
= PyString_FromString(ptemp
);
1108 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1110 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1114 static PyObject
*_wrap_wxNullBitmap_get() {
1118 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1119 pyobj
= PyString_FromString(ptemp
);
1123 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1125 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1129 static PyObject
*_wrap_wxNullIcon_get() {
1133 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1134 pyobj
= PyString_FromString(ptemp
);
1138 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1140 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1144 static PyObject
*_wrap_wxNullCursor_get() {
1148 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1149 pyobj
= PyString_FromString(ptemp
);
1153 static int _wrap_wxNullPen_set(PyObject
*val
) {
1155 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1159 static PyObject
*_wrap_wxNullPen_get() {
1163 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1164 pyobj
= PyString_FromString(ptemp
);
1168 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1170 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1174 static PyObject
*_wrap_wxNullBrush_get() {
1178 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1179 pyobj
= PyString_FromString(ptemp
);
1183 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1185 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1189 static PyObject
*_wrap_wxNullPalette_get() {
1193 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1194 pyobj
= PyString_FromString(ptemp
);
1198 static int _wrap_wxNullFont_set(PyObject
*val
) {
1200 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1204 static PyObject
*_wrap_wxNullFont_get() {
1208 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1209 pyobj
= PyString_FromString(ptemp
);
1213 static int _wrap_wxNullColour_set(PyObject
*val
) {
1215 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1219 static PyObject
*_wrap_wxNullColour_get() {
1223 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1224 pyobj
= PyString_FromString(ptemp
);
1228 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1230 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1234 static PyObject
*_wrap_wxTheFontList_get() {
1238 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1239 pyobj
= PyString_FromString(ptemp
);
1243 static int _wrap_wxThePenList_set(PyObject
*val
) {
1245 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1249 static PyObject
*_wrap_wxThePenList_get() {
1253 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1254 pyobj
= PyString_FromString(ptemp
);
1258 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1260 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1264 static PyObject
*_wrap_wxTheBrushList_get() {
1268 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1269 pyobj
= PyString_FromString(ptemp
);
1273 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1275 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1279 static PyObject
*_wrap_wxTheColourDatabase_get() {
1283 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1284 pyobj
= PyString_FromString(ptemp
);
1288 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1291 src
= (wxGDIObject
*) ptr
;
1292 dest
= (wxObject
*) src
;
1293 return (void *) dest
;
1296 #define new_wxGDIObject() (new wxGDIObject())
1297 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1298 PyObject
* _resultobj
;
1299 wxGDIObject
* _result
;
1300 char *_kwnames
[] = { NULL
};
1304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1308 _result
= (wxGDIObject
*)new_wxGDIObject();
1310 wxPyEndAllowThreads(__tstate
);
1311 if (PyErr_Occurred()) return NULL
;
1313 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1314 _resultobj
= Py_BuildValue("s",_ptemp
);
1317 _resultobj
= Py_None
;
1322 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1323 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1324 PyObject
* _resultobj
;
1325 wxGDIObject
* _arg0
;
1326 PyObject
* _argo0
= 0;
1327 char *_kwnames
[] = { "self", NULL
};
1330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1341 delete_wxGDIObject(_arg0
);
1343 wxPyEndAllowThreads(__tstate
);
1344 if (PyErr_Occurred()) return NULL
;
1345 } Py_INCREF(Py_None
);
1346 _resultobj
= Py_None
;
1350 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1351 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1352 PyObject
* _resultobj
;
1354 wxGDIObject
* _arg0
;
1355 PyObject
* _argo0
= 0;
1356 char *_kwnames
[] = { "self", NULL
};
1359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1370 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1372 wxPyEndAllowThreads(__tstate
);
1373 if (PyErr_Occurred()) return NULL
;
1374 } _resultobj
= Py_BuildValue("i",_result
);
1378 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1379 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1380 PyObject
* _resultobj
;
1381 wxGDIObject
* _arg0
;
1383 PyObject
* _argo0
= 0;
1385 char *_kwnames
[] = { "self","visible", NULL
};
1388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1397 _arg1
= (bool ) tempbool1
;
1399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1400 wxGDIObject_SetVisible(_arg0
,_arg1
);
1402 wxPyEndAllowThreads(__tstate
);
1403 if (PyErr_Occurred()) return NULL
;
1404 } Py_INCREF(Py_None
);
1405 _resultobj
= Py_None
;
1409 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1410 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1411 PyObject
* _resultobj
;
1413 wxGDIObject
* _arg0
;
1414 PyObject
* _argo0
= 0;
1415 char *_kwnames
[] = { "self", NULL
};
1418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1429 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1431 wxPyEndAllowThreads(__tstate
);
1432 if (PyErr_Occurred()) return NULL
;
1433 } _resultobj
= Py_BuildValue("i",_result
);
1437 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1440 src
= (wxBitmap
*) ptr
;
1441 dest
= (wxGDIObject
*) src
;
1442 return (void *) dest
;
1445 static void *SwigwxBitmapTowxObject(void *ptr
) {
1448 src
= (wxBitmap
*) ptr
;
1449 dest
= (wxObject
*) src
;
1450 return (void *) dest
;
1453 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1454 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1455 PyObject
* _resultobj
;
1458 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1459 PyObject
* _obj0
= 0;
1460 char *_kwnames
[] = { "name","type", NULL
};
1464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1467 #if PYTHON_API_VERSION >= 1009
1468 char* tmpPtr
; int tmpSize
;
1469 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1470 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1473 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1475 _arg0
= new wxString(tmpPtr
, tmpSize
);
1477 if (!PyString_Check(_obj0
)) {
1478 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1481 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1486 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1488 wxPyEndAllowThreads(__tstate
);
1489 if (PyErr_Occurred()) return NULL
;
1491 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1492 _resultobj
= Py_BuildValue("s",_ptemp
);
1495 _resultobj
= Py_None
;
1504 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1505 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1506 PyObject
* _resultobj
;
1508 PyObject
* _argo0
= 0;
1509 char *_kwnames
[] = { "self", NULL
};
1512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1523 delete_wxBitmap(_arg0
);
1525 wxPyEndAllowThreads(__tstate
);
1526 if (PyErr_Occurred()) return NULL
;
1527 } Py_INCREF(Py_None
);
1528 _resultobj
= Py_None
;
1532 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1533 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1534 PyObject
* _resultobj
;
1535 wxPalette
* _result
;
1537 PyObject
* _argo0
= 0;
1538 char *_kwnames
[] = { "self", NULL
};
1542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1553 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1555 wxPyEndAllowThreads(__tstate
);
1556 if (PyErr_Occurred()) return NULL
;
1558 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1559 _resultobj
= Py_BuildValue("s",_ptemp
);
1562 _resultobj
= Py_None
;
1567 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1568 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1569 PyObject
* _resultobj
;
1572 PyObject
* _argo0
= 0;
1573 char *_kwnames
[] = { "self", NULL
};
1577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1588 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1590 wxPyEndAllowThreads(__tstate
);
1591 if (PyErr_Occurred()) return NULL
;
1593 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1594 _resultobj
= Py_BuildValue("s",_ptemp
);
1597 _resultobj
= Py_None
;
1602 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1603 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1604 PyObject
* _resultobj
;
1608 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1609 PyObject
* _argo0
= 0;
1610 PyObject
* _obj1
= 0;
1611 char *_kwnames
[] = { "self","name","type", NULL
};
1614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1624 #if PYTHON_API_VERSION >= 1009
1625 char* tmpPtr
; int tmpSize
;
1626 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1627 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1630 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1632 _arg1
= new wxString(tmpPtr
, tmpSize
);
1634 if (!PyString_Check(_obj1
)) {
1635 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1638 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1643 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1645 wxPyEndAllowThreads(__tstate
);
1646 if (PyErr_Occurred()) return NULL
;
1647 } _resultobj
= Py_BuildValue("i",_result
);
1655 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1656 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1657 PyObject
* _resultobj
;
1662 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1663 PyObject
* _argo0
= 0;
1664 PyObject
* _obj1
= 0;
1665 PyObject
* _argo3
= 0;
1666 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1679 #if PYTHON_API_VERSION >= 1009
1680 char* tmpPtr
; int tmpSize
;
1681 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1682 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1685 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1687 _arg1
= new wxString(tmpPtr
, tmpSize
);
1689 if (!PyString_Check(_obj1
)) {
1690 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1693 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1697 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1698 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1705 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1707 wxPyEndAllowThreads(__tstate
);
1708 if (PyErr_Occurred()) return NULL
;
1709 } _resultobj
= Py_BuildValue("i",_result
);
1717 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1718 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1719 PyObject
* _resultobj
;
1722 PyObject
* _argo0
= 0;
1723 PyObject
* _argo1
= 0;
1724 char *_kwnames
[] = { "self","mask", NULL
};
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1737 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1738 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1745 wxBitmap_SetMask(_arg0
,_arg1
);
1747 wxPyEndAllowThreads(__tstate
);
1748 if (PyErr_Occurred()) return NULL
;
1749 } Py_INCREF(Py_None
);
1750 _resultobj
= Py_None
;
1754 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1755 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1756 PyObject
* _resultobj
;
1759 PyObject
* _argo0
= 0;
1760 char *_kwnames
[] = { "self", NULL
};
1763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1774 _result
= (bool )wxBitmap_Ok(_arg0
);
1776 wxPyEndAllowThreads(__tstate
);
1777 if (PyErr_Occurred()) return NULL
;
1778 } _resultobj
= Py_BuildValue("i",_result
);
1782 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1783 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1784 PyObject
* _resultobj
;
1787 PyObject
* _argo0
= 0;
1788 char *_kwnames
[] = { "self", NULL
};
1791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1802 _result
= (int )wxBitmap_GetWidth(_arg0
);
1804 wxPyEndAllowThreads(__tstate
);
1805 if (PyErr_Occurred()) return NULL
;
1806 } _resultobj
= Py_BuildValue("i",_result
);
1810 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1811 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1812 PyObject
* _resultobj
;
1815 PyObject
* _argo0
= 0;
1816 char *_kwnames
[] = { "self", NULL
};
1819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1829 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1830 _result
= (int )wxBitmap_GetHeight(_arg0
);
1832 wxPyEndAllowThreads(__tstate
);
1833 if (PyErr_Occurred()) return NULL
;
1834 } _resultobj
= Py_BuildValue("i",_result
);
1838 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1839 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1840 PyObject
* _resultobj
;
1843 PyObject
* _argo0
= 0;
1844 char *_kwnames
[] = { "self", NULL
};
1847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1858 _result
= (int )wxBitmap_GetDepth(_arg0
);
1860 wxPyEndAllowThreads(__tstate
);
1861 if (PyErr_Occurred()) return NULL
;
1862 } _resultobj
= Py_BuildValue("i",_result
);
1866 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1867 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1868 PyObject
* _resultobj
;
1871 PyObject
* _argo0
= 0;
1872 char *_kwnames
[] = { "self","w", NULL
};
1875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1886 wxBitmap_SetWidth(_arg0
,_arg1
);
1888 wxPyEndAllowThreads(__tstate
);
1889 if (PyErr_Occurred()) return NULL
;
1890 } Py_INCREF(Py_None
);
1891 _resultobj
= Py_None
;
1895 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1896 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1897 PyObject
* _resultobj
;
1900 PyObject
* _argo0
= 0;
1901 char *_kwnames
[] = { "self","h", NULL
};
1904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1915 wxBitmap_SetHeight(_arg0
,_arg1
);
1917 wxPyEndAllowThreads(__tstate
);
1918 if (PyErr_Occurred()) return NULL
;
1919 } Py_INCREF(Py_None
);
1920 _resultobj
= Py_None
;
1924 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1925 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1926 PyObject
* _resultobj
;
1929 PyObject
* _argo0
= 0;
1930 char *_kwnames
[] = { "self","d", NULL
};
1933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1944 wxBitmap_SetDepth(_arg0
,_arg1
);
1946 wxPyEndAllowThreads(__tstate
);
1947 if (PyErr_Occurred()) return NULL
;
1948 } Py_INCREF(Py_None
);
1949 _resultobj
= Py_None
;
1953 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1954 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1955 PyObject
* _resultobj
;
1959 PyObject
* _argo0
= 0;
1961 PyObject
* _obj1
= 0;
1962 char *_kwnames
[] = { "self","rect", NULL
};
1966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1977 if (! wxRect_helper(_obj1
, &_arg1
))
1981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1982 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1984 wxPyEndAllowThreads(__tstate
);
1985 if (PyErr_Occurred()) return NULL
;
1986 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1987 _resultobj
= Py_BuildValue("s",_ptemp
);
1991 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1992 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1993 PyObject
* _resultobj
;
1997 PyObject
* _argo0
= 0;
1998 PyObject
* _argo1
= 0;
1999 char *_kwnames
[] = { "self","icon", NULL
};
2002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
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_CopyFromIcon. Expected _wxBitmap_p.");
2012 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2013 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2020 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2022 wxPyEndAllowThreads(__tstate
);
2023 if (PyErr_Occurred()) return NULL
;
2024 } _resultobj
= Py_BuildValue("i",_result
);
2028 static void *SwigwxMaskTowxObject(void *ptr
) {
2031 src
= (wxMask
*) ptr
;
2032 dest
= (wxObject
*) src
;
2033 return (void *) dest
;
2036 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2037 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2038 PyObject
* _resultobj
;
2041 PyObject
* _argo0
= 0;
2042 char *_kwnames
[] = { "bitmap", NULL
};
2046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2057 _result
= (wxMask
*)new_wxMask(*_arg0
);
2059 wxPyEndAllowThreads(__tstate
);
2060 if (PyErr_Occurred()) return NULL
;
2062 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2063 _resultobj
= Py_BuildValue("s",_ptemp
);
2066 _resultobj
= Py_None
;
2071 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2072 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2073 PyObject
* _resultobj
;
2075 PyObject
* _argo0
= 0;
2076 char *_kwnames
[] = { "self", NULL
};
2079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2090 wxMask_Destroy(_arg0
);
2092 wxPyEndAllowThreads(__tstate
);
2093 if (PyErr_Occurred()) return NULL
;
2094 } Py_INCREF(Py_None
);
2095 _resultobj
= Py_None
;
2099 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2102 src
= (wxIcon
*) ptr
;
2103 dest
= (wxGDIObject
*) src
;
2104 return (void *) dest
;
2107 static void *SwigwxIconTowxObject(void *ptr
) {
2110 src
= (wxIcon
*) ptr
;
2111 dest
= (wxObject
*) src
;
2112 return (void *) dest
;
2115 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2116 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2117 PyObject
* _resultobj
;
2121 int _arg2
= (int ) -1;
2122 int _arg3
= (int ) -1;
2123 PyObject
* _obj0
= 0;
2124 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2131 #if PYTHON_API_VERSION >= 1009
2132 char* tmpPtr
; int tmpSize
;
2133 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2134 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2137 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2139 _arg0
= new wxString(tmpPtr
, tmpSize
);
2141 if (!PyString_Check(_obj0
)) {
2142 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2145 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2150 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2152 wxPyEndAllowThreads(__tstate
);
2153 if (PyErr_Occurred()) return NULL
;
2155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2156 _resultobj
= Py_BuildValue("s",_ptemp
);
2159 _resultobj
= Py_None
;
2168 #define delete_wxIcon(_swigobj) (delete _swigobj)
2169 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2170 PyObject
* _resultobj
;
2172 PyObject
* _argo0
= 0;
2173 char *_kwnames
[] = { "self", NULL
};
2176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2187 delete_wxIcon(_arg0
);
2189 wxPyEndAllowThreads(__tstate
);
2190 if (PyErr_Occurred()) return NULL
;
2191 } Py_INCREF(Py_None
);
2192 _resultobj
= Py_None
;
2196 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2197 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
* _resultobj
;
2201 PyObject
* _argo0
= 0;
2202 char *_kwnames
[] = { "self", NULL
};
2205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2216 _result
= (bool )wxIcon_Ok(_arg0
);
2218 wxPyEndAllowThreads(__tstate
);
2219 if (PyErr_Occurred()) return NULL
;
2220 } _resultobj
= Py_BuildValue("i",_result
);
2224 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2225 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2226 PyObject
* _resultobj
;
2229 PyObject
* _argo0
= 0;
2230 char *_kwnames
[] = { "self", NULL
};
2233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2243 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2244 _result
= (int )wxIcon_GetWidth(_arg0
);
2246 wxPyEndAllowThreads(__tstate
);
2247 if (PyErr_Occurred()) return NULL
;
2248 } _resultobj
= Py_BuildValue("i",_result
);
2252 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2253 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2254 PyObject
* _resultobj
;
2257 PyObject
* _argo0
= 0;
2258 char *_kwnames
[] = { "self", NULL
};
2261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2272 _result
= (int )wxIcon_GetHeight(_arg0
);
2274 wxPyEndAllowThreads(__tstate
);
2275 if (PyErr_Occurred()) return NULL
;
2276 } _resultobj
= Py_BuildValue("i",_result
);
2280 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2281 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2282 PyObject
* _resultobj
;
2285 PyObject
* _argo0
= 0;
2286 char *_kwnames
[] = { "self", NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2299 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2300 _result
= (int )wxIcon_GetDepth(_arg0
);
2302 wxPyEndAllowThreads(__tstate
);
2303 if (PyErr_Occurred()) return NULL
;
2304 } _resultobj
= Py_BuildValue("i",_result
);
2308 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2309 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2310 PyObject
* _resultobj
;
2313 PyObject
* _argo0
= 0;
2314 char *_kwnames
[] = { "self","w", NULL
};
2317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2328 wxIcon_SetWidth(_arg0
,_arg1
);
2330 wxPyEndAllowThreads(__tstate
);
2331 if (PyErr_Occurred()) return NULL
;
2332 } Py_INCREF(Py_None
);
2333 _resultobj
= Py_None
;
2337 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2338 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2339 PyObject
* _resultobj
;
2342 PyObject
* _argo0
= 0;
2343 char *_kwnames
[] = { "self","h", NULL
};
2346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2357 wxIcon_SetHeight(_arg0
,_arg1
);
2359 wxPyEndAllowThreads(__tstate
);
2360 if (PyErr_Occurred()) return NULL
;
2361 } Py_INCREF(Py_None
);
2362 _resultobj
= Py_None
;
2366 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2367 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2368 PyObject
* _resultobj
;
2371 PyObject
* _argo0
= 0;
2372 char *_kwnames
[] = { "self","d", NULL
};
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
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 wxIcon_SetDepth. Expected _wxIcon_p.");
2385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2386 wxIcon_SetDepth(_arg0
,_arg1
);
2388 wxPyEndAllowThreads(__tstate
);
2389 if (PyErr_Occurred()) return NULL
;
2390 } Py_INCREF(Py_None
);
2391 _resultobj
= Py_None
;
2395 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2396 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2397 PyObject
* _resultobj
;
2400 PyObject
* _argo0
= 0;
2401 PyObject
* _argo1
= 0;
2402 char *_kwnames
[] = { "self","bmp", NULL
};
2405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2423 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2425 wxPyEndAllowThreads(__tstate
);
2426 if (PyErr_Occurred()) return NULL
;
2427 } Py_INCREF(Py_None
);
2428 _resultobj
= Py_None
;
2432 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2435 src
= (wxCursor
*) ptr
;
2436 dest
= (wxGDIObject
*) src
;
2437 return (void *) dest
;
2440 static void *SwigwxCursorTowxObject(void *ptr
) {
2443 src
= (wxCursor
*) ptr
;
2444 dest
= (wxObject
*) src
;
2445 return (void *) dest
;
2448 #define delete_wxCursor(_swigobj) (delete _swigobj)
2449 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2450 PyObject
* _resultobj
;
2452 PyObject
* _argo0
= 0;
2453 char *_kwnames
[] = { "self", NULL
};
2456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2467 delete_wxCursor(_arg0
);
2469 wxPyEndAllowThreads(__tstate
);
2470 if (PyErr_Occurred()) return NULL
;
2471 } Py_INCREF(Py_None
);
2472 _resultobj
= Py_None
;
2476 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2477 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2478 PyObject
* _resultobj
;
2481 PyObject
* _argo0
= 0;
2482 char *_kwnames
[] = { "self", NULL
};
2485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2496 _result
= (bool )wxCursor_Ok(_arg0
);
2498 wxPyEndAllowThreads(__tstate
);
2499 if (PyErr_Occurred()) return NULL
;
2500 } _resultobj
= Py_BuildValue("i",_result
);
2504 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2505 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2506 PyObject
* _resultobj
;
2507 wxNativeFontInfo
* _result
;
2508 char *_kwnames
[] = { NULL
};
2512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
2515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2516 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
2518 wxPyEndAllowThreads(__tstate
);
2519 if (PyErr_Occurred()) return NULL
;
2521 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
2522 _resultobj
= Py_BuildValue("s",_ptemp
);
2525 _resultobj
= Py_None
;
2530 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2531 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2532 PyObject
* _resultobj
;
2533 wxNativeFontInfo
* _arg0
;
2534 PyObject
* _argo0
= 0;
2535 char *_kwnames
[] = { "self", NULL
};
2538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
2541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2549 wxNativeFontInfo_Init(_arg0
);
2551 wxPyEndAllowThreads(__tstate
);
2552 if (PyErr_Occurred()) return NULL
;
2553 } Py_INCREF(Py_None
);
2554 _resultobj
= Py_None
;
2558 #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2559 static PyObject
*_wrap_wxNativeFontInfo_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2560 PyObject
* _resultobj
;
2562 wxNativeFontInfo
* _arg0
;
2563 PyObject
* _argo0
= 0;
2564 char *_kwnames
[] = { "self", NULL
};
2567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetPointSize",_kwnames
,&_argo0
))
2570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p.");
2577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2578 _result
= (int )wxNativeFontInfo_GetPointSize(_arg0
);
2580 wxPyEndAllowThreads(__tstate
);
2581 if (PyErr_Occurred()) return NULL
;
2582 } _resultobj
= Py_BuildValue("i",_result
);
2586 #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle())
2587 static PyObject
*_wrap_wxNativeFontInfo_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2588 PyObject
* _resultobj
;
2589 wxFontStyle _result
;
2590 wxNativeFontInfo
* _arg0
;
2591 PyObject
* _argo0
= 0;
2592 char *_kwnames
[] = { "self", NULL
};
2595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetStyle",_kwnames
,&_argo0
))
2598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p.");
2605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2606 _result
= (wxFontStyle
)wxNativeFontInfo_GetStyle(_arg0
);
2608 wxPyEndAllowThreads(__tstate
);
2609 if (PyErr_Occurred()) return NULL
;
2610 } _resultobj
= Py_BuildValue("i",_result
);
2614 #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight())
2615 static PyObject
*_wrap_wxNativeFontInfo_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2616 PyObject
* _resultobj
;
2617 wxFontWeight _result
;
2618 wxNativeFontInfo
* _arg0
;
2619 PyObject
* _argo0
= 0;
2620 char *_kwnames
[] = { "self", NULL
};
2623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetWeight",_kwnames
,&_argo0
))
2626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p.");
2633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2634 _result
= (wxFontWeight
)wxNativeFontInfo_GetWeight(_arg0
);
2636 wxPyEndAllowThreads(__tstate
);
2637 if (PyErr_Occurred()) return NULL
;
2638 } _resultobj
= Py_BuildValue("i",_result
);
2642 #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2643 static PyObject
*_wrap_wxNativeFontInfo_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2644 PyObject
* _resultobj
;
2646 wxNativeFontInfo
* _arg0
;
2647 PyObject
* _argo0
= 0;
2648 char *_kwnames
[] = { "self", NULL
};
2651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetUnderlined",_kwnames
,&_argo0
))
2654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p.");
2661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2662 _result
= (bool )wxNativeFontInfo_GetUnderlined(_arg0
);
2664 wxPyEndAllowThreads(__tstate
);
2665 if (PyErr_Occurred()) return NULL
;
2666 } _resultobj
= Py_BuildValue("i",_result
);
2670 #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2671 static PyObject
*_wrap_wxNativeFontInfo_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2672 PyObject
* _resultobj
;
2674 wxNativeFontInfo
* _arg0
;
2675 PyObject
* _argo0
= 0;
2676 char *_kwnames
[] = { "self", NULL
};
2679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFaceName",_kwnames
,&_argo0
))
2682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p.");
2689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2690 _result
= new wxString (wxNativeFontInfo_GetFaceName(_arg0
));
2692 wxPyEndAllowThreads(__tstate
);
2693 if (PyErr_Occurred()) return NULL
;
2695 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2703 #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily())
2704 static PyObject
*_wrap_wxNativeFontInfo_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2705 PyObject
* _resultobj
;
2706 wxFontFamily _result
;
2707 wxNativeFontInfo
* _arg0
;
2708 PyObject
* _argo0
= 0;
2709 char *_kwnames
[] = { "self", NULL
};
2712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetFamily",_kwnames
,&_argo0
))
2715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p.");
2722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2723 _result
= (wxFontFamily
)wxNativeFontInfo_GetFamily(_arg0
);
2725 wxPyEndAllowThreads(__tstate
);
2726 if (PyErr_Occurred()) return NULL
;
2727 } _resultobj
= Py_BuildValue("i",_result
);
2731 #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2732 static PyObject
*_wrap_wxNativeFontInfo_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2733 PyObject
* _resultobj
;
2734 wxFontEncoding _result
;
2735 wxNativeFontInfo
* _arg0
;
2736 PyObject
* _argo0
= 0;
2737 char *_kwnames
[] = { "self", NULL
};
2740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetEncoding",_kwnames
,&_argo0
))
2743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p.");
2750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2751 _result
= (wxFontEncoding
)wxNativeFontInfo_GetEncoding(_arg0
);
2753 wxPyEndAllowThreads(__tstate
);
2754 if (PyErr_Occurred()) return NULL
;
2755 } _resultobj
= Py_BuildValue("i",_result
);
2759 #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2760 static PyObject
*_wrap_wxNativeFontInfo_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2761 PyObject
* _resultobj
;
2762 wxNativeFontInfo
* _arg0
;
2764 PyObject
* _argo0
= 0;
2765 char *_kwnames
[] = { "self","pointsize", NULL
};
2768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p.");
2778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2779 wxNativeFontInfo_SetPointSize(_arg0
,_arg1
);
2781 wxPyEndAllowThreads(__tstate
);
2782 if (PyErr_Occurred()) return NULL
;
2783 } Py_INCREF(Py_None
);
2784 _resultobj
= Py_None
;
2788 #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2789 static PyObject
*_wrap_wxNativeFontInfo_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2790 PyObject
* _resultobj
;
2791 wxNativeFontInfo
* _arg0
;
2793 PyObject
* _argo0
= 0;
2794 char *_kwnames
[] = { "self","style", NULL
};
2797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p.");
2807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2808 wxNativeFontInfo_SetStyle(_arg0
,_arg1
);
2810 wxPyEndAllowThreads(__tstate
);
2811 if (PyErr_Occurred()) return NULL
;
2812 } Py_INCREF(Py_None
);
2813 _resultobj
= Py_None
;
2817 #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2818 static PyObject
*_wrap_wxNativeFontInfo_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2819 PyObject
* _resultobj
;
2820 wxNativeFontInfo
* _arg0
;
2822 PyObject
* _argo0
= 0;
2823 char *_kwnames
[] = { "self","weight", NULL
};
2826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetWeight",_kwnames
,&_argo0
,&_arg1
))
2829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p.");
2836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2837 wxNativeFontInfo_SetWeight(_arg0
,_arg1
);
2839 wxPyEndAllowThreads(__tstate
);
2840 if (PyErr_Occurred()) return NULL
;
2841 } Py_INCREF(Py_None
);
2842 _resultobj
= Py_None
;
2846 #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2847 static PyObject
*_wrap_wxNativeFontInfo_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2848 PyObject
* _resultobj
;
2849 wxNativeFontInfo
* _arg0
;
2851 PyObject
* _argo0
= 0;
2853 char *_kwnames
[] = { "self","underlined", NULL
};
2856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p.");
2865 _arg1
= (bool ) tempbool1
;
2867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2868 wxNativeFontInfo_SetUnderlined(_arg0
,_arg1
);
2870 wxPyEndAllowThreads(__tstate
);
2871 if (PyErr_Occurred()) return NULL
;
2872 } Py_INCREF(Py_None
);
2873 _resultobj
= Py_None
;
2877 #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2878 static PyObject
*_wrap_wxNativeFontInfo_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2879 PyObject
* _resultobj
;
2880 wxNativeFontInfo
* _arg0
;
2882 PyObject
* _argo0
= 0;
2883 PyObject
* _obj1
= 0;
2884 char *_kwnames
[] = { "self","facename", NULL
};
2887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p.");
2897 #if PYTHON_API_VERSION >= 1009
2898 char* tmpPtr
; int tmpSize
;
2899 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2900 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2903 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2905 _arg1
= new wxString(tmpPtr
, tmpSize
);
2907 if (!PyString_Check(_obj1
)) {
2908 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2911 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2916 wxNativeFontInfo_SetFaceName(_arg0
,*_arg1
);
2918 wxPyEndAllowThreads(__tstate
);
2919 if (PyErr_Occurred()) return NULL
;
2920 } Py_INCREF(Py_None
);
2921 _resultobj
= Py_None
;
2929 #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2930 static PyObject
*_wrap_wxNativeFontInfo_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2931 PyObject
* _resultobj
;
2932 wxNativeFontInfo
* _arg0
;
2934 PyObject
* _argo0
= 0;
2935 char *_kwnames
[] = { "self","family", NULL
};
2938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p.");
2948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2949 wxNativeFontInfo_SetFamily(_arg0
,_arg1
);
2951 wxPyEndAllowThreads(__tstate
);
2952 if (PyErr_Occurred()) return NULL
;
2953 } Py_INCREF(Py_None
);
2954 _resultobj
= Py_None
;
2958 #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2959 static PyObject
*_wrap_wxNativeFontInfo_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2960 PyObject
* _resultobj
;
2961 wxNativeFontInfo
* _arg0
;
2962 wxFontEncoding _arg1
;
2963 PyObject
* _argo0
= 0;
2964 char *_kwnames
[] = { "self","encoding", NULL
};
2967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxNativeFontInfo_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
2970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p.");
2977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2978 wxNativeFontInfo_SetEncoding(_arg0
,_arg1
);
2980 wxPyEndAllowThreads(__tstate
);
2981 if (PyErr_Occurred()) return NULL
;
2982 } Py_INCREF(Py_None
);
2983 _resultobj
= Py_None
;
2987 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2988 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2989 PyObject
* _resultobj
;
2991 wxNativeFontInfo
* _arg0
;
2993 PyObject
* _argo0
= 0;
2994 PyObject
* _obj1
= 0;
2995 char *_kwnames
[] = { "self","s", NULL
};
2998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3008 #if PYTHON_API_VERSION >= 1009
3009 char* tmpPtr
; int tmpSize
;
3010 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3011 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3014 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3016 _arg1
= new wxString(tmpPtr
, tmpSize
);
3018 if (!PyString_Check(_obj1
)) {
3019 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3022 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3027 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3029 wxPyEndAllowThreads(__tstate
);
3030 if (PyErr_Occurred()) return NULL
;
3031 } _resultobj
= Py_BuildValue("i",_result
);
3039 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3040 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3041 PyObject
* _resultobj
;
3043 wxNativeFontInfo
* _arg0
;
3044 PyObject
* _argo0
= 0;
3045 char *_kwnames
[] = { "self", NULL
};
3048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3059 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3061 wxPyEndAllowThreads(__tstate
);
3062 if (PyErr_Occurred()) return NULL
;
3064 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3072 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3073 return self
->ToString();
3075 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3076 PyObject
* _resultobj
;
3078 wxNativeFontInfo
* _arg0
;
3079 PyObject
* _argo0
= 0;
3080 char *_kwnames
[] = { "self", NULL
};
3083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3094 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3096 wxPyEndAllowThreads(__tstate
);
3097 if (PyErr_Occurred()) return NULL
;
3099 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3107 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
3108 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3109 PyObject
* _resultobj
;
3111 wxNativeFontInfo
* _arg0
;
3113 PyObject
* _argo0
= 0;
3114 PyObject
* _obj1
= 0;
3115 char *_kwnames
[] = { "self","s", NULL
};
3118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
3121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
3128 #if PYTHON_API_VERSION >= 1009
3129 char* tmpPtr
; int tmpSize
;
3130 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3131 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3134 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3136 _arg1
= new wxString(tmpPtr
, tmpSize
);
3138 if (!PyString_Check(_obj1
)) {
3139 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3142 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3147 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
3149 wxPyEndAllowThreads(__tstate
);
3150 if (PyErr_Occurred()) return NULL
;
3151 } _resultobj
= Py_BuildValue("i",_result
);
3159 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
3160 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3161 PyObject
* _resultobj
;
3163 wxNativeFontInfo
* _arg0
;
3164 PyObject
* _argo0
= 0;
3165 char *_kwnames
[] = { "self", NULL
};
3168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
3171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3179 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
3181 wxPyEndAllowThreads(__tstate
);
3182 if (PyErr_Occurred()) return NULL
;
3184 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3192 #define new_wxFontMapper() (new wxFontMapper())
3193 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3194 PyObject
* _resultobj
;
3195 wxFontMapper
* _result
;
3196 char *_kwnames
[] = { NULL
};
3200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3204 _result
= (wxFontMapper
*)new_wxFontMapper();
3206 wxPyEndAllowThreads(__tstate
);
3207 if (PyErr_Occurred()) return NULL
;
3209 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3210 _resultobj
= Py_BuildValue("s",_ptemp
);
3213 _resultobj
= Py_None
;
3218 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3219 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3220 PyObject
* _resultobj
;
3221 wxFontMapper
* _arg0
;
3222 PyObject
* _argo0
= 0;
3223 char *_kwnames
[] = { "self", NULL
};
3226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3237 delete_wxFontMapper(_arg0
);
3239 wxPyEndAllowThreads(__tstate
);
3240 if (PyErr_Occurred()) return NULL
;
3241 } Py_INCREF(Py_None
);
3242 _resultobj
= Py_None
;
3246 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3247 wxFontEncoding alt_enc
;
3248 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3249 return PyInt_FromLong(alt_enc
);
3255 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3256 PyObject
* _resultobj
;
3258 wxFontMapper
* _arg0
;
3259 wxFontEncoding _arg1
;
3260 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3261 bool _arg3
= (bool ) TRUE
;
3262 PyObject
* _argo0
= 0;
3263 PyObject
* _obj2
= 0;
3264 int tempbool3
= (int) TRUE
;
3265 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3279 #if PYTHON_API_VERSION >= 1009
3280 char* tmpPtr
; int tmpSize
;
3281 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3282 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3285 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3287 _arg2
= new wxString(tmpPtr
, tmpSize
);
3289 if (!PyString_Check(_obj2
)) {
3290 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3293 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3296 _arg3
= (bool ) tempbool3
;
3298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3299 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3301 wxPyEndAllowThreads(__tstate
);
3302 if (PyErr_Occurred()) return NULL
;
3304 _resultobj
= _result
;
3313 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3314 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3315 PyObject
* _resultobj
;
3317 wxFontMapper
* _arg0
;
3318 wxFontEncoding _arg1
;
3319 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3320 PyObject
* _argo0
= 0;
3321 PyObject
* _obj2
= 0;
3322 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3336 #if PYTHON_API_VERSION >= 1009
3337 char* tmpPtr
; int tmpSize
;
3338 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3339 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3342 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3344 _arg2
= new wxString(tmpPtr
, tmpSize
);
3346 if (!PyString_Check(_obj2
)) {
3347 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3350 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3355 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3357 wxPyEndAllowThreads(__tstate
);
3358 if (PyErr_Occurred()) return NULL
;
3359 } _resultobj
= Py_BuildValue("i",_result
);
3367 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3368 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3369 PyObject
* _resultobj
;
3370 wxFontEncoding _result
;
3371 wxFontMapper
* _arg0
;
3373 bool _arg2
= (bool ) TRUE
;
3374 PyObject
* _argo0
= 0;
3375 PyObject
* _obj1
= 0;
3376 int tempbool2
= (int) TRUE
;
3377 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3390 #if PYTHON_API_VERSION >= 1009
3391 char* tmpPtr
; int tmpSize
;
3392 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3393 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3396 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3398 _arg1
= new wxString(tmpPtr
, tmpSize
);
3400 if (!PyString_Check(_obj1
)) {
3401 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3404 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3407 _arg2
= (bool ) tempbool2
;
3409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3410 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3412 wxPyEndAllowThreads(__tstate
);
3413 if (PyErr_Occurred()) return NULL
;
3414 } _resultobj
= Py_BuildValue("i",_result
);
3422 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3423 PyObject
* _resultobj
;
3425 wxFontEncoding _arg0
;
3426 char *_kwnames
[] = { "encoding", NULL
};
3429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3433 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3435 wxPyEndAllowThreads(__tstate
);
3436 if (PyErr_Occurred()) return NULL
;
3438 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3446 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3447 PyObject
* _resultobj
;
3449 wxFontEncoding _arg0
;
3450 char *_kwnames
[] = { "encoding", NULL
};
3453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3457 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3459 wxPyEndAllowThreads(__tstate
);
3460 if (PyErr_Occurred()) return NULL
;
3462 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3470 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3471 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3472 PyObject
* _resultobj
;
3473 wxFontMapper
* _arg0
;
3475 PyObject
* _argo0
= 0;
3476 PyObject
* _argo1
= 0;
3477 char *_kwnames
[] = { "self","parent", NULL
};
3480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3490 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3491 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3498 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3500 wxPyEndAllowThreads(__tstate
);
3501 if (PyErr_Occurred()) return NULL
;
3502 } Py_INCREF(Py_None
);
3503 _resultobj
= Py_None
;
3507 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3508 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3509 PyObject
* _resultobj
;
3510 wxFontMapper
* _arg0
;
3512 PyObject
* _argo0
= 0;
3513 PyObject
* _obj1
= 0;
3514 char *_kwnames
[] = { "self","title", NULL
};
3517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3527 #if PYTHON_API_VERSION >= 1009
3528 char* tmpPtr
; int tmpSize
;
3529 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3533 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3535 _arg1
= new wxString(tmpPtr
, tmpSize
);
3537 if (!PyString_Check(_obj1
)) {
3538 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3541 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3546 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3548 wxPyEndAllowThreads(__tstate
);
3549 if (PyErr_Occurred()) return NULL
;
3550 } Py_INCREF(Py_None
);
3551 _resultobj
= Py_None
;
3559 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3560 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3561 PyObject
* _resultobj
;
3562 wxFontMapper
* _arg0
;
3563 wxConfigBase
* _arg1
;
3564 PyObject
* _argo0
= 0;
3565 PyObject
* _argo1
= 0;
3566 char *_kwnames
[] = { "self","config", NULL
};
3569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3579 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3580 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3586 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3587 wxFontMapper_SetConfig(_arg0
,_arg1
);
3589 wxPyEndAllowThreads(__tstate
);
3590 if (PyErr_Occurred()) return NULL
;
3591 } Py_INCREF(Py_None
);
3592 _resultobj
= Py_None
;
3596 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3597 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3598 PyObject
* _resultobj
;
3599 wxFontMapper
* _arg0
;
3601 PyObject
* _argo0
= 0;
3602 PyObject
* _obj1
= 0;
3603 char *_kwnames
[] = { "self","prefix", NULL
};
3606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3616 #if PYTHON_API_VERSION >= 1009
3617 char* tmpPtr
; int tmpSize
;
3618 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3619 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3622 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3624 _arg1
= new wxString(tmpPtr
, tmpSize
);
3626 if (!PyString_Check(_obj1
)) {
3627 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3630 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3635 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3637 wxPyEndAllowThreads(__tstate
);
3638 if (PyErr_Occurred()) return NULL
;
3639 } Py_INCREF(Py_None
);
3640 _resultobj
= Py_None
;
3648 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3649 PyObject
* _resultobj
;
3651 char *_kwnames
[] = { NULL
};
3654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3657 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3658 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3660 wxPyEndAllowThreads(__tstate
);
3661 if (PyErr_Occurred()) return NULL
;
3662 } _resultobj
= Py_BuildValue("s", _result
);
3666 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3669 src
= (wxFont
*) ptr
;
3670 dest
= (wxGDIObject
*) src
;
3671 return (void *) dest
;
3674 static void *SwigwxFontTowxObject(void *ptr
) {
3677 src
= (wxFont
*) ptr
;
3678 dest
= (wxObject
*) src
;
3679 return (void *) dest
;
3682 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3683 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3684 PyObject
* _resultobj
;
3690 int _arg4
= (int ) FALSE
;
3691 char * _arg5
= (char *) "";
3692 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3693 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3701 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3703 wxPyEndAllowThreads(__tstate
);
3704 if (PyErr_Occurred()) return NULL
;
3706 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3707 _resultobj
= Py_BuildValue("s",_ptemp
);
3710 _resultobj
= Py_None
;
3715 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3716 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3717 PyObject
* _resultobj
;
3719 wxNativeFontInfo
* _arg0
;
3720 PyObject
* _argo0
= 0;
3721 char *_kwnames
[] = { "info", NULL
};
3725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3736 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3738 wxPyEndAllowThreads(__tstate
);
3739 if (PyErr_Occurred()) return NULL
;
3741 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3742 _resultobj
= Py_BuildValue("s",_ptemp
);
3745 _resultobj
= Py_None
;
3750 #define delete_wxFont(_swigobj) (delete _swigobj)
3751 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3752 PyObject
* _resultobj
;
3754 PyObject
* _argo0
= 0;
3755 char *_kwnames
[] = { "self", NULL
};
3758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3769 delete_wxFont(_arg0
);
3771 wxPyEndAllowThreads(__tstate
);
3772 if (PyErr_Occurred()) return NULL
;
3773 } Py_INCREF(Py_None
);
3774 _resultobj
= Py_None
;
3778 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3779 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3780 PyObject
* _resultobj
;
3783 PyObject
* _argo0
= 0;
3784 char *_kwnames
[] = { "self", NULL
};
3787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3798 _result
= (bool )wxFont_Ok(_arg0
);
3800 wxPyEndAllowThreads(__tstate
);
3801 if (PyErr_Occurred()) return NULL
;
3802 } _resultobj
= Py_BuildValue("i",_result
);
3806 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3807 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3808 PyObject
* _resultobj
;
3811 PyObject
* _argo0
= 0;
3812 char *_kwnames
[] = { "self", NULL
};
3815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3826 _result
= (int )wxFont_GetPointSize(_arg0
);
3828 wxPyEndAllowThreads(__tstate
);
3829 if (PyErr_Occurred()) return NULL
;
3830 } _resultobj
= Py_BuildValue("i",_result
);
3834 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3835 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3836 PyObject
* _resultobj
;
3839 PyObject
* _argo0
= 0;
3840 char *_kwnames
[] = { "self", NULL
};
3843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3854 _result
= (int )wxFont_GetFamily(_arg0
);
3856 wxPyEndAllowThreads(__tstate
);
3857 if (PyErr_Occurred()) return NULL
;
3858 } _resultobj
= Py_BuildValue("i",_result
);
3862 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3863 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3864 PyObject
* _resultobj
;
3867 PyObject
* _argo0
= 0;
3868 char *_kwnames
[] = { "self", NULL
};
3871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3882 _result
= (int )wxFont_GetStyle(_arg0
);
3884 wxPyEndAllowThreads(__tstate
);
3885 if (PyErr_Occurred()) return NULL
;
3886 } _resultobj
= Py_BuildValue("i",_result
);
3890 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3891 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3892 PyObject
* _resultobj
;
3895 PyObject
* _argo0
= 0;
3896 char *_kwnames
[] = { "self", NULL
};
3899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3910 _result
= (int )wxFont_GetWeight(_arg0
);
3912 wxPyEndAllowThreads(__tstate
);
3913 if (PyErr_Occurred()) return NULL
;
3914 } _resultobj
= Py_BuildValue("i",_result
);
3918 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3919 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3920 PyObject
* _resultobj
;
3923 PyObject
* _argo0
= 0;
3924 char *_kwnames
[] = { "self", NULL
};
3927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3938 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3940 wxPyEndAllowThreads(__tstate
);
3941 if (PyErr_Occurred()) return NULL
;
3942 } _resultobj
= Py_BuildValue("i",_result
);
3946 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3947 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3948 PyObject
* _resultobj
;
3951 PyObject
* _argo0
= 0;
3952 char *_kwnames
[] = { "self", NULL
};
3955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3966 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3968 wxPyEndAllowThreads(__tstate
);
3969 if (PyErr_Occurred()) return NULL
;
3971 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3979 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3980 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3981 PyObject
* _resultobj
;
3982 wxFontEncoding _result
;
3984 PyObject
* _argo0
= 0;
3985 char *_kwnames
[] = { "self", NULL
};
3988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3999 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4001 wxPyEndAllowThreads(__tstate
);
4002 if (PyErr_Occurred()) return NULL
;
4003 } _resultobj
= Py_BuildValue("i",_result
);
4007 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
4008 static PyObject
*_wrap_wxFont_IsFixedWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4009 PyObject
* _resultobj
;
4012 PyObject
* _argo0
= 0;
4013 char *_kwnames
[] = { "self", NULL
};
4016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_IsFixedWidth",_kwnames
,&_argo0
))
4019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
4026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4027 _result
= (bool )wxFont_IsFixedWidth(_arg0
);
4029 wxPyEndAllowThreads(__tstate
);
4030 if (PyErr_Occurred()) return NULL
;
4031 } _resultobj
= Py_BuildValue("i",_result
);
4035 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4036 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4037 PyObject
* _resultobj
;
4038 wxNativeFontInfo
* _result
;
4040 PyObject
* _argo0
= 0;
4041 char *_kwnames
[] = { "self", NULL
};
4045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4056 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4058 wxPyEndAllowThreads(__tstate
);
4059 if (PyErr_Occurred()) return NULL
;
4061 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4062 _resultobj
= Py_BuildValue("s",_ptemp
);
4065 _resultobj
= Py_None
;
4070 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
4071 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4072 PyObject
* _resultobj
;
4075 PyObject
* _argo0
= 0;
4076 char *_kwnames
[] = { "self", NULL
};
4079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
4082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
4089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4090 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
4092 wxPyEndAllowThreads(__tstate
);
4093 if (PyErr_Occurred()) return NULL
;
4095 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4103 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
4104 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4105 PyObject
* _resultobj
;
4108 PyObject
* _argo0
= 0;
4109 char *_kwnames
[] = { "self", NULL
};
4112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
4115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
4122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4123 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
4125 wxPyEndAllowThreads(__tstate
);
4126 if (PyErr_Occurred()) return NULL
;
4128 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4156 wxFont_SetPointSize(_arg0
,_arg1
);
4158 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4185 wxFont_SetFamily(_arg0
,_arg1
);
4187 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4214 wxFont_SetStyle(_arg0
,_arg1
);
4216 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4243 wxFont_SetWeight(_arg0
,_arg1
);
4245 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4291 wxFont_SetFaceName(_arg0
,*_arg1
);
4293 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4326 wxFont_SetUnderlined(_arg0
,_arg1
);
4328 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4355 wxFont_SetEncoding(_arg0
,_arg1
);
4357 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4392 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4394 wxPyEndAllowThreads(__tstate
);
4395 if (PyErr_Occurred()) return NULL
;
4396 } Py_INCREF(Py_None
);
4397 _resultobj
= Py_None
;
4401 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4402 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4403 PyObject
* _resultobj
;
4406 PyObject
* _argo0
= 0;
4407 PyObject
* _obj1
= 0;
4408 char *_kwnames
[] = { "self","info", NULL
};
4411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
4414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4421 #if PYTHON_API_VERSION >= 1009
4422 char* tmpPtr
; int tmpSize
;
4423 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4424 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4427 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4429 _arg1
= new wxString(tmpPtr
, tmpSize
);
4431 if (!PyString_Check(_obj1
)) {
4432 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4435 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4440 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
4442 wxPyEndAllowThreads(__tstate
);
4443 if (PyErr_Occurred()) return NULL
;
4444 } Py_INCREF(Py_None
);
4445 _resultobj
= Py_None
;
4453 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4454 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4455 PyObject
* _resultobj
;
4458 PyObject
* _argo0
= 0;
4459 char *_kwnames
[] = { "self", NULL
};
4462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4473 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4475 wxPyEndAllowThreads(__tstate
);
4476 if (PyErr_Occurred()) return NULL
;
4478 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4486 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4487 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4488 PyObject
* _resultobj
;
4491 PyObject
* _argo0
= 0;
4492 char *_kwnames
[] = { "self", NULL
};
4495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4506 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4508 wxPyEndAllowThreads(__tstate
);
4509 if (PyErr_Occurred()) return NULL
;
4511 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4519 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4520 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4521 PyObject
* _resultobj
;
4524 PyObject
* _argo0
= 0;
4525 char *_kwnames
[] = { "self", NULL
};
4528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4538 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4539 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4541 wxPyEndAllowThreads(__tstate
);
4542 if (PyErr_Occurred()) return NULL
;
4544 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4552 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4553 PyObject
* _resultobj
;
4554 wxFontEncoding _result
;
4555 char *_kwnames
[] = { NULL
};
4558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4562 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4564 wxPyEndAllowThreads(__tstate
);
4565 if (PyErr_Occurred()) return NULL
;
4566 } _resultobj
= Py_BuildValue("i",_result
);
4570 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4571 PyObject
* _resultobj
;
4572 wxFontEncoding _arg0
;
4573 char *_kwnames
[] = { "encoding", NULL
};
4576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4580 wxFont::SetDefaultEncoding(_arg0
);
4582 wxPyEndAllowThreads(__tstate
);
4583 if (PyErr_Occurred()) return NULL
;
4584 } Py_INCREF(Py_None
);
4585 _resultobj
= Py_None
;
4589 static void *SwigwxFontListTowxObject(void *ptr
) {
4592 src
= (wxFontList
*) ptr
;
4593 dest
= (wxObject
*) src
;
4594 return (void *) dest
;
4597 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4598 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4599 PyObject
* _resultobj
;
4602 PyObject
* _argo0
= 0;
4603 PyObject
* _argo1
= 0;
4604 char *_kwnames
[] = { "self","font", NULL
};
4607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4617 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4618 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4625 wxFontList_AddFont(_arg0
,_arg1
);
4627 wxPyEndAllowThreads(__tstate
);
4628 if (PyErr_Occurred()) return NULL
;
4629 } Py_INCREF(Py_None
);
4630 _resultobj
= Py_None
;
4634 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4635 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4636 PyObject
* _resultobj
;
4643 bool _arg5
= (bool ) FALSE
;
4644 char * _arg6
= (char *) NULL
;
4645 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4646 PyObject
* _argo0
= 0;
4647 int tempbool5
= (int) FALSE
;
4648 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4661 _arg5
= (bool ) tempbool5
;
4663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4664 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4666 wxPyEndAllowThreads(__tstate
);
4667 if (PyErr_Occurred()) return NULL
;
4669 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4670 _resultobj
= Py_BuildValue("s",_ptemp
);
4673 _resultobj
= Py_None
;
4678 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4679 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4680 PyObject
* _resultobj
;
4683 PyObject
* _argo0
= 0;
4684 PyObject
* _argo1
= 0;
4685 char *_kwnames
[] = { "self","font", NULL
};
4688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4698 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4699 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4706 wxFontList_RemoveFont(_arg0
,_arg1
);
4708 wxPyEndAllowThreads(__tstate
);
4709 if (PyErr_Occurred()) return NULL
;
4710 } Py_INCREF(Py_None
);
4711 _resultobj
= Py_None
;
4715 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4716 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4717 PyObject
* _resultobj
;
4720 PyObject
* _argo0
= 0;
4721 char *_kwnames
[] = { "self", NULL
};
4724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
4727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4735 _result
= (int )wxFontList_GetCount(_arg0
);
4737 wxPyEndAllowThreads(__tstate
);
4738 if (PyErr_Occurred()) return NULL
;
4739 } _resultobj
= Py_BuildValue("i",_result
);
4743 static void *SwigwxColourTowxObject(void *ptr
) {
4746 src
= (wxColour
*) ptr
;
4747 dest
= (wxObject
*) src
;
4748 return (void *) dest
;
4751 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4752 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4753 PyObject
* _resultobj
;
4755 unsigned char _arg0
= (unsigned char ) 0;
4756 unsigned char _arg1
= (unsigned char ) 0;
4757 unsigned char _arg2
= (unsigned char ) 0;
4758 char *_kwnames
[] = { "red","green","blue", NULL
};
4762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4766 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4768 wxPyEndAllowThreads(__tstate
);
4769 if (PyErr_Occurred()) return NULL
;
4771 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4772 _resultobj
= Py_BuildValue("s",_ptemp
);
4775 _resultobj
= Py_None
;
4780 #define delete_wxColour(_swigobj) (delete _swigobj)
4781 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4782 PyObject
* _resultobj
;
4785 PyObject
* _obj0
= 0;
4786 char *_kwnames
[] = { "self", NULL
};
4789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4793 if (! wxColour_helper(_obj0
, &_arg0
))
4797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4798 delete_wxColour(_arg0
);
4800 wxPyEndAllowThreads(__tstate
);
4801 if (PyErr_Occurred()) return NULL
;
4802 } Py_INCREF(Py_None
);
4803 _resultobj
= Py_None
;
4807 #define wxColour_Red(_swigobj) (_swigobj->Red())
4808 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4809 PyObject
* _resultobj
;
4810 unsigned char _result
;
4813 PyObject
* _obj0
= 0;
4814 char *_kwnames
[] = { "self", NULL
};
4817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4821 if (! wxColour_helper(_obj0
, &_arg0
))
4825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4826 _result
= (unsigned char )wxColour_Red(_arg0
);
4828 wxPyEndAllowThreads(__tstate
);
4829 if (PyErr_Occurred()) return NULL
;
4830 } _resultobj
= Py_BuildValue("b",_result
);
4834 #define wxColour_Green(_swigobj) (_swigobj->Green())
4835 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4836 PyObject
* _resultobj
;
4837 unsigned char _result
;
4840 PyObject
* _obj0
= 0;
4841 char *_kwnames
[] = { "self", NULL
};
4844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4848 if (! wxColour_helper(_obj0
, &_arg0
))
4852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4853 _result
= (unsigned char )wxColour_Green(_arg0
);
4855 wxPyEndAllowThreads(__tstate
);
4856 if (PyErr_Occurred()) return NULL
;
4857 } _resultobj
= Py_BuildValue("b",_result
);
4861 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4862 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4863 PyObject
* _resultobj
;
4864 unsigned char _result
;
4867 PyObject
* _obj0
= 0;
4868 char *_kwnames
[] = { "self", NULL
};
4871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4875 if (! wxColour_helper(_obj0
, &_arg0
))
4879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4880 _result
= (unsigned char )wxColour_Blue(_arg0
);
4882 wxPyEndAllowThreads(__tstate
);
4883 if (PyErr_Occurred()) return NULL
;
4884 } _resultobj
= Py_BuildValue("b",_result
);
4888 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4889 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4890 PyObject
* _resultobj
;
4894 PyObject
* _obj0
= 0;
4895 char *_kwnames
[] = { "self", NULL
};
4898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4902 if (! wxColour_helper(_obj0
, &_arg0
))
4906 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4907 _result
= (bool )wxColour_Ok(_arg0
);
4909 wxPyEndAllowThreads(__tstate
);
4910 if (PyErr_Occurred()) return NULL
;
4911 } _resultobj
= Py_BuildValue("i",_result
);
4915 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4916 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4917 PyObject
* _resultobj
;
4919 unsigned char _arg1
;
4920 unsigned char _arg2
;
4921 unsigned char _arg3
;
4923 PyObject
* _obj0
= 0;
4924 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4931 if (! wxColour_helper(_obj0
, &_arg0
))
4935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4936 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4938 wxPyEndAllowThreads(__tstate
);
4939 if (PyErr_Occurred()) return NULL
;
4940 } Py_INCREF(Py_None
);
4941 _resultobj
= Py_None
;
4945 static PyObject
* wxColour_Get(wxColour
*self
) {
4946 PyObject
* rv
= PyTuple_New(3);
4947 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4948 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4949 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4952 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4953 PyObject
* _resultobj
;
4957 PyObject
* _obj0
= 0;
4958 char *_kwnames
[] = { "self", NULL
};
4961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4965 if (! wxColour_helper(_obj0
, &_arg0
))
4969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4970 _result
= (PyObject
*)wxColour_Get(_arg0
);
4972 wxPyEndAllowThreads(__tstate
);
4973 if (PyErr_Occurred()) return NULL
;
4975 _resultobj
= _result
;
4980 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4981 wxColourDatabase
*src
;
4983 src
= (wxColourDatabase
*) ptr
;
4984 dest
= (wxObject
*) src
;
4985 return (void *) dest
;
4988 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4989 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4990 PyObject
* _resultobj
;
4992 wxColourDatabase
* _arg0
;
4994 PyObject
* _argo0
= 0;
4995 PyObject
* _obj1
= 0;
4996 char *_kwnames
[] = { "self","colour", NULL
};
5000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
5003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
5010 #if PYTHON_API_VERSION >= 1009
5011 char* tmpPtr
; int tmpSize
;
5012 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5013 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5016 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5018 _arg1
= new wxString(tmpPtr
, tmpSize
);
5020 if (!PyString_Check(_obj1
)) {
5021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5024 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5029 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
5031 wxPyEndAllowThreads(__tstate
);
5032 if (PyErr_Occurred()) return NULL
;
5034 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5035 _resultobj
= Py_BuildValue("s",_ptemp
);
5038 _resultobj
= Py_None
;
5047 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5048 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5049 PyObject
* _resultobj
;
5051 wxColourDatabase
* _arg0
;
5053 PyObject
* _argo0
= 0;
5055 PyObject
* _obj1
= 0;
5056 char *_kwnames
[] = { "self","colour", NULL
};
5059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5070 if (! wxColour_helper(_obj1
, &_arg1
))
5074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5075 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5077 wxPyEndAllowThreads(__tstate
);
5078 if (PyErr_Occurred()) return NULL
;
5080 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5088 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5089 // first see if the name is already there
5090 wxString cName
= name
;
5092 wxString cName2
= cName
;
5093 if ( !cName2
.Replace("GRAY", "GREY") )
5096 wxNode
*node
= self
->First();
5098 const wxChar
*key
= node
->GetKeyString();
5099 if ( cName
== key
|| cName2
== key
) {
5100 wxColour
* c
= (wxColour
*)node
->Data();
5101 c
->Set(red
, green
, blue
);
5104 node
= node
->Next();
5107 // otherwise append the new colour
5108 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5110 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5111 PyObject
* _resultobj
;
5112 wxColourDatabase
* _arg0
;
5117 PyObject
* _argo0
= 0;
5118 PyObject
* _obj1
= 0;
5119 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5132 #if PYTHON_API_VERSION >= 1009
5133 char* tmpPtr
; int tmpSize
;
5134 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5135 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5138 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5140 _arg1
= new wxString(tmpPtr
, tmpSize
);
5142 if (!PyString_Check(_obj1
)) {
5143 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5146 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5151 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5153 wxPyEndAllowThreads(__tstate
);
5154 if (PyErr_Occurred()) return NULL
;
5155 } Py_INCREF(Py_None
);
5156 _resultobj
= Py_None
;
5164 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5167 src
= (wxPen
*) ptr
;
5168 dest
= (wxGDIObject
*) src
;
5169 return (void *) dest
;
5172 static void *SwigwxPenTowxObject(void *ptr
) {
5175 src
= (wxPen
*) ptr
;
5176 dest
= (wxObject
*) src
;
5177 return (void *) dest
;
5180 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5181 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5182 PyObject
* _resultobj
;
5185 int _arg1
= (int ) 1;
5186 int _arg2
= (int ) wxSOLID
;
5188 PyObject
* _obj0
= 0;
5189 char *_kwnames
[] = { "colour","width","style", NULL
};
5193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5197 if (! wxColour_helper(_obj0
, &_arg0
))
5201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5202 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5204 wxPyEndAllowThreads(__tstate
);
5205 if (PyErr_Occurred()) return NULL
;
5207 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5208 _resultobj
= Py_BuildValue("s",_ptemp
);
5211 _resultobj
= Py_None
;
5216 #define delete_wxPen(_swigobj) (delete _swigobj)
5217 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5218 PyObject
* _resultobj
;
5220 PyObject
* _argo0
= 0;
5221 char *_kwnames
[] = { "self", NULL
};
5224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5235 delete_wxPen(_arg0
);
5237 wxPyEndAllowThreads(__tstate
);
5238 if (PyErr_Occurred()) return NULL
;
5239 } Py_INCREF(Py_None
);
5240 _resultobj
= Py_None
;
5244 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5245 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5246 PyObject
* _resultobj
;
5249 PyObject
* _argo0
= 0;
5250 char *_kwnames
[] = { "self", NULL
};
5253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5264 _result
= (int )wxPen_GetCap(_arg0
);
5266 wxPyEndAllowThreads(__tstate
);
5267 if (PyErr_Occurred()) return NULL
;
5268 } _resultobj
= Py_BuildValue("i",_result
);
5272 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5273 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5274 PyObject
* _resultobj
;
5277 PyObject
* _argo0
= 0;
5278 char *_kwnames
[] = { "self", NULL
};
5282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5293 _result
= new wxColour (wxPen_GetColour(_arg0
));
5295 wxPyEndAllowThreads(__tstate
);
5296 if (PyErr_Occurred()) return NULL
;
5297 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5298 _resultobj
= Py_BuildValue("s",_ptemp
);
5302 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5303 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5304 PyObject
* _resultobj
;
5307 PyObject
* _argo0
= 0;
5308 char *_kwnames
[] = { "self", NULL
};
5311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5322 _result
= (int )wxPen_GetJoin(_arg0
);
5324 wxPyEndAllowThreads(__tstate
);
5325 if (PyErr_Occurred()) return NULL
;
5326 } _resultobj
= Py_BuildValue("i",_result
);
5330 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5331 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5332 PyObject
* _resultobj
;
5335 PyObject
* _argo0
= 0;
5336 char *_kwnames
[] = { "self", NULL
};
5339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5350 _result
= (int )wxPen_GetStyle(_arg0
);
5352 wxPyEndAllowThreads(__tstate
);
5353 if (PyErr_Occurred()) return NULL
;
5354 } _resultobj
= Py_BuildValue("i",_result
);
5358 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5359 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5360 PyObject
* _resultobj
;
5363 PyObject
* _argo0
= 0;
5364 char *_kwnames
[] = { "self", NULL
};
5367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5378 _result
= (int )wxPen_GetWidth(_arg0
);
5380 wxPyEndAllowThreads(__tstate
);
5381 if (PyErr_Occurred()) return NULL
;
5382 } _resultobj
= Py_BuildValue("i",_result
);
5386 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5387 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5388 PyObject
* _resultobj
;
5391 PyObject
* _argo0
= 0;
5392 char *_kwnames
[] = { "self", NULL
};
5395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5406 _result
= (bool )wxPen_Ok(_arg0
);
5408 wxPyEndAllowThreads(__tstate
);
5409 if (PyErr_Occurred()) return NULL
;
5410 } _resultobj
= Py_BuildValue("i",_result
);
5414 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5415 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5416 PyObject
* _resultobj
;
5419 PyObject
* _argo0
= 0;
5420 char *_kwnames
[] = { "self","cap_style", NULL
};
5423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5434 wxPen_SetCap(_arg0
,_arg1
);
5436 wxPyEndAllowThreads(__tstate
);
5437 if (PyErr_Occurred()) return NULL
;
5438 } Py_INCREF(Py_None
);
5439 _resultobj
= Py_None
;
5443 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5444 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5445 PyObject
* _resultobj
;
5448 PyObject
* _argo0
= 0;
5450 PyObject
* _obj1
= 0;
5451 char *_kwnames
[] = { "self","colour", NULL
};
5454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5465 if (! wxColour_helper(_obj1
, &_arg1
))
5469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5470 wxPen_SetColour(_arg0
,*_arg1
);
5472 wxPyEndAllowThreads(__tstate
);
5473 if (PyErr_Occurred()) return NULL
;
5474 } Py_INCREF(Py_None
);
5475 _resultobj
= Py_None
;
5479 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5480 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5481 PyObject
* _resultobj
;
5484 PyObject
* _argo0
= 0;
5485 char *_kwnames
[] = { "self","join_style", NULL
};
5488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5499 wxPen_SetJoin(_arg0
,_arg1
);
5501 wxPyEndAllowThreads(__tstate
);
5502 if (PyErr_Occurred()) return NULL
;
5503 } Py_INCREF(Py_None
);
5504 _resultobj
= Py_None
;
5508 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5509 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5510 PyObject
* _resultobj
;
5513 PyObject
* _argo0
= 0;
5514 char *_kwnames
[] = { "self","style", NULL
};
5517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5528 wxPen_SetStyle(_arg0
,_arg1
);
5530 wxPyEndAllowThreads(__tstate
);
5531 if (PyErr_Occurred()) return NULL
;
5532 } Py_INCREF(Py_None
);
5533 _resultobj
= Py_None
;
5537 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5538 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5539 PyObject
* _resultobj
;
5542 PyObject
* _argo0
= 0;
5543 char *_kwnames
[] = { "self","width", NULL
};
5546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5557 wxPen_SetWidth(_arg0
,_arg1
);
5559 wxPyEndAllowThreads(__tstate
);
5560 if (PyErr_Occurred()) return NULL
;
5561 } Py_INCREF(Py_None
);
5562 _resultobj
= Py_None
;
5566 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5567 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5568 PyObject
* _resultobj
;
5572 PyObject
* _argo0
= 0;
5573 PyObject
* _obj2
= 0;
5574 char *_kwnames
[] = { "self","choices", NULL
};
5577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5588 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5589 if (_arg2
== NULL
) {
5595 _arg1
= PyList_Size(_obj2
);
5602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5603 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5605 wxPyEndAllowThreads(__tstate
);
5606 if (PyErr_Occurred()) return NULL
;
5607 } Py_INCREF(Py_None
);
5608 _resultobj
= Py_None
;
5615 static void *SwigwxPyPenTowxPen(void *ptr
) {
5618 src
= (wxPyPen
*) ptr
;
5619 dest
= (wxPen
*) src
;
5620 return (void *) dest
;
5623 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5626 src
= (wxPyPen
*) ptr
;
5627 dest
= (wxGDIObject
*) src
;
5628 return (void *) dest
;
5631 static void *SwigwxPyPenTowxObject(void *ptr
) {
5634 src
= (wxPyPen
*) ptr
;
5635 dest
= (wxObject
*) src
;
5636 return (void *) dest
;
5639 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5640 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5641 PyObject
* _resultobj
;
5644 int _arg1
= (int ) 1;
5645 int _arg2
= (int ) wxSOLID
;
5647 PyObject
* _obj0
= 0;
5648 char *_kwnames
[] = { "colour","width","style", NULL
};
5652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5656 if (! wxColour_helper(_obj0
, &_arg0
))
5660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5661 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5663 wxPyEndAllowThreads(__tstate
);
5664 if (PyErr_Occurred()) return NULL
;
5666 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5667 _resultobj
= Py_BuildValue("s",_ptemp
);
5670 _resultobj
= Py_None
;
5675 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5676 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5677 PyObject
* _resultobj
;
5679 PyObject
* _argo0
= 0;
5680 char *_kwnames
[] = { "self", NULL
};
5683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5694 delete_wxPyPen(_arg0
);
5696 wxPyEndAllowThreads(__tstate
);
5697 if (PyErr_Occurred()) return NULL
;
5698 } Py_INCREF(Py_None
);
5699 _resultobj
= Py_None
;
5703 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5704 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5705 PyObject
* _resultobj
;
5709 PyObject
* _argo0
= 0;
5710 PyObject
* _obj2
= 0;
5711 char *_kwnames
[] = { "self","choices", NULL
};
5714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5725 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5726 if (_arg2
== NULL
) {
5732 _arg1
= PyList_Size(_obj2
);
5739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5740 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5742 wxPyEndAllowThreads(__tstate
);
5743 if (PyErr_Occurred()) return NULL
;
5744 } Py_INCREF(Py_None
);
5745 _resultobj
= Py_None
;
5752 static void *SwigwxPenListTowxObject(void *ptr
) {
5755 src
= (wxPenList
*) ptr
;
5756 dest
= (wxObject
*) src
;
5757 return (void *) dest
;
5760 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5761 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5762 PyObject
* _resultobj
;
5765 PyObject
* _argo0
= 0;
5766 PyObject
* _argo1
= 0;
5767 char *_kwnames
[] = { "self","pen", NULL
};
5770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5780 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5781 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5788 wxPenList_AddPen(_arg0
,_arg1
);
5790 wxPyEndAllowThreads(__tstate
);
5791 if (PyErr_Occurred()) return NULL
;
5792 } Py_INCREF(Py_None
);
5793 _resultobj
= Py_None
;
5797 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5798 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5799 PyObject
* _resultobj
;
5805 PyObject
* _argo0
= 0;
5807 PyObject
* _obj1
= 0;
5808 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5823 if (! wxColour_helper(_obj1
, &_arg1
))
5827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5828 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5830 wxPyEndAllowThreads(__tstate
);
5831 if (PyErr_Occurred()) return NULL
;
5833 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5834 _resultobj
= Py_BuildValue("s",_ptemp
);
5837 _resultobj
= Py_None
;
5842 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5843 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5844 PyObject
* _resultobj
;
5847 PyObject
* _argo0
= 0;
5848 PyObject
* _argo1
= 0;
5849 char *_kwnames
[] = { "self","pen", NULL
};
5852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5862 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5863 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5870 wxPenList_RemovePen(_arg0
,_arg1
);
5872 wxPyEndAllowThreads(__tstate
);
5873 if (PyErr_Occurred()) return NULL
;
5874 } Py_INCREF(Py_None
);
5875 _resultobj
= Py_None
;
5879 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5880 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5881 PyObject
* _resultobj
;
5884 PyObject
* _argo0
= 0;
5885 char *_kwnames
[] = { "self", NULL
};
5888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5899 _result
= (int )wxPenList_GetCount(_arg0
);
5901 wxPyEndAllowThreads(__tstate
);
5902 if (PyErr_Occurred()) return NULL
;
5903 } _resultobj
= Py_BuildValue("i",_result
);
5907 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5910 src
= (wxBrush
*) ptr
;
5911 dest
= (wxGDIObject
*) src
;
5912 return (void *) dest
;
5915 static void *SwigwxBrushTowxObject(void *ptr
) {
5918 src
= (wxBrush
*) ptr
;
5919 dest
= (wxObject
*) src
;
5920 return (void *) dest
;
5923 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5924 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5925 PyObject
* _resultobj
;
5928 int _arg1
= (int ) wxSOLID
;
5930 PyObject
* _obj0
= 0;
5931 char *_kwnames
[] = { "colour","style", NULL
};
5935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5939 if (! wxColour_helper(_obj0
, &_arg0
))
5943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5944 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5946 wxPyEndAllowThreads(__tstate
);
5947 if (PyErr_Occurred()) return NULL
;
5949 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5950 _resultobj
= Py_BuildValue("s",_ptemp
);
5953 _resultobj
= Py_None
;
5958 #define delete_wxBrush(_swigobj) (delete _swigobj)
5959 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5960 PyObject
* _resultobj
;
5962 PyObject
* _argo0
= 0;
5963 char *_kwnames
[] = { "self", NULL
};
5966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5977 delete_wxBrush(_arg0
);
5979 wxPyEndAllowThreads(__tstate
);
5980 if (PyErr_Occurred()) return NULL
;
5981 } Py_INCREF(Py_None
);
5982 _resultobj
= Py_None
;
5986 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5987 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5988 PyObject
* _resultobj
;
5991 PyObject
* _argo0
= 0;
5992 char *_kwnames
[] = { "self", NULL
};
5996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6006 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6007 _result
= new wxColour (wxBrush_GetColour(_arg0
));
6009 wxPyEndAllowThreads(__tstate
);
6010 if (PyErr_Occurred()) return NULL
;
6011 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6012 _resultobj
= Py_BuildValue("s",_ptemp
);
6016 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6017 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6018 PyObject
* _resultobj
;
6021 PyObject
* _argo0
= 0;
6022 char *_kwnames
[] = { "self", NULL
};
6026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6037 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6039 wxPyEndAllowThreads(__tstate
);
6040 if (PyErr_Occurred()) return NULL
;
6042 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6043 _resultobj
= Py_BuildValue("s",_ptemp
);
6046 _resultobj
= Py_None
;
6051 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6052 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6053 PyObject
* _resultobj
;
6056 PyObject
* _argo0
= 0;
6057 char *_kwnames
[] = { "self", NULL
};
6060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6071 _result
= (int )wxBrush_GetStyle(_arg0
);
6073 wxPyEndAllowThreads(__tstate
);
6074 if (PyErr_Occurred()) return NULL
;
6075 } _resultobj
= Py_BuildValue("i",_result
);
6079 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6080 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6081 PyObject
* _resultobj
;
6084 PyObject
* _argo0
= 0;
6085 char *_kwnames
[] = { "self", NULL
};
6088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6099 _result
= (bool )wxBrush_Ok(_arg0
);
6101 wxPyEndAllowThreads(__tstate
);
6102 if (PyErr_Occurred()) return NULL
;
6103 } _resultobj
= Py_BuildValue("i",_result
);
6107 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6108 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6109 PyObject
* _resultobj
;
6112 PyObject
* _argo0
= 0;
6114 PyObject
* _obj1
= 0;
6115 char *_kwnames
[] = { "self","colour", NULL
};
6118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6129 if (! wxColour_helper(_obj1
, &_arg1
))
6133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6134 wxBrush_SetColour(_arg0
,*_arg1
);
6136 wxPyEndAllowThreads(__tstate
);
6137 if (PyErr_Occurred()) return NULL
;
6138 } Py_INCREF(Py_None
);
6139 _resultobj
= Py_None
;
6143 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6144 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6145 PyObject
* _resultobj
;
6148 PyObject
* _argo0
= 0;
6149 PyObject
* _argo1
= 0;
6150 char *_kwnames
[] = { "self","bitmap", NULL
};
6153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6163 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6164 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6171 wxBrush_SetStipple(_arg0
,*_arg1
);
6173 wxPyEndAllowThreads(__tstate
);
6174 if (PyErr_Occurred()) return NULL
;
6175 } Py_INCREF(Py_None
);
6176 _resultobj
= Py_None
;
6180 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6181 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6182 PyObject
* _resultobj
;
6185 PyObject
* _argo0
= 0;
6186 char *_kwnames
[] = { "self","style", NULL
};
6189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6200 wxBrush_SetStyle(_arg0
,_arg1
);
6202 wxPyEndAllowThreads(__tstate
);
6203 if (PyErr_Occurred()) return NULL
;
6204 } Py_INCREF(Py_None
);
6205 _resultobj
= Py_None
;
6209 static void *SwigwxBrushListTowxObject(void *ptr
) {
6212 src
= (wxBrushList
*) ptr
;
6213 dest
= (wxObject
*) src
;
6214 return (void *) dest
;
6217 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6218 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6219 PyObject
* _resultobj
;
6220 wxBrushList
* _arg0
;
6222 PyObject
* _argo0
= 0;
6223 PyObject
* _argo1
= 0;
6224 char *_kwnames
[] = { "self","brush", NULL
};
6227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6245 wxBrushList_AddBrush(_arg0
,_arg1
);
6247 wxPyEndAllowThreads(__tstate
);
6248 if (PyErr_Occurred()) return NULL
;
6249 } Py_INCREF(Py_None
);
6250 _resultobj
= Py_None
;
6254 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6255 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6256 PyObject
* _resultobj
;
6258 wxBrushList
* _arg0
;
6261 PyObject
* _argo0
= 0;
6263 PyObject
* _obj1
= 0;
6264 char *_kwnames
[] = { "self","colour","style", NULL
};
6268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6279 if (! wxColour_helper(_obj1
, &_arg1
))
6283 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6284 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6286 wxPyEndAllowThreads(__tstate
);
6287 if (PyErr_Occurred()) return NULL
;
6289 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6290 _resultobj
= Py_BuildValue("s",_ptemp
);
6293 _resultobj
= Py_None
;
6298 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6299 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6300 PyObject
* _resultobj
;
6301 wxBrushList
* _arg0
;
6303 PyObject
* _argo0
= 0;
6304 PyObject
* _argo1
= 0;
6305 char *_kwnames
[] = { "self","brush", NULL
};
6308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6318 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6319 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6325 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6326 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6328 wxPyEndAllowThreads(__tstate
);
6329 if (PyErr_Occurred()) return NULL
;
6330 } Py_INCREF(Py_None
);
6331 _resultobj
= Py_None
;
6335 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6336 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6337 PyObject
* _resultobj
;
6339 wxBrushList
* _arg0
;
6340 PyObject
* _argo0
= 0;
6341 char *_kwnames
[] = { "self", NULL
};
6344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
6347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6355 _result
= (int )wxBrushList_GetCount(_arg0
);
6357 wxPyEndAllowThreads(__tstate
);
6358 if (PyErr_Occurred()) return NULL
;
6359 } _resultobj
= Py_BuildValue("i",_result
);
6363 static void *SwigwxDCTowxObject(void *ptr
) {
6367 dest
= (wxObject
*) src
;
6368 return (void *) dest
;
6371 #define delete_wxDC(_swigobj) (delete _swigobj)
6372 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6373 PyObject
* _resultobj
;
6375 PyObject
* _argo0
= 0;
6376 char *_kwnames
[] = { "self", NULL
};
6379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6392 wxPyEndAllowThreads(__tstate
);
6393 if (PyErr_Occurred()) return NULL
;
6394 } Py_INCREF(Py_None
);
6395 _resultobj
= Py_None
;
6399 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6400 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6401 PyObject
* _resultobj
;
6403 PyObject
* _argo0
= 0;
6404 char *_kwnames
[] = { "self", NULL
};
6407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6418 wxDC_BeginDrawing(_arg0
);
6420 wxPyEndAllowThreads(__tstate
);
6421 if (PyErr_Occurred()) return NULL
;
6422 } Py_INCREF(Py_None
);
6423 _resultobj
= Py_None
;
6427 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6428 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6429 PyObject
* _resultobj
;
6439 int _arg8
= (int ) wxCOPY
;
6440 int _arg9
= (int ) FALSE
;
6441 PyObject
* _argo0
= 0;
6442 PyObject
* _argo5
= 0;
6443 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6456 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6457 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6464 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6466 wxPyEndAllowThreads(__tstate
);
6467 if (PyErr_Occurred()) return NULL
;
6468 } _resultobj
= Py_BuildValue("i",_result
);
6472 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6473 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6474 PyObject
* _resultobj
;
6476 PyObject
* _argo0
= 0;
6477 char *_kwnames
[] = { "self", NULL
};
6480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6493 wxPyEndAllowThreads(__tstate
);
6494 if (PyErr_Occurred()) return NULL
;
6495 } Py_INCREF(Py_None
);
6496 _resultobj
= Py_None
;
6500 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6501 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6502 PyObject
* _resultobj
;
6506 PyObject
* _argo0
= 0;
6507 char *_kwnames
[] = { "self","x","y", NULL
};
6510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6521 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6523 wxPyEndAllowThreads(__tstate
);
6524 if (PyErr_Occurred()) return NULL
;
6525 } Py_INCREF(Py_None
);
6526 _resultobj
= Py_None
;
6530 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6531 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6532 PyObject
* _resultobj
;
6534 PyObject
* _argo0
= 0;
6535 char *_kwnames
[] = { "self", NULL
};
6538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6549 wxDC_DestroyClippingRegion(_arg0
);
6551 wxPyEndAllowThreads(__tstate
);
6552 if (PyErr_Occurred()) return NULL
;
6553 } Py_INCREF(Py_None
);
6554 _resultobj
= Py_None
;
6558 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6559 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6560 PyObject
* _resultobj
;
6564 PyObject
* _argo0
= 0;
6565 char *_kwnames
[] = { "self","x", NULL
};
6568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
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_DeviceToLogicalX. Expected _wxDC_p.");
6578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6579 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6581 wxPyEndAllowThreads(__tstate
);
6582 if (PyErr_Occurred()) return NULL
;
6583 } _resultobj
= Py_BuildValue("l",_result
);
6587 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6588 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6589 PyObject
* _resultobj
;
6593 PyObject
* _argo0
= 0;
6594 char *_kwnames
[] = { "self","x", NULL
};
6597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6608 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6610 wxPyEndAllowThreads(__tstate
);
6611 if (PyErr_Occurred()) return NULL
;
6612 } _resultobj
= Py_BuildValue("l",_result
);
6616 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6617 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6618 PyObject
* _resultobj
;
6622 PyObject
* _argo0
= 0;
6623 char *_kwnames
[] = { "self","y", NULL
};
6626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6637 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6639 wxPyEndAllowThreads(__tstate
);
6640 if (PyErr_Occurred()) return NULL
;
6641 } _resultobj
= Py_BuildValue("l",_result
);
6645 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6646 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6647 PyObject
* _resultobj
;
6651 PyObject
* _argo0
= 0;
6652 char *_kwnames
[] = { "self","y", NULL
};
6655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6666 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6668 wxPyEndAllowThreads(__tstate
);
6669 if (PyErr_Occurred()) return NULL
;
6670 } _resultobj
= Py_BuildValue("l",_result
);
6674 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6675 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6676 PyObject
* _resultobj
;
6684 PyObject
* _argo0
= 0;
6685 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6699 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6701 wxPyEndAllowThreads(__tstate
);
6702 if (PyErr_Occurred()) return NULL
;
6703 } Py_INCREF(Py_None
);
6704 _resultobj
= Py_None
;
6708 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6709 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6710 PyObject
* _resultobj
;
6715 PyObject
* _argo0
= 0;
6716 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6730 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6732 wxPyEndAllowThreads(__tstate
);
6733 if (PyErr_Occurred()) return NULL
;
6734 } Py_INCREF(Py_None
);
6735 _resultobj
= Py_None
;
6739 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6740 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6741 PyObject
* _resultobj
;
6747 PyObject
* _argo0
= 0;
6748 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6762 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6764 wxPyEndAllowThreads(__tstate
);
6765 if (PyErr_Occurred()) return NULL
;
6766 } Py_INCREF(Py_None
);
6767 _resultobj
= Py_None
;
6771 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6772 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6773 PyObject
* _resultobj
;
6781 PyObject
* _argo0
= 0;
6782 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6795 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6796 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6798 wxPyEndAllowThreads(__tstate
);
6799 if (PyErr_Occurred()) return NULL
;
6800 } Py_INCREF(Py_None
);
6801 _resultobj
= Py_None
;
6805 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6806 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6807 PyObject
* _resultobj
;
6812 PyObject
* _argo0
= 0;
6813 PyObject
* _argo1
= 0;
6814 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6827 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6828 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6835 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6837 wxPyEndAllowThreads(__tstate
);
6838 if (PyErr_Occurred()) return NULL
;
6839 } Py_INCREF(Py_None
);
6840 _resultobj
= Py_None
;
6844 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6845 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6846 PyObject
* _resultobj
;
6850 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6851 int _arg4
= (int ) -1;
6852 PyObject
* _argo0
= 0;
6853 PyObject
* _obj1
= 0;
6855 PyObject
* _obj2
= 0;
6856 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
6859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
6862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6869 #if PYTHON_API_VERSION >= 1009
6870 char* tmpPtr
; int tmpSize
;
6871 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6872 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6875 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6877 _arg1
= new wxString(tmpPtr
, tmpSize
);
6879 if (!PyString_Check(_obj1
)) {
6880 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6883 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6888 if (! wxRect_helper(_obj2
, &_arg2
))
6892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6893 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
6895 wxPyEndAllowThreads(__tstate
);
6896 if (PyErr_Occurred()) return NULL
;
6897 } Py_INCREF(Py_None
);
6898 _resultobj
= Py_None
;
6906 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
6908 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
6911 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6912 PyObject
* _resultobj
;
6918 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6919 int _arg5
= (int ) -1;
6920 PyObject
* _argo0
= 0;
6921 PyObject
* _obj1
= 0;
6922 PyObject
* _argo2
= 0;
6924 PyObject
* _obj3
= 0;
6925 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
6929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
6932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6939 #if PYTHON_API_VERSION >= 1009
6940 char* tmpPtr
; int tmpSize
;
6941 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6942 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6945 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6947 _arg1
= new wxString(tmpPtr
, tmpSize
);
6949 if (!PyString_Check(_obj1
)) {
6950 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6953 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6957 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6958 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
6959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6965 if (! wxRect_helper(_obj3
, &_arg3
))
6969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6970 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
6972 wxPyEndAllowThreads(__tstate
);
6973 if (PyErr_Occurred()) return NULL
;
6974 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
6975 _resultobj
= Py_BuildValue("s",_ptemp
);
6983 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6984 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6985 PyObject
* _resultobj
;
6991 PyObject
* _argo0
= 0;
6992 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
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_DrawLine. Expected _wxDC_p.");
7005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7006 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7008 wxPyEndAllowThreads(__tstate
);
7009 if (PyErr_Occurred()) return NULL
;
7010 } Py_INCREF(Py_None
);
7011 _resultobj
= Py_None
;
7015 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7016 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7017 PyObject
* _resultobj
;
7021 long _arg3
= (long ) 0;
7022 long _arg4
= (long ) 0;
7023 PyObject
* _argo0
= 0;
7025 PyObject
* _obj2
= 0;
7026 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
7029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
7032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
7040 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7041 if (_arg2
== NULL
) {
7049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7050 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7052 wxPyEndAllowThreads(__tstate
);
7053 if (PyErr_Occurred()) return NULL
;
7054 } Py_INCREF(Py_None
);
7055 _resultobj
= Py_None
;
7062 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7063 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7064 PyObject
* _resultobj
;
7068 long _arg3
= (long ) 0;
7069 long _arg4
= (long ) 0;
7070 int _arg5
= (int ) wxODDEVEN_RULE
;
7071 PyObject
* _argo0
= 0;
7073 PyObject
* _obj2
= 0;
7074 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
7077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
7080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
7088 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7089 if (_arg2
== NULL
) {
7097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7098 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7100 wxPyEndAllowThreads(__tstate
);
7101 if (PyErr_Occurred()) return NULL
;
7102 } Py_INCREF(Py_None
);
7103 _resultobj
= Py_None
;
7110 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7111 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7112 PyObject
* _resultobj
;
7116 PyObject
* _argo0
= 0;
7117 char *_kwnames
[] = { "self","x","y", NULL
};
7120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7131 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
7133 wxPyEndAllowThreads(__tstate
);
7134 if (PyErr_Occurred()) return NULL
;
7135 } Py_INCREF(Py_None
);
7136 _resultobj
= Py_None
;
7140 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7141 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7142 PyObject
* _resultobj
;
7148 PyObject
* _argo0
= 0;
7149 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7163 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7165 wxPyEndAllowThreads(__tstate
);
7166 if (PyErr_Occurred()) return NULL
;
7167 } Py_INCREF(Py_None
);
7168 _resultobj
= Py_None
;
7172 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7173 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7174 PyObject
* _resultobj
;
7180 PyObject
* _argo0
= 0;
7181 PyObject
* _obj1
= 0;
7182 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
7185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
7188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7195 #if PYTHON_API_VERSION >= 1009
7196 char* tmpPtr
; int tmpSize
;
7197 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7198 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7201 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7203 _arg1
= new wxString(tmpPtr
, tmpSize
);
7205 if (!PyString_Check(_obj1
)) {
7206 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7209 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7214 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7216 wxPyEndAllowThreads(__tstate
);
7217 if (PyErr_Occurred()) return NULL
;
7218 } Py_INCREF(Py_None
);
7219 _resultobj
= Py_None
;
7227 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7228 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7229 PyObject
* _resultobj
;
7235 long _arg5
= (long ) 20;
7236 PyObject
* _argo0
= 0;
7237 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7251 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7253 wxPyEndAllowThreads(__tstate
);
7254 if (PyErr_Occurred()) return NULL
;
7255 } Py_INCREF(Py_None
);
7256 _resultobj
= Py_None
;
7260 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7261 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7262 PyObject
* _resultobj
;
7266 PyObject
* _argo0
= 0;
7268 PyObject
* _obj2
= 0;
7269 char *_kwnames
[] = { "self","points", NULL
};
7272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7283 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7284 if (_arg2
== NULL
) {
7292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7293 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7295 wxPyEndAllowThreads(__tstate
);
7296 if (PyErr_Occurred()) return NULL
;
7297 } Py_INCREF(Py_None
);
7298 _resultobj
= Py_None
;
7305 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7306 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7307 PyObject
* _resultobj
;
7312 PyObject
* _argo0
= 0;
7313 PyObject
* _obj1
= 0;
7314 char *_kwnames
[] = { "self","text","x","y", NULL
};
7317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7327 #if PYTHON_API_VERSION >= 1009
7328 char* tmpPtr
; int tmpSize
;
7329 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7330 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7333 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7335 _arg1
= new wxString(tmpPtr
, tmpSize
);
7337 if (!PyString_Check(_obj1
)) {
7338 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7341 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7346 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7348 wxPyEndAllowThreads(__tstate
);
7349 if (PyErr_Occurred()) return NULL
;
7350 } Py_INCREF(Py_None
);
7351 _resultobj
= Py_None
;
7359 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7360 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7361 PyObject
* _resultobj
;
7363 PyObject
* _argo0
= 0;
7364 char *_kwnames
[] = { "self", NULL
};
7367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7380 wxPyEndAllowThreads(__tstate
);
7381 if (PyErr_Occurred()) return NULL
;
7382 } Py_INCREF(Py_None
);
7383 _resultobj
= Py_None
;
7387 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7388 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7389 PyObject
* _resultobj
;
7391 PyObject
* _argo0
= 0;
7392 char *_kwnames
[] = { "self", NULL
};
7395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7406 wxDC_EndDrawing(_arg0
);
7408 wxPyEndAllowThreads(__tstate
);
7409 if (PyErr_Occurred()) return NULL
;
7410 } Py_INCREF(Py_None
);
7411 _resultobj
= Py_None
;
7415 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7416 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7417 PyObject
* _resultobj
;
7419 PyObject
* _argo0
= 0;
7420 char *_kwnames
[] = { "self", NULL
};
7423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7434 wxDC_EndPage(_arg0
);
7436 wxPyEndAllowThreads(__tstate
);
7437 if (PyErr_Occurred()) return NULL
;
7438 } Py_INCREF(Py_None
);
7439 _resultobj
= Py_None
;
7443 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7444 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7445 PyObject
* _resultobj
;
7450 int _arg4
= (int ) wxFLOOD_SURFACE
;
7451 PyObject
* _argo0
= 0;
7453 PyObject
* _obj3
= 0;
7454 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7468 if (! wxColour_helper(_obj3
, &_arg3
))
7472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7473 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7475 wxPyEndAllowThreads(__tstate
);
7476 if (PyErr_Occurred()) return NULL
;
7477 } Py_INCREF(Py_None
);
7478 _resultobj
= Py_None
;
7482 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7483 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7484 PyObject
* _resultobj
;
7487 PyObject
* _argo0
= 0;
7488 char *_kwnames
[] = { "self", NULL
};
7492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7503 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
7505 wxPyEndAllowThreads(__tstate
);
7506 if (PyErr_Occurred()) return NULL
;
7507 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7508 _resultobj
= Py_BuildValue("s",_ptemp
);
7512 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7513 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7514 PyObject
* _resultobj
;
7517 PyObject
* _argo0
= 0;
7518 char *_kwnames
[] = { "self", NULL
};
7522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7533 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
7535 wxPyEndAllowThreads(__tstate
);
7536 if (PyErr_Occurred()) return NULL
;
7537 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7538 _resultobj
= Py_BuildValue("s",_ptemp
);
7542 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7543 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7544 PyObject
* _resultobj
;
7547 PyObject
* _argo0
= 0;
7548 char *_kwnames
[] = { "self", NULL
};
7551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7562 _result
= (long )wxDC_GetCharHeight(_arg0
);
7564 wxPyEndAllowThreads(__tstate
);
7565 if (PyErr_Occurred()) return NULL
;
7566 } _resultobj
= Py_BuildValue("l",_result
);
7570 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7571 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7572 PyObject
* _resultobj
;
7575 PyObject
* _argo0
= 0;
7576 char *_kwnames
[] = { "self", NULL
};
7579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7590 _result
= (long )wxDC_GetCharWidth(_arg0
);
7592 wxPyEndAllowThreads(__tstate
);
7593 if (PyErr_Occurred()) return NULL
;
7594 } _resultobj
= Py_BuildValue("l",_result
);
7598 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7599 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7600 PyObject
* _resultobj
;
7610 PyObject
* _argo0
= 0;
7611 char *_kwnames
[] = { "self", NULL
};
7626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7637 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7639 wxPyEndAllowThreads(__tstate
);
7640 if (PyErr_Occurred()) return NULL
;
7641 } Py_INCREF(Py_None
);
7642 _resultobj
= Py_None
;
7645 o
= PyInt_FromLong((long) (*_arg1
));
7646 _resultobj
= t_output_helper(_resultobj
, o
);
7650 o
= PyInt_FromLong((long) (*_arg2
));
7651 _resultobj
= t_output_helper(_resultobj
, o
);
7655 o
= PyInt_FromLong((long) (*_arg3
));
7656 _resultobj
= t_output_helper(_resultobj
, o
);
7660 o
= PyInt_FromLong((long) (*_arg4
));
7661 _resultobj
= t_output_helper(_resultobj
, o
);
7666 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7667 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7668 PyObject
* _resultobj
;
7671 PyObject
* _argo0
= 0;
7672 char *_kwnames
[] = { "self", NULL
};
7676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7687 _result
= new wxFont (wxDC_GetFont(_arg0
));
7689 wxPyEndAllowThreads(__tstate
);
7690 if (PyErr_Occurred()) return NULL
;
7691 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
7692 _resultobj
= Py_BuildValue("s",_ptemp
);
7696 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7697 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7698 PyObject
* _resultobj
;
7701 PyObject
* _argo0
= 0;
7702 char *_kwnames
[] = { "self", NULL
};
7705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7716 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7718 wxPyEndAllowThreads(__tstate
);
7719 if (PyErr_Occurred()) return NULL
;
7720 } _resultobj
= Py_BuildValue("i",_result
);
7724 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7725 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7726 PyObject
* _resultobj
;
7732 PyObject
* _argo0
= 0;
7733 char *_kwnames
[] = { "self", NULL
};
7742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7753 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7755 wxPyEndAllowThreads(__tstate
);
7756 if (PyErr_Occurred()) return NULL
;
7757 } Py_INCREF(Py_None
);
7758 _resultobj
= Py_None
;
7761 o
= PyFloat_FromDouble((double) (*_arg1
));
7762 _resultobj
= t_output_helper(_resultobj
, o
);
7766 o
= PyFloat_FromDouble((double) (*_arg2
));
7767 _resultobj
= t_output_helper(_resultobj
, o
);
7772 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7773 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7774 PyObject
* _resultobj
;
7777 PyObject
* _argo0
= 0;
7778 char *_kwnames
[] = { "self", NULL
};
7781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7792 _result
= (int )wxDC_GetMapMode(_arg0
);
7794 wxPyEndAllowThreads(__tstate
);
7795 if (PyErr_Occurred()) return NULL
;
7796 } _resultobj
= Py_BuildValue("i",_result
);
7800 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7801 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7802 PyObject
* _resultobj
;
7805 PyObject
* _argo0
= 0;
7806 char *_kwnames
[] = { "self", NULL
};
7809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7820 _result
= (bool )wxDC_GetOptimization(_arg0
);
7822 wxPyEndAllowThreads(__tstate
);
7823 if (PyErr_Occurred()) return NULL
;
7824 } _resultobj
= Py_BuildValue("i",_result
);
7828 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7829 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7830 PyObject
* _resultobj
;
7833 PyObject
* _argo0
= 0;
7834 char *_kwnames
[] = { "self", NULL
};
7838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7849 _result
= new wxPen (wxDC_GetPen(_arg0
));
7851 wxPyEndAllowThreads(__tstate
);
7852 if (PyErr_Occurred()) return NULL
;
7853 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7854 _resultobj
= Py_BuildValue("s",_ptemp
);
7858 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7859 wxColour
* wc
= new wxColour();
7860 self
->GetPixel(x
, y
, wc
);
7863 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7864 PyObject
* _resultobj
;
7869 PyObject
* _argo0
= 0;
7870 char *_kwnames
[] = { "self","x","y", NULL
};
7874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7885 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7887 wxPyEndAllowThreads(__tstate
);
7888 if (PyErr_Occurred()) return NULL
;
7890 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7891 _resultobj
= Py_BuildValue("s",_ptemp
);
7894 _resultobj
= Py_None
;
7899 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7900 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7901 PyObject
* _resultobj
;
7907 PyObject
* _argo0
= 0;
7908 char *_kwnames
[] = { "self", NULL
};
7917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7928 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7930 wxPyEndAllowThreads(__tstate
);
7931 if (PyErr_Occurred()) return NULL
;
7932 } Py_INCREF(Py_None
);
7933 _resultobj
= Py_None
;
7936 o
= PyInt_FromLong((long) (*_arg1
));
7937 _resultobj
= t_output_helper(_resultobj
, o
);
7941 o
= PyInt_FromLong((long) (*_arg2
));
7942 _resultobj
= t_output_helper(_resultobj
, o
);
7947 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7948 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7949 PyObject
* _resultobj
;
7952 PyObject
* _argo0
= 0;
7953 char *_kwnames
[] = { "self", NULL
};
7957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7968 _result
= new wxSize (wxDC_GetSize(_arg0
));
7970 wxPyEndAllowThreads(__tstate
);
7971 if (PyErr_Occurred()) return NULL
;
7972 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7973 _resultobj
= Py_BuildValue("s",_ptemp
);
7977 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7978 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7979 PyObject
* _resultobj
;
7982 PyObject
* _argo0
= 0;
7983 char *_kwnames
[] = { "self", NULL
};
7987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7998 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
8000 wxPyEndAllowThreads(__tstate
);
8001 if (PyErr_Occurred()) return NULL
;
8002 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8003 _resultobj
= Py_BuildValue("s",_ptemp
);
8007 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
8008 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8009 PyObject
* _resultobj
;
8012 PyObject
* _argo0
= 0;
8013 char *_kwnames
[] = { "self", NULL
};
8017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
8020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
8027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8028 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
8030 wxPyEndAllowThreads(__tstate
);
8031 if (PyErr_Occurred()) return NULL
;
8032 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8033 _resultobj
= Py_BuildValue("s",_ptemp
);
8037 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
8038 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8039 PyObject
* _resultobj
;
8046 PyObject
* _argo0
= 0;
8047 PyObject
* _obj1
= 0;
8048 char *_kwnames
[] = { "self","string", NULL
};
8057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
8060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
8067 #if PYTHON_API_VERSION >= 1009
8068 char* tmpPtr
; int tmpSize
;
8069 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8070 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8073 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8075 _arg1
= new wxString(tmpPtr
, tmpSize
);
8077 if (!PyString_Check(_obj1
)) {
8078 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8081 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8086 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
8088 wxPyEndAllowThreads(__tstate
);
8089 if (PyErr_Occurred()) return NULL
;
8090 } Py_INCREF(Py_None
);
8091 _resultobj
= Py_None
;
8094 o
= PyInt_FromLong((long) (*_arg2
));
8095 _resultobj
= t_output_helper(_resultobj
, o
);
8099 o
= PyInt_FromLong((long) (*_arg3
));
8100 _resultobj
= t_output_helper(_resultobj
, o
);
8109 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8110 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8111 PyObject
* _resultobj
;
8122 wxFont
* _arg6
= (wxFont
*) NULL
;
8123 PyObject
* _argo0
= 0;
8124 PyObject
* _obj1
= 0;
8125 PyObject
* _argo6
= 0;
8126 char *_kwnames
[] = { "self","string","font", NULL
};
8141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
8144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8151 #if PYTHON_API_VERSION >= 1009
8152 char* tmpPtr
; int tmpSize
;
8153 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8154 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8157 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8159 _arg1
= new wxString(tmpPtr
, tmpSize
);
8161 if (!PyString_Check(_obj1
)) {
8162 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8165 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8169 if (_argo6
== Py_None
) { _arg6
= NULL
; }
8170 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8177 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8179 wxPyEndAllowThreads(__tstate
);
8180 if (PyErr_Occurred()) return NULL
;
8181 } Py_INCREF(Py_None
);
8182 _resultobj
= Py_None
;
8185 o
= PyInt_FromLong((long) (*_arg2
));
8186 _resultobj
= t_output_helper(_resultobj
, o
);
8190 o
= PyInt_FromLong((long) (*_arg3
));
8191 _resultobj
= t_output_helper(_resultobj
, o
);
8195 o
= PyInt_FromLong((long) (*_arg4
));
8196 _resultobj
= t_output_helper(_resultobj
, o
);
8200 o
= PyInt_FromLong((long) (*_arg5
));
8201 _resultobj
= t_output_helper(_resultobj
, o
);
8210 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8211 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8212 PyObject
* _resultobj
;
8215 PyObject
* _argo0
= 0;
8216 char *_kwnames
[] = { "self", NULL
};
8220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8231 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8233 wxPyEndAllowThreads(__tstate
);
8234 if (PyErr_Occurred()) return NULL
;
8235 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8236 _resultobj
= Py_BuildValue("s",_ptemp
);
8240 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8241 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8242 PyObject
* _resultobj
;
8248 PyObject
* _argo0
= 0;
8249 char *_kwnames
[] = { "self", NULL
};
8258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8269 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8271 wxPyEndAllowThreads(__tstate
);
8272 if (PyErr_Occurred()) return NULL
;
8273 } Py_INCREF(Py_None
);
8274 _resultobj
= Py_None
;
8277 o
= PyFloat_FromDouble((double) (*_arg1
));
8278 _resultobj
= t_output_helper(_resultobj
, o
);
8282 o
= PyFloat_FromDouble((double) (*_arg2
));
8283 _resultobj
= t_output_helper(_resultobj
, o
);
8288 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8289 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8290 PyObject
* _resultobj
;
8294 PyObject
* _argo0
= 0;
8295 char *_kwnames
[] = { "self","x", NULL
};
8298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8309 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8311 wxPyEndAllowThreads(__tstate
);
8312 if (PyErr_Occurred()) return NULL
;
8313 } _resultobj
= Py_BuildValue("l",_result
);
8317 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8318 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8319 PyObject
* _resultobj
;
8323 PyObject
* _argo0
= 0;
8324 char *_kwnames
[] = { "self","x", NULL
};
8327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8338 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8340 wxPyEndAllowThreads(__tstate
);
8341 if (PyErr_Occurred()) return NULL
;
8342 } _resultobj
= Py_BuildValue("l",_result
);
8346 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8347 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
* _resultobj
;
8352 PyObject
* _argo0
= 0;
8353 char *_kwnames
[] = { "self","y", NULL
};
8356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8367 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8369 wxPyEndAllowThreads(__tstate
);
8370 if (PyErr_Occurred()) return NULL
;
8371 } _resultobj
= Py_BuildValue("l",_result
);
8375 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8376 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8377 PyObject
* _resultobj
;
8381 PyObject
* _argo0
= 0;
8382 char *_kwnames
[] = { "self","y", NULL
};
8385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8396 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8398 wxPyEndAllowThreads(__tstate
);
8399 if (PyErr_Occurred()) return NULL
;
8400 } _resultobj
= Py_BuildValue("l",_result
);
8404 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8405 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8406 PyObject
* _resultobj
;
8409 PyObject
* _argo0
= 0;
8410 char *_kwnames
[] = { "self", NULL
};
8413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8424 _result
= (long )wxDC_MaxX(_arg0
);
8426 wxPyEndAllowThreads(__tstate
);
8427 if (PyErr_Occurred()) return NULL
;
8428 } _resultobj
= Py_BuildValue("l",_result
);
8432 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8433 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8434 PyObject
* _resultobj
;
8437 PyObject
* _argo0
= 0;
8438 char *_kwnames
[] = { "self", NULL
};
8441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8452 _result
= (long )wxDC_MaxY(_arg0
);
8454 wxPyEndAllowThreads(__tstate
);
8455 if (PyErr_Occurred()) return NULL
;
8456 } _resultobj
= Py_BuildValue("l",_result
);
8460 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8461 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8462 PyObject
* _resultobj
;
8465 PyObject
* _argo0
= 0;
8466 char *_kwnames
[] = { "self", NULL
};
8469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8480 _result
= (long )wxDC_MinX(_arg0
);
8482 wxPyEndAllowThreads(__tstate
);
8483 if (PyErr_Occurred()) return NULL
;
8484 } _resultobj
= Py_BuildValue("l",_result
);
8488 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8489 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8490 PyObject
* _resultobj
;
8493 PyObject
* _argo0
= 0;
8494 char *_kwnames
[] = { "self", NULL
};
8497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8508 _result
= (long )wxDC_MinY(_arg0
);
8510 wxPyEndAllowThreads(__tstate
);
8511 if (PyErr_Occurred()) return NULL
;
8512 } _resultobj
= Py_BuildValue("l",_result
);
8516 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8517 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8518 PyObject
* _resultobj
;
8521 PyObject
* _argo0
= 0;
8522 char *_kwnames
[] = { "self", NULL
};
8525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8536 _result
= (bool )wxDC_Ok(_arg0
);
8538 wxPyEndAllowThreads(__tstate
);
8539 if (PyErr_Occurred()) return NULL
;
8540 } _resultobj
= Py_BuildValue("i",_result
);
8544 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8545 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8546 PyObject
* _resultobj
;
8550 PyObject
* _argo0
= 0;
8551 char *_kwnames
[] = { "self","x","y", NULL
};
8554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8565 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8567 wxPyEndAllowThreads(__tstate
);
8568 if (PyErr_Occurred()) return NULL
;
8569 } Py_INCREF(Py_None
);
8570 _resultobj
= Py_None
;
8574 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8575 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8576 PyObject
* _resultobj
;
8579 PyObject
* _argo0
= 0;
8580 PyObject
* _argo1
= 0;
8581 char *_kwnames
[] = { "self","brush", NULL
};
8584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8594 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8595 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8602 wxDC_SetBackground(_arg0
,*_arg1
);
8604 wxPyEndAllowThreads(__tstate
);
8605 if (PyErr_Occurred()) return NULL
;
8606 } Py_INCREF(Py_None
);
8607 _resultobj
= Py_None
;
8611 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8612 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8613 PyObject
* _resultobj
;
8616 PyObject
* _argo0
= 0;
8617 char *_kwnames
[] = { "self","mode", NULL
};
8620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
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_SetBackgroundMode. Expected _wxDC_p.");
8630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8631 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8633 wxPyEndAllowThreads(__tstate
);
8634 if (PyErr_Occurred()) return NULL
;
8635 } Py_INCREF(Py_None
);
8636 _resultobj
= Py_None
;
8640 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8641 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8642 PyObject
* _resultobj
;
8648 PyObject
* _argo0
= 0;
8649 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8663 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8665 wxPyEndAllowThreads(__tstate
);
8666 if (PyErr_Occurred()) return NULL
;
8667 } Py_INCREF(Py_None
);
8668 _resultobj
= Py_None
;
8672 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8673 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8674 PyObject
* _resultobj
;
8677 PyObject
* _argo0
= 0;
8678 PyObject
* _argo1
= 0;
8679 char *_kwnames
[] = { "self","region", NULL
};
8682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8692 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8693 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8700 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8702 wxPyEndAllowThreads(__tstate
);
8703 if (PyErr_Occurred()) return NULL
;
8704 } Py_INCREF(Py_None
);
8705 _resultobj
= Py_None
;
8709 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8710 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8711 PyObject
* _resultobj
;
8714 PyObject
* _argo0
= 0;
8715 PyObject
* _argo1
= 0;
8716 char *_kwnames
[] = { "self","colourMap", NULL
};
8719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8729 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8730 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8737 wxDC_SetPalette(_arg0
,*_arg1
);
8739 wxPyEndAllowThreads(__tstate
);
8740 if (PyErr_Occurred()) return NULL
;
8741 } Py_INCREF(Py_None
);
8742 _resultobj
= Py_None
;
8746 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8747 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8748 PyObject
* _resultobj
;
8751 PyObject
* _argo0
= 0;
8752 PyObject
* _argo1
= 0;
8753 char *_kwnames
[] = { "self","brush", NULL
};
8756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8766 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8767 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8774 wxDC_SetBrush(_arg0
,*_arg1
);
8776 wxPyEndAllowThreads(__tstate
);
8777 if (PyErr_Occurred()) return NULL
;
8778 } Py_INCREF(Py_None
);
8779 _resultobj
= Py_None
;
8783 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8784 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8785 PyObject
* _resultobj
;
8788 PyObject
* _argo0
= 0;
8789 PyObject
* _argo1
= 0;
8790 char *_kwnames
[] = { "self","font", NULL
};
8793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8803 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8804 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8811 wxDC_SetFont(_arg0
,*_arg1
);
8813 wxPyEndAllowThreads(__tstate
);
8814 if (PyErr_Occurred()) return NULL
;
8815 } Py_INCREF(Py_None
);
8816 _resultobj
= Py_None
;
8820 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8821 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8822 PyObject
* _resultobj
;
8825 PyObject
* _argo0
= 0;
8826 char *_kwnames
[] = { "self","function", NULL
};
8829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8840 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8842 wxPyEndAllowThreads(__tstate
);
8843 if (PyErr_Occurred()) return NULL
;
8844 } Py_INCREF(Py_None
);
8845 _resultobj
= Py_None
;
8849 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8850 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8851 PyObject
* _resultobj
;
8855 PyObject
* _argo0
= 0;
8856 char *_kwnames
[] = { "self","x","y", NULL
};
8859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8870 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8872 wxPyEndAllowThreads(__tstate
);
8873 if (PyErr_Occurred()) return NULL
;
8874 } Py_INCREF(Py_None
);
8875 _resultobj
= Py_None
;
8879 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8880 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8881 PyObject
* _resultobj
;
8884 PyObject
* _argo0
= 0;
8885 char *_kwnames
[] = { "self","mode", NULL
};
8888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8899 wxDC_SetMapMode(_arg0
,_arg1
);
8901 wxPyEndAllowThreads(__tstate
);
8902 if (PyErr_Occurred()) return NULL
;
8903 } Py_INCREF(Py_None
);
8904 _resultobj
= Py_None
;
8908 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8909 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8910 PyObject
* _resultobj
;
8913 PyObject
* _argo0
= 0;
8915 char *_kwnames
[] = { "self","optimize", NULL
};
8918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8927 _arg1
= (bool ) tempbool1
;
8929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8930 wxDC_SetOptimization(_arg0
,_arg1
);
8932 wxPyEndAllowThreads(__tstate
);
8933 if (PyErr_Occurred()) return NULL
;
8934 } Py_INCREF(Py_None
);
8935 _resultobj
= Py_None
;
8939 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8940 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8941 PyObject
* _resultobj
;
8944 PyObject
* _argo0
= 0;
8945 PyObject
* _argo1
= 0;
8946 char *_kwnames
[] = { "self","pen", NULL
};
8949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8959 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8960 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8966 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8967 wxDC_SetPen(_arg0
,*_arg1
);
8969 wxPyEndAllowThreads(__tstate
);
8970 if (PyErr_Occurred()) return NULL
;
8971 } Py_INCREF(Py_None
);
8972 _resultobj
= Py_None
;
8976 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8977 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8978 PyObject
* _resultobj
;
8981 PyObject
* _argo0
= 0;
8983 PyObject
* _obj1
= 0;
8984 char *_kwnames
[] = { "self","colour", NULL
};
8987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8998 if (! wxColour_helper(_obj1
, &_arg1
))
9002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9003 wxDC_SetTextBackground(_arg0
,*_arg1
);
9005 wxPyEndAllowThreads(__tstate
);
9006 if (PyErr_Occurred()) return NULL
;
9007 } Py_INCREF(Py_None
);
9008 _resultobj
= Py_None
;
9012 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
9013 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9014 PyObject
* _resultobj
;
9017 PyObject
* _argo0
= 0;
9019 PyObject
* _obj1
= 0;
9020 char *_kwnames
[] = { "self","colour", NULL
};
9023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
9026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
9034 if (! wxColour_helper(_obj1
, &_arg1
))
9038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9039 wxDC_SetTextForeground(_arg0
,*_arg1
);
9041 wxPyEndAllowThreads(__tstate
);
9042 if (PyErr_Occurred()) return NULL
;
9043 } Py_INCREF(Py_None
);
9044 _resultobj
= Py_None
;
9048 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
9049 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9050 PyObject
* _resultobj
;
9054 PyObject
* _argo0
= 0;
9055 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
9058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
9068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9069 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
9071 wxPyEndAllowThreads(__tstate
);
9072 if (PyErr_Occurred()) return NULL
;
9073 } Py_INCREF(Py_None
);
9074 _resultobj
= Py_None
;
9078 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
9079 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9080 PyObject
* _resultobj
;
9084 PyObject
* _argo0
= 0;
9085 PyObject
* _obj1
= 0;
9086 char *_kwnames
[] = { "self","message", NULL
};
9089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
9092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9099 #if PYTHON_API_VERSION >= 1009
9100 char* tmpPtr
; int tmpSize
;
9101 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9102 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9105 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9107 _arg1
= new wxString(tmpPtr
, tmpSize
);
9109 if (!PyString_Check(_obj1
)) {
9110 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9113 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9118 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
9120 wxPyEndAllowThreads(__tstate
);
9121 if (PyErr_Occurred()) return NULL
;
9122 } _resultobj
= Py_BuildValue("i",_result
);
9130 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9131 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9132 PyObject
* _resultobj
;
9134 PyObject
* _argo0
= 0;
9135 char *_kwnames
[] = { "self", NULL
};
9138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
9141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9149 wxDC_StartPage(_arg0
);
9151 wxPyEndAllowThreads(__tstate
);
9152 if (PyErr_Occurred()) return NULL
;
9153 } Py_INCREF(Py_None
);
9154 _resultobj
= Py_None
;
9158 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9159 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9160 PyObject
* _resultobj
;
9165 int _arg4
= (int ) FALSE
;
9166 PyObject
* _argo0
= 0;
9167 PyObject
* _argo1
= 0;
9168 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9181 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9182 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9189 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9191 wxPyEndAllowThreads(__tstate
);
9192 if (PyErr_Occurred()) return NULL
;
9193 } Py_INCREF(Py_None
);
9194 _resultobj
= Py_None
;
9198 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9199 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9200 PyObject
* _resultobj
;
9203 PyObject
* _argo0
= 0;
9204 char *_kwnames
[] = { "self", NULL
};
9207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9218 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9220 wxPyEndAllowThreads(__tstate
);
9221 if (PyErr_Occurred()) return NULL
;
9222 } _resultobj
= Py_BuildValue("i",_result
);
9226 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9227 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9228 PyObject
* _resultobj
;
9231 PyObject
* _argo0
= 0;
9232 char *_kwnames
[] = { "self", NULL
};
9235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9246 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9248 wxPyEndAllowThreads(__tstate
);
9249 if (PyErr_Occurred()) return NULL
;
9250 } _resultobj
= Py_BuildValue("i",_result
);
9254 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9255 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9256 PyObject
* _resultobj
;
9259 PyObject
* _argo0
= 0;
9260 char *_kwnames
[] = { "self", NULL
};
9263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9274 _result
= (int )wxDC_GetDepth(_arg0
);
9276 wxPyEndAllowThreads(__tstate
);
9277 if (PyErr_Occurred()) return NULL
;
9278 } _resultobj
= Py_BuildValue("i",_result
);
9282 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9283 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9284 PyObject
* _resultobj
;
9287 PyObject
* _argo0
= 0;
9288 char *_kwnames
[] = { "self", NULL
};
9292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9303 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9305 wxPyEndAllowThreads(__tstate
);
9306 if (PyErr_Occurred()) return NULL
;
9307 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9308 _resultobj
= Py_BuildValue("s",_ptemp
);
9312 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9313 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9314 PyObject
* _resultobj
;
9320 PyObject
* _argo0
= 0;
9321 char *_kwnames
[] = { "self", NULL
};
9330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9341 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9343 wxPyEndAllowThreads(__tstate
);
9344 if (PyErr_Occurred()) return NULL
;
9345 } Py_INCREF(Py_None
);
9346 _resultobj
= Py_None
;
9349 o
= PyInt_FromLong((long) (*_arg1
));
9350 _resultobj
= t_output_helper(_resultobj
, o
);
9354 o
= PyInt_FromLong((long) (*_arg2
));
9355 _resultobj
= t_output_helper(_resultobj
, o
);
9360 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9361 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9362 PyObject
* _resultobj
;
9366 PyObject
* _argo0
= 0;
9367 char *_kwnames
[] = { "self","x","y", NULL
};
9370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9381 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9383 wxPyEndAllowThreads(__tstate
);
9384 if (PyErr_Occurred()) return NULL
;
9385 } Py_INCREF(Py_None
);
9386 _resultobj
= Py_None
;
9390 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9391 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9392 PyObject
* _resultobj
;
9398 PyObject
* _argo0
= 0;
9399 char *_kwnames
[] = { "self", NULL
};
9408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9419 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9421 wxPyEndAllowThreads(__tstate
);
9422 if (PyErr_Occurred()) return NULL
;
9423 } Py_INCREF(Py_None
);
9424 _resultobj
= Py_None
;
9427 o
= PyInt_FromLong((long) (*_arg1
));
9428 _resultobj
= t_output_helper(_resultobj
, o
);
9432 o
= PyInt_FromLong((long) (*_arg2
));
9433 _resultobj
= t_output_helper(_resultobj
, o
);
9438 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9439 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9440 PyObject
* _resultobj
;
9444 PyObject
* _argo0
= 0;
9447 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9459 _arg1
= (bool ) tempbool1
;
9460 _arg2
= (bool ) tempbool2
;
9462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9463 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9465 wxPyEndAllowThreads(__tstate
);
9466 if (PyErr_Occurred()) return NULL
;
9467 } Py_INCREF(Py_None
);
9468 _resultobj
= Py_None
;
9472 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9473 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9474 PyObject
* _resultobj
;
9478 PyObject
* _argo0
= 0;
9479 char *_kwnames
[] = { "self","x","y", NULL
};
9482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9493 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9495 wxPyEndAllowThreads(__tstate
);
9496 if (PyErr_Occurred()) return NULL
;
9497 } Py_INCREF(Py_None
);
9498 _resultobj
= Py_None
;
9502 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9503 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9504 PyObject
* _resultobj
;
9506 PyObject
* _argo0
= 0;
9507 char *_kwnames
[] = { "self", NULL
};
9510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9521 wxDC_ResetBoundingBox(_arg0
);
9523 wxPyEndAllowThreads(__tstate
);
9524 if (PyErr_Occurred()) return NULL
;
9525 } Py_INCREF(Py_None
);
9526 _resultobj
= Py_None
;
9530 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9531 PyObject
* _resultobj
;
9541 PyObject
* _argo0
= 0;
9542 char *_kwnames
[] = { "self", NULL
};
9557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9568 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9570 wxPyEndAllowThreads(__tstate
);
9571 if (PyErr_Occurred()) return NULL
;
9572 } Py_INCREF(Py_None
);
9573 _resultobj
= Py_None
;
9576 o
= PyInt_FromLong((long) (*_arg1
));
9577 _resultobj
= t_output_helper(_resultobj
, o
);
9581 o
= PyInt_FromLong((long) (*_arg2
));
9582 _resultobj
= t_output_helper(_resultobj
, o
);
9586 o
= PyInt_FromLong((long) (*_arg3
));
9587 _resultobj
= t_output_helper(_resultobj
, o
);
9591 o
= PyInt_FromLong((long) (*_arg4
));
9592 _resultobj
= t_output_helper(_resultobj
, o
);
9597 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9598 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9599 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9607 if (!PySequence_Check(pyPoints
)) {
9610 if (!PySequence_Check(pyPens
)) {
9613 numObjs
= PySequence_Length(pyPoints
);
9614 numPens
= PySequence_Length(pyPens
);
9616 for (i
= 0; i
< numObjs
; i
++) {
9620 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9623 obj
= PySequence_GetItem(pyPens
, i
);
9625 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9636 // Get the point coordinants
9638 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9641 obj
= PySequence_GetItem(pyPoints
, i
);
9643 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9649 // Now draw the point
9650 self
->DrawPoint(x1
, y1
);
9660 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9663 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9666 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9667 PyObject
* _resultobj
;
9672 PyObject
* _argo0
= 0;
9673 PyObject
* _obj1
= 0;
9674 PyObject
* _obj2
= 0;
9675 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9695 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9697 wxPyEndAllowThreads(__tstate
);
9698 if (PyErr_Occurred()) return NULL
;
9700 _resultobj
= _result
;
9705 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9706 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9707 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9715 if (!PySequence_Check(pyLines
)) {
9718 if (!PySequence_Check(pyPens
)) {
9721 numObjs
= PySequence_Length(pyLines
);
9722 numPens
= PySequence_Length(pyPens
);
9724 for (i
= 0; i
< numObjs
; i
++) {
9728 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9731 obj
= PySequence_GetItem(pyPens
, i
);
9733 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9744 // Get the line coordinants
9746 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9749 obj
= PySequence_GetItem(pyLines
, i
);
9751 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9757 // Now draw the line
9758 self
->DrawLine(x1
, y1
, x2
, y2
);
9768 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9771 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9774 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9775 PyObject
* _resultobj
;
9780 PyObject
* _argo0
= 0;
9781 PyObject
* _obj1
= 0;
9782 PyObject
* _obj2
= 0;
9783 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9803 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9805 wxPyEndAllowThreads(__tstate
);
9806 if (PyErr_Occurred()) return NULL
;
9808 _resultobj
= _result
;
9813 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9816 src
= (wxMemoryDC
*) ptr
;
9817 dest
= (wxDC
*) src
;
9818 return (void *) dest
;
9821 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9824 src
= (wxMemoryDC
*) ptr
;
9825 dest
= (wxObject
*) src
;
9826 return (void *) dest
;
9829 #define new_wxMemoryDC() (new wxMemoryDC())
9830 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9831 PyObject
* _resultobj
;
9832 wxMemoryDC
* _result
;
9833 char *_kwnames
[] = { NULL
};
9837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9841 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9843 wxPyEndAllowThreads(__tstate
);
9844 if (PyErr_Occurred()) return NULL
;
9846 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9847 _resultobj
= Py_BuildValue("s",_ptemp
);
9850 _resultobj
= Py_None
;
9855 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9856 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9857 PyObject
* _resultobj
;
9860 PyObject
* _argo0
= 0;
9861 PyObject
* _argo1
= 0;
9862 char *_kwnames
[] = { "self","bitmap", NULL
};
9865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9875 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9876 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9883 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9885 wxPyEndAllowThreads(__tstate
);
9886 if (PyErr_Occurred()) return NULL
;
9887 } Py_INCREF(Py_None
);
9888 _resultobj
= Py_None
;
9892 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9895 src
= (wxScreenDC
*) ptr
;
9896 dest
= (wxDC
*) src
;
9897 return (void *) dest
;
9900 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9903 src
= (wxScreenDC
*) ptr
;
9904 dest
= (wxObject
*) src
;
9905 return (void *) dest
;
9908 #define new_wxScreenDC() (new wxScreenDC())
9909 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9910 PyObject
* _resultobj
;
9911 wxScreenDC
* _result
;
9912 char *_kwnames
[] = { NULL
};
9916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9920 _result
= (wxScreenDC
*)new_wxScreenDC();
9922 wxPyEndAllowThreads(__tstate
);
9923 if (PyErr_Occurred()) return NULL
;
9925 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9926 _resultobj
= Py_BuildValue("s",_ptemp
);
9929 _resultobj
= Py_None
;
9934 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9935 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9936 PyObject
* _resultobj
;
9940 PyObject
* _argo0
= 0;
9941 PyObject
* _argo1
= 0;
9942 char *_kwnames
[] = { "self","window", NULL
};
9945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9955 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9956 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9963 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9965 wxPyEndAllowThreads(__tstate
);
9966 if (PyErr_Occurred()) return NULL
;
9967 } _resultobj
= Py_BuildValue("i",_result
);
9971 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9972 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9973 PyObject
* _resultobj
;
9976 wxRect
* _arg1
= (wxRect
*) NULL
;
9977 PyObject
* _argo0
= 0;
9979 PyObject
* _obj1
= 0;
9980 char *_kwnames
[] = { "self","rect", NULL
};
9983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9995 if (! wxRect_helper(_obj1
, &_arg1
))
9999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10000 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
10002 wxPyEndAllowThreads(__tstate
);
10003 if (PyErr_Occurred()) return NULL
;
10004 } _resultobj
= Py_BuildValue("i",_result
);
10008 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
10009 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10010 PyObject
* _resultobj
;
10012 wxScreenDC
* _arg0
;
10013 PyObject
* _argo0
= 0;
10014 char *_kwnames
[] = { "self", NULL
};
10017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
10020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
10022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
10027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10028 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
10030 wxPyEndAllowThreads(__tstate
);
10031 if (PyErr_Occurred()) return NULL
;
10032 } _resultobj
= Py_BuildValue("i",_result
);
10036 static void *SwigwxClientDCTowxDC(void *ptr
) {
10039 src
= (wxClientDC
*) ptr
;
10040 dest
= (wxDC
*) src
;
10041 return (void *) dest
;
10044 static void *SwigwxClientDCTowxObject(void *ptr
) {
10047 src
= (wxClientDC
*) ptr
;
10048 dest
= (wxObject
*) src
;
10049 return (void *) dest
;
10052 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
10053 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10054 PyObject
* _resultobj
;
10055 wxClientDC
* _result
;
10057 PyObject
* _argo0
= 0;
10058 char *_kwnames
[] = { "win", NULL
};
10062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
10065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10073 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
10075 wxPyEndAllowThreads(__tstate
);
10076 if (PyErr_Occurred()) return NULL
;
10078 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
10079 _resultobj
= Py_BuildValue("s",_ptemp
);
10081 Py_INCREF(Py_None
);
10082 _resultobj
= Py_None
;
10087 static void *SwigwxPaintDCTowxDC(void *ptr
) {
10090 src
= (wxPaintDC
*) ptr
;
10091 dest
= (wxDC
*) src
;
10092 return (void *) dest
;
10095 static void *SwigwxPaintDCTowxObject(void *ptr
) {
10098 src
= (wxPaintDC
*) ptr
;
10099 dest
= (wxObject
*) src
;
10100 return (void *) dest
;
10103 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10104 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10105 PyObject
* _resultobj
;
10106 wxPaintDC
* _result
;
10108 PyObject
* _argo0
= 0;
10109 char *_kwnames
[] = { "win", NULL
};
10113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
10116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10124 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
10126 wxPyEndAllowThreads(__tstate
);
10127 if (PyErr_Occurred()) return NULL
;
10129 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
10130 _resultobj
= Py_BuildValue("s",_ptemp
);
10132 Py_INCREF(Py_None
);
10133 _resultobj
= Py_None
;
10138 static void *SwigwxWindowDCTowxDC(void *ptr
) {
10141 src
= (wxWindowDC
*) ptr
;
10142 dest
= (wxDC
*) src
;
10143 return (void *) dest
;
10146 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10149 src
= (wxWindowDC
*) ptr
;
10150 dest
= (wxObject
*) src
;
10151 return (void *) dest
;
10154 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10155 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10156 PyObject
* _resultobj
;
10157 wxWindowDC
* _result
;
10159 PyObject
* _argo0
= 0;
10160 char *_kwnames
[] = { "win", NULL
};
10164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10175 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10177 wxPyEndAllowThreads(__tstate
);
10178 if (PyErr_Occurred()) return NULL
;
10180 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10181 _resultobj
= Py_BuildValue("s",_ptemp
);
10183 Py_INCREF(Py_None
);
10184 _resultobj
= Py_None
;
10189 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
10192 src
= (wxPalette
*) ptr
;
10193 dest
= (wxGDIObject
*) src
;
10194 return (void *) dest
;
10197 static void *SwigwxPaletteTowxObject(void *ptr
) {
10200 src
= (wxPalette
*) ptr
;
10201 dest
= (wxObject
*) src
;
10202 return (void *) dest
;
10205 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10206 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10207 PyObject
* _resultobj
;
10208 wxPalette
* _result
;
10213 PyObject
* _obj1
= 0;
10214 PyObject
* _obj2
= 0;
10215 PyObject
* _obj3
= 0;
10216 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10223 _arg1
= byte_LIST_helper(_obj1
);
10224 if (_arg1
== NULL
) {
10229 _arg2
= byte_LIST_helper(_obj2
);
10230 if (_arg2
== NULL
) {
10236 _arg3
= byte_LIST_helper(_obj3
);
10237 if (_arg3
== NULL
) {
10243 _arg0
= PyList_Size(_obj1
);
10250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10251 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10253 wxPyEndAllowThreads(__tstate
);
10254 if (PyErr_Occurred()) return NULL
;
10256 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10257 _resultobj
= Py_BuildValue("s",_ptemp
);
10259 Py_INCREF(Py_None
);
10260 _resultobj
= Py_None
;
10274 #define delete_wxPalette(_swigobj) (delete _swigobj)
10275 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10276 PyObject
* _resultobj
;
10278 PyObject
* _argo0
= 0;
10279 char *_kwnames
[] = { "self", NULL
};
10282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10293 delete_wxPalette(_arg0
);
10295 wxPyEndAllowThreads(__tstate
);
10296 if (PyErr_Occurred()) return NULL
;
10297 } Py_INCREF(Py_None
);
10298 _resultobj
= Py_None
;
10302 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10303 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10304 PyObject
* _resultobj
;
10310 PyObject
* _argo0
= 0;
10311 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10325 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10327 wxPyEndAllowThreads(__tstate
);
10328 if (PyErr_Occurred()) return NULL
;
10329 } _resultobj
= Py_BuildValue("i",_result
);
10333 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10334 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10335 PyObject
* _resultobj
;
10345 PyObject
* _argo0
= 0;
10346 char *_kwnames
[] = { "self","pixel", NULL
};
10350 _arg2
= (byte
*)&temp
;
10353 _arg3
= (byte
*)&temp0
;
10356 _arg4
= (byte
*)&temp1
;
10358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
10361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10369 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10371 wxPyEndAllowThreads(__tstate
);
10372 if (PyErr_Occurred()) return NULL
;
10373 } _resultobj
= Py_BuildValue("i",_result
);
10376 o
= PyInt_FromLong((long) (*_arg2
));
10377 _resultobj
= t_output_helper(_resultobj
, o
);
10381 o
= PyInt_FromLong((long) (*_arg3
));
10382 _resultobj
= t_output_helper(_resultobj
, o
);
10386 o
= PyInt_FromLong((long) (*_arg4
));
10387 _resultobj
= t_output_helper(_resultobj
, o
);
10392 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10393 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10394 PyObject
* _resultobj
;
10397 PyObject
* _argo0
= 0;
10398 char *_kwnames
[] = { "self", NULL
};
10401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10412 _result
= (bool )wxPalette_Ok(_arg0
);
10414 wxPyEndAllowThreads(__tstate
);
10415 if (PyErr_Occurred()) return NULL
;
10416 } _resultobj
= Py_BuildValue("i",_result
);
10420 static void *SwigwxImageListTowxObject(void *ptr
) {
10423 src
= (wxImageList
*) ptr
;
10424 dest
= (wxObject
*) src
;
10425 return (void *) dest
;
10428 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10429 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10430 PyObject
* _resultobj
;
10431 wxImageList
* _result
;
10434 int _arg2
= (int ) TRUE
;
10435 int _arg3
= (int ) 1;
10436 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10444 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10446 wxPyEndAllowThreads(__tstate
);
10447 if (PyErr_Occurred()) return NULL
;
10449 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10450 _resultobj
= Py_BuildValue("s",_ptemp
);
10452 Py_INCREF(Py_None
);
10453 _resultobj
= Py_None
;
10458 #define delete_wxImageList(_swigobj) (delete _swigobj)
10459 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10460 PyObject
* _resultobj
;
10461 wxImageList
* _arg0
;
10462 PyObject
* _argo0
= 0;
10463 char *_kwnames
[] = { "self", NULL
};
10466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10477 delete_wxImageList(_arg0
);
10479 wxPyEndAllowThreads(__tstate
);
10480 if (PyErr_Occurred()) return NULL
;
10481 } Py_INCREF(Py_None
);
10482 _resultobj
= Py_None
;
10486 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10487 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10488 PyObject
* _resultobj
;
10490 wxImageList
* _arg0
;
10492 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10493 PyObject
* _argo0
= 0;
10494 PyObject
* _argo1
= 0;
10495 PyObject
* _argo2
= 0;
10496 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10509 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10510 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10516 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10517 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10524 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10526 wxPyEndAllowThreads(__tstate
);
10527 if (PyErr_Occurred()) return NULL
;
10528 } _resultobj
= Py_BuildValue("i",_result
);
10532 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10533 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10534 PyObject
* _resultobj
;
10536 wxImageList
* _arg0
;
10539 PyObject
* _argo0
= 0;
10540 PyObject
* _argo1
= 0;
10542 PyObject
* _obj2
= 0;
10543 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10556 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10557 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10564 if (! wxColour_helper(_obj2
, &_arg2
))
10568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10569 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10571 wxPyEndAllowThreads(__tstate
);
10572 if (PyErr_Occurred()) return NULL
;
10573 } _resultobj
= Py_BuildValue("i",_result
);
10577 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10578 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10579 PyObject
* _resultobj
;
10581 wxImageList
* _arg0
;
10583 PyObject
* _argo0
= 0;
10584 PyObject
* _argo1
= 0;
10585 char *_kwnames
[] = { "self","icon", NULL
};
10588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10598 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10599 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10606 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10608 wxPyEndAllowThreads(__tstate
);
10609 if (PyErr_Occurred()) return NULL
;
10610 } _resultobj
= Py_BuildValue("i",_result
);
10614 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10615 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10616 PyObject
* _resultobj
;
10618 wxImageList
* _arg0
;
10621 PyObject
* _argo0
= 0;
10622 PyObject
* _argo2
= 0;
10623 char *_kwnames
[] = { "self","index","bitmap", NULL
};
10626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
10629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10636 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10637 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10644 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
10646 wxPyEndAllowThreads(__tstate
);
10647 if (PyErr_Occurred()) return NULL
;
10648 } _resultobj
= Py_BuildValue("i",_result
);
10652 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10653 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10654 PyObject
* _resultobj
;
10656 wxImageList
* _arg0
;
10661 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10662 bool _arg6
= (bool ) FALSE
;
10663 PyObject
* _argo0
= 0;
10664 PyObject
* _argo2
= 0;
10665 int tempbool6
= (int) FALSE
;
10666 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10679 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10680 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10685 _arg6
= (bool ) tempbool6
;
10687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10688 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10690 wxPyEndAllowThreads(__tstate
);
10691 if (PyErr_Occurred()) return NULL
;
10692 } _resultobj
= Py_BuildValue("i",_result
);
10696 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10697 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10698 PyObject
* _resultobj
;
10700 wxImageList
* _arg0
;
10701 PyObject
* _argo0
= 0;
10702 char *_kwnames
[] = { "self", NULL
};
10705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10716 _result
= (int )wxImageList_GetImageCount(_arg0
);
10718 wxPyEndAllowThreads(__tstate
);
10719 if (PyErr_Occurred()) return NULL
;
10720 } _resultobj
= Py_BuildValue("i",_result
);
10724 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10725 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10726 PyObject
* _resultobj
;
10728 wxImageList
* _arg0
;
10730 PyObject
* _argo0
= 0;
10731 char *_kwnames
[] = { "self","index", NULL
};
10734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10745 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10747 wxPyEndAllowThreads(__tstate
);
10748 if (PyErr_Occurred()) return NULL
;
10749 } _resultobj
= Py_BuildValue("i",_result
);
10753 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10754 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10755 PyObject
* _resultobj
;
10757 wxImageList
* _arg0
;
10758 PyObject
* _argo0
= 0;
10759 char *_kwnames
[] = { "self", NULL
};
10762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10773 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10775 wxPyEndAllowThreads(__tstate
);
10776 if (PyErr_Occurred()) return NULL
;
10777 } _resultobj
= Py_BuildValue("i",_result
);
10781 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10782 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10783 PyObject
* _resultobj
;
10784 wxImageList
* _arg0
;
10790 PyObject
* _argo0
= 0;
10791 char *_kwnames
[] = { "self","index", NULL
};
10800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10811 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10813 wxPyEndAllowThreads(__tstate
);
10814 if (PyErr_Occurred()) return NULL
;
10815 } Py_INCREF(Py_None
);
10816 _resultobj
= Py_None
;
10819 o
= PyInt_FromLong((long) (*_arg2
));
10820 _resultobj
= t_output_helper(_resultobj
, o
);
10824 o
= PyInt_FromLong((long) (*_arg3
));
10825 _resultobj
= t_output_helper(_resultobj
, o
);
10830 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10833 src
= (wxRegion
*) ptr
;
10834 dest
= (wxGDIObject
*) src
;
10835 return (void *) dest
;
10838 static void *SwigwxRegionTowxObject(void *ptr
) {
10841 src
= (wxRegion
*) ptr
;
10842 dest
= (wxObject
*) src
;
10843 return (void *) dest
;
10846 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10847 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10848 PyObject
* _resultobj
;
10849 wxRegion
* _result
;
10850 long _arg0
= (long ) 0;
10851 long _arg1
= (long ) 0;
10852 long _arg2
= (long ) 0;
10853 long _arg3
= (long ) 0;
10854 char *_kwnames
[] = { "x","y","width","height", NULL
};
10858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10862 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10864 wxPyEndAllowThreads(__tstate
);
10865 if (PyErr_Occurred()) return NULL
;
10867 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10868 _resultobj
= Py_BuildValue("s",_ptemp
);
10870 Py_INCREF(Py_None
);
10871 _resultobj
= Py_None
;
10876 #define delete_wxRegion(_swigobj) (delete _swigobj)
10877 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10878 PyObject
* _resultobj
;
10880 PyObject
* _argo0
= 0;
10881 char *_kwnames
[] = { "self", NULL
};
10884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10895 delete_wxRegion(_arg0
);
10897 wxPyEndAllowThreads(__tstate
);
10898 if (PyErr_Occurred()) return NULL
;
10899 } Py_INCREF(Py_None
);
10900 _resultobj
= Py_None
;
10904 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10905 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10906 PyObject
* _resultobj
;
10908 PyObject
* _argo0
= 0;
10909 char *_kwnames
[] = { "self", NULL
};
10912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10923 wxRegion_Clear(_arg0
);
10925 wxPyEndAllowThreads(__tstate
);
10926 if (PyErr_Occurred()) return NULL
;
10927 } Py_INCREF(Py_None
);
10928 _resultobj
= Py_None
;
10932 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10933 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10934 PyObject
* _resultobj
;
10935 wxRegionContain _result
;
10939 PyObject
* _argo0
= 0;
10940 char *_kwnames
[] = { "self","x","y", NULL
};
10943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10954 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10956 wxPyEndAllowThreads(__tstate
);
10957 if (PyErr_Occurred()) return NULL
;
10958 } _resultobj
= Py_BuildValue("i",_result
);
10962 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10963 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10964 PyObject
* _resultobj
;
10965 wxRegionContain _result
;
10968 PyObject
* _argo0
= 0;
10970 PyObject
* _obj1
= 0;
10971 char *_kwnames
[] = { "self","pt", NULL
};
10974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10985 if (! wxPoint_helper(_obj1
, &_arg1
))
10989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10990 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10992 wxPyEndAllowThreads(__tstate
);
10993 if (PyErr_Occurred()) return NULL
;
10994 } _resultobj
= Py_BuildValue("i",_result
);
10998 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10999 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11000 PyObject
* _resultobj
;
11001 wxRegionContain _result
;
11004 PyObject
* _argo0
= 0;
11006 PyObject
* _obj1
= 0;
11007 char *_kwnames
[] = { "self","rect", NULL
};
11010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
11013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11021 if (! wxRect_helper(_obj1
, &_arg1
))
11025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11026 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
11028 wxPyEndAllowThreads(__tstate
);
11029 if (PyErr_Occurred()) return NULL
;
11030 } _resultobj
= Py_BuildValue("i",_result
);
11034 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11035 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11036 PyObject
* _resultobj
;
11037 wxRegionContain _result
;
11043 PyObject
* _argo0
= 0;
11044 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
11047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11058 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11060 wxPyEndAllowThreads(__tstate
);
11061 if (PyErr_Occurred()) return NULL
;
11062 } _resultobj
= Py_BuildValue("i",_result
);
11066 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11067 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11068 PyObject
* _resultobj
;
11071 PyObject
* _argo0
= 0;
11072 char *_kwnames
[] = { "self", NULL
};
11076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
11079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11087 _result
= new wxRect (wxRegion_GetBox(_arg0
));
11089 wxPyEndAllowThreads(__tstate
);
11090 if (PyErr_Occurred()) return NULL
;
11091 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11092 _resultobj
= Py_BuildValue("s",_ptemp
);
11096 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11097 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11098 PyObject
* _resultobj
;
11105 PyObject
* _argo0
= 0;
11106 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11120 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11122 wxPyEndAllowThreads(__tstate
);
11123 if (PyErr_Occurred()) return NULL
;
11124 } _resultobj
= Py_BuildValue("i",_result
);
11128 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11129 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11130 PyObject
* _resultobj
;
11134 PyObject
* _argo0
= 0;
11136 PyObject
* _obj1
= 0;
11137 char *_kwnames
[] = { "self","rect", NULL
};
11140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
11143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11151 if (! wxRect_helper(_obj1
, &_arg1
))
11155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11156 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
11158 wxPyEndAllowThreads(__tstate
);
11159 if (PyErr_Occurred()) return NULL
;
11160 } _resultobj
= Py_BuildValue("i",_result
);
11164 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11165 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11166 PyObject
* _resultobj
;
11170 PyObject
* _argo0
= 0;
11171 PyObject
* _argo1
= 0;
11172 char *_kwnames
[] = { "self","region", NULL
};
11175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
11178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11185 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11186 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11193 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11195 wxPyEndAllowThreads(__tstate
);
11196 if (PyErr_Occurred()) return NULL
;
11197 } _resultobj
= Py_BuildValue("i",_result
);
11201 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11202 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11203 PyObject
* _resultobj
;
11206 PyObject
* _argo0
= 0;
11207 char *_kwnames
[] = { "self", NULL
};
11210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11221 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11223 wxPyEndAllowThreads(__tstate
);
11224 if (PyErr_Occurred()) return NULL
;
11225 } _resultobj
= Py_BuildValue("i",_result
);
11229 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11230 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11231 PyObject
* _resultobj
;
11238 PyObject
* _argo0
= 0;
11239 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11253 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11255 wxPyEndAllowThreads(__tstate
);
11256 if (PyErr_Occurred()) return NULL
;
11257 } _resultobj
= Py_BuildValue("i",_result
);
11261 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11262 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11263 PyObject
* _resultobj
;
11267 PyObject
* _argo0
= 0;
11269 PyObject
* _obj1
= 0;
11270 char *_kwnames
[] = { "self","rect", NULL
};
11273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11284 if (! wxRect_helper(_obj1
, &_arg1
))
11288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11289 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11291 wxPyEndAllowThreads(__tstate
);
11292 if (PyErr_Occurred()) return NULL
;
11293 } _resultobj
= Py_BuildValue("i",_result
);
11297 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11298 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11299 PyObject
* _resultobj
;
11303 PyObject
* _argo0
= 0;
11304 PyObject
* _argo1
= 0;
11305 char *_kwnames
[] = { "self","region", NULL
};
11308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11318 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11319 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11325 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11326 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11328 wxPyEndAllowThreads(__tstate
);
11329 if (PyErr_Occurred()) return NULL
;
11330 } _resultobj
= Py_BuildValue("i",_result
);
11334 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11335 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11336 PyObject
* _resultobj
;
11343 PyObject
* _argo0
= 0;
11344 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11358 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11360 wxPyEndAllowThreads(__tstate
);
11361 if (PyErr_Occurred()) return NULL
;
11362 } _resultobj
= Py_BuildValue("i",_result
);
11366 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11367 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11368 PyObject
* _resultobj
;
11372 PyObject
* _argo0
= 0;
11374 PyObject
* _obj1
= 0;
11375 char *_kwnames
[] = { "self","rect", NULL
};
11378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11389 if (! wxRect_helper(_obj1
, &_arg1
))
11393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11394 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11396 wxPyEndAllowThreads(__tstate
);
11397 if (PyErr_Occurred()) return NULL
;
11398 } _resultobj
= Py_BuildValue("i",_result
);
11402 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11403 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11404 PyObject
* _resultobj
;
11408 PyObject
* _argo0
= 0;
11409 PyObject
* _argo1
= 0;
11410 char *_kwnames
[] = { "self","region", NULL
};
11413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11423 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11424 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11431 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11433 wxPyEndAllowThreads(__tstate
);
11434 if (PyErr_Occurred()) return NULL
;
11435 } _resultobj
= Py_BuildValue("i",_result
);
11439 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11440 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11441 PyObject
* _resultobj
;
11448 PyObject
* _argo0
= 0;
11449 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11463 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11465 wxPyEndAllowThreads(__tstate
);
11466 if (PyErr_Occurred()) return NULL
;
11467 } _resultobj
= Py_BuildValue("i",_result
);
11471 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11472 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11473 PyObject
* _resultobj
;
11477 PyObject
* _argo0
= 0;
11479 PyObject
* _obj1
= 0;
11480 char *_kwnames
[] = { "self","rect", NULL
};
11483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11494 if (! wxRect_helper(_obj1
, &_arg1
))
11498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11499 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11501 wxPyEndAllowThreads(__tstate
);
11502 if (PyErr_Occurred()) return NULL
;
11503 } _resultobj
= Py_BuildValue("i",_result
);
11507 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11508 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11509 PyObject
* _resultobj
;
11513 PyObject
* _argo0
= 0;
11514 PyObject
* _argo1
= 0;
11515 char *_kwnames
[] = { "self","region", NULL
};
11518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11528 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11529 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11536 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11538 wxPyEndAllowThreads(__tstate
);
11539 if (PyErr_Occurred()) return NULL
;
11540 } _resultobj
= Py_BuildValue("i",_result
);
11544 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11545 wxRegionIterator
*src
;
11547 src
= (wxRegionIterator
*) ptr
;
11548 dest
= (wxObject
*) src
;
11549 return (void *) dest
;
11552 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11553 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11554 PyObject
* _resultobj
;
11555 wxRegionIterator
* _result
;
11557 PyObject
* _argo0
= 0;
11558 char *_kwnames
[] = { "region", NULL
};
11562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11573 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11575 wxPyEndAllowThreads(__tstate
);
11576 if (PyErr_Occurred()) return NULL
;
11578 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11579 _resultobj
= Py_BuildValue("s",_ptemp
);
11581 Py_INCREF(Py_None
);
11582 _resultobj
= Py_None
;
11587 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11588 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11589 PyObject
* _resultobj
;
11590 wxRegionIterator
* _arg0
;
11591 PyObject
* _argo0
= 0;
11592 char *_kwnames
[] = { "self", NULL
};
11595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11606 delete_wxRegionIterator(_arg0
);
11608 wxPyEndAllowThreads(__tstate
);
11609 if (PyErr_Occurred()) return NULL
;
11610 } Py_INCREF(Py_None
);
11611 _resultobj
= Py_None
;
11615 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11616 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11617 PyObject
* _resultobj
;
11619 wxRegionIterator
* _arg0
;
11620 PyObject
* _argo0
= 0;
11621 char *_kwnames
[] = { "self", NULL
};
11624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11635 _result
= (long )wxRegionIterator_GetX(_arg0
);
11637 wxPyEndAllowThreads(__tstate
);
11638 if (PyErr_Occurred()) return NULL
;
11639 } _resultobj
= Py_BuildValue("l",_result
);
11643 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11644 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11645 PyObject
* _resultobj
;
11647 wxRegionIterator
* _arg0
;
11648 PyObject
* _argo0
= 0;
11649 char *_kwnames
[] = { "self", NULL
};
11652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11663 _result
= (long )wxRegionIterator_GetY(_arg0
);
11665 wxPyEndAllowThreads(__tstate
);
11666 if (PyErr_Occurred()) return NULL
;
11667 } _resultobj
= Py_BuildValue("l",_result
);
11671 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11672 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11673 PyObject
* _resultobj
;
11675 wxRegionIterator
* _arg0
;
11676 PyObject
* _argo0
= 0;
11677 char *_kwnames
[] = { "self", NULL
};
11680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11691 _result
= (long )wxRegionIterator_GetW(_arg0
);
11693 wxPyEndAllowThreads(__tstate
);
11694 if (PyErr_Occurred()) return NULL
;
11695 } _resultobj
= Py_BuildValue("l",_result
);
11699 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11700 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11701 PyObject
* _resultobj
;
11703 wxRegionIterator
* _arg0
;
11704 PyObject
* _argo0
= 0;
11705 char *_kwnames
[] = { "self", NULL
};
11708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11719 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11721 wxPyEndAllowThreads(__tstate
);
11722 if (PyErr_Occurred()) return NULL
;
11723 } _resultobj
= Py_BuildValue("l",_result
);
11727 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11728 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11729 PyObject
* _resultobj
;
11731 wxRegionIterator
* _arg0
;
11732 PyObject
* _argo0
= 0;
11733 char *_kwnames
[] = { "self", NULL
};
11736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11747 _result
= (long )wxRegionIterator_GetH(_arg0
);
11749 wxPyEndAllowThreads(__tstate
);
11750 if (PyErr_Occurred()) return NULL
;
11751 } _resultobj
= Py_BuildValue("l",_result
);
11755 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11756 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11757 PyObject
* _resultobj
;
11759 wxRegionIterator
* _arg0
;
11760 PyObject
* _argo0
= 0;
11761 char *_kwnames
[] = { "self", NULL
};
11764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11775 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11777 wxPyEndAllowThreads(__tstate
);
11778 if (PyErr_Occurred()) return NULL
;
11779 } _resultobj
= Py_BuildValue("l",_result
);
11783 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11784 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11785 PyObject
* _resultobj
;
11787 wxRegionIterator
* _arg0
;
11788 PyObject
* _argo0
= 0;
11789 char *_kwnames
[] = { "self", NULL
};
11793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11804 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11806 wxPyEndAllowThreads(__tstate
);
11807 if (PyErr_Occurred()) return NULL
;
11808 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11809 _resultobj
= Py_BuildValue("s",_ptemp
);
11813 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11814 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11815 PyObject
* _resultobj
;
11817 wxRegionIterator
* _arg0
;
11818 PyObject
* _argo0
= 0;
11819 char *_kwnames
[] = { "self", NULL
};
11822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11833 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11835 wxPyEndAllowThreads(__tstate
);
11836 if (PyErr_Occurred()) return NULL
;
11837 } _resultobj
= Py_BuildValue("i",_result
);
11841 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11842 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11843 PyObject
* _resultobj
;
11844 wxRegionIterator
* _arg0
;
11845 PyObject
* _argo0
= 0;
11846 char *_kwnames
[] = { "self", NULL
};
11849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11860 wxRegionIterator_Reset(_arg0
);
11862 wxPyEndAllowThreads(__tstate
);
11863 if (PyErr_Occurred()) return NULL
;
11864 } Py_INCREF(Py_None
);
11865 _resultobj
= Py_None
;
11869 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11872 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11873 PyObject
* _resultobj
;
11874 wxRegionIterator
* _arg0
;
11875 PyObject
* _argo0
= 0;
11876 char *_kwnames
[] = { "self", NULL
};
11879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11890 wxRegionIterator_Next(_arg0
);
11892 wxPyEndAllowThreads(__tstate
);
11893 if (PyErr_Occurred()) return NULL
;
11894 } Py_INCREF(Py_None
);
11895 _resultobj
= Py_None
;
11899 static PyMethodDef gdicMethods
[] = {
11900 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11901 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11902 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11903 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11904 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11905 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11906 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11907 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11908 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11909 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11910 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11911 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11912 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11913 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11914 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11915 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11916 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11917 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11918 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11919 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11920 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11921 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11922 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11923 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11924 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11925 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11926 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11927 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11928 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11929 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11930 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11931 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11932 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11933 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11934 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11935 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11936 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11937 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11938 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11939 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11940 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11941 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11942 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11943 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11944 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11945 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11946 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11947 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11948 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11949 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11950 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11951 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11952 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11953 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11954 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11955 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11956 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11957 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11958 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11959 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11960 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11961 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11962 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11963 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11964 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11965 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11966 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11967 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11968 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11969 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11970 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11971 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11972 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11973 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11974 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11975 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11976 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11977 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11978 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11979 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11980 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11981 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11982 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11983 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11984 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11985 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11986 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11987 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11988 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11989 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11990 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11991 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11992 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11993 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11994 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11995 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11996 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11997 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11998 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11999 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12000 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12001 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12002 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12003 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12004 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
12005 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12006 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
12007 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12008 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
12009 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12010 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12011 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12012 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12013 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
12014 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
12015 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
12016 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
12017 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12018 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12019 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
12020 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
12021 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12022 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
12023 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
12024 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
12025 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12026 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
12027 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12028 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
12029 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
12030 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
12031 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
12032 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
12033 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
12034 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
12035 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
12036 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
12037 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
12038 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
12039 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
12040 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
12041 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
12042 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
12043 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12044 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
12045 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12046 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
12047 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12048 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
12049 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12050 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
12051 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
12052 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
12053 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12054 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12055 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12056 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12057 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12058 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12059 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12060 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12061 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12062 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12063 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
12064 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
12065 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
12066 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12067 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12068 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12069 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12070 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12071 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12072 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12073 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12074 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
12075 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12076 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12077 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12078 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12079 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12080 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
12081 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12082 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12083 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
12084 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
12085 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
12086 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
12087 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
12088 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12089 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
12090 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
12091 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
12092 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12093 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12094 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12095 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
12096 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
12097 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
12098 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12099 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12100 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
12101 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
12102 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
12103 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
12104 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12105 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12106 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12107 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12108 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12109 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12110 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12111 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12112 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
12113 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
12114 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12115 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
12116 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12117 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12118 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12119 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12120 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12121 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12122 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12123 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12124 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12125 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
12126 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12127 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12128 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12129 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
12130 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
12131 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
12132 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
12133 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
12134 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12135 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
12136 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12137 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12138 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12139 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
12140 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
12141 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
12142 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
12143 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
12144 { "wxNativeFontInfo_SetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12145 { "wxNativeFontInfo_SetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12146 { "wxNativeFontInfo_SetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12147 { "wxNativeFontInfo_SetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12148 { "wxNativeFontInfo_SetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12149 { "wxNativeFontInfo_SetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12150 { "wxNativeFontInfo_SetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12151 { "wxNativeFontInfo_GetEncoding", (PyCFunction
) _wrap_wxNativeFontInfo_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12152 { "wxNativeFontInfo_GetFamily", (PyCFunction
) _wrap_wxNativeFontInfo_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12153 { "wxNativeFontInfo_GetFaceName", (PyCFunction
) _wrap_wxNativeFontInfo_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12154 { "wxNativeFontInfo_GetUnderlined", (PyCFunction
) _wrap_wxNativeFontInfo_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12155 { "wxNativeFontInfo_GetWeight", (PyCFunction
) _wrap_wxNativeFontInfo_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12156 { "wxNativeFontInfo_GetStyle", (PyCFunction
) _wrap_wxNativeFontInfo_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12157 { "wxNativeFontInfo_GetPointSize", (PyCFunction
) _wrap_wxNativeFontInfo_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12158 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
12159 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12160 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12161 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12162 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12163 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12164 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12165 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12166 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12167 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12168 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12169 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12170 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12171 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12172 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
12173 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
12174 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12175 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12176 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12177 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12178 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12179 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12180 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12181 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12182 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12183 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
12184 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
12185 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12186 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
12187 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12188 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12189 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12190 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12191 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12192 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12193 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12194 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12195 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12196 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12197 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12198 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12199 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12200 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12201 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12202 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12203 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12204 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12211 * This table is used by the pointer type-checker
12213 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12214 { "_signed_long","_long",0},
12215 { "_wxPrintQuality","_wxCoord",0},
12216 { "_wxPrintQuality","_int",0},
12217 { "_wxPrintQuality","_signed_int",0},
12218 { "_wxPrintQuality","_unsigned_int",0},
12219 { "_wxPrintQuality","_wxWindowID",0},
12220 { "_wxPrintQuality","_uint",0},
12221 { "_wxPrintQuality","_EBool",0},
12222 { "_wxPrintQuality","_size_t",0},
12223 { "_wxPrintQuality","_time_t",0},
12224 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12225 { "_byte","_unsigned_char",0},
12226 { "_long","_unsigned_long",0},
12227 { "_long","_signed_long",0},
12228 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12229 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12230 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12231 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12232 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12233 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12234 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12235 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12236 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12237 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12238 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12239 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12240 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12241 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12242 { "_size_t","_wxCoord",0},
12243 { "_size_t","_wxPrintQuality",0},
12244 { "_size_t","_time_t",0},
12245 { "_size_t","_unsigned_int",0},
12246 { "_size_t","_int",0},
12247 { "_size_t","_wxWindowID",0},
12248 { "_size_t","_uint",0},
12249 { "_uint","_wxCoord",0},
12250 { "_uint","_wxPrintQuality",0},
12251 { "_uint","_time_t",0},
12252 { "_uint","_size_t",0},
12253 { "_uint","_unsigned_int",0},
12254 { "_uint","_int",0},
12255 { "_uint","_wxWindowID",0},
12256 { "_wxChar","_char",0},
12257 { "_char","_wxChar",0},
12258 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12259 { "_EBool","_wxCoord",0},
12260 { "_EBool","_wxPrintQuality",0},
12261 { "_EBool","_signed_int",0},
12262 { "_EBool","_int",0},
12263 { "_EBool","_wxWindowID",0},
12264 { "_unsigned_long","_long",0},
12265 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12266 { "_signed_int","_wxCoord",0},
12267 { "_signed_int","_wxPrintQuality",0},
12268 { "_signed_int","_EBool",0},
12269 { "_signed_int","_wxWindowID",0},
12270 { "_signed_int","_int",0},
12271 { "_WXTYPE","_short",0},
12272 { "_WXTYPE","_signed_short",0},
12273 { "_WXTYPE","_unsigned_short",0},
12274 { "_unsigned_short","_WXTYPE",0},
12275 { "_unsigned_short","_short",0},
12276 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12277 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12278 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12279 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12280 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12281 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12282 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12283 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12284 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12285 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12286 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12287 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12288 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12289 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12290 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12291 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12292 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12293 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12294 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12295 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12296 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12297 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12298 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12299 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12300 { "_signed_short","_WXTYPE",0},
12301 { "_signed_short","_short",0},
12302 { "_unsigned_char","_byte",0},
12303 { "_unsigned_int","_wxCoord",0},
12304 { "_unsigned_int","_wxPrintQuality",0},
12305 { "_unsigned_int","_time_t",0},
12306 { "_unsigned_int","_size_t",0},
12307 { "_unsigned_int","_uint",0},
12308 { "_unsigned_int","_wxWindowID",0},
12309 { "_unsigned_int","_int",0},
12310 { "_short","_WXTYPE",0},
12311 { "_short","_unsigned_short",0},
12312 { "_short","_signed_short",0},
12313 { "_wxWindowID","_wxCoord",0},
12314 { "_wxWindowID","_wxPrintQuality",0},
12315 { "_wxWindowID","_time_t",0},
12316 { "_wxWindowID","_size_t",0},
12317 { "_wxWindowID","_EBool",0},
12318 { "_wxWindowID","_uint",0},
12319 { "_wxWindowID","_int",0},
12320 { "_wxWindowID","_signed_int",0},
12321 { "_wxWindowID","_unsigned_int",0},
12322 { "_int","_wxCoord",0},
12323 { "_int","_wxPrintQuality",0},
12324 { "_int","_time_t",0},
12325 { "_int","_size_t",0},
12326 { "_int","_EBool",0},
12327 { "_int","_uint",0},
12328 { "_int","_wxWindowID",0},
12329 { "_int","_unsigned_int",0},
12330 { "_int","_signed_int",0},
12331 { "_time_t","_wxCoord",0},
12332 { "_time_t","_wxPrintQuality",0},
12333 { "_time_t","_unsigned_int",0},
12334 { "_time_t","_int",0},
12335 { "_time_t","_wxWindowID",0},
12336 { "_time_t","_uint",0},
12337 { "_time_t","_size_t",0},
12338 { "_wxCoord","_int",0},
12339 { "_wxCoord","_signed_int",0},
12340 { "_wxCoord","_unsigned_int",0},
12341 { "_wxCoord","_wxWindowID",0},
12342 { "_wxCoord","_uint",0},
12343 { "_wxCoord","_EBool",0},
12344 { "_wxCoord","_size_t",0},
12345 { "_wxCoord","_time_t",0},
12346 { "_wxCoord","_wxPrintQuality",0},
12349 static PyObject
*SWIG_globals
;
12353 SWIGEXPORT(void) initgdic() {
12355 SWIG_globals
= SWIG_newvarlink();
12356 m
= Py_InitModule("gdic", gdicMethods
);
12357 d
= PyModule_GetDict(m
);
12358 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12359 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12360 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12361 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12362 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12363 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12364 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12365 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12366 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
12367 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12368 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12369 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12370 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12371 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12372 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12373 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12374 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12375 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12376 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12377 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12378 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12379 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12380 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12381 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12382 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12383 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12384 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12385 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12386 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12387 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12388 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12389 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12390 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12391 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12392 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12393 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12394 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12395 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12396 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12397 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12398 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12399 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12400 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12401 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12402 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
12403 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
12404 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
12405 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
12406 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12407 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12408 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12409 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12410 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12411 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12412 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12413 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12414 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12415 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12416 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12417 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12418 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12419 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12420 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12421 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12422 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12423 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12424 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12425 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12426 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12427 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12428 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12429 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12430 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12431 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12432 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12433 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12434 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12435 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12436 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12437 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12438 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12439 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12440 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12441 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12442 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12443 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12444 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12445 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12446 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12447 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12448 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12449 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12450 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12451 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12452 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12453 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12454 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12455 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12456 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12457 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12458 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12459 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12460 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12461 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12462 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12463 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12464 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12465 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12466 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12467 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12468 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12469 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12470 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12471 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12472 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12473 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12474 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12475 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12478 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12479 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);