2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/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_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2197 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
* _resultobj
;
2203 PyObject
* _argo0
= 0;
2204 PyObject
* _obj1
= 0;
2205 char *_kwnames
[] = { "self","name","flags", NULL
};
2208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2218 #if PYTHON_API_VERSION >= 1009
2219 char* tmpPtr
; int tmpSize
;
2220 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2221 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2224 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2226 _arg1
= new wxString(tmpPtr
, tmpSize
);
2228 if (!PyString_Check(_obj1
)) {
2229 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2232 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2237 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2239 wxPyEndAllowThreads(__tstate
);
2240 if (PyErr_Occurred()) return NULL
;
2241 } _resultobj
= Py_BuildValue("i",_result
);
2249 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2250 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2251 PyObject
* _resultobj
;
2254 PyObject
* _argo0
= 0;
2255 char *_kwnames
[] = { "self", NULL
};
2258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2269 _result
= (bool )wxIcon_Ok(_arg0
);
2271 wxPyEndAllowThreads(__tstate
);
2272 if (PyErr_Occurred()) return NULL
;
2273 } _resultobj
= Py_BuildValue("i",_result
);
2277 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2278 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2279 PyObject
* _resultobj
;
2282 PyObject
* _argo0
= 0;
2283 char *_kwnames
[] = { "self", NULL
};
2286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2297 _result
= (int )wxIcon_GetWidth(_arg0
);
2299 wxPyEndAllowThreads(__tstate
);
2300 if (PyErr_Occurred()) return NULL
;
2301 } _resultobj
= Py_BuildValue("i",_result
);
2305 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2306 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2307 PyObject
* _resultobj
;
2310 PyObject
* _argo0
= 0;
2311 char *_kwnames
[] = { "self", NULL
};
2314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2325 _result
= (int )wxIcon_GetHeight(_arg0
);
2327 wxPyEndAllowThreads(__tstate
);
2328 if (PyErr_Occurred()) return NULL
;
2329 } _resultobj
= Py_BuildValue("i",_result
);
2333 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2334 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2335 PyObject
* _resultobj
;
2338 PyObject
* _argo0
= 0;
2339 char *_kwnames
[] = { "self", NULL
};
2342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2353 _result
= (int )wxIcon_GetDepth(_arg0
);
2355 wxPyEndAllowThreads(__tstate
);
2356 if (PyErr_Occurred()) return NULL
;
2357 } _resultobj
= Py_BuildValue("i",_result
);
2361 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2362 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2363 PyObject
* _resultobj
;
2366 PyObject
* _argo0
= 0;
2367 char *_kwnames
[] = { "self","w", NULL
};
2370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2381 wxIcon_SetWidth(_arg0
,_arg1
);
2383 wxPyEndAllowThreads(__tstate
);
2384 if (PyErr_Occurred()) return NULL
;
2385 } Py_INCREF(Py_None
);
2386 _resultobj
= Py_None
;
2390 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2391 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2392 PyObject
* _resultobj
;
2395 PyObject
* _argo0
= 0;
2396 char *_kwnames
[] = { "self","h", NULL
};
2399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2410 wxIcon_SetHeight(_arg0
,_arg1
);
2412 wxPyEndAllowThreads(__tstate
);
2413 if (PyErr_Occurred()) return NULL
;
2414 } Py_INCREF(Py_None
);
2415 _resultobj
= Py_None
;
2419 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2420 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2421 PyObject
* _resultobj
;
2424 PyObject
* _argo0
= 0;
2425 char *_kwnames
[] = { "self","d", NULL
};
2428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2438 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2439 wxIcon_SetDepth(_arg0
,_arg1
);
2441 wxPyEndAllowThreads(__tstate
);
2442 if (PyErr_Occurred()) return NULL
;
2443 } Py_INCREF(Py_None
);
2444 _resultobj
= Py_None
;
2448 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2449 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2450 PyObject
* _resultobj
;
2453 PyObject
* _argo0
= 0;
2454 PyObject
* _argo1
= 0;
2455 char *_kwnames
[] = { "self","bmp", NULL
};
2458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2468 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2469 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2476 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2478 wxPyEndAllowThreads(__tstate
);
2479 if (PyErr_Occurred()) return NULL
;
2480 } Py_INCREF(Py_None
);
2481 _resultobj
= Py_None
;
2485 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2488 src
= (wxCursor
*) ptr
;
2489 dest
= (wxGDIObject
*) src
;
2490 return (void *) dest
;
2493 static void *SwigwxCursorTowxObject(void *ptr
) {
2496 src
= (wxCursor
*) ptr
;
2497 dest
= (wxObject
*) src
;
2498 return (void *) dest
;
2501 #define delete_wxCursor(_swigobj) (delete _swigobj)
2502 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2503 PyObject
* _resultobj
;
2505 PyObject
* _argo0
= 0;
2506 char *_kwnames
[] = { "self", NULL
};
2509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2520 delete_wxCursor(_arg0
);
2522 wxPyEndAllowThreads(__tstate
);
2523 if (PyErr_Occurred()) return NULL
;
2524 } Py_INCREF(Py_None
);
2525 _resultobj
= Py_None
;
2529 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2530 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2531 PyObject
* _resultobj
;
2534 PyObject
* _argo0
= 0;
2535 char *_kwnames
[] = { "self", NULL
};
2538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2549 _result
= (bool )wxCursor_Ok(_arg0
);
2551 wxPyEndAllowThreads(__tstate
);
2552 if (PyErr_Occurred()) return NULL
;
2553 } _resultobj
= Py_BuildValue("i",_result
);
2557 #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2558 static PyObject
*_wrap_wxNativeFontInfo_FromXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2559 PyObject
* _resultobj
;
2561 wxNativeFontInfo
* _arg0
;
2563 PyObject
* _argo0
= 0;
2564 PyObject
* _obj1
= 0;
2565 char *_kwnames
[] = { "self","xFontName", NULL
};
2568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromXFontName",_kwnames
,&_argo0
,&_obj1
))
2571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2578 #if PYTHON_API_VERSION >= 1009
2579 char* tmpPtr
; int tmpSize
;
2580 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2581 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2584 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2586 _arg1
= new wxString(tmpPtr
, tmpSize
);
2588 if (!PyString_Check(_obj1
)) {
2589 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2592 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2597 _result
= (bool )wxNativeFontInfo_FromXFontName(_arg0
,*_arg1
);
2599 wxPyEndAllowThreads(__tstate
);
2600 if (PyErr_Occurred()) return NULL
;
2601 } _resultobj
= Py_BuildValue("i",_result
);
2609 #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
2610 static PyObject
*_wrap_wxNativeFontInfo_IsDefault(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
* _resultobj
;
2613 wxNativeFontInfo
* _arg0
;
2614 PyObject
* _argo0
= 0;
2615 char *_kwnames
[] = { "self", NULL
};
2618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_IsDefault",_kwnames
,&_argo0
))
2621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
2628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2629 _result
= (bool )wxNativeFontInfo_IsDefault(_arg0
);
2631 wxPyEndAllowThreads(__tstate
);
2632 if (PyErr_Occurred()) return NULL
;
2633 } _resultobj
= Py_BuildValue("i",_result
);
2637 #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2638 static PyObject
*_wrap_wxNativeFontInfo_GetXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2639 PyObject
* _resultobj
;
2641 wxNativeFontInfo
* _arg0
;
2642 PyObject
* _argo0
= 0;
2643 char *_kwnames
[] = { "self", NULL
};
2646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetXFontName",_kwnames
,&_argo0
))
2649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2657 _result
= new wxString (wxNativeFontInfo_GetXFontName(_arg0
));
2659 wxPyEndAllowThreads(__tstate
);
2660 if (PyErr_Occurred()) return NULL
;
2662 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2670 #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
2671 static PyObject
*_wrap_wxNativeFontInfo_SetXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2672 PyObject
* _resultobj
;
2673 wxNativeFontInfo
* _arg0
;
2675 PyObject
* _argo0
= 0;
2676 PyObject
* _obj1
= 0;
2677 char *_kwnames
[] = { "self","xFontName", NULL
};
2680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetXFontName",_kwnames
,&_argo0
,&_obj1
))
2683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
2690 #if PYTHON_API_VERSION >= 1009
2691 char* tmpPtr
; int tmpSize
;
2692 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2693 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2696 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2698 _arg1
= new wxString(tmpPtr
, tmpSize
);
2700 if (!PyString_Check(_obj1
)) {
2701 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2704 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2709 wxNativeFontInfo_SetXFontName(_arg0
,*_arg1
);
2711 wxPyEndAllowThreads(__tstate
);
2712 if (PyErr_Occurred()) return NULL
;
2713 } Py_INCREF(Py_None
);
2714 _resultobj
= Py_None
;
2722 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2723 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2724 PyObject
* _resultobj
;
2725 wxNativeFontInfo
* _result
;
2726 char *_kwnames
[] = { NULL
};
2730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
2733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2734 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
2736 wxPyEndAllowThreads(__tstate
);
2737 if (PyErr_Occurred()) return NULL
;
2739 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
2740 _resultobj
= Py_BuildValue("s",_ptemp
);
2743 _resultobj
= Py_None
;
2748 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2749 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2750 PyObject
* _resultobj
;
2751 wxNativeFontInfo
* _arg0
;
2752 PyObject
* _argo0
= 0;
2753 char *_kwnames
[] = { "self", NULL
};
2756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
2759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2767 wxNativeFontInfo_Init(_arg0
);
2769 wxPyEndAllowThreads(__tstate
);
2770 if (PyErr_Occurred()) return NULL
;
2771 } Py_INCREF(Py_None
);
2772 _resultobj
= Py_None
;
2776 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2777 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2778 PyObject
* _resultobj
;
2780 wxNativeFontInfo
* _arg0
;
2782 PyObject
* _argo0
= 0;
2783 PyObject
* _obj1
= 0;
2784 char *_kwnames
[] = { "self","s", NULL
};
2787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
2790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2797 #if PYTHON_API_VERSION >= 1009
2798 char* tmpPtr
; int tmpSize
;
2799 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2800 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2803 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2805 _arg1
= new wxString(tmpPtr
, tmpSize
);
2807 if (!PyString_Check(_obj1
)) {
2808 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2811 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2815 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2816 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
2818 wxPyEndAllowThreads(__tstate
);
2819 if (PyErr_Occurred()) return NULL
;
2820 } _resultobj
= Py_BuildValue("i",_result
);
2828 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2829 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2830 PyObject
* _resultobj
;
2832 wxNativeFontInfo
* _arg0
;
2833 PyObject
* _argo0
= 0;
2834 char *_kwnames
[] = { "self", NULL
};
2837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
2840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2847 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2848 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
2850 wxPyEndAllowThreads(__tstate
);
2851 if (PyErr_Occurred()) return NULL
;
2853 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2861 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
2862 return self
->ToString();
2864 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2865 PyObject
* _resultobj
;
2867 wxNativeFontInfo
* _arg0
;
2868 PyObject
* _argo0
= 0;
2869 char *_kwnames
[] = { "self", NULL
};
2872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
2875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2883 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
2885 wxPyEndAllowThreads(__tstate
);
2886 if (PyErr_Occurred()) return NULL
;
2888 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2896 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2897 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2898 PyObject
* _resultobj
;
2900 wxNativeFontInfo
* _arg0
;
2902 PyObject
* _argo0
= 0;
2903 PyObject
* _obj1
= 0;
2904 char *_kwnames
[] = { "self","s", NULL
};
2907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
2910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2917 #if PYTHON_API_VERSION >= 1009
2918 char* tmpPtr
; int tmpSize
;
2919 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2920 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2923 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2925 _arg1
= new wxString(tmpPtr
, tmpSize
);
2927 if (!PyString_Check(_obj1
)) {
2928 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2931 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2936 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
2938 wxPyEndAllowThreads(__tstate
);
2939 if (PyErr_Occurred()) return NULL
;
2940 } _resultobj
= Py_BuildValue("i",_result
);
2948 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2949 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2950 PyObject
* _resultobj
;
2952 wxNativeFontInfo
* _arg0
;
2953 PyObject
* _argo0
= 0;
2954 char *_kwnames
[] = { "self", NULL
};
2957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
2960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
2967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2968 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
2970 wxPyEndAllowThreads(__tstate
);
2971 if (PyErr_Occurred()) return NULL
;
2973 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2981 #define new_wxFontMapper() (new wxFontMapper())
2982 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2983 PyObject
* _resultobj
;
2984 wxFontMapper
* _result
;
2985 char *_kwnames
[] = { NULL
};
2989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
2992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2993 _result
= (wxFontMapper
*)new_wxFontMapper();
2995 wxPyEndAllowThreads(__tstate
);
2996 if (PyErr_Occurred()) return NULL
;
2998 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
2999 _resultobj
= Py_BuildValue("s",_ptemp
);
3002 _resultobj
= Py_None
;
3007 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3008 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3009 PyObject
* _resultobj
;
3010 wxFontMapper
* _arg0
;
3011 PyObject
* _argo0
= 0;
3012 char *_kwnames
[] = { "self", NULL
};
3015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3026 delete_wxFontMapper(_arg0
);
3028 wxPyEndAllowThreads(__tstate
);
3029 if (PyErr_Occurred()) return NULL
;
3030 } Py_INCREF(Py_None
);
3031 _resultobj
= Py_None
;
3035 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3036 wxFontEncoding alt_enc
;
3037 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3038 return PyInt_FromLong(alt_enc
);
3044 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3045 PyObject
* _resultobj
;
3047 wxFontMapper
* _arg0
;
3048 wxFontEncoding _arg1
;
3049 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3050 bool _arg3
= (bool ) TRUE
;
3051 PyObject
* _argo0
= 0;
3052 PyObject
* _obj2
= 0;
3053 int tempbool3
= (int) TRUE
;
3054 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3068 #if PYTHON_API_VERSION >= 1009
3069 char* tmpPtr
; int tmpSize
;
3070 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3071 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3074 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3076 _arg2
= new wxString(tmpPtr
, tmpSize
);
3078 if (!PyString_Check(_obj2
)) {
3079 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3082 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3085 _arg3
= (bool ) tempbool3
;
3087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3088 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3090 wxPyEndAllowThreads(__tstate
);
3091 if (PyErr_Occurred()) return NULL
;
3093 _resultobj
= _result
;
3102 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3103 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3104 PyObject
* _resultobj
;
3106 wxFontMapper
* _arg0
;
3107 wxFontEncoding _arg1
;
3108 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3109 PyObject
* _argo0
= 0;
3110 PyObject
* _obj2
= 0;
3111 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3125 #if PYTHON_API_VERSION >= 1009
3126 char* tmpPtr
; int tmpSize
;
3127 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3128 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3131 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3133 _arg2
= new wxString(tmpPtr
, tmpSize
);
3135 if (!PyString_Check(_obj2
)) {
3136 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3139 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3144 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3146 wxPyEndAllowThreads(__tstate
);
3147 if (PyErr_Occurred()) return NULL
;
3148 } _resultobj
= Py_BuildValue("i",_result
);
3156 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3157 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3158 PyObject
* _resultobj
;
3159 wxFontEncoding _result
;
3160 wxFontMapper
* _arg0
;
3162 bool _arg2
= (bool ) TRUE
;
3163 PyObject
* _argo0
= 0;
3164 PyObject
* _obj1
= 0;
3165 int tempbool2
= (int) TRUE
;
3166 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3179 #if PYTHON_API_VERSION >= 1009
3180 char* tmpPtr
; int tmpSize
;
3181 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3182 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3185 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3187 _arg1
= new wxString(tmpPtr
, tmpSize
);
3189 if (!PyString_Check(_obj1
)) {
3190 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3193 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3196 _arg2
= (bool ) tempbool2
;
3198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3199 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3201 wxPyEndAllowThreads(__tstate
);
3202 if (PyErr_Occurred()) return NULL
;
3203 } _resultobj
= Py_BuildValue("i",_result
);
3211 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3212 PyObject
* _resultobj
;
3214 wxFontEncoding _arg0
;
3215 char *_kwnames
[] = { "encoding", NULL
};
3218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3222 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3224 wxPyEndAllowThreads(__tstate
);
3225 if (PyErr_Occurred()) return NULL
;
3227 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3235 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3236 PyObject
* _resultobj
;
3238 wxFontEncoding _arg0
;
3239 char *_kwnames
[] = { "encoding", NULL
};
3242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3246 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3248 wxPyEndAllowThreads(__tstate
);
3249 if (PyErr_Occurred()) return NULL
;
3251 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3259 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3260 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3261 PyObject
* _resultobj
;
3262 wxFontMapper
* _arg0
;
3264 PyObject
* _argo0
= 0;
3265 PyObject
* _argo1
= 0;
3266 char *_kwnames
[] = { "self","parent", NULL
};
3269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3279 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3280 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3287 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3289 wxPyEndAllowThreads(__tstate
);
3290 if (PyErr_Occurred()) return NULL
;
3291 } Py_INCREF(Py_None
);
3292 _resultobj
= Py_None
;
3296 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3297 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3298 PyObject
* _resultobj
;
3299 wxFontMapper
* _arg0
;
3301 PyObject
* _argo0
= 0;
3302 PyObject
* _obj1
= 0;
3303 char *_kwnames
[] = { "self","title", NULL
};
3306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3316 #if PYTHON_API_VERSION >= 1009
3317 char* tmpPtr
; int tmpSize
;
3318 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3319 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3322 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3324 _arg1
= new wxString(tmpPtr
, tmpSize
);
3326 if (!PyString_Check(_obj1
)) {
3327 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3330 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3335 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3337 wxPyEndAllowThreads(__tstate
);
3338 if (PyErr_Occurred()) return NULL
;
3339 } Py_INCREF(Py_None
);
3340 _resultobj
= Py_None
;
3348 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3349 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3350 PyObject
* _resultobj
;
3351 wxFontMapper
* _arg0
;
3352 wxConfigBase
* _arg1
;
3353 PyObject
* _argo0
= 0;
3354 PyObject
* _argo1
= 0;
3355 char *_kwnames
[] = { "self","config", NULL
};
3358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3368 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3369 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3376 wxFontMapper_SetConfig(_arg0
,_arg1
);
3378 wxPyEndAllowThreads(__tstate
);
3379 if (PyErr_Occurred()) return NULL
;
3380 } Py_INCREF(Py_None
);
3381 _resultobj
= Py_None
;
3385 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3386 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3387 PyObject
* _resultobj
;
3388 wxFontMapper
* _arg0
;
3390 PyObject
* _argo0
= 0;
3391 PyObject
* _obj1
= 0;
3392 char *_kwnames
[] = { "self","prefix", NULL
};
3395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3405 #if PYTHON_API_VERSION >= 1009
3406 char* tmpPtr
; int tmpSize
;
3407 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3408 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3411 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3413 _arg1
= new wxString(tmpPtr
, tmpSize
);
3415 if (!PyString_Check(_obj1
)) {
3416 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3419 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3424 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3426 wxPyEndAllowThreads(__tstate
);
3427 if (PyErr_Occurred()) return NULL
;
3428 } Py_INCREF(Py_None
);
3429 _resultobj
= Py_None
;
3437 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3438 PyObject
* _resultobj
;
3440 char *_kwnames
[] = { NULL
};
3443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3447 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3449 wxPyEndAllowThreads(__tstate
);
3450 if (PyErr_Occurred()) return NULL
;
3451 } _resultobj
= Py_BuildValue("s", _result
);
3455 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3458 src
= (wxFont
*) ptr
;
3459 dest
= (wxGDIObject
*) src
;
3460 return (void *) dest
;
3463 static void *SwigwxFontTowxObject(void *ptr
) {
3466 src
= (wxFont
*) ptr
;
3467 dest
= (wxObject
*) src
;
3468 return (void *) dest
;
3471 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3472 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3473 PyObject
* _resultobj
;
3479 int _arg4
= (int ) FALSE
;
3480 char * _arg5
= (char *) "";
3481 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3482 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3490 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3492 wxPyEndAllowThreads(__tstate
);
3493 if (PyErr_Occurred()) return NULL
;
3495 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3496 _resultobj
= Py_BuildValue("s",_ptemp
);
3499 _resultobj
= Py_None
;
3504 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3505 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3506 PyObject
* _resultobj
;
3508 wxNativeFontInfo
* _arg0
;
3509 PyObject
* _argo0
= 0;
3510 char *_kwnames
[] = { "info", NULL
};
3514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3525 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3527 wxPyEndAllowThreads(__tstate
);
3528 if (PyErr_Occurred()) return NULL
;
3530 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3531 _resultobj
= Py_BuildValue("s",_ptemp
);
3534 _resultobj
= Py_None
;
3539 #define delete_wxFont(_swigobj) (delete _swigobj)
3540 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3541 PyObject
* _resultobj
;
3543 PyObject
* _argo0
= 0;
3544 char *_kwnames
[] = { "self", NULL
};
3547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3558 delete_wxFont(_arg0
);
3560 wxPyEndAllowThreads(__tstate
);
3561 if (PyErr_Occurred()) return NULL
;
3562 } Py_INCREF(Py_None
);
3563 _resultobj
= Py_None
;
3567 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3568 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3569 PyObject
* _resultobj
;
3572 PyObject
* _argo0
= 0;
3573 char *_kwnames
[] = { "self", NULL
};
3576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3586 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3587 _result
= (bool )wxFont_Ok(_arg0
);
3589 wxPyEndAllowThreads(__tstate
);
3590 if (PyErr_Occurred()) return NULL
;
3591 } _resultobj
= Py_BuildValue("i",_result
);
3595 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3596 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3597 PyObject
* _resultobj
;
3600 PyObject
* _argo0
= 0;
3601 char *_kwnames
[] = { "self", NULL
};
3604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3615 _result
= (int )wxFont_GetPointSize(_arg0
);
3617 wxPyEndAllowThreads(__tstate
);
3618 if (PyErr_Occurred()) return NULL
;
3619 } _resultobj
= Py_BuildValue("i",_result
);
3623 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3624 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3625 PyObject
* _resultobj
;
3628 PyObject
* _argo0
= 0;
3629 char *_kwnames
[] = { "self", NULL
};
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3643 _result
= (int )wxFont_GetFamily(_arg0
);
3645 wxPyEndAllowThreads(__tstate
);
3646 if (PyErr_Occurred()) return NULL
;
3647 } _resultobj
= Py_BuildValue("i",_result
);
3651 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3652 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3653 PyObject
* _resultobj
;
3656 PyObject
* _argo0
= 0;
3657 char *_kwnames
[] = { "self", NULL
};
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3671 _result
= (int )wxFont_GetStyle(_arg0
);
3673 wxPyEndAllowThreads(__tstate
);
3674 if (PyErr_Occurred()) return NULL
;
3675 } _resultobj
= Py_BuildValue("i",_result
);
3679 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3680 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3681 PyObject
* _resultobj
;
3684 PyObject
* _argo0
= 0;
3685 char *_kwnames
[] = { "self", NULL
};
3688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3699 _result
= (int )wxFont_GetWeight(_arg0
);
3701 wxPyEndAllowThreads(__tstate
);
3702 if (PyErr_Occurred()) return NULL
;
3703 } _resultobj
= Py_BuildValue("i",_result
);
3707 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3708 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3709 PyObject
* _resultobj
;
3712 PyObject
* _argo0
= 0;
3713 char *_kwnames
[] = { "self", NULL
};
3716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3727 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3729 wxPyEndAllowThreads(__tstate
);
3730 if (PyErr_Occurred()) return NULL
;
3731 } _resultobj
= Py_BuildValue("i",_result
);
3735 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3736 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3737 PyObject
* _resultobj
;
3740 PyObject
* _argo0
= 0;
3741 char *_kwnames
[] = { "self", NULL
};
3744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3755 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3757 wxPyEndAllowThreads(__tstate
);
3758 if (PyErr_Occurred()) return NULL
;
3760 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3768 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3769 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3770 PyObject
* _resultobj
;
3771 wxFontEncoding _result
;
3773 PyObject
* _argo0
= 0;
3774 char *_kwnames
[] = { "self", NULL
};
3777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3788 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3790 wxPyEndAllowThreads(__tstate
);
3791 if (PyErr_Occurred()) return NULL
;
3792 } _resultobj
= Py_BuildValue("i",_result
);
3796 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
3797 static PyObject
*_wrap_wxFont_IsFixedWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3798 PyObject
* _resultobj
;
3801 PyObject
* _argo0
= 0;
3802 char *_kwnames
[] = { "self", NULL
};
3805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_IsFixedWidth",_kwnames
,&_argo0
))
3808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
3815 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3816 _result
= (bool )wxFont_IsFixedWidth(_arg0
);
3818 wxPyEndAllowThreads(__tstate
);
3819 if (PyErr_Occurred()) return NULL
;
3820 } _resultobj
= Py_BuildValue("i",_result
);
3824 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3825 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3826 PyObject
* _resultobj
;
3827 wxNativeFontInfo
* _result
;
3829 PyObject
* _argo0
= 0;
3830 char *_kwnames
[] = { "self", NULL
};
3834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
3837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3845 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
3847 wxPyEndAllowThreads(__tstate
);
3848 if (PyErr_Occurred()) return NULL
;
3850 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3851 _resultobj
= Py_BuildValue("s",_ptemp
);
3854 _resultobj
= Py_None
;
3859 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3860 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3861 PyObject
* _resultobj
;
3864 PyObject
* _argo0
= 0;
3865 char *_kwnames
[] = { "self", NULL
};
3868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
3871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3879 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
3881 wxPyEndAllowThreads(__tstate
);
3882 if (PyErr_Occurred()) return NULL
;
3884 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3892 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3893 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3894 PyObject
* _resultobj
;
3897 PyObject
* _argo0
= 0;
3898 char *_kwnames
[] = { "self", NULL
};
3901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
3904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3912 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
3914 wxPyEndAllowThreads(__tstate
);
3915 if (PyErr_Occurred()) return NULL
;
3917 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3925 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3926 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3927 PyObject
* _resultobj
;
3930 PyObject
* _argo0
= 0;
3931 char *_kwnames
[] = { "self","pointSize", NULL
};
3934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3945 wxFont_SetPointSize(_arg0
,_arg1
);
3947 wxPyEndAllowThreads(__tstate
);
3948 if (PyErr_Occurred()) return NULL
;
3949 } Py_INCREF(Py_None
);
3950 _resultobj
= Py_None
;
3954 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3955 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3956 PyObject
* _resultobj
;
3959 PyObject
* _argo0
= 0;
3960 char *_kwnames
[] = { "self","family", NULL
};
3963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3974 wxFont_SetFamily(_arg0
,_arg1
);
3976 wxPyEndAllowThreads(__tstate
);
3977 if (PyErr_Occurred()) return NULL
;
3978 } Py_INCREF(Py_None
);
3979 _resultobj
= Py_None
;
3983 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3984 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3985 PyObject
* _resultobj
;
3988 PyObject
* _argo0
= 0;
3989 char *_kwnames
[] = { "self","style", NULL
};
3992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4003 wxFont_SetStyle(_arg0
,_arg1
);
4005 wxPyEndAllowThreads(__tstate
);
4006 if (PyErr_Occurred()) return NULL
;
4007 } Py_INCREF(Py_None
);
4008 _resultobj
= Py_None
;
4012 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4013 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
* _resultobj
;
4017 PyObject
* _argo0
= 0;
4018 char *_kwnames
[] = { "self","weight", NULL
};
4021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4032 wxFont_SetWeight(_arg0
,_arg1
);
4034 wxPyEndAllowThreads(__tstate
);
4035 if (PyErr_Occurred()) return NULL
;
4036 } Py_INCREF(Py_None
);
4037 _resultobj
= Py_None
;
4041 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4042 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4043 PyObject
* _resultobj
;
4046 PyObject
* _argo0
= 0;
4047 PyObject
* _obj1
= 0;
4048 char *_kwnames
[] = { "self","faceName", NULL
};
4051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4061 #if PYTHON_API_VERSION >= 1009
4062 char* tmpPtr
; int tmpSize
;
4063 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4064 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4067 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4069 _arg1
= new wxString(tmpPtr
, tmpSize
);
4071 if (!PyString_Check(_obj1
)) {
4072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4075 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4080 wxFont_SetFaceName(_arg0
,*_arg1
);
4082 wxPyEndAllowThreads(__tstate
);
4083 if (PyErr_Occurred()) return NULL
;
4084 } Py_INCREF(Py_None
);
4085 _resultobj
= Py_None
;
4093 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4094 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4095 PyObject
* _resultobj
;
4098 PyObject
* _argo0
= 0;
4100 char *_kwnames
[] = { "self","underlined", NULL
};
4103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4112 _arg1
= (bool ) tempbool1
;
4114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4115 wxFont_SetUnderlined(_arg0
,_arg1
);
4117 wxPyEndAllowThreads(__tstate
);
4118 if (PyErr_Occurred()) return NULL
;
4119 } Py_INCREF(Py_None
);
4120 _resultobj
= Py_None
;
4124 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4125 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4126 PyObject
* _resultobj
;
4128 wxFontEncoding _arg1
;
4129 PyObject
* _argo0
= 0;
4130 char *_kwnames
[] = { "self","encoding", NULL
};
4133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4144 wxFont_SetEncoding(_arg0
,_arg1
);
4146 wxPyEndAllowThreads(__tstate
);
4147 if (PyErr_Occurred()) return NULL
;
4148 } Py_INCREF(Py_None
);
4149 _resultobj
= Py_None
;
4153 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4154 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4155 PyObject
* _resultobj
;
4157 wxNativeFontInfo
* _arg1
;
4158 PyObject
* _argo0
= 0;
4159 PyObject
* _argo1
= 0;
4160 char *_kwnames
[] = { "self","info", NULL
};
4163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4173 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4174 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4181 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4183 wxPyEndAllowThreads(__tstate
);
4184 if (PyErr_Occurred()) return NULL
;
4185 } Py_INCREF(Py_None
);
4186 _resultobj
= Py_None
;
4190 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4191 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4192 PyObject
* _resultobj
;
4195 PyObject
* _argo0
= 0;
4196 PyObject
* _obj1
= 0;
4197 char *_kwnames
[] = { "self","info", NULL
};
4200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
4203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4210 #if PYTHON_API_VERSION >= 1009
4211 char* tmpPtr
; int tmpSize
;
4212 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4213 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4216 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4218 _arg1
= new wxString(tmpPtr
, tmpSize
);
4220 if (!PyString_Check(_obj1
)) {
4221 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4224 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4229 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
4231 wxPyEndAllowThreads(__tstate
);
4232 if (PyErr_Occurred()) return NULL
;
4233 } Py_INCREF(Py_None
);
4234 _resultobj
= Py_None
;
4242 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4243 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4244 PyObject
* _resultobj
;
4247 PyObject
* _argo0
= 0;
4248 char *_kwnames
[] = { "self", NULL
};
4251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4262 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4264 wxPyEndAllowThreads(__tstate
);
4265 if (PyErr_Occurred()) return NULL
;
4267 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4275 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4276 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4277 PyObject
* _resultobj
;
4280 PyObject
* _argo0
= 0;
4281 char *_kwnames
[] = { "self", NULL
};
4284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4295 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4297 wxPyEndAllowThreads(__tstate
);
4298 if (PyErr_Occurred()) return NULL
;
4300 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4308 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4309 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4310 PyObject
* _resultobj
;
4313 PyObject
* _argo0
= 0;
4314 char *_kwnames
[] = { "self", NULL
};
4317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4328 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4330 wxPyEndAllowThreads(__tstate
);
4331 if (PyErr_Occurred()) return NULL
;
4333 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4341 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4342 PyObject
* _resultobj
;
4343 wxFontEncoding _result
;
4344 char *_kwnames
[] = { NULL
};
4347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4351 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4353 wxPyEndAllowThreads(__tstate
);
4354 if (PyErr_Occurred()) return NULL
;
4355 } _resultobj
= Py_BuildValue("i",_result
);
4359 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4360 PyObject
* _resultobj
;
4361 wxFontEncoding _arg0
;
4362 char *_kwnames
[] = { "encoding", NULL
};
4365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4369 wxFont::SetDefaultEncoding(_arg0
);
4371 wxPyEndAllowThreads(__tstate
);
4372 if (PyErr_Occurred()) return NULL
;
4373 } Py_INCREF(Py_None
);
4374 _resultobj
= Py_None
;
4378 static void *SwigwxFontListTowxObject(void *ptr
) {
4381 src
= (wxFontList
*) ptr
;
4382 dest
= (wxObject
*) src
;
4383 return (void *) dest
;
4386 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4387 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4388 PyObject
* _resultobj
;
4391 PyObject
* _argo0
= 0;
4392 PyObject
* _argo1
= 0;
4393 char *_kwnames
[] = { "self","font", NULL
};
4396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4406 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4407 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4414 wxFontList_AddFont(_arg0
,_arg1
);
4416 wxPyEndAllowThreads(__tstate
);
4417 if (PyErr_Occurred()) return NULL
;
4418 } Py_INCREF(Py_None
);
4419 _resultobj
= Py_None
;
4423 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4424 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4425 PyObject
* _resultobj
;
4432 bool _arg5
= (bool ) FALSE
;
4433 char * _arg6
= (char *) NULL
;
4434 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4435 PyObject
* _argo0
= 0;
4436 int tempbool5
= (int) FALSE
;
4437 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4450 _arg5
= (bool ) tempbool5
;
4452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4453 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4455 wxPyEndAllowThreads(__tstate
);
4456 if (PyErr_Occurred()) return NULL
;
4458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4459 _resultobj
= Py_BuildValue("s",_ptemp
);
4462 _resultobj
= Py_None
;
4467 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4468 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4469 PyObject
* _resultobj
;
4472 PyObject
* _argo0
= 0;
4473 PyObject
* _argo1
= 0;
4474 char *_kwnames
[] = { "self","font", NULL
};
4477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4487 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4488 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4495 wxFontList_RemoveFont(_arg0
,_arg1
);
4497 wxPyEndAllowThreads(__tstate
);
4498 if (PyErr_Occurred()) return NULL
;
4499 } Py_INCREF(Py_None
);
4500 _resultobj
= Py_None
;
4504 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4505 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4506 PyObject
* _resultobj
;
4509 PyObject
* _argo0
= 0;
4510 char *_kwnames
[] = { "self", NULL
};
4513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
4516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4524 _result
= (int )wxFontList_GetCount(_arg0
);
4526 wxPyEndAllowThreads(__tstate
);
4527 if (PyErr_Occurred()) return NULL
;
4528 } _resultobj
= Py_BuildValue("i",_result
);
4532 static void *SwigwxColourTowxObject(void *ptr
) {
4535 src
= (wxColour
*) ptr
;
4536 dest
= (wxObject
*) src
;
4537 return (void *) dest
;
4540 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4541 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4542 PyObject
* _resultobj
;
4544 unsigned char _arg0
= (unsigned char ) 0;
4545 unsigned char _arg1
= (unsigned char ) 0;
4546 unsigned char _arg2
= (unsigned char ) 0;
4547 char *_kwnames
[] = { "red","green","blue", NULL
};
4551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4555 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4557 wxPyEndAllowThreads(__tstate
);
4558 if (PyErr_Occurred()) return NULL
;
4560 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4561 _resultobj
= Py_BuildValue("s",_ptemp
);
4564 _resultobj
= Py_None
;
4569 #define delete_wxColour(_swigobj) (delete _swigobj)
4570 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4571 PyObject
* _resultobj
;
4574 PyObject
* _obj0
= 0;
4575 char *_kwnames
[] = { "self", NULL
};
4578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4582 if (! wxColour_helper(_obj0
, &_arg0
))
4586 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4587 delete_wxColour(_arg0
);
4589 wxPyEndAllowThreads(__tstate
);
4590 if (PyErr_Occurred()) return NULL
;
4591 } Py_INCREF(Py_None
);
4592 _resultobj
= Py_None
;
4596 #define wxColour_Red(_swigobj) (_swigobj->Red())
4597 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4598 PyObject
* _resultobj
;
4599 unsigned char _result
;
4602 PyObject
* _obj0
= 0;
4603 char *_kwnames
[] = { "self", NULL
};
4606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4610 if (! wxColour_helper(_obj0
, &_arg0
))
4614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4615 _result
= (unsigned char )wxColour_Red(_arg0
);
4617 wxPyEndAllowThreads(__tstate
);
4618 if (PyErr_Occurred()) return NULL
;
4619 } _resultobj
= Py_BuildValue("b",_result
);
4623 #define wxColour_Green(_swigobj) (_swigobj->Green())
4624 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4625 PyObject
* _resultobj
;
4626 unsigned char _result
;
4629 PyObject
* _obj0
= 0;
4630 char *_kwnames
[] = { "self", NULL
};
4633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4637 if (! wxColour_helper(_obj0
, &_arg0
))
4641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4642 _result
= (unsigned char )wxColour_Green(_arg0
);
4644 wxPyEndAllowThreads(__tstate
);
4645 if (PyErr_Occurred()) return NULL
;
4646 } _resultobj
= Py_BuildValue("b",_result
);
4650 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4651 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4652 PyObject
* _resultobj
;
4653 unsigned char _result
;
4656 PyObject
* _obj0
= 0;
4657 char *_kwnames
[] = { "self", NULL
};
4660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4664 if (! wxColour_helper(_obj0
, &_arg0
))
4668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4669 _result
= (unsigned char )wxColour_Blue(_arg0
);
4671 wxPyEndAllowThreads(__tstate
);
4672 if (PyErr_Occurred()) return NULL
;
4673 } _resultobj
= Py_BuildValue("b",_result
);
4677 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4678 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4679 PyObject
* _resultobj
;
4683 PyObject
* _obj0
= 0;
4684 char *_kwnames
[] = { "self", NULL
};
4687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4691 if (! wxColour_helper(_obj0
, &_arg0
))
4695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4696 _result
= (bool )wxColour_Ok(_arg0
);
4698 wxPyEndAllowThreads(__tstate
);
4699 if (PyErr_Occurred()) return NULL
;
4700 } _resultobj
= Py_BuildValue("i",_result
);
4704 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4705 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4706 PyObject
* _resultobj
;
4708 unsigned char _arg1
;
4709 unsigned char _arg2
;
4710 unsigned char _arg3
;
4712 PyObject
* _obj0
= 0;
4713 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4720 if (! wxColour_helper(_obj0
, &_arg0
))
4724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4725 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4727 wxPyEndAllowThreads(__tstate
);
4728 if (PyErr_Occurred()) return NULL
;
4729 } Py_INCREF(Py_None
);
4730 _resultobj
= Py_None
;
4734 static PyObject
* wxColour_Get(wxColour
*self
) {
4735 PyObject
* rv
= PyTuple_New(3);
4736 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4737 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4738 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4741 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4742 PyObject
* _resultobj
;
4746 PyObject
* _obj0
= 0;
4747 char *_kwnames
[] = { "self", NULL
};
4750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4754 if (! wxColour_helper(_obj0
, &_arg0
))
4758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4759 _result
= (PyObject
*)wxColour_Get(_arg0
);
4761 wxPyEndAllowThreads(__tstate
);
4762 if (PyErr_Occurred()) return NULL
;
4764 _resultobj
= _result
;
4769 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4770 wxColourDatabase
*src
;
4772 src
= (wxColourDatabase
*) ptr
;
4773 dest
= (wxObject
*) src
;
4774 return (void *) dest
;
4777 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4778 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4779 PyObject
* _resultobj
;
4781 wxColourDatabase
* _arg0
;
4783 PyObject
* _argo0
= 0;
4784 PyObject
* _obj1
= 0;
4785 char *_kwnames
[] = { "self","colour", NULL
};
4789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4799 #if PYTHON_API_VERSION >= 1009
4800 char* tmpPtr
; int tmpSize
;
4801 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4802 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4805 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4807 _arg1
= new wxString(tmpPtr
, tmpSize
);
4809 if (!PyString_Check(_obj1
)) {
4810 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4813 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4818 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4820 wxPyEndAllowThreads(__tstate
);
4821 if (PyErr_Occurred()) return NULL
;
4823 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4824 _resultobj
= Py_BuildValue("s",_ptemp
);
4827 _resultobj
= Py_None
;
4836 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4837 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4838 PyObject
* _resultobj
;
4840 wxColourDatabase
* _arg0
;
4842 PyObject
* _argo0
= 0;
4844 PyObject
* _obj1
= 0;
4845 char *_kwnames
[] = { "self","colour", NULL
};
4848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4859 if (! wxColour_helper(_obj1
, &_arg1
))
4863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4864 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4866 wxPyEndAllowThreads(__tstate
);
4867 if (PyErr_Occurred()) return NULL
;
4869 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4877 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4878 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4880 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4881 PyObject
* _resultobj
;
4882 wxColourDatabase
* _arg0
;
4887 PyObject
* _argo0
= 0;
4888 PyObject
* _obj1
= 0;
4889 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4902 #if PYTHON_API_VERSION >= 1009
4903 char* tmpPtr
; int tmpSize
;
4904 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4905 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4908 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4910 _arg1
= new wxString(tmpPtr
, tmpSize
);
4912 if (!PyString_Check(_obj1
)) {
4913 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4916 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4921 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4923 wxPyEndAllowThreads(__tstate
);
4924 if (PyErr_Occurred()) return NULL
;
4925 } Py_INCREF(Py_None
);
4926 _resultobj
= Py_None
;
4934 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4937 src
= (wxPen
*) ptr
;
4938 dest
= (wxGDIObject
*) src
;
4939 return (void *) dest
;
4942 static void *SwigwxPenTowxObject(void *ptr
) {
4945 src
= (wxPen
*) ptr
;
4946 dest
= (wxObject
*) src
;
4947 return (void *) dest
;
4950 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4951 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4952 PyObject
* _resultobj
;
4955 int _arg1
= (int ) 1;
4956 int _arg2
= (int ) wxSOLID
;
4958 PyObject
* _obj0
= 0;
4959 char *_kwnames
[] = { "colour","width","style", NULL
};
4963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4967 if (! wxColour_helper(_obj0
, &_arg0
))
4971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4972 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4974 wxPyEndAllowThreads(__tstate
);
4975 if (PyErr_Occurred()) return NULL
;
4977 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4978 _resultobj
= Py_BuildValue("s",_ptemp
);
4981 _resultobj
= Py_None
;
4986 #define delete_wxPen(_swigobj) (delete _swigobj)
4987 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4988 PyObject
* _resultobj
;
4990 PyObject
* _argo0
= 0;
4991 char *_kwnames
[] = { "self", NULL
};
4994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5005 delete_wxPen(_arg0
);
5007 wxPyEndAllowThreads(__tstate
);
5008 if (PyErr_Occurred()) return NULL
;
5009 } Py_INCREF(Py_None
);
5010 _resultobj
= Py_None
;
5014 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5015 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5016 PyObject
* _resultobj
;
5019 PyObject
* _argo0
= 0;
5020 char *_kwnames
[] = { "self", NULL
};
5023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5034 _result
= (int )wxPen_GetCap(_arg0
);
5036 wxPyEndAllowThreads(__tstate
);
5037 if (PyErr_Occurred()) return NULL
;
5038 } _resultobj
= Py_BuildValue("i",_result
);
5042 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5043 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5044 PyObject
* _resultobj
;
5047 PyObject
* _argo0
= 0;
5048 char *_kwnames
[] = { "self", NULL
};
5052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5063 _result
= new wxColour (wxPen_GetColour(_arg0
));
5065 wxPyEndAllowThreads(__tstate
);
5066 if (PyErr_Occurred()) return NULL
;
5067 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5068 _resultobj
= Py_BuildValue("s",_ptemp
);
5072 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5073 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5074 PyObject
* _resultobj
;
5077 PyObject
* _argo0
= 0;
5078 char *_kwnames
[] = { "self", NULL
};
5081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5092 _result
= (int )wxPen_GetJoin(_arg0
);
5094 wxPyEndAllowThreads(__tstate
);
5095 if (PyErr_Occurred()) return NULL
;
5096 } _resultobj
= Py_BuildValue("i",_result
);
5100 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5101 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5102 PyObject
* _resultobj
;
5105 PyObject
* _argo0
= 0;
5106 char *_kwnames
[] = { "self", NULL
};
5109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5120 _result
= (int )wxPen_GetStyle(_arg0
);
5122 wxPyEndAllowThreads(__tstate
);
5123 if (PyErr_Occurred()) return NULL
;
5124 } _resultobj
= Py_BuildValue("i",_result
);
5128 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5129 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5130 PyObject
* _resultobj
;
5133 PyObject
* _argo0
= 0;
5134 char *_kwnames
[] = { "self", NULL
};
5137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5148 _result
= (int )wxPen_GetWidth(_arg0
);
5150 wxPyEndAllowThreads(__tstate
);
5151 if (PyErr_Occurred()) return NULL
;
5152 } _resultobj
= Py_BuildValue("i",_result
);
5156 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5157 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5158 PyObject
* _resultobj
;
5161 PyObject
* _argo0
= 0;
5162 char *_kwnames
[] = { "self", NULL
};
5165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5176 _result
= (bool )wxPen_Ok(_arg0
);
5178 wxPyEndAllowThreads(__tstate
);
5179 if (PyErr_Occurred()) return NULL
;
5180 } _resultobj
= Py_BuildValue("i",_result
);
5184 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5185 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5186 PyObject
* _resultobj
;
5189 PyObject
* _argo0
= 0;
5190 char *_kwnames
[] = { "self","cap_style", NULL
};
5193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5204 wxPen_SetCap(_arg0
,_arg1
);
5206 wxPyEndAllowThreads(__tstate
);
5207 if (PyErr_Occurred()) return NULL
;
5208 } Py_INCREF(Py_None
);
5209 _resultobj
= Py_None
;
5213 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5214 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5215 PyObject
* _resultobj
;
5218 PyObject
* _argo0
= 0;
5220 PyObject
* _obj1
= 0;
5221 char *_kwnames
[] = { "self","colour", NULL
};
5224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
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 wxPen_SetColour. Expected _wxPen_p.");
5235 if (! wxColour_helper(_obj1
, &_arg1
))
5239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5240 wxPen_SetColour(_arg0
,*_arg1
);
5242 wxPyEndAllowThreads(__tstate
);
5243 if (PyErr_Occurred()) return NULL
;
5244 } Py_INCREF(Py_None
);
5245 _resultobj
= Py_None
;
5249 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5250 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5251 PyObject
* _resultobj
;
5254 PyObject
* _argo0
= 0;
5255 char *_kwnames
[] = { "self","join_style", NULL
};
5258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5269 wxPen_SetJoin(_arg0
,_arg1
);
5271 wxPyEndAllowThreads(__tstate
);
5272 if (PyErr_Occurred()) return NULL
;
5273 } Py_INCREF(Py_None
);
5274 _resultobj
= Py_None
;
5278 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5279 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5280 PyObject
* _resultobj
;
5283 PyObject
* _argo0
= 0;
5284 char *_kwnames
[] = { "self","style", NULL
};
5287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5298 wxPen_SetStyle(_arg0
,_arg1
);
5300 wxPyEndAllowThreads(__tstate
);
5301 if (PyErr_Occurred()) return NULL
;
5302 } Py_INCREF(Py_None
);
5303 _resultobj
= Py_None
;
5307 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5308 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5309 PyObject
* _resultobj
;
5312 PyObject
* _argo0
= 0;
5313 char *_kwnames
[] = { "self","width", NULL
};
5316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5327 wxPen_SetWidth(_arg0
,_arg1
);
5329 wxPyEndAllowThreads(__tstate
);
5330 if (PyErr_Occurred()) return NULL
;
5331 } Py_INCREF(Py_None
);
5332 _resultobj
= Py_None
;
5336 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5337 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5338 PyObject
* _resultobj
;
5342 PyObject
* _argo0
= 0;
5343 PyObject
* _obj2
= 0;
5344 char *_kwnames
[] = { "self","choices", NULL
};
5347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5358 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5359 if (_arg2
== NULL
) {
5365 _arg1
= PyList_Size(_obj2
);
5372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5373 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5375 wxPyEndAllowThreads(__tstate
);
5376 if (PyErr_Occurred()) return NULL
;
5377 } Py_INCREF(Py_None
);
5378 _resultobj
= Py_None
;
5385 static void *SwigwxPyPenTowxPen(void *ptr
) {
5388 src
= (wxPyPen
*) ptr
;
5389 dest
= (wxPen
*) src
;
5390 return (void *) dest
;
5393 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5396 src
= (wxPyPen
*) ptr
;
5397 dest
= (wxGDIObject
*) src
;
5398 return (void *) dest
;
5401 static void *SwigwxPyPenTowxObject(void *ptr
) {
5404 src
= (wxPyPen
*) ptr
;
5405 dest
= (wxObject
*) src
;
5406 return (void *) dest
;
5409 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5410 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5411 PyObject
* _resultobj
;
5414 int _arg1
= (int ) 1;
5415 int _arg2
= (int ) wxSOLID
;
5417 PyObject
* _obj0
= 0;
5418 char *_kwnames
[] = { "colour","width","style", NULL
};
5422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5426 if (! wxColour_helper(_obj0
, &_arg0
))
5430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5431 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5433 wxPyEndAllowThreads(__tstate
);
5434 if (PyErr_Occurred()) return NULL
;
5436 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5437 _resultobj
= Py_BuildValue("s",_ptemp
);
5440 _resultobj
= Py_None
;
5445 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5446 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5447 PyObject
* _resultobj
;
5449 PyObject
* _argo0
= 0;
5450 char *_kwnames
[] = { "self", NULL
};
5453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5464 delete_wxPyPen(_arg0
);
5466 wxPyEndAllowThreads(__tstate
);
5467 if (PyErr_Occurred()) return NULL
;
5468 } Py_INCREF(Py_None
);
5469 _resultobj
= Py_None
;
5473 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5474 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5475 PyObject
* _resultobj
;
5479 PyObject
* _argo0
= 0;
5480 PyObject
* _obj2
= 0;
5481 char *_kwnames
[] = { "self","choices", NULL
};
5484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5495 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5496 if (_arg2
== NULL
) {
5502 _arg1
= PyList_Size(_obj2
);
5509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5510 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5512 wxPyEndAllowThreads(__tstate
);
5513 if (PyErr_Occurred()) return NULL
;
5514 } Py_INCREF(Py_None
);
5515 _resultobj
= Py_None
;
5522 static void *SwigwxPenListTowxObject(void *ptr
) {
5525 src
= (wxPenList
*) ptr
;
5526 dest
= (wxObject
*) src
;
5527 return (void *) dest
;
5530 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5531 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5532 PyObject
* _resultobj
;
5535 PyObject
* _argo0
= 0;
5536 PyObject
* _argo1
= 0;
5537 char *_kwnames
[] = { "self","pen", NULL
};
5540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5550 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5551 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5558 wxPenList_AddPen(_arg0
,_arg1
);
5560 wxPyEndAllowThreads(__tstate
);
5561 if (PyErr_Occurred()) return NULL
;
5562 } Py_INCREF(Py_None
);
5563 _resultobj
= Py_None
;
5567 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5568 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5569 PyObject
* _resultobj
;
5575 PyObject
* _argo0
= 0;
5577 PyObject
* _obj1
= 0;
5578 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5593 if (! wxColour_helper(_obj1
, &_arg1
))
5597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5598 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5600 wxPyEndAllowThreads(__tstate
);
5601 if (PyErr_Occurred()) return NULL
;
5603 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5604 _resultobj
= Py_BuildValue("s",_ptemp
);
5607 _resultobj
= Py_None
;
5612 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5613 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5614 PyObject
* _resultobj
;
5617 PyObject
* _argo0
= 0;
5618 PyObject
* _argo1
= 0;
5619 char *_kwnames
[] = { "self","pen", NULL
};
5622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5632 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5633 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5640 wxPenList_RemovePen(_arg0
,_arg1
);
5642 wxPyEndAllowThreads(__tstate
);
5643 if (PyErr_Occurred()) return NULL
;
5644 } Py_INCREF(Py_None
);
5645 _resultobj
= Py_None
;
5649 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5650 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5651 PyObject
* _resultobj
;
5654 PyObject
* _argo0
= 0;
5655 char *_kwnames
[] = { "self", NULL
};
5658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5669 _result
= (int )wxPenList_GetCount(_arg0
);
5671 wxPyEndAllowThreads(__tstate
);
5672 if (PyErr_Occurred()) return NULL
;
5673 } _resultobj
= Py_BuildValue("i",_result
);
5677 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5680 src
= (wxBrush
*) ptr
;
5681 dest
= (wxGDIObject
*) src
;
5682 return (void *) dest
;
5685 static void *SwigwxBrushTowxObject(void *ptr
) {
5688 src
= (wxBrush
*) ptr
;
5689 dest
= (wxObject
*) src
;
5690 return (void *) dest
;
5693 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5694 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5695 PyObject
* _resultobj
;
5698 int _arg1
= (int ) wxSOLID
;
5700 PyObject
* _obj0
= 0;
5701 char *_kwnames
[] = { "colour","style", NULL
};
5705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5709 if (! wxColour_helper(_obj0
, &_arg0
))
5713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5714 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5716 wxPyEndAllowThreads(__tstate
);
5717 if (PyErr_Occurred()) return NULL
;
5719 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5720 _resultobj
= Py_BuildValue("s",_ptemp
);
5723 _resultobj
= Py_None
;
5728 #define delete_wxBrush(_swigobj) (delete _swigobj)
5729 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5730 PyObject
* _resultobj
;
5732 PyObject
* _argo0
= 0;
5733 char *_kwnames
[] = { "self", NULL
};
5736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5747 delete_wxBrush(_arg0
);
5749 wxPyEndAllowThreads(__tstate
);
5750 if (PyErr_Occurred()) return NULL
;
5751 } Py_INCREF(Py_None
);
5752 _resultobj
= Py_None
;
5756 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5757 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5758 PyObject
* _resultobj
;
5761 PyObject
* _argo0
= 0;
5762 char *_kwnames
[] = { "self", NULL
};
5766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5777 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5779 wxPyEndAllowThreads(__tstate
);
5780 if (PyErr_Occurred()) return NULL
;
5781 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5782 _resultobj
= Py_BuildValue("s",_ptemp
);
5786 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5787 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5788 PyObject
* _resultobj
;
5791 PyObject
* _argo0
= 0;
5792 char *_kwnames
[] = { "self", NULL
};
5796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5807 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5809 wxPyEndAllowThreads(__tstate
);
5810 if (PyErr_Occurred()) return NULL
;
5812 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5813 _resultobj
= Py_BuildValue("s",_ptemp
);
5816 _resultobj
= Py_None
;
5821 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5822 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5823 PyObject
* _resultobj
;
5826 PyObject
* _argo0
= 0;
5827 char *_kwnames
[] = { "self", NULL
};
5830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5841 _result
= (int )wxBrush_GetStyle(_arg0
);
5843 wxPyEndAllowThreads(__tstate
);
5844 if (PyErr_Occurred()) return NULL
;
5845 } _resultobj
= Py_BuildValue("i",_result
);
5849 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5850 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5851 PyObject
* _resultobj
;
5854 PyObject
* _argo0
= 0;
5855 char *_kwnames
[] = { "self", NULL
};
5858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5868 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5869 _result
= (bool )wxBrush_Ok(_arg0
);
5871 wxPyEndAllowThreads(__tstate
);
5872 if (PyErr_Occurred()) return NULL
;
5873 } _resultobj
= Py_BuildValue("i",_result
);
5877 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5878 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5879 PyObject
* _resultobj
;
5882 PyObject
* _argo0
= 0;
5884 PyObject
* _obj1
= 0;
5885 char *_kwnames
[] = { "self","colour", NULL
};
5888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5899 if (! wxColour_helper(_obj1
, &_arg1
))
5903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5904 wxBrush_SetColour(_arg0
,*_arg1
);
5906 wxPyEndAllowThreads(__tstate
);
5907 if (PyErr_Occurred()) return NULL
;
5908 } Py_INCREF(Py_None
);
5909 _resultobj
= Py_None
;
5913 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5914 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5915 PyObject
* _resultobj
;
5918 PyObject
* _argo0
= 0;
5919 PyObject
* _argo1
= 0;
5920 char *_kwnames
[] = { "self","bitmap", NULL
};
5923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5933 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5934 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5941 wxBrush_SetStipple(_arg0
,*_arg1
);
5943 wxPyEndAllowThreads(__tstate
);
5944 if (PyErr_Occurred()) return NULL
;
5945 } Py_INCREF(Py_None
);
5946 _resultobj
= Py_None
;
5950 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5951 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5952 PyObject
* _resultobj
;
5955 PyObject
* _argo0
= 0;
5956 char *_kwnames
[] = { "self","style", NULL
};
5959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5970 wxBrush_SetStyle(_arg0
,_arg1
);
5972 wxPyEndAllowThreads(__tstate
);
5973 if (PyErr_Occurred()) return NULL
;
5974 } Py_INCREF(Py_None
);
5975 _resultobj
= Py_None
;
5979 static void *SwigwxBrushListTowxObject(void *ptr
) {
5982 src
= (wxBrushList
*) ptr
;
5983 dest
= (wxObject
*) src
;
5984 return (void *) dest
;
5987 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5988 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5989 PyObject
* _resultobj
;
5990 wxBrushList
* _arg0
;
5992 PyObject
* _argo0
= 0;
5993 PyObject
* _argo1
= 0;
5994 char *_kwnames
[] = { "self","brush", NULL
};
5997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6007 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6008 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6015 wxBrushList_AddBrush(_arg0
,_arg1
);
6017 wxPyEndAllowThreads(__tstate
);
6018 if (PyErr_Occurred()) return NULL
;
6019 } Py_INCREF(Py_None
);
6020 _resultobj
= Py_None
;
6024 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6025 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6026 PyObject
* _resultobj
;
6028 wxBrushList
* _arg0
;
6031 PyObject
* _argo0
= 0;
6033 PyObject
* _obj1
= 0;
6034 char *_kwnames
[] = { "self","colour","style", NULL
};
6038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6049 if (! wxColour_helper(_obj1
, &_arg1
))
6053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6054 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6056 wxPyEndAllowThreads(__tstate
);
6057 if (PyErr_Occurred()) return NULL
;
6059 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6060 _resultobj
= Py_BuildValue("s",_ptemp
);
6063 _resultobj
= Py_None
;
6068 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6069 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6070 PyObject
* _resultobj
;
6071 wxBrushList
* _arg0
;
6073 PyObject
* _argo0
= 0;
6074 PyObject
* _argo1
= 0;
6075 char *_kwnames
[] = { "self","brush", NULL
};
6078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6088 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6089 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6096 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6098 wxPyEndAllowThreads(__tstate
);
6099 if (PyErr_Occurred()) return NULL
;
6100 } Py_INCREF(Py_None
);
6101 _resultobj
= Py_None
;
6105 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6106 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6107 PyObject
* _resultobj
;
6109 wxBrushList
* _arg0
;
6110 PyObject
* _argo0
= 0;
6111 char *_kwnames
[] = { "self", NULL
};
6114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
6117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6125 _result
= (int )wxBrushList_GetCount(_arg0
);
6127 wxPyEndAllowThreads(__tstate
);
6128 if (PyErr_Occurred()) return NULL
;
6129 } _resultobj
= Py_BuildValue("i",_result
);
6133 static void *SwigwxDCTowxObject(void *ptr
) {
6137 dest
= (wxObject
*) src
;
6138 return (void *) dest
;
6141 #define delete_wxDC(_swigobj) (delete _swigobj)
6142 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6143 PyObject
* _resultobj
;
6145 PyObject
* _argo0
= 0;
6146 char *_kwnames
[] = { "self", NULL
};
6149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6162 wxPyEndAllowThreads(__tstate
);
6163 if (PyErr_Occurred()) return NULL
;
6164 } Py_INCREF(Py_None
);
6165 _resultobj
= Py_None
;
6169 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6170 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6171 PyObject
* _resultobj
;
6173 PyObject
* _argo0
= 0;
6174 char *_kwnames
[] = { "self", NULL
};
6177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6188 wxDC_BeginDrawing(_arg0
);
6190 wxPyEndAllowThreads(__tstate
);
6191 if (PyErr_Occurred()) return NULL
;
6192 } Py_INCREF(Py_None
);
6193 _resultobj
= Py_None
;
6197 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6198 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6199 PyObject
* _resultobj
;
6209 int _arg8
= (int ) wxCOPY
;
6210 int _arg9
= (int ) FALSE
;
6211 PyObject
* _argo0
= 0;
6212 PyObject
* _argo5
= 0;
6213 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6226 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6227 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6234 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6236 wxPyEndAllowThreads(__tstate
);
6237 if (PyErr_Occurred()) return NULL
;
6238 } _resultobj
= Py_BuildValue("i",_result
);
6242 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6243 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6244 PyObject
* _resultobj
;
6246 PyObject
* _argo0
= 0;
6247 char *_kwnames
[] = { "self", NULL
};
6250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6263 wxPyEndAllowThreads(__tstate
);
6264 if (PyErr_Occurred()) return NULL
;
6265 } Py_INCREF(Py_None
);
6266 _resultobj
= Py_None
;
6270 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6271 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6272 PyObject
* _resultobj
;
6276 PyObject
* _argo0
= 0;
6277 char *_kwnames
[] = { "self","x","y", NULL
};
6280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6291 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6293 wxPyEndAllowThreads(__tstate
);
6294 if (PyErr_Occurred()) return NULL
;
6295 } Py_INCREF(Py_None
);
6296 _resultobj
= Py_None
;
6300 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6301 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6302 PyObject
* _resultobj
;
6304 PyObject
* _argo0
= 0;
6305 char *_kwnames
[] = { "self", NULL
};
6308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6319 wxDC_DestroyClippingRegion(_arg0
);
6321 wxPyEndAllowThreads(__tstate
);
6322 if (PyErr_Occurred()) return NULL
;
6323 } Py_INCREF(Py_None
);
6324 _resultobj
= Py_None
;
6328 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6329 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6330 PyObject
* _resultobj
;
6334 PyObject
* _argo0
= 0;
6335 char *_kwnames
[] = { "self","x", NULL
};
6338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6349 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6351 wxPyEndAllowThreads(__tstate
);
6352 if (PyErr_Occurred()) return NULL
;
6353 } _resultobj
= Py_BuildValue("l",_result
);
6357 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6358 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6359 PyObject
* _resultobj
;
6363 PyObject
* _argo0
= 0;
6364 char *_kwnames
[] = { "self","x", NULL
};
6367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6378 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6380 wxPyEndAllowThreads(__tstate
);
6381 if (PyErr_Occurred()) return NULL
;
6382 } _resultobj
= Py_BuildValue("l",_result
);
6386 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6387 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6388 PyObject
* _resultobj
;
6392 PyObject
* _argo0
= 0;
6393 char *_kwnames
[] = { "self","y", NULL
};
6396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6407 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6409 wxPyEndAllowThreads(__tstate
);
6410 if (PyErr_Occurred()) return NULL
;
6411 } _resultobj
= Py_BuildValue("l",_result
);
6415 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6416 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6417 PyObject
* _resultobj
;
6421 PyObject
* _argo0
= 0;
6422 char *_kwnames
[] = { "self","y", NULL
};
6425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6436 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6438 wxPyEndAllowThreads(__tstate
);
6439 if (PyErr_Occurred()) return NULL
;
6440 } _resultobj
= Py_BuildValue("l",_result
);
6444 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6445 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6446 PyObject
* _resultobj
;
6454 PyObject
* _argo0
= 0;
6455 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6469 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6471 wxPyEndAllowThreads(__tstate
);
6472 if (PyErr_Occurred()) return NULL
;
6473 } Py_INCREF(Py_None
);
6474 _resultobj
= Py_None
;
6478 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6479 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6480 PyObject
* _resultobj
;
6485 PyObject
* _argo0
= 0;
6486 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6500 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6502 wxPyEndAllowThreads(__tstate
);
6503 if (PyErr_Occurred()) return NULL
;
6504 } Py_INCREF(Py_None
);
6505 _resultobj
= Py_None
;
6509 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6510 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6511 PyObject
* _resultobj
;
6517 PyObject
* _argo0
= 0;
6518 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6532 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6534 wxPyEndAllowThreads(__tstate
);
6535 if (PyErr_Occurred()) return NULL
;
6536 } Py_INCREF(Py_None
);
6537 _resultobj
= Py_None
;
6541 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6542 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6543 PyObject
* _resultobj
;
6551 PyObject
* _argo0
= 0;
6552 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6566 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6568 wxPyEndAllowThreads(__tstate
);
6569 if (PyErr_Occurred()) return NULL
;
6570 } Py_INCREF(Py_None
);
6571 _resultobj
= Py_None
;
6575 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6576 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6577 PyObject
* _resultobj
;
6582 PyObject
* _argo0
= 0;
6583 PyObject
* _argo1
= 0;
6584 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6597 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6598 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6605 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6607 wxPyEndAllowThreads(__tstate
);
6608 if (PyErr_Occurred()) return NULL
;
6609 } Py_INCREF(Py_None
);
6610 _resultobj
= Py_None
;
6614 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6615 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6616 PyObject
* _resultobj
;
6620 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6621 int _arg4
= (int ) -1;
6622 PyObject
* _argo0
= 0;
6623 PyObject
* _obj1
= 0;
6625 PyObject
* _obj2
= 0;
6626 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
6629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
6632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6639 #if PYTHON_API_VERSION >= 1009
6640 char* tmpPtr
; int tmpSize
;
6641 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6642 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6645 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6647 _arg1
= new wxString(tmpPtr
, tmpSize
);
6649 if (!PyString_Check(_obj1
)) {
6650 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6653 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6658 if (! wxRect_helper(_obj2
, &_arg2
))
6662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6663 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
6665 wxPyEndAllowThreads(__tstate
);
6666 if (PyErr_Occurred()) return NULL
;
6667 } Py_INCREF(Py_None
);
6668 _resultobj
= Py_None
;
6676 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
6678 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
6681 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6682 PyObject
* _resultobj
;
6688 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6689 int _arg5
= (int ) -1;
6690 PyObject
* _argo0
= 0;
6691 PyObject
* _obj1
= 0;
6692 PyObject
* _argo2
= 0;
6694 PyObject
* _obj3
= 0;
6695 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
6699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
6702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6709 #if PYTHON_API_VERSION >= 1009
6710 char* tmpPtr
; int tmpSize
;
6711 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6712 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6715 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6717 _arg1
= new wxString(tmpPtr
, tmpSize
);
6719 if (!PyString_Check(_obj1
)) {
6720 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6723 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6727 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6728 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
6729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6735 if (! wxRect_helper(_obj3
, &_arg3
))
6739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6740 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
6742 wxPyEndAllowThreads(__tstate
);
6743 if (PyErr_Occurred()) return NULL
;
6744 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
6745 _resultobj
= Py_BuildValue("s",_ptemp
);
6753 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6754 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6755 PyObject
* _resultobj
;
6761 PyObject
* _argo0
= 0;
6762 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6776 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6778 wxPyEndAllowThreads(__tstate
);
6779 if (PyErr_Occurred()) return NULL
;
6780 } Py_INCREF(Py_None
);
6781 _resultobj
= Py_None
;
6785 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6786 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6787 PyObject
* _resultobj
;
6791 long _arg3
= (long ) 0;
6792 long _arg4
= (long ) 0;
6793 PyObject
* _argo0
= 0;
6795 PyObject
* _obj2
= 0;
6796 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6810 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6811 if (_arg2
== NULL
) {
6819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6820 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6822 wxPyEndAllowThreads(__tstate
);
6823 if (PyErr_Occurred()) return NULL
;
6824 } Py_INCREF(Py_None
);
6825 _resultobj
= Py_None
;
6832 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6833 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6834 PyObject
* _resultobj
;
6838 long _arg3
= (long ) 0;
6839 long _arg4
= (long ) 0;
6840 int _arg5
= (int ) wxODDEVEN_RULE
;
6841 PyObject
* _argo0
= 0;
6843 PyObject
* _obj2
= 0;
6844 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6858 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6859 if (_arg2
== NULL
) {
6867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6868 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6870 wxPyEndAllowThreads(__tstate
);
6871 if (PyErr_Occurred()) return NULL
;
6872 } Py_INCREF(Py_None
);
6873 _resultobj
= Py_None
;
6880 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6881 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6882 PyObject
* _resultobj
;
6886 PyObject
* _argo0
= 0;
6887 char *_kwnames
[] = { "self","x","y", NULL
};
6890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6901 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6903 wxPyEndAllowThreads(__tstate
);
6904 if (PyErr_Occurred()) return NULL
;
6905 } Py_INCREF(Py_None
);
6906 _resultobj
= Py_None
;
6910 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6911 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6912 PyObject
* _resultobj
;
6918 PyObject
* _argo0
= 0;
6919 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6933 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6935 wxPyEndAllowThreads(__tstate
);
6936 if (PyErr_Occurred()) return NULL
;
6937 } Py_INCREF(Py_None
);
6938 _resultobj
= Py_None
;
6942 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6943 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6944 PyObject
* _resultobj
;
6950 PyObject
* _argo0
= 0;
6951 PyObject
* _obj1
= 0;
6952 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6965 #if PYTHON_API_VERSION >= 1009
6966 char* tmpPtr
; int tmpSize
;
6967 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6968 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6971 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6973 _arg1
= new wxString(tmpPtr
, tmpSize
);
6975 if (!PyString_Check(_obj1
)) {
6976 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6979 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6984 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6986 wxPyEndAllowThreads(__tstate
);
6987 if (PyErr_Occurred()) return NULL
;
6988 } Py_INCREF(Py_None
);
6989 _resultobj
= Py_None
;
6997 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6998 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6999 PyObject
* _resultobj
;
7005 long _arg5
= (long ) 20;
7006 PyObject
* _argo0
= 0;
7007 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7021 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7023 wxPyEndAllowThreads(__tstate
);
7024 if (PyErr_Occurred()) return NULL
;
7025 } Py_INCREF(Py_None
);
7026 _resultobj
= Py_None
;
7030 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7031 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7032 PyObject
* _resultobj
;
7036 PyObject
* _argo0
= 0;
7038 PyObject
* _obj2
= 0;
7039 char *_kwnames
[] = { "self","points", NULL
};
7042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7053 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7054 if (_arg2
== NULL
) {
7062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7063 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7065 wxPyEndAllowThreads(__tstate
);
7066 if (PyErr_Occurred()) return NULL
;
7067 } Py_INCREF(Py_None
);
7068 _resultobj
= Py_None
;
7075 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7076 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7077 PyObject
* _resultobj
;
7082 PyObject
* _argo0
= 0;
7083 PyObject
* _obj1
= 0;
7084 char *_kwnames
[] = { "self","text","x","y", NULL
};
7087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7097 #if PYTHON_API_VERSION >= 1009
7098 char* tmpPtr
; int tmpSize
;
7099 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7100 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7103 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7105 _arg1
= new wxString(tmpPtr
, tmpSize
);
7107 if (!PyString_Check(_obj1
)) {
7108 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7111 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7116 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7118 wxPyEndAllowThreads(__tstate
);
7119 if (PyErr_Occurred()) return NULL
;
7120 } Py_INCREF(Py_None
);
7121 _resultobj
= Py_None
;
7129 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7130 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7131 PyObject
* _resultobj
;
7133 PyObject
* _argo0
= 0;
7134 char *_kwnames
[] = { "self", NULL
};
7137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7150 wxPyEndAllowThreads(__tstate
);
7151 if (PyErr_Occurred()) return NULL
;
7152 } Py_INCREF(Py_None
);
7153 _resultobj
= Py_None
;
7157 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7158 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7159 PyObject
* _resultobj
;
7161 PyObject
* _argo0
= 0;
7162 char *_kwnames
[] = { "self", NULL
};
7165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7176 wxDC_EndDrawing(_arg0
);
7178 wxPyEndAllowThreads(__tstate
);
7179 if (PyErr_Occurred()) return NULL
;
7180 } Py_INCREF(Py_None
);
7181 _resultobj
= Py_None
;
7185 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7186 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7187 PyObject
* _resultobj
;
7189 PyObject
* _argo0
= 0;
7190 char *_kwnames
[] = { "self", NULL
};
7193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7204 wxDC_EndPage(_arg0
);
7206 wxPyEndAllowThreads(__tstate
);
7207 if (PyErr_Occurred()) return NULL
;
7208 } Py_INCREF(Py_None
);
7209 _resultobj
= Py_None
;
7213 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7214 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7215 PyObject
* _resultobj
;
7220 int _arg4
= (int ) wxFLOOD_SURFACE
;
7221 PyObject
* _argo0
= 0;
7223 PyObject
* _obj3
= 0;
7224 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7238 if (! wxColour_helper(_obj3
, &_arg3
))
7242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7243 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7245 wxPyEndAllowThreads(__tstate
);
7246 if (PyErr_Occurred()) return NULL
;
7247 } Py_INCREF(Py_None
);
7248 _resultobj
= Py_None
;
7252 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7253 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7254 PyObject
* _resultobj
;
7257 PyObject
* _argo0
= 0;
7258 char *_kwnames
[] = { "self", NULL
};
7262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7273 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
7275 wxPyEndAllowThreads(__tstate
);
7276 if (PyErr_Occurred()) return NULL
;
7277 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7278 _resultobj
= Py_BuildValue("s",_ptemp
);
7282 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7283 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7284 PyObject
* _resultobj
;
7287 PyObject
* _argo0
= 0;
7288 char *_kwnames
[] = { "self", NULL
};
7292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7303 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
7305 wxPyEndAllowThreads(__tstate
);
7306 if (PyErr_Occurred()) return NULL
;
7307 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7308 _resultobj
= Py_BuildValue("s",_ptemp
);
7312 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7313 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7314 PyObject
* _resultobj
;
7317 PyObject
* _argo0
= 0;
7318 char *_kwnames
[] = { "self", NULL
};
7321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7332 _result
= (long )wxDC_GetCharHeight(_arg0
);
7334 wxPyEndAllowThreads(__tstate
);
7335 if (PyErr_Occurred()) return NULL
;
7336 } _resultobj
= Py_BuildValue("l",_result
);
7340 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7341 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7342 PyObject
* _resultobj
;
7345 PyObject
* _argo0
= 0;
7346 char *_kwnames
[] = { "self", NULL
};
7349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7360 _result
= (long )wxDC_GetCharWidth(_arg0
);
7362 wxPyEndAllowThreads(__tstate
);
7363 if (PyErr_Occurred()) return NULL
;
7364 } _resultobj
= Py_BuildValue("l",_result
);
7368 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7369 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7370 PyObject
* _resultobj
;
7380 PyObject
* _argo0
= 0;
7381 char *_kwnames
[] = { "self", NULL
};
7396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7407 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7409 wxPyEndAllowThreads(__tstate
);
7410 if (PyErr_Occurred()) return NULL
;
7411 } Py_INCREF(Py_None
);
7412 _resultobj
= Py_None
;
7415 o
= PyInt_FromLong((long) (*_arg1
));
7416 _resultobj
= t_output_helper(_resultobj
, o
);
7420 o
= PyInt_FromLong((long) (*_arg2
));
7421 _resultobj
= t_output_helper(_resultobj
, o
);
7425 o
= PyInt_FromLong((long) (*_arg3
));
7426 _resultobj
= t_output_helper(_resultobj
, o
);
7430 o
= PyInt_FromLong((long) (*_arg4
));
7431 _resultobj
= t_output_helper(_resultobj
, o
);
7436 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7437 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7438 PyObject
* _resultobj
;
7441 PyObject
* _argo0
= 0;
7442 char *_kwnames
[] = { "self", NULL
};
7446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7457 _result
= new wxFont (wxDC_GetFont(_arg0
));
7459 wxPyEndAllowThreads(__tstate
);
7460 if (PyErr_Occurred()) return NULL
;
7461 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
7462 _resultobj
= Py_BuildValue("s",_ptemp
);
7466 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7467 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7468 PyObject
* _resultobj
;
7471 PyObject
* _argo0
= 0;
7472 char *_kwnames
[] = { "self", NULL
};
7475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7486 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7488 wxPyEndAllowThreads(__tstate
);
7489 if (PyErr_Occurred()) return NULL
;
7490 } _resultobj
= Py_BuildValue("i",_result
);
7494 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7495 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7496 PyObject
* _resultobj
;
7502 PyObject
* _argo0
= 0;
7503 char *_kwnames
[] = { "self", NULL
};
7512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7523 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7525 wxPyEndAllowThreads(__tstate
);
7526 if (PyErr_Occurred()) return NULL
;
7527 } Py_INCREF(Py_None
);
7528 _resultobj
= Py_None
;
7531 o
= PyFloat_FromDouble((double) (*_arg1
));
7532 _resultobj
= t_output_helper(_resultobj
, o
);
7536 o
= PyFloat_FromDouble((double) (*_arg2
));
7537 _resultobj
= t_output_helper(_resultobj
, o
);
7542 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7543 static PyObject
*_wrap_wxDC_GetMapMode(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_GetMapMode",_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_GetMapMode. Expected _wxDC_p.");
7561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7562 _result
= (int )wxDC_GetMapMode(_arg0
);
7564 wxPyEndAllowThreads(__tstate
);
7565 if (PyErr_Occurred()) return NULL
;
7566 } _resultobj
= Py_BuildValue("i",_result
);
7570 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7571 static PyObject
*_wrap_wxDC_GetOptimization(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_GetOptimization",_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_GetOptimization. Expected _wxDC_p.");
7589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7590 _result
= (bool )wxDC_GetOptimization(_arg0
);
7592 wxPyEndAllowThreads(__tstate
);
7593 if (PyErr_Occurred()) return NULL
;
7594 } _resultobj
= Py_BuildValue("i",_result
);
7598 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7599 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7600 PyObject
* _resultobj
;
7603 PyObject
* _argo0
= 0;
7604 char *_kwnames
[] = { "self", NULL
};
7608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7619 _result
= new wxPen (wxDC_GetPen(_arg0
));
7621 wxPyEndAllowThreads(__tstate
);
7622 if (PyErr_Occurred()) return NULL
;
7623 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7624 _resultobj
= Py_BuildValue("s",_ptemp
);
7628 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7629 wxColour
* wc
= new wxColour();
7630 self
->GetPixel(x
, y
, wc
);
7633 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7634 PyObject
* _resultobj
;
7639 PyObject
* _argo0
= 0;
7640 char *_kwnames
[] = { "self","x","y", NULL
};
7644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7655 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7657 wxPyEndAllowThreads(__tstate
);
7658 if (PyErr_Occurred()) return NULL
;
7660 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7661 _resultobj
= Py_BuildValue("s",_ptemp
);
7664 _resultobj
= Py_None
;
7669 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7670 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7671 PyObject
* _resultobj
;
7677 PyObject
* _argo0
= 0;
7678 char *_kwnames
[] = { "self", NULL
};
7687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7698 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7700 wxPyEndAllowThreads(__tstate
);
7701 if (PyErr_Occurred()) return NULL
;
7702 } Py_INCREF(Py_None
);
7703 _resultobj
= Py_None
;
7706 o
= PyInt_FromLong((long) (*_arg1
));
7707 _resultobj
= t_output_helper(_resultobj
, o
);
7711 o
= PyInt_FromLong((long) (*_arg2
));
7712 _resultobj
= t_output_helper(_resultobj
, o
);
7717 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7718 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7719 PyObject
* _resultobj
;
7722 PyObject
* _argo0
= 0;
7723 char *_kwnames
[] = { "self", NULL
};
7727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7738 _result
= new wxSize (wxDC_GetSize(_arg0
));
7740 wxPyEndAllowThreads(__tstate
);
7741 if (PyErr_Occurred()) return NULL
;
7742 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7743 _resultobj
= Py_BuildValue("s",_ptemp
);
7747 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7748 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7749 PyObject
* _resultobj
;
7752 PyObject
* _argo0
= 0;
7753 char *_kwnames
[] = { "self", NULL
};
7757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7768 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7770 wxPyEndAllowThreads(__tstate
);
7771 if (PyErr_Occurred()) return NULL
;
7772 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7773 _resultobj
= Py_BuildValue("s",_ptemp
);
7777 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7778 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7779 PyObject
* _resultobj
;
7782 PyObject
* _argo0
= 0;
7783 char *_kwnames
[] = { "self", NULL
};
7787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7798 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7800 wxPyEndAllowThreads(__tstate
);
7801 if (PyErr_Occurred()) return NULL
;
7802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7803 _resultobj
= Py_BuildValue("s",_ptemp
);
7807 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7808 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7809 PyObject
* _resultobj
;
7816 PyObject
* _argo0
= 0;
7817 PyObject
* _obj1
= 0;
7818 char *_kwnames
[] = { "self","string", NULL
};
7827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7837 #if PYTHON_API_VERSION >= 1009
7838 char* tmpPtr
; int tmpSize
;
7839 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7843 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7845 _arg1
= new wxString(tmpPtr
, tmpSize
);
7847 if (!PyString_Check(_obj1
)) {
7848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7851 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7856 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7858 wxPyEndAllowThreads(__tstate
);
7859 if (PyErr_Occurred()) return NULL
;
7860 } Py_INCREF(Py_None
);
7861 _resultobj
= Py_None
;
7864 o
= PyInt_FromLong((long) (*_arg2
));
7865 _resultobj
= t_output_helper(_resultobj
, o
);
7869 o
= PyInt_FromLong((long) (*_arg3
));
7870 _resultobj
= t_output_helper(_resultobj
, o
);
7879 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7880 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7881 PyObject
* _resultobj
;
7892 wxFont
* _arg6
= (wxFont
*) NULL
;
7893 PyObject
* _argo0
= 0;
7894 PyObject
* _obj1
= 0;
7895 PyObject
* _argo6
= 0;
7896 char *_kwnames
[] = { "self","string","font", NULL
};
7911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7921 #if PYTHON_API_VERSION >= 1009
7922 char* tmpPtr
; int tmpSize
;
7923 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7924 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7927 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7929 _arg1
= new wxString(tmpPtr
, tmpSize
);
7931 if (!PyString_Check(_obj1
)) {
7932 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7935 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7939 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7940 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7947 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7949 wxPyEndAllowThreads(__tstate
);
7950 if (PyErr_Occurred()) return NULL
;
7951 } Py_INCREF(Py_None
);
7952 _resultobj
= Py_None
;
7955 o
= PyInt_FromLong((long) (*_arg2
));
7956 _resultobj
= t_output_helper(_resultobj
, o
);
7960 o
= PyInt_FromLong((long) (*_arg3
));
7961 _resultobj
= t_output_helper(_resultobj
, o
);
7965 o
= PyInt_FromLong((long) (*_arg4
));
7966 _resultobj
= t_output_helper(_resultobj
, o
);
7970 o
= PyInt_FromLong((long) (*_arg5
));
7971 _resultobj
= t_output_helper(_resultobj
, o
);
7980 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7981 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7982 PyObject
* _resultobj
;
7985 PyObject
* _argo0
= 0;
7986 char *_kwnames
[] = { "self", NULL
};
7990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8001 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8003 wxPyEndAllowThreads(__tstate
);
8004 if (PyErr_Occurred()) return NULL
;
8005 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8006 _resultobj
= Py_BuildValue("s",_ptemp
);
8010 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8011 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8012 PyObject
* _resultobj
;
8018 PyObject
* _argo0
= 0;
8019 char *_kwnames
[] = { "self", NULL
};
8028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8039 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8041 wxPyEndAllowThreads(__tstate
);
8042 if (PyErr_Occurred()) return NULL
;
8043 } Py_INCREF(Py_None
);
8044 _resultobj
= Py_None
;
8047 o
= PyFloat_FromDouble((double) (*_arg1
));
8048 _resultobj
= t_output_helper(_resultobj
, o
);
8052 o
= PyFloat_FromDouble((double) (*_arg2
));
8053 _resultobj
= t_output_helper(_resultobj
, o
);
8058 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8059 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8060 PyObject
* _resultobj
;
8064 PyObject
* _argo0
= 0;
8065 char *_kwnames
[] = { "self","x", NULL
};
8068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8079 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8081 wxPyEndAllowThreads(__tstate
);
8082 if (PyErr_Occurred()) return NULL
;
8083 } _resultobj
= Py_BuildValue("l",_result
);
8087 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8088 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8089 PyObject
* _resultobj
;
8093 PyObject
* _argo0
= 0;
8094 char *_kwnames
[] = { "self","x", NULL
};
8097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8108 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8110 wxPyEndAllowThreads(__tstate
);
8111 if (PyErr_Occurred()) return NULL
;
8112 } _resultobj
= Py_BuildValue("l",_result
);
8116 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8117 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8118 PyObject
* _resultobj
;
8122 PyObject
* _argo0
= 0;
8123 char *_kwnames
[] = { "self","y", NULL
};
8126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8137 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8139 wxPyEndAllowThreads(__tstate
);
8140 if (PyErr_Occurred()) return NULL
;
8141 } _resultobj
= Py_BuildValue("l",_result
);
8145 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8146 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8147 PyObject
* _resultobj
;
8151 PyObject
* _argo0
= 0;
8152 char *_kwnames
[] = { "self","y", NULL
};
8155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8166 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8168 wxPyEndAllowThreads(__tstate
);
8169 if (PyErr_Occurred()) return NULL
;
8170 } _resultobj
= Py_BuildValue("l",_result
);
8174 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8175 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8176 PyObject
* _resultobj
;
8179 PyObject
* _argo0
= 0;
8180 char *_kwnames
[] = { "self", NULL
};
8183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8194 _result
= (long )wxDC_MaxX(_arg0
);
8196 wxPyEndAllowThreads(__tstate
);
8197 if (PyErr_Occurred()) return NULL
;
8198 } _resultobj
= Py_BuildValue("l",_result
);
8202 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8203 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8204 PyObject
* _resultobj
;
8207 PyObject
* _argo0
= 0;
8208 char *_kwnames
[] = { "self", NULL
};
8211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8222 _result
= (long )wxDC_MaxY(_arg0
);
8224 wxPyEndAllowThreads(__tstate
);
8225 if (PyErr_Occurred()) return NULL
;
8226 } _resultobj
= Py_BuildValue("l",_result
);
8230 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8231 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8232 PyObject
* _resultobj
;
8235 PyObject
* _argo0
= 0;
8236 char *_kwnames
[] = { "self", NULL
};
8239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8250 _result
= (long )wxDC_MinX(_arg0
);
8252 wxPyEndAllowThreads(__tstate
);
8253 if (PyErr_Occurred()) return NULL
;
8254 } _resultobj
= Py_BuildValue("l",_result
);
8258 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8259 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8260 PyObject
* _resultobj
;
8263 PyObject
* _argo0
= 0;
8264 char *_kwnames
[] = { "self", NULL
};
8267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8278 _result
= (long )wxDC_MinY(_arg0
);
8280 wxPyEndAllowThreads(__tstate
);
8281 if (PyErr_Occurred()) return NULL
;
8282 } _resultobj
= Py_BuildValue("l",_result
);
8286 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8287 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8288 PyObject
* _resultobj
;
8291 PyObject
* _argo0
= 0;
8292 char *_kwnames
[] = { "self", NULL
};
8295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8306 _result
= (bool )wxDC_Ok(_arg0
);
8308 wxPyEndAllowThreads(__tstate
);
8309 if (PyErr_Occurred()) return NULL
;
8310 } _resultobj
= Py_BuildValue("i",_result
);
8314 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8315 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8316 PyObject
* _resultobj
;
8320 PyObject
* _argo0
= 0;
8321 char *_kwnames
[] = { "self","x","y", NULL
};
8324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8335 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8337 wxPyEndAllowThreads(__tstate
);
8338 if (PyErr_Occurred()) return NULL
;
8339 } Py_INCREF(Py_None
);
8340 _resultobj
= Py_None
;
8344 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8345 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8346 PyObject
* _resultobj
;
8349 PyObject
* _argo0
= 0;
8350 PyObject
* _argo1
= 0;
8351 char *_kwnames
[] = { "self","brush", NULL
};
8354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8364 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8365 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8372 wxDC_SetBackground(_arg0
,*_arg1
);
8374 wxPyEndAllowThreads(__tstate
);
8375 if (PyErr_Occurred()) return NULL
;
8376 } Py_INCREF(Py_None
);
8377 _resultobj
= Py_None
;
8381 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8382 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8383 PyObject
* _resultobj
;
8386 PyObject
* _argo0
= 0;
8387 char *_kwnames
[] = { "self","mode", NULL
};
8390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8401 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8403 wxPyEndAllowThreads(__tstate
);
8404 if (PyErr_Occurred()) return NULL
;
8405 } Py_INCREF(Py_None
);
8406 _resultobj
= Py_None
;
8410 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8411 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8412 PyObject
* _resultobj
;
8418 PyObject
* _argo0
= 0;
8419 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8433 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8435 wxPyEndAllowThreads(__tstate
);
8436 if (PyErr_Occurred()) return NULL
;
8437 } Py_INCREF(Py_None
);
8438 _resultobj
= Py_None
;
8442 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8443 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8444 PyObject
* _resultobj
;
8447 PyObject
* _argo0
= 0;
8448 PyObject
* _argo1
= 0;
8449 char *_kwnames
[] = { "self","region", NULL
};
8452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8462 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8463 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8470 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8472 wxPyEndAllowThreads(__tstate
);
8473 if (PyErr_Occurred()) return NULL
;
8474 } Py_INCREF(Py_None
);
8475 _resultobj
= Py_None
;
8479 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8480 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8481 PyObject
* _resultobj
;
8484 PyObject
* _argo0
= 0;
8485 PyObject
* _argo1
= 0;
8486 char *_kwnames
[] = { "self","colourMap", NULL
};
8489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8499 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8500 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8507 wxDC_SetPalette(_arg0
,*_arg1
);
8509 wxPyEndAllowThreads(__tstate
);
8510 if (PyErr_Occurred()) return NULL
;
8511 } Py_INCREF(Py_None
);
8512 _resultobj
= Py_None
;
8516 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8517 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8518 PyObject
* _resultobj
;
8521 PyObject
* _argo0
= 0;
8522 PyObject
* _argo1
= 0;
8523 char *_kwnames
[] = { "self","brush", NULL
};
8526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8536 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8537 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8544 wxDC_SetBrush(_arg0
,*_arg1
);
8546 wxPyEndAllowThreads(__tstate
);
8547 if (PyErr_Occurred()) return NULL
;
8548 } Py_INCREF(Py_None
);
8549 _resultobj
= Py_None
;
8553 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8554 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8555 PyObject
* _resultobj
;
8558 PyObject
* _argo0
= 0;
8559 PyObject
* _argo1
= 0;
8560 char *_kwnames
[] = { "self","font", NULL
};
8563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8573 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8574 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8581 wxDC_SetFont(_arg0
,*_arg1
);
8583 wxPyEndAllowThreads(__tstate
);
8584 if (PyErr_Occurred()) return NULL
;
8585 } Py_INCREF(Py_None
);
8586 _resultobj
= Py_None
;
8590 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8591 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8592 PyObject
* _resultobj
;
8595 PyObject
* _argo0
= 0;
8596 char *_kwnames
[] = { "self","function", NULL
};
8599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8610 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8612 wxPyEndAllowThreads(__tstate
);
8613 if (PyErr_Occurred()) return NULL
;
8614 } Py_INCREF(Py_None
);
8615 _resultobj
= Py_None
;
8619 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8620 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8621 PyObject
* _resultobj
;
8625 PyObject
* _argo0
= 0;
8626 char *_kwnames
[] = { "self","x","y", NULL
};
8629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8640 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8642 wxPyEndAllowThreads(__tstate
);
8643 if (PyErr_Occurred()) return NULL
;
8644 } Py_INCREF(Py_None
);
8645 _resultobj
= Py_None
;
8649 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8650 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8651 PyObject
* _resultobj
;
8654 PyObject
* _argo0
= 0;
8655 char *_kwnames
[] = { "self","mode", NULL
};
8658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8669 wxDC_SetMapMode(_arg0
,_arg1
);
8671 wxPyEndAllowThreads(__tstate
);
8672 if (PyErr_Occurred()) return NULL
;
8673 } Py_INCREF(Py_None
);
8674 _resultobj
= Py_None
;
8678 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8679 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8680 PyObject
* _resultobj
;
8683 PyObject
* _argo0
= 0;
8685 char *_kwnames
[] = { "self","optimize", NULL
};
8688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8697 _arg1
= (bool ) tempbool1
;
8699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8700 wxDC_SetOptimization(_arg0
,_arg1
);
8702 wxPyEndAllowThreads(__tstate
);
8703 if (PyErr_Occurred()) return NULL
;
8704 } Py_INCREF(Py_None
);
8705 _resultobj
= Py_None
;
8709 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8710 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8711 PyObject
* _resultobj
;
8714 PyObject
* _argo0
= 0;
8715 PyObject
* _argo1
= 0;
8716 char *_kwnames
[] = { "self","pen", NULL
};
8719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_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_SetPen. Expected _wxDC_p.");
8729 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8730 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8737 wxDC_SetPen(_arg0
,*_arg1
);
8739 wxPyEndAllowThreads(__tstate
);
8740 if (PyErr_Occurred()) return NULL
;
8741 } Py_INCREF(Py_None
);
8742 _resultobj
= Py_None
;
8746 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8747 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8748 PyObject
* _resultobj
;
8751 PyObject
* _argo0
= 0;
8753 PyObject
* _obj1
= 0;
8754 char *_kwnames
[] = { "self","colour", NULL
};
8757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8768 if (! wxColour_helper(_obj1
, &_arg1
))
8772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8773 wxDC_SetTextBackground(_arg0
,*_arg1
);
8775 wxPyEndAllowThreads(__tstate
);
8776 if (PyErr_Occurred()) return NULL
;
8777 } Py_INCREF(Py_None
);
8778 _resultobj
= Py_None
;
8782 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8783 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8784 PyObject
* _resultobj
;
8787 PyObject
* _argo0
= 0;
8789 PyObject
* _obj1
= 0;
8790 char *_kwnames
[] = { "self","colour", NULL
};
8793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
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_SetTextForeground. Expected _wxDC_p.");
8804 if (! wxColour_helper(_obj1
, &_arg1
))
8808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8809 wxDC_SetTextForeground(_arg0
,*_arg1
);
8811 wxPyEndAllowThreads(__tstate
);
8812 if (PyErr_Occurred()) return NULL
;
8813 } Py_INCREF(Py_None
);
8814 _resultobj
= Py_None
;
8818 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8819 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8820 PyObject
* _resultobj
;
8824 PyObject
* _argo0
= 0;
8825 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8839 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8841 wxPyEndAllowThreads(__tstate
);
8842 if (PyErr_Occurred()) return NULL
;
8843 } Py_INCREF(Py_None
);
8844 _resultobj
= Py_None
;
8848 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8849 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8850 PyObject
* _resultobj
;
8854 PyObject
* _argo0
= 0;
8855 PyObject
* _obj1
= 0;
8856 char *_kwnames
[] = { "self","message", NULL
};
8859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
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_StartDoc. Expected _wxDC_p.");
8869 #if PYTHON_API_VERSION >= 1009
8870 char* tmpPtr
; int tmpSize
;
8871 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8872 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8875 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8877 _arg1
= new wxString(tmpPtr
, tmpSize
);
8879 if (!PyString_Check(_obj1
)) {
8880 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8883 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8888 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8890 wxPyEndAllowThreads(__tstate
);
8891 if (PyErr_Occurred()) return NULL
;
8892 } _resultobj
= Py_BuildValue("i",_result
);
8900 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8901 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8902 PyObject
* _resultobj
;
8904 PyObject
* _argo0
= 0;
8905 char *_kwnames
[] = { "self", NULL
};
8908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8919 wxDC_StartPage(_arg0
);
8921 wxPyEndAllowThreads(__tstate
);
8922 if (PyErr_Occurred()) return NULL
;
8923 } Py_INCREF(Py_None
);
8924 _resultobj
= Py_None
;
8928 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8929 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8930 PyObject
* _resultobj
;
8935 int _arg4
= (int ) FALSE
;
8936 PyObject
* _argo0
= 0;
8937 PyObject
* _argo1
= 0;
8938 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8951 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8952 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8959 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8961 wxPyEndAllowThreads(__tstate
);
8962 if (PyErr_Occurred()) return NULL
;
8963 } Py_INCREF(Py_None
);
8964 _resultobj
= Py_None
;
8968 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8969 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8970 PyObject
* _resultobj
;
8973 PyObject
* _argo0
= 0;
8974 char *_kwnames
[] = { "self", NULL
};
8977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8988 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8990 wxPyEndAllowThreads(__tstate
);
8991 if (PyErr_Occurred()) return NULL
;
8992 } _resultobj
= Py_BuildValue("i",_result
);
8996 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8997 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8998 PyObject
* _resultobj
;
9001 PyObject
* _argo0
= 0;
9002 char *_kwnames
[] = { "self", NULL
};
9005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9016 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9018 wxPyEndAllowThreads(__tstate
);
9019 if (PyErr_Occurred()) return NULL
;
9020 } _resultobj
= Py_BuildValue("i",_result
);
9024 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9025 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9026 PyObject
* _resultobj
;
9029 PyObject
* _argo0
= 0;
9030 char *_kwnames
[] = { "self", NULL
};
9033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9044 _result
= (int )wxDC_GetDepth(_arg0
);
9046 wxPyEndAllowThreads(__tstate
);
9047 if (PyErr_Occurred()) return NULL
;
9048 } _resultobj
= Py_BuildValue("i",_result
);
9052 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9053 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9054 PyObject
* _resultobj
;
9057 PyObject
* _argo0
= 0;
9058 char *_kwnames
[] = { "self", NULL
};
9062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9073 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9075 wxPyEndAllowThreads(__tstate
);
9076 if (PyErr_Occurred()) return NULL
;
9077 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9078 _resultobj
= Py_BuildValue("s",_ptemp
);
9082 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9083 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9084 PyObject
* _resultobj
;
9090 PyObject
* _argo0
= 0;
9091 char *_kwnames
[] = { "self", NULL
};
9100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9111 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9113 wxPyEndAllowThreads(__tstate
);
9114 if (PyErr_Occurred()) return NULL
;
9115 } Py_INCREF(Py_None
);
9116 _resultobj
= Py_None
;
9119 o
= PyInt_FromLong((long) (*_arg1
));
9120 _resultobj
= t_output_helper(_resultobj
, o
);
9124 o
= PyInt_FromLong((long) (*_arg2
));
9125 _resultobj
= t_output_helper(_resultobj
, o
);
9130 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9131 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9132 PyObject
* _resultobj
;
9136 PyObject
* _argo0
= 0;
9137 char *_kwnames
[] = { "self","x","y", NULL
};
9140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9151 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9153 wxPyEndAllowThreads(__tstate
);
9154 if (PyErr_Occurred()) return NULL
;
9155 } Py_INCREF(Py_None
);
9156 _resultobj
= Py_None
;
9160 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9161 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9162 PyObject
* _resultobj
;
9168 PyObject
* _argo0
= 0;
9169 char *_kwnames
[] = { "self", NULL
};
9178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9189 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9191 wxPyEndAllowThreads(__tstate
);
9192 if (PyErr_Occurred()) return NULL
;
9193 } Py_INCREF(Py_None
);
9194 _resultobj
= Py_None
;
9197 o
= PyInt_FromLong((long) (*_arg1
));
9198 _resultobj
= t_output_helper(_resultobj
, o
);
9202 o
= PyInt_FromLong((long) (*_arg2
));
9203 _resultobj
= t_output_helper(_resultobj
, o
);
9208 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9209 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9210 PyObject
* _resultobj
;
9214 PyObject
* _argo0
= 0;
9217 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9229 _arg1
= (bool ) tempbool1
;
9230 _arg2
= (bool ) tempbool2
;
9232 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9233 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9235 wxPyEndAllowThreads(__tstate
);
9236 if (PyErr_Occurred()) return NULL
;
9237 } Py_INCREF(Py_None
);
9238 _resultobj
= Py_None
;
9242 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9243 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9244 PyObject
* _resultobj
;
9248 PyObject
* _argo0
= 0;
9249 char *_kwnames
[] = { "self","x","y", NULL
};
9252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9263 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9265 wxPyEndAllowThreads(__tstate
);
9266 if (PyErr_Occurred()) return NULL
;
9267 } Py_INCREF(Py_None
);
9268 _resultobj
= Py_None
;
9272 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9273 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9274 PyObject
* _resultobj
;
9276 PyObject
* _argo0
= 0;
9277 char *_kwnames
[] = { "self", NULL
};
9280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9291 wxDC_ResetBoundingBox(_arg0
);
9293 wxPyEndAllowThreads(__tstate
);
9294 if (PyErr_Occurred()) return NULL
;
9295 } Py_INCREF(Py_None
);
9296 _resultobj
= Py_None
;
9300 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9301 PyObject
* _resultobj
;
9311 PyObject
* _argo0
= 0;
9312 char *_kwnames
[] = { "self", NULL
};
9327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9338 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9340 wxPyEndAllowThreads(__tstate
);
9341 if (PyErr_Occurred()) return NULL
;
9342 } Py_INCREF(Py_None
);
9343 _resultobj
= Py_None
;
9346 o
= PyInt_FromLong((long) (*_arg1
));
9347 _resultobj
= t_output_helper(_resultobj
, o
);
9351 o
= PyInt_FromLong((long) (*_arg2
));
9352 _resultobj
= t_output_helper(_resultobj
, o
);
9356 o
= PyInt_FromLong((long) (*_arg3
));
9357 _resultobj
= t_output_helper(_resultobj
, o
);
9361 o
= PyInt_FromLong((long) (*_arg4
));
9362 _resultobj
= t_output_helper(_resultobj
, o
);
9367 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9368 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9369 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9377 if (!PySequence_Check(pyPoints
)) {
9380 if (!PySequence_Check(pyPens
)) {
9383 numObjs
= PySequence_Length(pyPoints
);
9384 numPens
= PySequence_Length(pyPens
);
9386 for (i
= 0; i
< numObjs
; i
++) {
9390 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9393 obj
= PySequence_GetItem(pyPens
, i
);
9395 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9406 // Get the point coordinants
9408 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9411 obj
= PySequence_GetItem(pyPoints
, i
);
9413 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9419 // Now draw the point
9420 self
->DrawPoint(x1
, y1
);
9430 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9433 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9436 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9437 PyObject
* _resultobj
;
9442 PyObject
* _argo0
= 0;
9443 PyObject
* _obj1
= 0;
9444 PyObject
* _obj2
= 0;
9445 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9465 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9467 wxPyEndAllowThreads(__tstate
);
9468 if (PyErr_Occurred()) return NULL
;
9470 _resultobj
= _result
;
9475 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9476 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9477 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9485 if (!PySequence_Check(pyLines
)) {
9488 if (!PySequence_Check(pyPens
)) {
9491 numObjs
= PySequence_Length(pyLines
);
9492 numPens
= PySequence_Length(pyPens
);
9494 for (i
= 0; i
< numObjs
; i
++) {
9498 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9501 obj
= PySequence_GetItem(pyPens
, i
);
9503 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9514 // Get the line coordinants
9516 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9519 obj
= PySequence_GetItem(pyLines
, i
);
9521 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9527 // Now draw the line
9528 self
->DrawLine(x1
, y1
, x2
, y2
);
9538 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9541 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9544 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9545 PyObject
* _resultobj
;
9550 PyObject
* _argo0
= 0;
9551 PyObject
* _obj1
= 0;
9552 PyObject
* _obj2
= 0;
9553 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9573 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9575 wxPyEndAllowThreads(__tstate
);
9576 if (PyErr_Occurred()) return NULL
;
9578 _resultobj
= _result
;
9583 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9586 src
= (wxMemoryDC
*) ptr
;
9587 dest
= (wxDC
*) src
;
9588 return (void *) dest
;
9591 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9594 src
= (wxMemoryDC
*) ptr
;
9595 dest
= (wxObject
*) src
;
9596 return (void *) dest
;
9599 #define new_wxMemoryDC() (new wxMemoryDC())
9600 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9601 PyObject
* _resultobj
;
9602 wxMemoryDC
* _result
;
9603 char *_kwnames
[] = { NULL
};
9607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9611 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9613 wxPyEndAllowThreads(__tstate
);
9614 if (PyErr_Occurred()) return NULL
;
9616 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9617 _resultobj
= Py_BuildValue("s",_ptemp
);
9620 _resultobj
= Py_None
;
9625 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9626 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9627 PyObject
* _resultobj
;
9630 PyObject
* _argo0
= 0;
9631 PyObject
* _argo1
= 0;
9632 char *_kwnames
[] = { "self","bitmap", NULL
};
9635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9645 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9646 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9653 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9655 wxPyEndAllowThreads(__tstate
);
9656 if (PyErr_Occurred()) return NULL
;
9657 } Py_INCREF(Py_None
);
9658 _resultobj
= Py_None
;
9662 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9665 src
= (wxScreenDC
*) ptr
;
9666 dest
= (wxDC
*) src
;
9667 return (void *) dest
;
9670 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9673 src
= (wxScreenDC
*) ptr
;
9674 dest
= (wxObject
*) src
;
9675 return (void *) dest
;
9678 #define new_wxScreenDC() (new wxScreenDC())
9679 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9680 PyObject
* _resultobj
;
9681 wxScreenDC
* _result
;
9682 char *_kwnames
[] = { NULL
};
9686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9690 _result
= (wxScreenDC
*)new_wxScreenDC();
9692 wxPyEndAllowThreads(__tstate
);
9693 if (PyErr_Occurred()) return NULL
;
9695 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9696 _resultobj
= Py_BuildValue("s",_ptemp
);
9699 _resultobj
= Py_None
;
9704 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9705 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9706 PyObject
* _resultobj
;
9710 PyObject
* _argo0
= 0;
9711 PyObject
* _argo1
= 0;
9712 char *_kwnames
[] = { "self","window", NULL
};
9715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9725 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9726 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9733 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9735 wxPyEndAllowThreads(__tstate
);
9736 if (PyErr_Occurred()) return NULL
;
9737 } _resultobj
= Py_BuildValue("i",_result
);
9741 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9742 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9743 PyObject
* _resultobj
;
9746 wxRect
* _arg1
= (wxRect
*) NULL
;
9747 PyObject
* _argo0
= 0;
9749 PyObject
* _obj1
= 0;
9750 char *_kwnames
[] = { "self","rect", NULL
};
9753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9765 if (! wxRect_helper(_obj1
, &_arg1
))
9769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9770 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9772 wxPyEndAllowThreads(__tstate
);
9773 if (PyErr_Occurred()) return NULL
;
9774 } _resultobj
= Py_BuildValue("i",_result
);
9778 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9779 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9780 PyObject
* _resultobj
;
9783 PyObject
* _argo0
= 0;
9784 char *_kwnames
[] = { "self", NULL
};
9787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9798 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9800 wxPyEndAllowThreads(__tstate
);
9801 if (PyErr_Occurred()) return NULL
;
9802 } _resultobj
= Py_BuildValue("i",_result
);
9806 static void *SwigwxClientDCTowxDC(void *ptr
) {
9809 src
= (wxClientDC
*) ptr
;
9810 dest
= (wxDC
*) src
;
9811 return (void *) dest
;
9814 static void *SwigwxClientDCTowxObject(void *ptr
) {
9817 src
= (wxClientDC
*) ptr
;
9818 dest
= (wxObject
*) src
;
9819 return (void *) dest
;
9822 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9823 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9824 PyObject
* _resultobj
;
9825 wxClientDC
* _result
;
9827 PyObject
* _argo0
= 0;
9828 char *_kwnames
[] = { "win", NULL
};
9832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9843 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9845 wxPyEndAllowThreads(__tstate
);
9846 if (PyErr_Occurred()) return NULL
;
9848 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9849 _resultobj
= Py_BuildValue("s",_ptemp
);
9852 _resultobj
= Py_None
;
9857 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9860 src
= (wxPaintDC
*) ptr
;
9861 dest
= (wxDC
*) src
;
9862 return (void *) dest
;
9865 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9868 src
= (wxPaintDC
*) ptr
;
9869 dest
= (wxObject
*) src
;
9870 return (void *) dest
;
9873 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9874 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9875 PyObject
* _resultobj
;
9876 wxPaintDC
* _result
;
9878 PyObject
* _argo0
= 0;
9879 char *_kwnames
[] = { "win", NULL
};
9883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9894 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9896 wxPyEndAllowThreads(__tstate
);
9897 if (PyErr_Occurred()) return NULL
;
9899 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9900 _resultobj
= Py_BuildValue("s",_ptemp
);
9903 _resultobj
= Py_None
;
9908 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9911 src
= (wxWindowDC
*) ptr
;
9912 dest
= (wxDC
*) src
;
9913 return (void *) dest
;
9916 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9919 src
= (wxWindowDC
*) ptr
;
9920 dest
= (wxObject
*) src
;
9921 return (void *) dest
;
9924 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9925 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9926 PyObject
* _resultobj
;
9927 wxWindowDC
* _result
;
9929 PyObject
* _argo0
= 0;
9930 char *_kwnames
[] = { "win", NULL
};
9934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9945 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9947 wxPyEndAllowThreads(__tstate
);
9948 if (PyErr_Occurred()) return NULL
;
9950 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9951 _resultobj
= Py_BuildValue("s",_ptemp
);
9954 _resultobj
= Py_None
;
9959 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9962 src
= (wxPalette
*) ptr
;
9963 dest
= (wxGDIObject
*) src
;
9964 return (void *) dest
;
9967 static void *SwigwxPaletteTowxObject(void *ptr
) {
9970 src
= (wxPalette
*) ptr
;
9971 dest
= (wxObject
*) src
;
9972 return (void *) dest
;
9975 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9976 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9977 PyObject
* _resultobj
;
9978 wxPalette
* _result
;
9983 PyObject
* _obj1
= 0;
9984 PyObject
* _obj2
= 0;
9985 PyObject
* _obj3
= 0;
9986 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9993 _arg1
= byte_LIST_helper(_obj1
);
9994 if (_arg1
== NULL
) {
9999 _arg2
= byte_LIST_helper(_obj2
);
10000 if (_arg2
== NULL
) {
10006 _arg3
= byte_LIST_helper(_obj3
);
10007 if (_arg3
== NULL
) {
10013 _arg0
= PyList_Size(_obj1
);
10020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10021 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10023 wxPyEndAllowThreads(__tstate
);
10024 if (PyErr_Occurred()) return NULL
;
10026 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10027 _resultobj
= Py_BuildValue("s",_ptemp
);
10029 Py_INCREF(Py_None
);
10030 _resultobj
= Py_None
;
10044 #define delete_wxPalette(_swigobj) (delete _swigobj)
10045 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10046 PyObject
* _resultobj
;
10048 PyObject
* _argo0
= 0;
10049 char *_kwnames
[] = { "self", NULL
};
10052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10063 delete_wxPalette(_arg0
);
10065 wxPyEndAllowThreads(__tstate
);
10066 if (PyErr_Occurred()) return NULL
;
10067 } Py_INCREF(Py_None
);
10068 _resultobj
= Py_None
;
10072 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10073 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10074 PyObject
* _resultobj
;
10080 PyObject
* _argo0
= 0;
10081 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10095 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10097 wxPyEndAllowThreads(__tstate
);
10098 if (PyErr_Occurred()) return NULL
;
10099 } _resultobj
= Py_BuildValue("i",_result
);
10103 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10104 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10105 PyObject
* _resultobj
;
10112 PyObject
* _argo0
= 0;
10113 PyObject
* _argo2
= 0;
10114 PyObject
* _argo3
= 0;
10115 PyObject
* _argo4
= 0;
10116 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
10119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
10122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10129 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10130 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
10131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10136 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10137 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
10138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10143 if (_argo4
== Py_None
) { _arg4
= NULL
; }
10144 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
10145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10151 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10153 wxPyEndAllowThreads(__tstate
);
10154 if (PyErr_Occurred()) return NULL
;
10155 } _resultobj
= Py_BuildValue("i",_result
);
10159 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10160 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10161 PyObject
* _resultobj
;
10164 PyObject
* _argo0
= 0;
10165 char *_kwnames
[] = { "self", NULL
};
10168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10179 _result
= (bool )wxPalette_Ok(_arg0
);
10181 wxPyEndAllowThreads(__tstate
);
10182 if (PyErr_Occurred()) return NULL
;
10183 } _resultobj
= Py_BuildValue("i",_result
);
10187 static void *SwigwxImageListTowxObject(void *ptr
) {
10190 src
= (wxImageList
*) ptr
;
10191 dest
= (wxObject
*) src
;
10192 return (void *) dest
;
10195 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10196 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10197 PyObject
* _resultobj
;
10198 wxImageList
* _result
;
10201 int _arg2
= (int ) TRUE
;
10202 int _arg3
= (int ) 1;
10203 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10211 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10213 wxPyEndAllowThreads(__tstate
);
10214 if (PyErr_Occurred()) return NULL
;
10216 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10217 _resultobj
= Py_BuildValue("s",_ptemp
);
10219 Py_INCREF(Py_None
);
10220 _resultobj
= Py_None
;
10225 #define delete_wxImageList(_swigobj) (delete _swigobj)
10226 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10227 PyObject
* _resultobj
;
10228 wxImageList
* _arg0
;
10229 PyObject
* _argo0
= 0;
10230 char *_kwnames
[] = { "self", NULL
};
10233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10243 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10244 delete_wxImageList(_arg0
);
10246 wxPyEndAllowThreads(__tstate
);
10247 if (PyErr_Occurred()) return NULL
;
10248 } Py_INCREF(Py_None
);
10249 _resultobj
= Py_None
;
10253 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10254 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10255 PyObject
* _resultobj
;
10257 wxImageList
* _arg0
;
10259 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10260 PyObject
* _argo0
= 0;
10261 PyObject
* _argo1
= 0;
10262 PyObject
* _argo2
= 0;
10263 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10276 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10277 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10283 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10284 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10291 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10293 wxPyEndAllowThreads(__tstate
);
10294 if (PyErr_Occurred()) return NULL
;
10295 } _resultobj
= Py_BuildValue("i",_result
);
10299 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10300 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10301 PyObject
* _resultobj
;
10303 wxImageList
* _arg0
;
10306 PyObject
* _argo0
= 0;
10307 PyObject
* _argo1
= 0;
10309 PyObject
* _obj2
= 0;
10310 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10323 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10324 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10331 if (! wxColour_helper(_obj2
, &_arg2
))
10335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10336 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10338 wxPyEndAllowThreads(__tstate
);
10339 if (PyErr_Occurred()) return NULL
;
10340 } _resultobj
= Py_BuildValue("i",_result
);
10344 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10345 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10346 PyObject
* _resultobj
;
10348 wxImageList
* _arg0
;
10350 PyObject
* _argo0
= 0;
10351 PyObject
* _argo1
= 0;
10352 char *_kwnames
[] = { "self","icon", NULL
};
10355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10365 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10366 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10373 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10375 wxPyEndAllowThreads(__tstate
);
10376 if (PyErr_Occurred()) return NULL
;
10377 } _resultobj
= Py_BuildValue("i",_result
);
10381 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10382 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10383 PyObject
* _resultobj
;
10385 wxImageList
* _arg0
;
10388 PyObject
* _argo0
= 0;
10389 PyObject
* _argo2
= 0;
10390 char *_kwnames
[] = { "self","index","bitmap", NULL
};
10393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
10396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10403 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10404 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10411 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
10413 wxPyEndAllowThreads(__tstate
);
10414 if (PyErr_Occurred()) return NULL
;
10415 } _resultobj
= Py_BuildValue("i",_result
);
10419 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10420 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10421 PyObject
* _resultobj
;
10423 wxImageList
* _arg0
;
10428 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10429 bool _arg6
= (bool ) FALSE
;
10430 PyObject
* _argo0
= 0;
10431 PyObject
* _argo2
= 0;
10432 int tempbool6
= (int) FALSE
;
10433 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10446 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10447 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10452 _arg6
= (bool ) tempbool6
;
10454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10455 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10457 wxPyEndAllowThreads(__tstate
);
10458 if (PyErr_Occurred()) return NULL
;
10459 } _resultobj
= Py_BuildValue("i",_result
);
10463 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10464 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10465 PyObject
* _resultobj
;
10467 wxImageList
* _arg0
;
10468 PyObject
* _argo0
= 0;
10469 char *_kwnames
[] = { "self", NULL
};
10472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10482 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10483 _result
= (int )wxImageList_GetImageCount(_arg0
);
10485 wxPyEndAllowThreads(__tstate
);
10486 if (PyErr_Occurred()) return NULL
;
10487 } _resultobj
= Py_BuildValue("i",_result
);
10491 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10492 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10493 PyObject
* _resultobj
;
10495 wxImageList
* _arg0
;
10497 PyObject
* _argo0
= 0;
10498 char *_kwnames
[] = { "self","index", NULL
};
10501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10512 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10514 wxPyEndAllowThreads(__tstate
);
10515 if (PyErr_Occurred()) return NULL
;
10516 } _resultobj
= Py_BuildValue("i",_result
);
10520 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10521 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10522 PyObject
* _resultobj
;
10524 wxImageList
* _arg0
;
10525 PyObject
* _argo0
= 0;
10526 char *_kwnames
[] = { "self", NULL
};
10529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10539 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10540 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10542 wxPyEndAllowThreads(__tstate
);
10543 if (PyErr_Occurred()) return NULL
;
10544 } _resultobj
= Py_BuildValue("i",_result
);
10548 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10549 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10550 PyObject
* _resultobj
;
10551 wxImageList
* _arg0
;
10557 PyObject
* _argo0
= 0;
10558 char *_kwnames
[] = { "self","index", NULL
};
10567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10578 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10580 wxPyEndAllowThreads(__tstate
);
10581 if (PyErr_Occurred()) return NULL
;
10582 } Py_INCREF(Py_None
);
10583 _resultobj
= Py_None
;
10586 o
= PyInt_FromLong((long) (*_arg2
));
10587 _resultobj
= t_output_helper(_resultobj
, o
);
10591 o
= PyInt_FromLong((long) (*_arg3
));
10592 _resultobj
= t_output_helper(_resultobj
, o
);
10597 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10600 src
= (wxRegion
*) ptr
;
10601 dest
= (wxGDIObject
*) src
;
10602 return (void *) dest
;
10605 static void *SwigwxRegionTowxObject(void *ptr
) {
10608 src
= (wxRegion
*) ptr
;
10609 dest
= (wxObject
*) src
;
10610 return (void *) dest
;
10613 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10614 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10615 PyObject
* _resultobj
;
10616 wxRegion
* _result
;
10617 long _arg0
= (long ) 0;
10618 long _arg1
= (long ) 0;
10619 long _arg2
= (long ) 0;
10620 long _arg3
= (long ) 0;
10621 char *_kwnames
[] = { "x","y","width","height", NULL
};
10625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10629 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10631 wxPyEndAllowThreads(__tstate
);
10632 if (PyErr_Occurred()) return NULL
;
10634 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10635 _resultobj
= Py_BuildValue("s",_ptemp
);
10637 Py_INCREF(Py_None
);
10638 _resultobj
= Py_None
;
10643 #define delete_wxRegion(_swigobj) (delete _swigobj)
10644 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10645 PyObject
* _resultobj
;
10647 PyObject
* _argo0
= 0;
10648 char *_kwnames
[] = { "self", NULL
};
10651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10662 delete_wxRegion(_arg0
);
10664 wxPyEndAllowThreads(__tstate
);
10665 if (PyErr_Occurred()) return NULL
;
10666 } Py_INCREF(Py_None
);
10667 _resultobj
= Py_None
;
10671 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10672 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10673 PyObject
* _resultobj
;
10675 PyObject
* _argo0
= 0;
10676 char *_kwnames
[] = { "self", NULL
};
10679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10690 wxRegion_Clear(_arg0
);
10692 wxPyEndAllowThreads(__tstate
);
10693 if (PyErr_Occurred()) return NULL
;
10694 } Py_INCREF(Py_None
);
10695 _resultobj
= Py_None
;
10699 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10700 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10701 PyObject
* _resultobj
;
10706 PyObject
* _argo0
= 0;
10707 char *_kwnames
[] = { "self","x","y", NULL
};
10710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10721 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
10723 wxPyEndAllowThreads(__tstate
);
10724 if (PyErr_Occurred()) return NULL
;
10725 } _resultobj
= Py_BuildValue("i",_result
);
10729 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10730 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10731 PyObject
* _resultobj
;
10732 wxRegionContain _result
;
10736 PyObject
* _argo0
= 0;
10737 char *_kwnames
[] = { "self","x","y", NULL
};
10740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10751 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10753 wxPyEndAllowThreads(__tstate
);
10754 if (PyErr_Occurred()) return NULL
;
10755 } _resultobj
= Py_BuildValue("i",_result
);
10759 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10760 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10761 PyObject
* _resultobj
;
10762 wxRegionContain _result
;
10765 PyObject
* _argo0
= 0;
10767 PyObject
* _obj1
= 0;
10768 char *_kwnames
[] = { "self","pt", NULL
};
10771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10782 if (! wxPoint_helper(_obj1
, &_arg1
))
10786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10787 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10789 wxPyEndAllowThreads(__tstate
);
10790 if (PyErr_Occurred()) return NULL
;
10791 } _resultobj
= Py_BuildValue("i",_result
);
10795 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10796 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10797 PyObject
* _resultobj
;
10798 wxRegionContain _result
;
10801 PyObject
* _argo0
= 0;
10803 PyObject
* _obj1
= 0;
10804 char *_kwnames
[] = { "self","rect", NULL
};
10807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10818 if (! wxRect_helper(_obj1
, &_arg1
))
10822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10823 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10825 wxPyEndAllowThreads(__tstate
);
10826 if (PyErr_Occurred()) return NULL
;
10827 } _resultobj
= Py_BuildValue("i",_result
);
10831 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10832 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10833 PyObject
* _resultobj
;
10834 wxRegionContain _result
;
10840 PyObject
* _argo0
= 0;
10841 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10855 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10857 wxPyEndAllowThreads(__tstate
);
10858 if (PyErr_Occurred()) return NULL
;
10859 } _resultobj
= Py_BuildValue("i",_result
);
10863 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10864 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10865 PyObject
* _resultobj
;
10868 PyObject
* _argo0
= 0;
10869 char *_kwnames
[] = { "self", NULL
};
10873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10884 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10886 wxPyEndAllowThreads(__tstate
);
10887 if (PyErr_Occurred()) return NULL
;
10888 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10889 _resultobj
= Py_BuildValue("s",_ptemp
);
10893 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10894 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10895 PyObject
* _resultobj
;
10902 PyObject
* _argo0
= 0;
10903 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10917 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10919 wxPyEndAllowThreads(__tstate
);
10920 if (PyErr_Occurred()) return NULL
;
10921 } _resultobj
= Py_BuildValue("i",_result
);
10925 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10926 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10927 PyObject
* _resultobj
;
10931 PyObject
* _argo0
= 0;
10933 PyObject
* _obj1
= 0;
10934 char *_kwnames
[] = { "self","rect", NULL
};
10937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10948 if (! wxRect_helper(_obj1
, &_arg1
))
10952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10953 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10955 wxPyEndAllowThreads(__tstate
);
10956 if (PyErr_Occurred()) return NULL
;
10957 } _resultobj
= Py_BuildValue("i",_result
);
10961 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10962 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10963 PyObject
* _resultobj
;
10967 PyObject
* _argo0
= 0;
10968 PyObject
* _argo1
= 0;
10969 char *_kwnames
[] = { "self","region", NULL
};
10972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10990 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10992 wxPyEndAllowThreads(__tstate
);
10993 if (PyErr_Occurred()) return NULL
;
10994 } _resultobj
= Py_BuildValue("i",_result
);
10998 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10999 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11000 PyObject
* _resultobj
;
11003 PyObject
* _argo0
= 0;
11004 char *_kwnames
[] = { "self", NULL
};
11007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11018 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11020 wxPyEndAllowThreads(__tstate
);
11021 if (PyErr_Occurred()) return NULL
;
11022 } _resultobj
= Py_BuildValue("i",_result
);
11026 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11027 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11028 PyObject
* _resultobj
;
11035 PyObject
* _argo0
= 0;
11036 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11050 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11052 wxPyEndAllowThreads(__tstate
);
11053 if (PyErr_Occurred()) return NULL
;
11054 } _resultobj
= Py_BuildValue("i",_result
);
11058 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11059 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11060 PyObject
* _resultobj
;
11064 PyObject
* _argo0
= 0;
11066 PyObject
* _obj1
= 0;
11067 char *_kwnames
[] = { "self","rect", NULL
};
11070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11081 if (! wxRect_helper(_obj1
, &_arg1
))
11085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11086 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11088 wxPyEndAllowThreads(__tstate
);
11089 if (PyErr_Occurred()) return NULL
;
11090 } _resultobj
= Py_BuildValue("i",_result
);
11094 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11095 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11096 PyObject
* _resultobj
;
11100 PyObject
* _argo0
= 0;
11101 PyObject
* _argo1
= 0;
11102 char *_kwnames
[] = { "self","region", NULL
};
11105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11115 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11116 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11123 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11125 wxPyEndAllowThreads(__tstate
);
11126 if (PyErr_Occurred()) return NULL
;
11127 } _resultobj
= Py_BuildValue("i",_result
);
11131 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11132 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11133 PyObject
* _resultobj
;
11140 PyObject
* _argo0
= 0;
11141 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11155 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11157 wxPyEndAllowThreads(__tstate
);
11158 if (PyErr_Occurred()) return NULL
;
11159 } _resultobj
= Py_BuildValue("i",_result
);
11163 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11164 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11165 PyObject
* _resultobj
;
11169 PyObject
* _argo0
= 0;
11171 PyObject
* _obj1
= 0;
11172 char *_kwnames
[] = { "self","rect", NULL
};
11175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
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_SubtractRect. Expected _wxRegion_p.");
11186 if (! wxRect_helper(_obj1
, &_arg1
))
11190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11191 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11193 wxPyEndAllowThreads(__tstate
);
11194 if (PyErr_Occurred()) return NULL
;
11195 } _resultobj
= Py_BuildValue("i",_result
);
11199 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11200 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11201 PyObject
* _resultobj
;
11205 PyObject
* _argo0
= 0;
11206 PyObject
* _argo1
= 0;
11207 char *_kwnames
[] = { "self","region", NULL
};
11210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
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_SubtractRegion. Expected _wxRegion_p.");
11220 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11221 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11228 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11230 wxPyEndAllowThreads(__tstate
);
11231 if (PyErr_Occurred()) return NULL
;
11232 } _resultobj
= Py_BuildValue("i",_result
);
11236 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11237 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11238 PyObject
* _resultobj
;
11245 PyObject
* _argo0
= 0;
11246 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11260 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11262 wxPyEndAllowThreads(__tstate
);
11263 if (PyErr_Occurred()) return NULL
;
11264 } _resultobj
= Py_BuildValue("i",_result
);
11268 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11269 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11270 PyObject
* _resultobj
;
11274 PyObject
* _argo0
= 0;
11276 PyObject
* _obj1
= 0;
11277 char *_kwnames
[] = { "self","rect", NULL
};
11280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11291 if (! wxRect_helper(_obj1
, &_arg1
))
11295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11296 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11298 wxPyEndAllowThreads(__tstate
);
11299 if (PyErr_Occurred()) return NULL
;
11300 } _resultobj
= Py_BuildValue("i",_result
);
11304 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11305 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11306 PyObject
* _resultobj
;
11310 PyObject
* _argo0
= 0;
11311 PyObject
* _argo1
= 0;
11312 char *_kwnames
[] = { "self","region", NULL
};
11315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11325 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11326 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11333 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11335 wxPyEndAllowThreads(__tstate
);
11336 if (PyErr_Occurred()) return NULL
;
11337 } _resultobj
= Py_BuildValue("i",_result
);
11341 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11342 wxRegionIterator
*src
;
11344 src
= (wxRegionIterator
*) ptr
;
11345 dest
= (wxObject
*) src
;
11346 return (void *) dest
;
11349 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11350 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11351 PyObject
* _resultobj
;
11352 wxRegionIterator
* _result
;
11354 PyObject
* _argo0
= 0;
11355 char *_kwnames
[] = { "region", NULL
};
11359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11370 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11372 wxPyEndAllowThreads(__tstate
);
11373 if (PyErr_Occurred()) return NULL
;
11375 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11376 _resultobj
= Py_BuildValue("s",_ptemp
);
11378 Py_INCREF(Py_None
);
11379 _resultobj
= Py_None
;
11384 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11385 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11386 PyObject
* _resultobj
;
11387 wxRegionIterator
* _arg0
;
11388 PyObject
* _argo0
= 0;
11389 char *_kwnames
[] = { "self", NULL
};
11392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11403 delete_wxRegionIterator(_arg0
);
11405 wxPyEndAllowThreads(__tstate
);
11406 if (PyErr_Occurred()) return NULL
;
11407 } Py_INCREF(Py_None
);
11408 _resultobj
= Py_None
;
11412 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11413 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11414 PyObject
* _resultobj
;
11416 wxRegionIterator
* _arg0
;
11417 PyObject
* _argo0
= 0;
11418 char *_kwnames
[] = { "self", NULL
};
11421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11432 _result
= (long )wxRegionIterator_GetX(_arg0
);
11434 wxPyEndAllowThreads(__tstate
);
11435 if (PyErr_Occurred()) return NULL
;
11436 } _resultobj
= Py_BuildValue("l",_result
);
11440 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11441 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11442 PyObject
* _resultobj
;
11444 wxRegionIterator
* _arg0
;
11445 PyObject
* _argo0
= 0;
11446 char *_kwnames
[] = { "self", NULL
};
11449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11460 _result
= (long )wxRegionIterator_GetY(_arg0
);
11462 wxPyEndAllowThreads(__tstate
);
11463 if (PyErr_Occurred()) return NULL
;
11464 } _resultobj
= Py_BuildValue("l",_result
);
11468 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11469 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11470 PyObject
* _resultobj
;
11472 wxRegionIterator
* _arg0
;
11473 PyObject
* _argo0
= 0;
11474 char *_kwnames
[] = { "self", NULL
};
11477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11488 _result
= (long )wxRegionIterator_GetW(_arg0
);
11490 wxPyEndAllowThreads(__tstate
);
11491 if (PyErr_Occurred()) return NULL
;
11492 } _resultobj
= Py_BuildValue("l",_result
);
11496 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11497 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11498 PyObject
* _resultobj
;
11500 wxRegionIterator
* _arg0
;
11501 PyObject
* _argo0
= 0;
11502 char *_kwnames
[] = { "self", NULL
};
11505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11516 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11518 wxPyEndAllowThreads(__tstate
);
11519 if (PyErr_Occurred()) return NULL
;
11520 } _resultobj
= Py_BuildValue("l",_result
);
11524 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11525 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11526 PyObject
* _resultobj
;
11528 wxRegionIterator
* _arg0
;
11529 PyObject
* _argo0
= 0;
11530 char *_kwnames
[] = { "self", NULL
};
11533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11544 _result
= (long )wxRegionIterator_GetH(_arg0
);
11546 wxPyEndAllowThreads(__tstate
);
11547 if (PyErr_Occurred()) return NULL
;
11548 } _resultobj
= Py_BuildValue("l",_result
);
11552 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11553 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11554 PyObject
* _resultobj
;
11556 wxRegionIterator
* _arg0
;
11557 PyObject
* _argo0
= 0;
11558 char *_kwnames
[] = { "self", NULL
};
11561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11572 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11574 wxPyEndAllowThreads(__tstate
);
11575 if (PyErr_Occurred()) return NULL
;
11576 } _resultobj
= Py_BuildValue("l",_result
);
11580 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11581 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11582 PyObject
* _resultobj
;
11584 wxRegionIterator
* _arg0
;
11585 PyObject
* _argo0
= 0;
11586 char *_kwnames
[] = { "self", NULL
};
11590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11601 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11603 wxPyEndAllowThreads(__tstate
);
11604 if (PyErr_Occurred()) return NULL
;
11605 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11606 _resultobj
= Py_BuildValue("s",_ptemp
);
11610 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11611 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11612 PyObject
* _resultobj
;
11614 wxRegionIterator
* _arg0
;
11615 PyObject
* _argo0
= 0;
11616 char *_kwnames
[] = { "self", NULL
};
11619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11630 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11632 wxPyEndAllowThreads(__tstate
);
11633 if (PyErr_Occurred()) return NULL
;
11634 } _resultobj
= Py_BuildValue("i",_result
);
11638 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11639 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11640 PyObject
* _resultobj
;
11641 wxRegionIterator
* _arg0
;
11642 PyObject
* _argo0
= 0;
11643 char *_kwnames
[] = { "self", NULL
};
11646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11657 wxRegionIterator_Reset(_arg0
);
11659 wxPyEndAllowThreads(__tstate
);
11660 if (PyErr_Occurred()) return NULL
;
11661 } Py_INCREF(Py_None
);
11662 _resultobj
= Py_None
;
11666 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11669 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11670 PyObject
* _resultobj
;
11671 wxRegionIterator
* _arg0
;
11672 PyObject
* _argo0
= 0;
11673 char *_kwnames
[] = { "self", NULL
};
11676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11687 wxRegionIterator_Next(_arg0
);
11689 wxPyEndAllowThreads(__tstate
);
11690 if (PyErr_Occurred()) return NULL
;
11691 } Py_INCREF(Py_None
);
11692 _resultobj
= Py_None
;
11696 static PyMethodDef gdicMethods
[] = {
11697 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11698 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11699 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11700 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11701 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11702 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11703 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11704 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11705 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11706 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11707 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11708 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11709 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11710 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11711 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11712 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11713 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11714 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11715 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11716 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11717 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11718 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11719 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11720 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11721 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11722 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11723 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11724 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11725 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11726 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11727 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
11728 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11729 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11730 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11731 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11732 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11733 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11734 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11735 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11736 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11737 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11738 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11739 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11740 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11741 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11742 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11743 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11744 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11745 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11746 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11747 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11748 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11749 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11750 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11751 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11752 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11753 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11754 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11755 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11756 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11757 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11758 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11759 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11760 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11761 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11762 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11763 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11764 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11765 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11766 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11767 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11768 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11769 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11770 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11771 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11772 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11773 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11774 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11775 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11776 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11777 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11778 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11779 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11780 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11781 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11782 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11783 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11784 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11785 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11786 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11787 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11788 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11789 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11790 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11791 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11792 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11793 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11794 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11795 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11796 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11797 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11798 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11799 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11800 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11801 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11802 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11803 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11804 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11805 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11806 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11807 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11808 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11809 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11810 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11811 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11812 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11813 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11814 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11815 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11816 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11817 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11818 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11819 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11820 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11821 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11822 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11823 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11824 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11825 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11826 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11827 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11828 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11829 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11830 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
11831 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
11832 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11833 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11834 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11835 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11836 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11837 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11838 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11839 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11840 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11841 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11842 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11843 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11844 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11845 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11846 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11847 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11848 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11849 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11850 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11851 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11852 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11853 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11854 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11855 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11856 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11857 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11858 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11859 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11860 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11861 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11862 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11863 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11864 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11865 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11866 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11867 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11868 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11869 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11870 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11871 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11872 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11873 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11874 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11875 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11876 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11877 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11878 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11879 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11880 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11881 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11882 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11883 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11884 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11885 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11886 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11887 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11888 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11889 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11890 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11891 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11892 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11893 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11894 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11895 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11896 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11897 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11898 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11899 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11900 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11901 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11902 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11903 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11904 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11905 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11906 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11907 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11908 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11909 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11910 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11911 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
11912 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11913 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
11914 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11915 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11916 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11917 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11918 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11919 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11920 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11921 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11922 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11923 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11924 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11925 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11926 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11927 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11928 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11929 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11930 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11931 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11932 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11933 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11934 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11935 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11936 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11937 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
11938 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
11939 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11940 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11941 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11942 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
11943 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11944 { "wxNativeFontInfo_SetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_SetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11945 { "wxNativeFontInfo_GetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_GetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11946 { "wxNativeFontInfo_IsDefault", (PyCFunction
) _wrap_wxNativeFontInfo_IsDefault
, METH_VARARGS
| METH_KEYWORDS
},
11947 { "wxNativeFontInfo_FromXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_FromXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11948 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11949 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11950 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11951 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11952 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11953 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11954 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11955 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11956 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11957 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11958 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11959 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11960 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11961 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11962 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11963 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11964 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11965 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11966 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11967 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11968 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11969 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11970 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11971 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11972 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11973 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11974 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11975 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11976 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11977 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11978 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11979 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11980 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11981 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11982 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11983 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11984 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11985 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11986 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11987 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11988 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11989 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11990 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11991 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11992 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11993 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12000 * This table is used by the pointer type-checker
12002 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12003 { "_signed_long","_long",0},
12004 { "_wxPrintQuality","_wxCoord",0},
12005 { "_wxPrintQuality","_int",0},
12006 { "_wxPrintQuality","_signed_int",0},
12007 { "_wxPrintQuality","_unsigned_int",0},
12008 { "_wxPrintQuality","_wxWindowID",0},
12009 { "_wxPrintQuality","_uint",0},
12010 { "_wxPrintQuality","_EBool",0},
12011 { "_wxPrintQuality","_size_t",0},
12012 { "_wxPrintQuality","_time_t",0},
12013 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12014 { "_byte","_unsigned_char",0},
12015 { "_long","_unsigned_long",0},
12016 { "_long","_signed_long",0},
12017 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12018 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12019 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12020 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12021 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12022 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12023 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12024 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12025 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12026 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12027 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12028 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12029 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12030 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12031 { "_size_t","_wxCoord",0},
12032 { "_size_t","_wxPrintQuality",0},
12033 { "_size_t","_time_t",0},
12034 { "_size_t","_unsigned_int",0},
12035 { "_size_t","_int",0},
12036 { "_size_t","_wxWindowID",0},
12037 { "_size_t","_uint",0},
12038 { "_uint","_wxCoord",0},
12039 { "_uint","_wxPrintQuality",0},
12040 { "_uint","_time_t",0},
12041 { "_uint","_size_t",0},
12042 { "_uint","_unsigned_int",0},
12043 { "_uint","_int",0},
12044 { "_uint","_wxWindowID",0},
12045 { "_wxChar","_char",0},
12046 { "_char","_wxChar",0},
12047 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12048 { "_EBool","_wxCoord",0},
12049 { "_EBool","_wxPrintQuality",0},
12050 { "_EBool","_signed_int",0},
12051 { "_EBool","_int",0},
12052 { "_EBool","_wxWindowID",0},
12053 { "_unsigned_long","_long",0},
12054 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12055 { "_signed_int","_wxCoord",0},
12056 { "_signed_int","_wxPrintQuality",0},
12057 { "_signed_int","_EBool",0},
12058 { "_signed_int","_wxWindowID",0},
12059 { "_signed_int","_int",0},
12060 { "_WXTYPE","_short",0},
12061 { "_WXTYPE","_signed_short",0},
12062 { "_WXTYPE","_unsigned_short",0},
12063 { "_unsigned_short","_WXTYPE",0},
12064 { "_unsigned_short","_short",0},
12065 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12066 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12067 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12068 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12069 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12070 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12071 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12072 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12073 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12074 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12075 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12076 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12077 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12078 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12079 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12080 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12081 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12082 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12083 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12084 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12085 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12086 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12087 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12088 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12089 { "_signed_short","_WXTYPE",0},
12090 { "_signed_short","_short",0},
12091 { "_unsigned_char","_byte",0},
12092 { "_unsigned_int","_wxCoord",0},
12093 { "_unsigned_int","_wxPrintQuality",0},
12094 { "_unsigned_int","_time_t",0},
12095 { "_unsigned_int","_size_t",0},
12096 { "_unsigned_int","_uint",0},
12097 { "_unsigned_int","_wxWindowID",0},
12098 { "_unsigned_int","_int",0},
12099 { "_short","_WXTYPE",0},
12100 { "_short","_unsigned_short",0},
12101 { "_short","_signed_short",0},
12102 { "_wxWindowID","_wxCoord",0},
12103 { "_wxWindowID","_wxPrintQuality",0},
12104 { "_wxWindowID","_time_t",0},
12105 { "_wxWindowID","_size_t",0},
12106 { "_wxWindowID","_EBool",0},
12107 { "_wxWindowID","_uint",0},
12108 { "_wxWindowID","_int",0},
12109 { "_wxWindowID","_signed_int",0},
12110 { "_wxWindowID","_unsigned_int",0},
12111 { "_int","_wxCoord",0},
12112 { "_int","_wxPrintQuality",0},
12113 { "_int","_time_t",0},
12114 { "_int","_size_t",0},
12115 { "_int","_EBool",0},
12116 { "_int","_uint",0},
12117 { "_int","_wxWindowID",0},
12118 { "_int","_unsigned_int",0},
12119 { "_int","_signed_int",0},
12120 { "_time_t","_wxCoord",0},
12121 { "_time_t","_wxPrintQuality",0},
12122 { "_time_t","_unsigned_int",0},
12123 { "_time_t","_int",0},
12124 { "_time_t","_wxWindowID",0},
12125 { "_time_t","_uint",0},
12126 { "_time_t","_size_t",0},
12127 { "_wxCoord","_int",0},
12128 { "_wxCoord","_signed_int",0},
12129 { "_wxCoord","_unsigned_int",0},
12130 { "_wxCoord","_wxWindowID",0},
12131 { "_wxCoord","_uint",0},
12132 { "_wxCoord","_EBool",0},
12133 { "_wxCoord","_size_t",0},
12134 { "_wxCoord","_time_t",0},
12135 { "_wxCoord","_wxPrintQuality",0},
12138 static PyObject
*SWIG_globals
;
12142 SWIGEXPORT(void) initgdic() {
12144 SWIG_globals
= SWIG_newvarlink();
12145 m
= Py_InitModule("gdic", gdicMethods
);
12146 d
= PyModule_GetDict(m
);
12147 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12148 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12149 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12150 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12151 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12152 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12153 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12154 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12155 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
12156 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12157 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12158 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12159 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12160 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12161 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12162 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12163 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12164 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12165 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12166 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12167 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12168 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12169 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12170 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12171 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12172 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12173 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12174 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12175 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12176 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12177 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12178 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12179 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12180 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12181 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12182 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12183 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12184 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12185 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12186 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12187 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12188 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12189 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12190 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12191 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
12192 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
12193 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
12194 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
12195 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12196 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12197 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12198 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12199 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12200 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12201 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12202 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12203 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12204 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12205 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12206 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12207 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12208 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12209 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12210 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12211 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12212 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12213 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12214 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12215 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12216 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12217 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12218 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12219 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12220 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12221 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12222 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12223 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12224 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12225 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12226 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12227 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12228 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12229 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12230 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12231 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12232 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12233 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12234 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12235 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12236 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12237 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12238 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12239 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12240 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12241 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12242 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12243 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12244 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12245 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12246 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12247 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12248 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12249 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12250 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12251 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12252 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12253 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12254 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12255 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12256 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12257 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12258 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12259 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12260 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12261 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12262 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12263 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12264 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12267 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12268 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);