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 // first see if the name is already there
4879 wxString cName
= name
;
4881 wxString cName2
= cName
;
4882 if ( !cName2
.Replace("GRAY", "GREY") )
4885 wxNode
*node
= self
->First();
4887 const wxChar
*key
= node
->GetKeyString();
4888 if ( cName
== key
|| cName2
== key
) {
4889 wxColour
* c
= (wxColour
*)node
->Data();
4890 c
->Set(red
, green
, blue
);
4893 node
= node
->Next();
4896 // otherwise append the new colour
4897 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4899 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4900 PyObject
* _resultobj
;
4901 wxColourDatabase
* _arg0
;
4906 PyObject
* _argo0
= 0;
4907 PyObject
* _obj1
= 0;
4908 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4921 #if PYTHON_API_VERSION >= 1009
4922 char* tmpPtr
; int tmpSize
;
4923 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4924 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4927 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4929 _arg1
= new wxString(tmpPtr
, tmpSize
);
4931 if (!PyString_Check(_obj1
)) {
4932 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4935 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4940 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4942 wxPyEndAllowThreads(__tstate
);
4943 if (PyErr_Occurred()) return NULL
;
4944 } Py_INCREF(Py_None
);
4945 _resultobj
= Py_None
;
4953 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4956 src
= (wxPen
*) ptr
;
4957 dest
= (wxGDIObject
*) src
;
4958 return (void *) dest
;
4961 static void *SwigwxPenTowxObject(void *ptr
) {
4964 src
= (wxPen
*) ptr
;
4965 dest
= (wxObject
*) src
;
4966 return (void *) dest
;
4969 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4970 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4971 PyObject
* _resultobj
;
4974 int _arg1
= (int ) 1;
4975 int _arg2
= (int ) wxSOLID
;
4977 PyObject
* _obj0
= 0;
4978 char *_kwnames
[] = { "colour","width","style", NULL
};
4982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4986 if (! wxColour_helper(_obj0
, &_arg0
))
4990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4991 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4993 wxPyEndAllowThreads(__tstate
);
4994 if (PyErr_Occurred()) return NULL
;
4996 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4997 _resultobj
= Py_BuildValue("s",_ptemp
);
5000 _resultobj
= Py_None
;
5005 #define delete_wxPen(_swigobj) (delete _swigobj)
5006 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5007 PyObject
* _resultobj
;
5009 PyObject
* _argo0
= 0;
5010 char *_kwnames
[] = { "self", NULL
};
5013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5024 delete_wxPen(_arg0
);
5026 wxPyEndAllowThreads(__tstate
);
5027 if (PyErr_Occurred()) return NULL
;
5028 } Py_INCREF(Py_None
);
5029 _resultobj
= Py_None
;
5033 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5034 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5035 PyObject
* _resultobj
;
5038 PyObject
* _argo0
= 0;
5039 char *_kwnames
[] = { "self", NULL
};
5042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5053 _result
= (int )wxPen_GetCap(_arg0
);
5055 wxPyEndAllowThreads(__tstate
);
5056 if (PyErr_Occurred()) return NULL
;
5057 } _resultobj
= Py_BuildValue("i",_result
);
5061 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5062 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5063 PyObject
* _resultobj
;
5066 PyObject
* _argo0
= 0;
5067 char *_kwnames
[] = { "self", NULL
};
5071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5082 _result
= new wxColour (wxPen_GetColour(_arg0
));
5084 wxPyEndAllowThreads(__tstate
);
5085 if (PyErr_Occurred()) return NULL
;
5086 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5087 _resultobj
= Py_BuildValue("s",_ptemp
);
5091 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5092 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5093 PyObject
* _resultobj
;
5096 PyObject
* _argo0
= 0;
5097 char *_kwnames
[] = { "self", NULL
};
5100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5111 _result
= (int )wxPen_GetJoin(_arg0
);
5113 wxPyEndAllowThreads(__tstate
);
5114 if (PyErr_Occurred()) return NULL
;
5115 } _resultobj
= Py_BuildValue("i",_result
);
5119 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5120 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5121 PyObject
* _resultobj
;
5124 PyObject
* _argo0
= 0;
5125 char *_kwnames
[] = { "self", NULL
};
5128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5139 _result
= (int )wxPen_GetStyle(_arg0
);
5141 wxPyEndAllowThreads(__tstate
);
5142 if (PyErr_Occurred()) return NULL
;
5143 } _resultobj
= Py_BuildValue("i",_result
);
5147 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5148 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5149 PyObject
* _resultobj
;
5152 PyObject
* _argo0
= 0;
5153 char *_kwnames
[] = { "self", NULL
};
5156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5167 _result
= (int )wxPen_GetWidth(_arg0
);
5169 wxPyEndAllowThreads(__tstate
);
5170 if (PyErr_Occurred()) return NULL
;
5171 } _resultobj
= Py_BuildValue("i",_result
);
5175 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5176 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5177 PyObject
* _resultobj
;
5180 PyObject
* _argo0
= 0;
5181 char *_kwnames
[] = { "self", NULL
};
5184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5195 _result
= (bool )wxPen_Ok(_arg0
);
5197 wxPyEndAllowThreads(__tstate
);
5198 if (PyErr_Occurred()) return NULL
;
5199 } _resultobj
= Py_BuildValue("i",_result
);
5203 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5204 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5205 PyObject
* _resultobj
;
5208 PyObject
* _argo0
= 0;
5209 char *_kwnames
[] = { "self","cap_style", NULL
};
5212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5223 wxPen_SetCap(_arg0
,_arg1
);
5225 wxPyEndAllowThreads(__tstate
);
5226 if (PyErr_Occurred()) return NULL
;
5227 } Py_INCREF(Py_None
);
5228 _resultobj
= Py_None
;
5232 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5233 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5234 PyObject
* _resultobj
;
5237 PyObject
* _argo0
= 0;
5239 PyObject
* _obj1
= 0;
5240 char *_kwnames
[] = { "self","colour", NULL
};
5243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5254 if (! wxColour_helper(_obj1
, &_arg1
))
5258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5259 wxPen_SetColour(_arg0
,*_arg1
);
5261 wxPyEndAllowThreads(__tstate
);
5262 if (PyErr_Occurred()) return NULL
;
5263 } Py_INCREF(Py_None
);
5264 _resultobj
= Py_None
;
5268 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5269 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5270 PyObject
* _resultobj
;
5273 PyObject
* _argo0
= 0;
5274 char *_kwnames
[] = { "self","join_style", NULL
};
5277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5288 wxPen_SetJoin(_arg0
,_arg1
);
5290 wxPyEndAllowThreads(__tstate
);
5291 if (PyErr_Occurred()) return NULL
;
5292 } Py_INCREF(Py_None
);
5293 _resultobj
= Py_None
;
5297 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5298 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5299 PyObject
* _resultobj
;
5302 PyObject
* _argo0
= 0;
5303 char *_kwnames
[] = { "self","style", NULL
};
5306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5317 wxPen_SetStyle(_arg0
,_arg1
);
5319 wxPyEndAllowThreads(__tstate
);
5320 if (PyErr_Occurred()) return NULL
;
5321 } Py_INCREF(Py_None
);
5322 _resultobj
= Py_None
;
5326 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5327 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5328 PyObject
* _resultobj
;
5331 PyObject
* _argo0
= 0;
5332 char *_kwnames
[] = { "self","width", NULL
};
5335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5346 wxPen_SetWidth(_arg0
,_arg1
);
5348 wxPyEndAllowThreads(__tstate
);
5349 if (PyErr_Occurred()) return NULL
;
5350 } Py_INCREF(Py_None
);
5351 _resultobj
= Py_None
;
5355 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5356 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5357 PyObject
* _resultobj
;
5361 PyObject
* _argo0
= 0;
5362 PyObject
* _obj2
= 0;
5363 char *_kwnames
[] = { "self","choices", NULL
};
5366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5377 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5378 if (_arg2
== NULL
) {
5384 _arg1
= PyList_Size(_obj2
);
5391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5392 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5394 wxPyEndAllowThreads(__tstate
);
5395 if (PyErr_Occurred()) return NULL
;
5396 } Py_INCREF(Py_None
);
5397 _resultobj
= Py_None
;
5404 static void *SwigwxPyPenTowxPen(void *ptr
) {
5407 src
= (wxPyPen
*) ptr
;
5408 dest
= (wxPen
*) src
;
5409 return (void *) dest
;
5412 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5415 src
= (wxPyPen
*) ptr
;
5416 dest
= (wxGDIObject
*) src
;
5417 return (void *) dest
;
5420 static void *SwigwxPyPenTowxObject(void *ptr
) {
5423 src
= (wxPyPen
*) ptr
;
5424 dest
= (wxObject
*) src
;
5425 return (void *) dest
;
5428 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5429 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5430 PyObject
* _resultobj
;
5433 int _arg1
= (int ) 1;
5434 int _arg2
= (int ) wxSOLID
;
5436 PyObject
* _obj0
= 0;
5437 char *_kwnames
[] = { "colour","width","style", NULL
};
5441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5445 if (! wxColour_helper(_obj0
, &_arg0
))
5449 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5450 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5452 wxPyEndAllowThreads(__tstate
);
5453 if (PyErr_Occurred()) return NULL
;
5455 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5456 _resultobj
= Py_BuildValue("s",_ptemp
);
5459 _resultobj
= Py_None
;
5464 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5465 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5466 PyObject
* _resultobj
;
5468 PyObject
* _argo0
= 0;
5469 char *_kwnames
[] = { "self", NULL
};
5472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5482 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5483 delete_wxPyPen(_arg0
);
5485 wxPyEndAllowThreads(__tstate
);
5486 if (PyErr_Occurred()) return NULL
;
5487 } Py_INCREF(Py_None
);
5488 _resultobj
= Py_None
;
5492 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5493 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5494 PyObject
* _resultobj
;
5498 PyObject
* _argo0
= 0;
5499 PyObject
* _obj2
= 0;
5500 char *_kwnames
[] = { "self","choices", NULL
};
5503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5514 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5515 if (_arg2
== NULL
) {
5521 _arg1
= PyList_Size(_obj2
);
5528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5529 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5531 wxPyEndAllowThreads(__tstate
);
5532 if (PyErr_Occurred()) return NULL
;
5533 } Py_INCREF(Py_None
);
5534 _resultobj
= Py_None
;
5541 static void *SwigwxPenListTowxObject(void *ptr
) {
5544 src
= (wxPenList
*) ptr
;
5545 dest
= (wxObject
*) src
;
5546 return (void *) dest
;
5549 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5550 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5551 PyObject
* _resultobj
;
5554 PyObject
* _argo0
= 0;
5555 PyObject
* _argo1
= 0;
5556 char *_kwnames
[] = { "self","pen", NULL
};
5559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5569 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5570 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5577 wxPenList_AddPen(_arg0
,_arg1
);
5579 wxPyEndAllowThreads(__tstate
);
5580 if (PyErr_Occurred()) return NULL
;
5581 } Py_INCREF(Py_None
);
5582 _resultobj
= Py_None
;
5586 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5587 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5588 PyObject
* _resultobj
;
5594 PyObject
* _argo0
= 0;
5596 PyObject
* _obj1
= 0;
5597 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5612 if (! wxColour_helper(_obj1
, &_arg1
))
5616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5617 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5619 wxPyEndAllowThreads(__tstate
);
5620 if (PyErr_Occurred()) return NULL
;
5622 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5623 _resultobj
= Py_BuildValue("s",_ptemp
);
5626 _resultobj
= Py_None
;
5631 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5632 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5633 PyObject
* _resultobj
;
5636 PyObject
* _argo0
= 0;
5637 PyObject
* _argo1
= 0;
5638 char *_kwnames
[] = { "self","pen", NULL
};
5641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5651 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5652 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5659 wxPenList_RemovePen(_arg0
,_arg1
);
5661 wxPyEndAllowThreads(__tstate
);
5662 if (PyErr_Occurred()) return NULL
;
5663 } Py_INCREF(Py_None
);
5664 _resultobj
= Py_None
;
5668 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5669 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5670 PyObject
* _resultobj
;
5673 PyObject
* _argo0
= 0;
5674 char *_kwnames
[] = { "self", NULL
};
5677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5688 _result
= (int )wxPenList_GetCount(_arg0
);
5690 wxPyEndAllowThreads(__tstate
);
5691 if (PyErr_Occurred()) return NULL
;
5692 } _resultobj
= Py_BuildValue("i",_result
);
5696 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5699 src
= (wxBrush
*) ptr
;
5700 dest
= (wxGDIObject
*) src
;
5701 return (void *) dest
;
5704 static void *SwigwxBrushTowxObject(void *ptr
) {
5707 src
= (wxBrush
*) ptr
;
5708 dest
= (wxObject
*) src
;
5709 return (void *) dest
;
5712 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5713 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5714 PyObject
* _resultobj
;
5717 int _arg1
= (int ) wxSOLID
;
5719 PyObject
* _obj0
= 0;
5720 char *_kwnames
[] = { "colour","style", NULL
};
5724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5728 if (! wxColour_helper(_obj0
, &_arg0
))
5732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5733 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5735 wxPyEndAllowThreads(__tstate
);
5736 if (PyErr_Occurred()) return NULL
;
5738 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5739 _resultobj
= Py_BuildValue("s",_ptemp
);
5742 _resultobj
= Py_None
;
5747 #define delete_wxBrush(_swigobj) (delete _swigobj)
5748 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5749 PyObject
* _resultobj
;
5751 PyObject
* _argo0
= 0;
5752 char *_kwnames
[] = { "self", NULL
};
5755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5766 delete_wxBrush(_arg0
);
5768 wxPyEndAllowThreads(__tstate
);
5769 if (PyErr_Occurred()) return NULL
;
5770 } Py_INCREF(Py_None
);
5771 _resultobj
= Py_None
;
5775 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5776 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5777 PyObject
* _resultobj
;
5780 PyObject
* _argo0
= 0;
5781 char *_kwnames
[] = { "self", NULL
};
5785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5795 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5796 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5798 wxPyEndAllowThreads(__tstate
);
5799 if (PyErr_Occurred()) return NULL
;
5800 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5801 _resultobj
= Py_BuildValue("s",_ptemp
);
5805 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5806 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5807 PyObject
* _resultobj
;
5810 PyObject
* _argo0
= 0;
5811 char *_kwnames
[] = { "self", NULL
};
5815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5826 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5828 wxPyEndAllowThreads(__tstate
);
5829 if (PyErr_Occurred()) return NULL
;
5831 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5832 _resultobj
= Py_BuildValue("s",_ptemp
);
5835 _resultobj
= Py_None
;
5840 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5841 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5842 PyObject
* _resultobj
;
5845 PyObject
* _argo0
= 0;
5846 char *_kwnames
[] = { "self", NULL
};
5849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5860 _result
= (int )wxBrush_GetStyle(_arg0
);
5862 wxPyEndAllowThreads(__tstate
);
5863 if (PyErr_Occurred()) return NULL
;
5864 } _resultobj
= Py_BuildValue("i",_result
);
5868 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5869 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5870 PyObject
* _resultobj
;
5873 PyObject
* _argo0
= 0;
5874 char *_kwnames
[] = { "self", NULL
};
5877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5888 _result
= (bool )wxBrush_Ok(_arg0
);
5890 wxPyEndAllowThreads(__tstate
);
5891 if (PyErr_Occurred()) return NULL
;
5892 } _resultobj
= Py_BuildValue("i",_result
);
5896 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5897 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5898 PyObject
* _resultobj
;
5901 PyObject
* _argo0
= 0;
5903 PyObject
* _obj1
= 0;
5904 char *_kwnames
[] = { "self","colour", NULL
};
5907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5918 if (! wxColour_helper(_obj1
, &_arg1
))
5922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5923 wxBrush_SetColour(_arg0
,*_arg1
);
5925 wxPyEndAllowThreads(__tstate
);
5926 if (PyErr_Occurred()) return NULL
;
5927 } Py_INCREF(Py_None
);
5928 _resultobj
= Py_None
;
5932 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5933 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5934 PyObject
* _resultobj
;
5937 PyObject
* _argo0
= 0;
5938 PyObject
* _argo1
= 0;
5939 char *_kwnames
[] = { "self","bitmap", NULL
};
5942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5952 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5953 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5960 wxBrush_SetStipple(_arg0
,*_arg1
);
5962 wxPyEndAllowThreads(__tstate
);
5963 if (PyErr_Occurred()) return NULL
;
5964 } Py_INCREF(Py_None
);
5965 _resultobj
= Py_None
;
5969 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5970 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5971 PyObject
* _resultobj
;
5974 PyObject
* _argo0
= 0;
5975 char *_kwnames
[] = { "self","style", NULL
};
5978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5989 wxBrush_SetStyle(_arg0
,_arg1
);
5991 wxPyEndAllowThreads(__tstate
);
5992 if (PyErr_Occurred()) return NULL
;
5993 } Py_INCREF(Py_None
);
5994 _resultobj
= Py_None
;
5998 static void *SwigwxBrushListTowxObject(void *ptr
) {
6001 src
= (wxBrushList
*) ptr
;
6002 dest
= (wxObject
*) src
;
6003 return (void *) dest
;
6006 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6007 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6008 PyObject
* _resultobj
;
6009 wxBrushList
* _arg0
;
6011 PyObject
* _argo0
= 0;
6012 PyObject
* _argo1
= 0;
6013 char *_kwnames
[] = { "self","brush", NULL
};
6016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6026 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6027 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6034 wxBrushList_AddBrush(_arg0
,_arg1
);
6036 wxPyEndAllowThreads(__tstate
);
6037 if (PyErr_Occurred()) return NULL
;
6038 } Py_INCREF(Py_None
);
6039 _resultobj
= Py_None
;
6043 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6044 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6045 PyObject
* _resultobj
;
6047 wxBrushList
* _arg0
;
6050 PyObject
* _argo0
= 0;
6052 PyObject
* _obj1
= 0;
6053 char *_kwnames
[] = { "self","colour","style", NULL
};
6057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6068 if (! wxColour_helper(_obj1
, &_arg1
))
6072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6073 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6075 wxPyEndAllowThreads(__tstate
);
6076 if (PyErr_Occurred()) return NULL
;
6078 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6079 _resultobj
= Py_BuildValue("s",_ptemp
);
6082 _resultobj
= Py_None
;
6087 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6088 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6089 PyObject
* _resultobj
;
6090 wxBrushList
* _arg0
;
6092 PyObject
* _argo0
= 0;
6093 PyObject
* _argo1
= 0;
6094 char *_kwnames
[] = { "self","brush", NULL
};
6097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6107 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6108 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6115 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6117 wxPyEndAllowThreads(__tstate
);
6118 if (PyErr_Occurred()) return NULL
;
6119 } Py_INCREF(Py_None
);
6120 _resultobj
= Py_None
;
6124 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6125 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6126 PyObject
* _resultobj
;
6128 wxBrushList
* _arg0
;
6129 PyObject
* _argo0
= 0;
6130 char *_kwnames
[] = { "self", NULL
};
6133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
6136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6144 _result
= (int )wxBrushList_GetCount(_arg0
);
6146 wxPyEndAllowThreads(__tstate
);
6147 if (PyErr_Occurred()) return NULL
;
6148 } _resultobj
= Py_BuildValue("i",_result
);
6152 static void *SwigwxDCTowxObject(void *ptr
) {
6156 dest
= (wxObject
*) src
;
6157 return (void *) dest
;
6160 #define delete_wxDC(_swigobj) (delete _swigobj)
6161 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6162 PyObject
* _resultobj
;
6164 PyObject
* _argo0
= 0;
6165 char *_kwnames
[] = { "self", NULL
};
6168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6181 wxPyEndAllowThreads(__tstate
);
6182 if (PyErr_Occurred()) return NULL
;
6183 } Py_INCREF(Py_None
);
6184 _resultobj
= Py_None
;
6188 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6189 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6190 PyObject
* _resultobj
;
6192 PyObject
* _argo0
= 0;
6193 char *_kwnames
[] = { "self", NULL
};
6196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6207 wxDC_BeginDrawing(_arg0
);
6209 wxPyEndAllowThreads(__tstate
);
6210 if (PyErr_Occurred()) return NULL
;
6211 } Py_INCREF(Py_None
);
6212 _resultobj
= Py_None
;
6216 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6217 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6218 PyObject
* _resultobj
;
6228 int _arg8
= (int ) wxCOPY
;
6229 int _arg9
= (int ) FALSE
;
6230 PyObject
* _argo0
= 0;
6231 PyObject
* _argo5
= 0;
6232 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6245 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6246 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6253 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6255 wxPyEndAllowThreads(__tstate
);
6256 if (PyErr_Occurred()) return NULL
;
6257 } _resultobj
= Py_BuildValue("i",_result
);
6261 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6262 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6263 PyObject
* _resultobj
;
6265 PyObject
* _argo0
= 0;
6266 char *_kwnames
[] = { "self", NULL
};
6269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6282 wxPyEndAllowThreads(__tstate
);
6283 if (PyErr_Occurred()) return NULL
;
6284 } Py_INCREF(Py_None
);
6285 _resultobj
= Py_None
;
6289 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6290 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6291 PyObject
* _resultobj
;
6295 PyObject
* _argo0
= 0;
6296 char *_kwnames
[] = { "self","x","y", NULL
};
6299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6310 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6312 wxPyEndAllowThreads(__tstate
);
6313 if (PyErr_Occurred()) return NULL
;
6314 } Py_INCREF(Py_None
);
6315 _resultobj
= Py_None
;
6319 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6320 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6321 PyObject
* _resultobj
;
6323 PyObject
* _argo0
= 0;
6324 char *_kwnames
[] = { "self", NULL
};
6327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6338 wxDC_DestroyClippingRegion(_arg0
);
6340 wxPyEndAllowThreads(__tstate
);
6341 if (PyErr_Occurred()) return NULL
;
6342 } Py_INCREF(Py_None
);
6343 _resultobj
= Py_None
;
6347 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6348 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6349 PyObject
* _resultobj
;
6353 PyObject
* _argo0
= 0;
6354 char *_kwnames
[] = { "self","x", NULL
};
6357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6368 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6370 wxPyEndAllowThreads(__tstate
);
6371 if (PyErr_Occurred()) return NULL
;
6372 } _resultobj
= Py_BuildValue("l",_result
);
6376 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6377 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6378 PyObject
* _resultobj
;
6382 PyObject
* _argo0
= 0;
6383 char *_kwnames
[] = { "self","x", NULL
};
6386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6397 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6399 wxPyEndAllowThreads(__tstate
);
6400 if (PyErr_Occurred()) return NULL
;
6401 } _resultobj
= Py_BuildValue("l",_result
);
6405 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6406 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6407 PyObject
* _resultobj
;
6411 PyObject
* _argo0
= 0;
6412 char *_kwnames
[] = { "self","y", NULL
};
6415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6426 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6428 wxPyEndAllowThreads(__tstate
);
6429 if (PyErr_Occurred()) return NULL
;
6430 } _resultobj
= Py_BuildValue("l",_result
);
6434 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6435 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6436 PyObject
* _resultobj
;
6440 PyObject
* _argo0
= 0;
6441 char *_kwnames
[] = { "self","y", NULL
};
6444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6455 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6457 wxPyEndAllowThreads(__tstate
);
6458 if (PyErr_Occurred()) return NULL
;
6459 } _resultobj
= Py_BuildValue("l",_result
);
6463 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6464 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6465 PyObject
* _resultobj
;
6473 PyObject
* _argo0
= 0;
6474 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6488 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6490 wxPyEndAllowThreads(__tstate
);
6491 if (PyErr_Occurred()) return NULL
;
6492 } Py_INCREF(Py_None
);
6493 _resultobj
= Py_None
;
6497 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6498 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6499 PyObject
* _resultobj
;
6504 PyObject
* _argo0
= 0;
6505 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6518 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6519 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6521 wxPyEndAllowThreads(__tstate
);
6522 if (PyErr_Occurred()) return NULL
;
6523 } Py_INCREF(Py_None
);
6524 _resultobj
= Py_None
;
6528 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6529 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6530 PyObject
* _resultobj
;
6536 PyObject
* _argo0
= 0;
6537 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6551 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6553 wxPyEndAllowThreads(__tstate
);
6554 if (PyErr_Occurred()) return NULL
;
6555 } Py_INCREF(Py_None
);
6556 _resultobj
= Py_None
;
6560 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6561 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6562 PyObject
* _resultobj
;
6570 PyObject
* _argo0
= 0;
6571 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6585 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6587 wxPyEndAllowThreads(__tstate
);
6588 if (PyErr_Occurred()) return NULL
;
6589 } Py_INCREF(Py_None
);
6590 _resultobj
= Py_None
;
6594 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6595 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6596 PyObject
* _resultobj
;
6601 PyObject
* _argo0
= 0;
6602 PyObject
* _argo1
= 0;
6603 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6616 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6617 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6624 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6626 wxPyEndAllowThreads(__tstate
);
6627 if (PyErr_Occurred()) return NULL
;
6628 } Py_INCREF(Py_None
);
6629 _resultobj
= Py_None
;
6633 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6634 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6635 PyObject
* _resultobj
;
6639 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6640 int _arg4
= (int ) -1;
6641 PyObject
* _argo0
= 0;
6642 PyObject
* _obj1
= 0;
6644 PyObject
* _obj2
= 0;
6645 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
6648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
6651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6658 #if PYTHON_API_VERSION >= 1009
6659 char* tmpPtr
; int tmpSize
;
6660 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6661 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6664 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6666 _arg1
= new wxString(tmpPtr
, tmpSize
);
6668 if (!PyString_Check(_obj1
)) {
6669 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6672 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6677 if (! wxRect_helper(_obj2
, &_arg2
))
6681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6682 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
6684 wxPyEndAllowThreads(__tstate
);
6685 if (PyErr_Occurred()) return NULL
;
6686 } Py_INCREF(Py_None
);
6687 _resultobj
= Py_None
;
6695 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
6697 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
6700 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6701 PyObject
* _resultobj
;
6707 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6708 int _arg5
= (int ) -1;
6709 PyObject
* _argo0
= 0;
6710 PyObject
* _obj1
= 0;
6711 PyObject
* _argo2
= 0;
6713 PyObject
* _obj3
= 0;
6714 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
6718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
6721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6728 #if PYTHON_API_VERSION >= 1009
6729 char* tmpPtr
; int tmpSize
;
6730 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6731 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6734 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6736 _arg1
= new wxString(tmpPtr
, tmpSize
);
6738 if (!PyString_Check(_obj1
)) {
6739 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6742 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6746 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6747 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
6748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6754 if (! wxRect_helper(_obj3
, &_arg3
))
6758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6759 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
6761 wxPyEndAllowThreads(__tstate
);
6762 if (PyErr_Occurred()) return NULL
;
6763 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
6764 _resultobj
= Py_BuildValue("s",_ptemp
);
6772 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6773 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6774 PyObject
* _resultobj
;
6780 PyObject
* _argo0
= 0;
6781 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6795 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6797 wxPyEndAllowThreads(__tstate
);
6798 if (PyErr_Occurred()) return NULL
;
6799 } Py_INCREF(Py_None
);
6800 _resultobj
= Py_None
;
6804 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6805 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6806 PyObject
* _resultobj
;
6810 long _arg3
= (long ) 0;
6811 long _arg4
= (long ) 0;
6812 PyObject
* _argo0
= 0;
6814 PyObject
* _obj2
= 0;
6815 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6829 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6830 if (_arg2
== NULL
) {
6838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6839 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6841 wxPyEndAllowThreads(__tstate
);
6842 if (PyErr_Occurred()) return NULL
;
6843 } Py_INCREF(Py_None
);
6844 _resultobj
= Py_None
;
6851 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6852 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6853 PyObject
* _resultobj
;
6857 long _arg3
= (long ) 0;
6858 long _arg4
= (long ) 0;
6859 int _arg5
= (int ) wxODDEVEN_RULE
;
6860 PyObject
* _argo0
= 0;
6862 PyObject
* _obj2
= 0;
6863 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6877 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6878 if (_arg2
== NULL
) {
6886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6887 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6889 wxPyEndAllowThreads(__tstate
);
6890 if (PyErr_Occurred()) return NULL
;
6891 } Py_INCREF(Py_None
);
6892 _resultobj
= Py_None
;
6899 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6900 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6901 PyObject
* _resultobj
;
6905 PyObject
* _argo0
= 0;
6906 char *_kwnames
[] = { "self","x","y", NULL
};
6909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6920 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6922 wxPyEndAllowThreads(__tstate
);
6923 if (PyErr_Occurred()) return NULL
;
6924 } Py_INCREF(Py_None
);
6925 _resultobj
= Py_None
;
6929 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6930 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6931 PyObject
* _resultobj
;
6937 PyObject
* _argo0
= 0;
6938 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6952 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6954 wxPyEndAllowThreads(__tstate
);
6955 if (PyErr_Occurred()) return NULL
;
6956 } Py_INCREF(Py_None
);
6957 _resultobj
= Py_None
;
6961 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6962 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6963 PyObject
* _resultobj
;
6969 PyObject
* _argo0
= 0;
6970 PyObject
* _obj1
= 0;
6971 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6984 #if PYTHON_API_VERSION >= 1009
6985 char* tmpPtr
; int tmpSize
;
6986 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6987 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6990 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6992 _arg1
= new wxString(tmpPtr
, tmpSize
);
6994 if (!PyString_Check(_obj1
)) {
6995 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6998 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7003 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7005 wxPyEndAllowThreads(__tstate
);
7006 if (PyErr_Occurred()) return NULL
;
7007 } Py_INCREF(Py_None
);
7008 _resultobj
= Py_None
;
7016 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7017 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7018 PyObject
* _resultobj
;
7024 long _arg5
= (long ) 20;
7025 PyObject
* _argo0
= 0;
7026 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7040 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7042 wxPyEndAllowThreads(__tstate
);
7043 if (PyErr_Occurred()) return NULL
;
7044 } Py_INCREF(Py_None
);
7045 _resultobj
= Py_None
;
7049 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7050 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7051 PyObject
* _resultobj
;
7055 PyObject
* _argo0
= 0;
7057 PyObject
* _obj2
= 0;
7058 char *_kwnames
[] = { "self","points", NULL
};
7061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7072 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7073 if (_arg2
== NULL
) {
7081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7082 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7084 wxPyEndAllowThreads(__tstate
);
7085 if (PyErr_Occurred()) return NULL
;
7086 } Py_INCREF(Py_None
);
7087 _resultobj
= Py_None
;
7094 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7095 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7096 PyObject
* _resultobj
;
7101 PyObject
* _argo0
= 0;
7102 PyObject
* _obj1
= 0;
7103 char *_kwnames
[] = { "self","text","x","y", NULL
};
7106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7116 #if PYTHON_API_VERSION >= 1009
7117 char* tmpPtr
; int tmpSize
;
7118 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7119 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7122 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7124 _arg1
= new wxString(tmpPtr
, tmpSize
);
7126 if (!PyString_Check(_obj1
)) {
7127 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7130 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7135 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7137 wxPyEndAllowThreads(__tstate
);
7138 if (PyErr_Occurred()) return NULL
;
7139 } Py_INCREF(Py_None
);
7140 _resultobj
= Py_None
;
7148 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7149 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7150 PyObject
* _resultobj
;
7152 PyObject
* _argo0
= 0;
7153 char *_kwnames
[] = { "self", NULL
};
7156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7169 wxPyEndAllowThreads(__tstate
);
7170 if (PyErr_Occurred()) return NULL
;
7171 } Py_INCREF(Py_None
);
7172 _resultobj
= Py_None
;
7176 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7177 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7178 PyObject
* _resultobj
;
7180 PyObject
* _argo0
= 0;
7181 char *_kwnames
[] = { "self", NULL
};
7184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7195 wxDC_EndDrawing(_arg0
);
7197 wxPyEndAllowThreads(__tstate
);
7198 if (PyErr_Occurred()) return NULL
;
7199 } Py_INCREF(Py_None
);
7200 _resultobj
= Py_None
;
7204 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7205 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7206 PyObject
* _resultobj
;
7208 PyObject
* _argo0
= 0;
7209 char *_kwnames
[] = { "self", NULL
};
7212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7223 wxDC_EndPage(_arg0
);
7225 wxPyEndAllowThreads(__tstate
);
7226 if (PyErr_Occurred()) return NULL
;
7227 } Py_INCREF(Py_None
);
7228 _resultobj
= Py_None
;
7232 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7233 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7234 PyObject
* _resultobj
;
7239 int _arg4
= (int ) wxFLOOD_SURFACE
;
7240 PyObject
* _argo0
= 0;
7242 PyObject
* _obj3
= 0;
7243 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7257 if (! wxColour_helper(_obj3
, &_arg3
))
7261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7262 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7264 wxPyEndAllowThreads(__tstate
);
7265 if (PyErr_Occurred()) return NULL
;
7266 } Py_INCREF(Py_None
);
7267 _resultobj
= Py_None
;
7271 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7272 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7273 PyObject
* _resultobj
;
7276 PyObject
* _argo0
= 0;
7277 char *_kwnames
[] = { "self", NULL
};
7281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7292 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
7294 wxPyEndAllowThreads(__tstate
);
7295 if (PyErr_Occurred()) return NULL
;
7296 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7297 _resultobj
= Py_BuildValue("s",_ptemp
);
7301 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7302 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7303 PyObject
* _resultobj
;
7306 PyObject
* _argo0
= 0;
7307 char *_kwnames
[] = { "self", NULL
};
7311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7322 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
7324 wxPyEndAllowThreads(__tstate
);
7325 if (PyErr_Occurred()) return NULL
;
7326 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7327 _resultobj
= Py_BuildValue("s",_ptemp
);
7331 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7332 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7333 PyObject
* _resultobj
;
7336 PyObject
* _argo0
= 0;
7337 char *_kwnames
[] = { "self", NULL
};
7340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7351 _result
= (long )wxDC_GetCharHeight(_arg0
);
7353 wxPyEndAllowThreads(__tstate
);
7354 if (PyErr_Occurred()) return NULL
;
7355 } _resultobj
= Py_BuildValue("l",_result
);
7359 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7360 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7361 PyObject
* _resultobj
;
7364 PyObject
* _argo0
= 0;
7365 char *_kwnames
[] = { "self", NULL
};
7368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7379 _result
= (long )wxDC_GetCharWidth(_arg0
);
7381 wxPyEndAllowThreads(__tstate
);
7382 if (PyErr_Occurred()) return NULL
;
7383 } _resultobj
= Py_BuildValue("l",_result
);
7387 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7388 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7389 PyObject
* _resultobj
;
7399 PyObject
* _argo0
= 0;
7400 char *_kwnames
[] = { "self", NULL
};
7415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7426 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7428 wxPyEndAllowThreads(__tstate
);
7429 if (PyErr_Occurred()) return NULL
;
7430 } Py_INCREF(Py_None
);
7431 _resultobj
= Py_None
;
7434 o
= PyInt_FromLong((long) (*_arg1
));
7435 _resultobj
= t_output_helper(_resultobj
, o
);
7439 o
= PyInt_FromLong((long) (*_arg2
));
7440 _resultobj
= t_output_helper(_resultobj
, o
);
7444 o
= PyInt_FromLong((long) (*_arg3
));
7445 _resultobj
= t_output_helper(_resultobj
, o
);
7449 o
= PyInt_FromLong((long) (*_arg4
));
7450 _resultobj
= t_output_helper(_resultobj
, o
);
7455 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7456 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7457 PyObject
* _resultobj
;
7460 PyObject
* _argo0
= 0;
7461 char *_kwnames
[] = { "self", NULL
};
7465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7476 _result
= new wxFont (wxDC_GetFont(_arg0
));
7478 wxPyEndAllowThreads(__tstate
);
7479 if (PyErr_Occurred()) return NULL
;
7480 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
7481 _resultobj
= Py_BuildValue("s",_ptemp
);
7485 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7486 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7487 PyObject
* _resultobj
;
7490 PyObject
* _argo0
= 0;
7491 char *_kwnames
[] = { "self", NULL
};
7494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7505 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7507 wxPyEndAllowThreads(__tstate
);
7508 if (PyErr_Occurred()) return NULL
;
7509 } _resultobj
= Py_BuildValue("i",_result
);
7513 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7514 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7515 PyObject
* _resultobj
;
7521 PyObject
* _argo0
= 0;
7522 char *_kwnames
[] = { "self", NULL
};
7531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7542 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7544 wxPyEndAllowThreads(__tstate
);
7545 if (PyErr_Occurred()) return NULL
;
7546 } Py_INCREF(Py_None
);
7547 _resultobj
= Py_None
;
7550 o
= PyFloat_FromDouble((double) (*_arg1
));
7551 _resultobj
= t_output_helper(_resultobj
, o
);
7555 o
= PyFloat_FromDouble((double) (*_arg2
));
7556 _resultobj
= t_output_helper(_resultobj
, o
);
7561 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7562 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7563 PyObject
* _resultobj
;
7566 PyObject
* _argo0
= 0;
7567 char *_kwnames
[] = { "self", NULL
};
7570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7581 _result
= (int )wxDC_GetMapMode(_arg0
);
7583 wxPyEndAllowThreads(__tstate
);
7584 if (PyErr_Occurred()) return NULL
;
7585 } _resultobj
= Py_BuildValue("i",_result
);
7589 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7590 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7591 PyObject
* _resultobj
;
7594 PyObject
* _argo0
= 0;
7595 char *_kwnames
[] = { "self", NULL
};
7598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7609 _result
= (bool )wxDC_GetOptimization(_arg0
);
7611 wxPyEndAllowThreads(__tstate
);
7612 if (PyErr_Occurred()) return NULL
;
7613 } _resultobj
= Py_BuildValue("i",_result
);
7617 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7618 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7619 PyObject
* _resultobj
;
7622 PyObject
* _argo0
= 0;
7623 char *_kwnames
[] = { "self", NULL
};
7627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7638 _result
= new wxPen (wxDC_GetPen(_arg0
));
7640 wxPyEndAllowThreads(__tstate
);
7641 if (PyErr_Occurred()) return NULL
;
7642 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7643 _resultobj
= Py_BuildValue("s",_ptemp
);
7647 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7648 wxColour
* wc
= new wxColour();
7649 self
->GetPixel(x
, y
, wc
);
7652 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7653 PyObject
* _resultobj
;
7658 PyObject
* _argo0
= 0;
7659 char *_kwnames
[] = { "self","x","y", NULL
};
7663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7674 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7676 wxPyEndAllowThreads(__tstate
);
7677 if (PyErr_Occurred()) return NULL
;
7679 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7680 _resultobj
= Py_BuildValue("s",_ptemp
);
7683 _resultobj
= Py_None
;
7688 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7689 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7690 PyObject
* _resultobj
;
7696 PyObject
* _argo0
= 0;
7697 char *_kwnames
[] = { "self", NULL
};
7706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7716 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7717 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7719 wxPyEndAllowThreads(__tstate
);
7720 if (PyErr_Occurred()) return NULL
;
7721 } Py_INCREF(Py_None
);
7722 _resultobj
= Py_None
;
7725 o
= PyInt_FromLong((long) (*_arg1
));
7726 _resultobj
= t_output_helper(_resultobj
, o
);
7730 o
= PyInt_FromLong((long) (*_arg2
));
7731 _resultobj
= t_output_helper(_resultobj
, o
);
7736 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7737 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7738 PyObject
* _resultobj
;
7741 PyObject
* _argo0
= 0;
7742 char *_kwnames
[] = { "self", NULL
};
7746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7757 _result
= new wxSize (wxDC_GetSize(_arg0
));
7759 wxPyEndAllowThreads(__tstate
);
7760 if (PyErr_Occurred()) return NULL
;
7761 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7762 _resultobj
= Py_BuildValue("s",_ptemp
);
7766 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7767 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7768 PyObject
* _resultobj
;
7771 PyObject
* _argo0
= 0;
7772 char *_kwnames
[] = { "self", NULL
};
7776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7787 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7789 wxPyEndAllowThreads(__tstate
);
7790 if (PyErr_Occurred()) return NULL
;
7791 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7792 _resultobj
= Py_BuildValue("s",_ptemp
);
7796 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7797 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7798 PyObject
* _resultobj
;
7801 PyObject
* _argo0
= 0;
7802 char *_kwnames
[] = { "self", NULL
};
7806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7817 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7819 wxPyEndAllowThreads(__tstate
);
7820 if (PyErr_Occurred()) return NULL
;
7821 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7822 _resultobj
= Py_BuildValue("s",_ptemp
);
7826 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7827 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7828 PyObject
* _resultobj
;
7835 PyObject
* _argo0
= 0;
7836 PyObject
* _obj1
= 0;
7837 char *_kwnames
[] = { "self","string", NULL
};
7846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7856 #if PYTHON_API_VERSION >= 1009
7857 char* tmpPtr
; int tmpSize
;
7858 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7859 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7862 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7864 _arg1
= new wxString(tmpPtr
, tmpSize
);
7866 if (!PyString_Check(_obj1
)) {
7867 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7870 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7875 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7877 wxPyEndAllowThreads(__tstate
);
7878 if (PyErr_Occurred()) return NULL
;
7879 } Py_INCREF(Py_None
);
7880 _resultobj
= Py_None
;
7883 o
= PyInt_FromLong((long) (*_arg2
));
7884 _resultobj
= t_output_helper(_resultobj
, o
);
7888 o
= PyInt_FromLong((long) (*_arg3
));
7889 _resultobj
= t_output_helper(_resultobj
, o
);
7898 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7899 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7900 PyObject
* _resultobj
;
7911 wxFont
* _arg6
= (wxFont
*) NULL
;
7912 PyObject
* _argo0
= 0;
7913 PyObject
* _obj1
= 0;
7914 PyObject
* _argo6
= 0;
7915 char *_kwnames
[] = { "self","string","font", NULL
};
7930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7940 #if PYTHON_API_VERSION >= 1009
7941 char* tmpPtr
; int tmpSize
;
7942 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7943 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7946 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7948 _arg1
= new wxString(tmpPtr
, tmpSize
);
7950 if (!PyString_Check(_obj1
)) {
7951 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7954 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7958 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7959 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7966 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7968 wxPyEndAllowThreads(__tstate
);
7969 if (PyErr_Occurred()) return NULL
;
7970 } Py_INCREF(Py_None
);
7971 _resultobj
= Py_None
;
7974 o
= PyInt_FromLong((long) (*_arg2
));
7975 _resultobj
= t_output_helper(_resultobj
, o
);
7979 o
= PyInt_FromLong((long) (*_arg3
));
7980 _resultobj
= t_output_helper(_resultobj
, o
);
7984 o
= PyInt_FromLong((long) (*_arg4
));
7985 _resultobj
= t_output_helper(_resultobj
, o
);
7989 o
= PyInt_FromLong((long) (*_arg5
));
7990 _resultobj
= t_output_helper(_resultobj
, o
);
7999 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8000 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8001 PyObject
* _resultobj
;
8004 PyObject
* _argo0
= 0;
8005 char *_kwnames
[] = { "self", NULL
};
8009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8020 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8022 wxPyEndAllowThreads(__tstate
);
8023 if (PyErr_Occurred()) return NULL
;
8024 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8025 _resultobj
= Py_BuildValue("s",_ptemp
);
8029 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8030 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8031 PyObject
* _resultobj
;
8037 PyObject
* _argo0
= 0;
8038 char *_kwnames
[] = { "self", NULL
};
8047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8058 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8060 wxPyEndAllowThreads(__tstate
);
8061 if (PyErr_Occurred()) return NULL
;
8062 } Py_INCREF(Py_None
);
8063 _resultobj
= Py_None
;
8066 o
= PyFloat_FromDouble((double) (*_arg1
));
8067 _resultobj
= t_output_helper(_resultobj
, o
);
8071 o
= PyFloat_FromDouble((double) (*_arg2
));
8072 _resultobj
= t_output_helper(_resultobj
, o
);
8077 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8078 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8079 PyObject
* _resultobj
;
8083 PyObject
* _argo0
= 0;
8084 char *_kwnames
[] = { "self","x", NULL
};
8087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8098 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8100 wxPyEndAllowThreads(__tstate
);
8101 if (PyErr_Occurred()) return NULL
;
8102 } _resultobj
= Py_BuildValue("l",_result
);
8106 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8107 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8108 PyObject
* _resultobj
;
8112 PyObject
* _argo0
= 0;
8113 char *_kwnames
[] = { "self","x", NULL
};
8116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8127 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8129 wxPyEndAllowThreads(__tstate
);
8130 if (PyErr_Occurred()) return NULL
;
8131 } _resultobj
= Py_BuildValue("l",_result
);
8135 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8136 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8137 PyObject
* _resultobj
;
8141 PyObject
* _argo0
= 0;
8142 char *_kwnames
[] = { "self","y", NULL
};
8145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8156 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8158 wxPyEndAllowThreads(__tstate
);
8159 if (PyErr_Occurred()) return NULL
;
8160 } _resultobj
= Py_BuildValue("l",_result
);
8164 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8165 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8166 PyObject
* _resultobj
;
8170 PyObject
* _argo0
= 0;
8171 char *_kwnames
[] = { "self","y", NULL
};
8174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8185 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8187 wxPyEndAllowThreads(__tstate
);
8188 if (PyErr_Occurred()) return NULL
;
8189 } _resultobj
= Py_BuildValue("l",_result
);
8193 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8194 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8195 PyObject
* _resultobj
;
8198 PyObject
* _argo0
= 0;
8199 char *_kwnames
[] = { "self", NULL
};
8202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8213 _result
= (long )wxDC_MaxX(_arg0
);
8215 wxPyEndAllowThreads(__tstate
);
8216 if (PyErr_Occurred()) return NULL
;
8217 } _resultobj
= Py_BuildValue("l",_result
);
8221 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8222 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8223 PyObject
* _resultobj
;
8226 PyObject
* _argo0
= 0;
8227 char *_kwnames
[] = { "self", NULL
};
8230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8241 _result
= (long )wxDC_MaxY(_arg0
);
8243 wxPyEndAllowThreads(__tstate
);
8244 if (PyErr_Occurred()) return NULL
;
8245 } _resultobj
= Py_BuildValue("l",_result
);
8249 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8250 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8251 PyObject
* _resultobj
;
8254 PyObject
* _argo0
= 0;
8255 char *_kwnames
[] = { "self", NULL
};
8258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8269 _result
= (long )wxDC_MinX(_arg0
);
8271 wxPyEndAllowThreads(__tstate
);
8272 if (PyErr_Occurred()) return NULL
;
8273 } _resultobj
= Py_BuildValue("l",_result
);
8277 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8278 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8279 PyObject
* _resultobj
;
8282 PyObject
* _argo0
= 0;
8283 char *_kwnames
[] = { "self", NULL
};
8286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8297 _result
= (long )wxDC_MinY(_arg0
);
8299 wxPyEndAllowThreads(__tstate
);
8300 if (PyErr_Occurred()) return NULL
;
8301 } _resultobj
= Py_BuildValue("l",_result
);
8305 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8306 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8307 PyObject
* _resultobj
;
8310 PyObject
* _argo0
= 0;
8311 char *_kwnames
[] = { "self", NULL
};
8314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8325 _result
= (bool )wxDC_Ok(_arg0
);
8327 wxPyEndAllowThreads(__tstate
);
8328 if (PyErr_Occurred()) return NULL
;
8329 } _resultobj
= Py_BuildValue("i",_result
);
8333 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8334 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8335 PyObject
* _resultobj
;
8339 PyObject
* _argo0
= 0;
8340 char *_kwnames
[] = { "self","x","y", NULL
};
8343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8353 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8354 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8356 wxPyEndAllowThreads(__tstate
);
8357 if (PyErr_Occurred()) return NULL
;
8358 } Py_INCREF(Py_None
);
8359 _resultobj
= Py_None
;
8363 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8364 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8365 PyObject
* _resultobj
;
8368 PyObject
* _argo0
= 0;
8369 PyObject
* _argo1
= 0;
8370 char *_kwnames
[] = { "self","brush", NULL
};
8373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8383 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8384 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8391 wxDC_SetBackground(_arg0
,*_arg1
);
8393 wxPyEndAllowThreads(__tstate
);
8394 if (PyErr_Occurred()) return NULL
;
8395 } Py_INCREF(Py_None
);
8396 _resultobj
= Py_None
;
8400 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8401 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8402 PyObject
* _resultobj
;
8405 PyObject
* _argo0
= 0;
8406 char *_kwnames
[] = { "self","mode", NULL
};
8409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8420 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8422 wxPyEndAllowThreads(__tstate
);
8423 if (PyErr_Occurred()) return NULL
;
8424 } Py_INCREF(Py_None
);
8425 _resultobj
= Py_None
;
8429 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8430 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8431 PyObject
* _resultobj
;
8437 PyObject
* _argo0
= 0;
8438 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8452 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8454 wxPyEndAllowThreads(__tstate
);
8455 if (PyErr_Occurred()) return NULL
;
8456 } Py_INCREF(Py_None
);
8457 _resultobj
= Py_None
;
8461 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8462 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8463 PyObject
* _resultobj
;
8466 PyObject
* _argo0
= 0;
8467 PyObject
* _argo1
= 0;
8468 char *_kwnames
[] = { "self","region", NULL
};
8471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8481 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8482 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8489 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8491 wxPyEndAllowThreads(__tstate
);
8492 if (PyErr_Occurred()) return NULL
;
8493 } Py_INCREF(Py_None
);
8494 _resultobj
= Py_None
;
8498 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8499 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8500 PyObject
* _resultobj
;
8503 PyObject
* _argo0
= 0;
8504 PyObject
* _argo1
= 0;
8505 char *_kwnames
[] = { "self","colourMap", NULL
};
8508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8518 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8519 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8526 wxDC_SetPalette(_arg0
,*_arg1
);
8528 wxPyEndAllowThreads(__tstate
);
8529 if (PyErr_Occurred()) return NULL
;
8530 } Py_INCREF(Py_None
);
8531 _resultobj
= Py_None
;
8535 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8536 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8537 PyObject
* _resultobj
;
8540 PyObject
* _argo0
= 0;
8541 PyObject
* _argo1
= 0;
8542 char *_kwnames
[] = { "self","brush", NULL
};
8545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8555 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8556 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8563 wxDC_SetBrush(_arg0
,*_arg1
);
8565 wxPyEndAllowThreads(__tstate
);
8566 if (PyErr_Occurred()) return NULL
;
8567 } Py_INCREF(Py_None
);
8568 _resultobj
= Py_None
;
8572 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8573 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8574 PyObject
* _resultobj
;
8577 PyObject
* _argo0
= 0;
8578 PyObject
* _argo1
= 0;
8579 char *_kwnames
[] = { "self","font", NULL
};
8582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8592 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8593 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8600 wxDC_SetFont(_arg0
,*_arg1
);
8602 wxPyEndAllowThreads(__tstate
);
8603 if (PyErr_Occurred()) return NULL
;
8604 } Py_INCREF(Py_None
);
8605 _resultobj
= Py_None
;
8609 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8610 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8611 PyObject
* _resultobj
;
8614 PyObject
* _argo0
= 0;
8615 char *_kwnames
[] = { "self","function", NULL
};
8618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8629 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8631 wxPyEndAllowThreads(__tstate
);
8632 if (PyErr_Occurred()) return NULL
;
8633 } Py_INCREF(Py_None
);
8634 _resultobj
= Py_None
;
8638 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8639 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8640 PyObject
* _resultobj
;
8644 PyObject
* _argo0
= 0;
8645 char *_kwnames
[] = { "self","x","y", NULL
};
8648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8659 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8661 wxPyEndAllowThreads(__tstate
);
8662 if (PyErr_Occurred()) return NULL
;
8663 } Py_INCREF(Py_None
);
8664 _resultobj
= Py_None
;
8668 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8669 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8670 PyObject
* _resultobj
;
8673 PyObject
* _argo0
= 0;
8674 char *_kwnames
[] = { "self","mode", NULL
};
8677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8688 wxDC_SetMapMode(_arg0
,_arg1
);
8690 wxPyEndAllowThreads(__tstate
);
8691 if (PyErr_Occurred()) return NULL
;
8692 } Py_INCREF(Py_None
);
8693 _resultobj
= Py_None
;
8697 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8698 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8699 PyObject
* _resultobj
;
8702 PyObject
* _argo0
= 0;
8704 char *_kwnames
[] = { "self","optimize", NULL
};
8707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8716 _arg1
= (bool ) tempbool1
;
8718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8719 wxDC_SetOptimization(_arg0
,_arg1
);
8721 wxPyEndAllowThreads(__tstate
);
8722 if (PyErr_Occurred()) return NULL
;
8723 } Py_INCREF(Py_None
);
8724 _resultobj
= Py_None
;
8728 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8729 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8730 PyObject
* _resultobj
;
8733 PyObject
* _argo0
= 0;
8734 PyObject
* _argo1
= 0;
8735 char *_kwnames
[] = { "self","pen", NULL
};
8738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8748 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8749 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8756 wxDC_SetPen(_arg0
,*_arg1
);
8758 wxPyEndAllowThreads(__tstate
);
8759 if (PyErr_Occurred()) return NULL
;
8760 } Py_INCREF(Py_None
);
8761 _resultobj
= Py_None
;
8765 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8766 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8767 PyObject
* _resultobj
;
8770 PyObject
* _argo0
= 0;
8772 PyObject
* _obj1
= 0;
8773 char *_kwnames
[] = { "self","colour", NULL
};
8776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8787 if (! wxColour_helper(_obj1
, &_arg1
))
8791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8792 wxDC_SetTextBackground(_arg0
,*_arg1
);
8794 wxPyEndAllowThreads(__tstate
);
8795 if (PyErr_Occurred()) return NULL
;
8796 } Py_INCREF(Py_None
);
8797 _resultobj
= Py_None
;
8801 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8802 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8803 PyObject
* _resultobj
;
8806 PyObject
* _argo0
= 0;
8808 PyObject
* _obj1
= 0;
8809 char *_kwnames
[] = { "self","colour", NULL
};
8812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8823 if (! wxColour_helper(_obj1
, &_arg1
))
8827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8828 wxDC_SetTextForeground(_arg0
,*_arg1
);
8830 wxPyEndAllowThreads(__tstate
);
8831 if (PyErr_Occurred()) return NULL
;
8832 } Py_INCREF(Py_None
);
8833 _resultobj
= Py_None
;
8837 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8838 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8839 PyObject
* _resultobj
;
8843 PyObject
* _argo0
= 0;
8844 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8858 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8860 wxPyEndAllowThreads(__tstate
);
8861 if (PyErr_Occurred()) return NULL
;
8862 } Py_INCREF(Py_None
);
8863 _resultobj
= Py_None
;
8867 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8868 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8869 PyObject
* _resultobj
;
8873 PyObject
* _argo0
= 0;
8874 PyObject
* _obj1
= 0;
8875 char *_kwnames
[] = { "self","message", NULL
};
8878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8888 #if PYTHON_API_VERSION >= 1009
8889 char* tmpPtr
; int tmpSize
;
8890 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8891 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8894 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8896 _arg1
= new wxString(tmpPtr
, tmpSize
);
8898 if (!PyString_Check(_obj1
)) {
8899 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8902 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8906 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8907 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8909 wxPyEndAllowThreads(__tstate
);
8910 if (PyErr_Occurred()) return NULL
;
8911 } _resultobj
= Py_BuildValue("i",_result
);
8919 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8920 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8921 PyObject
* _resultobj
;
8923 PyObject
* _argo0
= 0;
8924 char *_kwnames
[] = { "self", NULL
};
8927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8938 wxDC_StartPage(_arg0
);
8940 wxPyEndAllowThreads(__tstate
);
8941 if (PyErr_Occurred()) return NULL
;
8942 } Py_INCREF(Py_None
);
8943 _resultobj
= Py_None
;
8947 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8948 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8949 PyObject
* _resultobj
;
8954 int _arg4
= (int ) FALSE
;
8955 PyObject
* _argo0
= 0;
8956 PyObject
* _argo1
= 0;
8957 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8970 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8971 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8978 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8980 wxPyEndAllowThreads(__tstate
);
8981 if (PyErr_Occurred()) return NULL
;
8982 } Py_INCREF(Py_None
);
8983 _resultobj
= Py_None
;
8987 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8988 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8989 PyObject
* _resultobj
;
8992 PyObject
* _argo0
= 0;
8993 char *_kwnames
[] = { "self", NULL
};
8996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9006 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9007 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9009 wxPyEndAllowThreads(__tstate
);
9010 if (PyErr_Occurred()) return NULL
;
9011 } _resultobj
= Py_BuildValue("i",_result
);
9015 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9016 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9017 PyObject
* _resultobj
;
9020 PyObject
* _argo0
= 0;
9021 char *_kwnames
[] = { "self", NULL
};
9024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9034 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9035 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9037 wxPyEndAllowThreads(__tstate
);
9038 if (PyErr_Occurred()) return NULL
;
9039 } _resultobj
= Py_BuildValue("i",_result
);
9043 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9044 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9045 PyObject
* _resultobj
;
9048 PyObject
* _argo0
= 0;
9049 char *_kwnames
[] = { "self", NULL
};
9052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9063 _result
= (int )wxDC_GetDepth(_arg0
);
9065 wxPyEndAllowThreads(__tstate
);
9066 if (PyErr_Occurred()) return NULL
;
9067 } _resultobj
= Py_BuildValue("i",_result
);
9071 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9072 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9073 PyObject
* _resultobj
;
9076 PyObject
* _argo0
= 0;
9077 char *_kwnames
[] = { "self", NULL
};
9081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9092 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9094 wxPyEndAllowThreads(__tstate
);
9095 if (PyErr_Occurred()) return NULL
;
9096 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9097 _resultobj
= Py_BuildValue("s",_ptemp
);
9101 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9102 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9103 PyObject
* _resultobj
;
9109 PyObject
* _argo0
= 0;
9110 char *_kwnames
[] = { "self", NULL
};
9119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9130 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9132 wxPyEndAllowThreads(__tstate
);
9133 if (PyErr_Occurred()) return NULL
;
9134 } Py_INCREF(Py_None
);
9135 _resultobj
= Py_None
;
9138 o
= PyInt_FromLong((long) (*_arg1
));
9139 _resultobj
= t_output_helper(_resultobj
, o
);
9143 o
= PyInt_FromLong((long) (*_arg2
));
9144 _resultobj
= t_output_helper(_resultobj
, o
);
9149 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9150 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9151 PyObject
* _resultobj
;
9155 PyObject
* _argo0
= 0;
9156 char *_kwnames
[] = { "self","x","y", NULL
};
9159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9170 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9172 wxPyEndAllowThreads(__tstate
);
9173 if (PyErr_Occurred()) return NULL
;
9174 } Py_INCREF(Py_None
);
9175 _resultobj
= Py_None
;
9179 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9180 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9181 PyObject
* _resultobj
;
9187 PyObject
* _argo0
= 0;
9188 char *_kwnames
[] = { "self", NULL
};
9197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9208 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9210 wxPyEndAllowThreads(__tstate
);
9211 if (PyErr_Occurred()) return NULL
;
9212 } Py_INCREF(Py_None
);
9213 _resultobj
= Py_None
;
9216 o
= PyInt_FromLong((long) (*_arg1
));
9217 _resultobj
= t_output_helper(_resultobj
, o
);
9221 o
= PyInt_FromLong((long) (*_arg2
));
9222 _resultobj
= t_output_helper(_resultobj
, o
);
9227 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9228 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9229 PyObject
* _resultobj
;
9233 PyObject
* _argo0
= 0;
9236 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9248 _arg1
= (bool ) tempbool1
;
9249 _arg2
= (bool ) tempbool2
;
9251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9252 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9254 wxPyEndAllowThreads(__tstate
);
9255 if (PyErr_Occurred()) return NULL
;
9256 } Py_INCREF(Py_None
);
9257 _resultobj
= Py_None
;
9261 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9262 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9263 PyObject
* _resultobj
;
9267 PyObject
* _argo0
= 0;
9268 char *_kwnames
[] = { "self","x","y", NULL
};
9271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9282 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9284 wxPyEndAllowThreads(__tstate
);
9285 if (PyErr_Occurred()) return NULL
;
9286 } Py_INCREF(Py_None
);
9287 _resultobj
= Py_None
;
9291 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9292 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9293 PyObject
* _resultobj
;
9295 PyObject
* _argo0
= 0;
9296 char *_kwnames
[] = { "self", NULL
};
9299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9310 wxDC_ResetBoundingBox(_arg0
);
9312 wxPyEndAllowThreads(__tstate
);
9313 if (PyErr_Occurred()) return NULL
;
9314 } Py_INCREF(Py_None
);
9315 _resultobj
= Py_None
;
9319 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9320 PyObject
* _resultobj
;
9330 PyObject
* _argo0
= 0;
9331 char *_kwnames
[] = { "self", NULL
};
9346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9357 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9359 wxPyEndAllowThreads(__tstate
);
9360 if (PyErr_Occurred()) return NULL
;
9361 } Py_INCREF(Py_None
);
9362 _resultobj
= Py_None
;
9365 o
= PyInt_FromLong((long) (*_arg1
));
9366 _resultobj
= t_output_helper(_resultobj
, o
);
9370 o
= PyInt_FromLong((long) (*_arg2
));
9371 _resultobj
= t_output_helper(_resultobj
, o
);
9375 o
= PyInt_FromLong((long) (*_arg3
));
9376 _resultobj
= t_output_helper(_resultobj
, o
);
9380 o
= PyInt_FromLong((long) (*_arg4
));
9381 _resultobj
= t_output_helper(_resultobj
, o
);
9386 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9387 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9388 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9396 if (!PySequence_Check(pyPoints
)) {
9399 if (!PySequence_Check(pyPens
)) {
9402 numObjs
= PySequence_Length(pyPoints
);
9403 numPens
= PySequence_Length(pyPens
);
9405 for (i
= 0; i
< numObjs
; i
++) {
9409 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9412 obj
= PySequence_GetItem(pyPens
, i
);
9414 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9425 // Get the point coordinants
9427 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9430 obj
= PySequence_GetItem(pyPoints
, i
);
9432 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9438 // Now draw the point
9439 self
->DrawPoint(x1
, y1
);
9449 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9452 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9455 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9456 PyObject
* _resultobj
;
9461 PyObject
* _argo0
= 0;
9462 PyObject
* _obj1
= 0;
9463 PyObject
* _obj2
= 0;
9464 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9484 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9486 wxPyEndAllowThreads(__tstate
);
9487 if (PyErr_Occurred()) return NULL
;
9489 _resultobj
= _result
;
9494 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9495 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9496 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9504 if (!PySequence_Check(pyLines
)) {
9507 if (!PySequence_Check(pyPens
)) {
9510 numObjs
= PySequence_Length(pyLines
);
9511 numPens
= PySequence_Length(pyPens
);
9513 for (i
= 0; i
< numObjs
; i
++) {
9517 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9520 obj
= PySequence_GetItem(pyPens
, i
);
9522 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9533 // Get the line coordinants
9535 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9538 obj
= PySequence_GetItem(pyLines
, i
);
9540 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9546 // Now draw the line
9547 self
->DrawLine(x1
, y1
, x2
, y2
);
9557 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9560 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9563 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9564 PyObject
* _resultobj
;
9569 PyObject
* _argo0
= 0;
9570 PyObject
* _obj1
= 0;
9571 PyObject
* _obj2
= 0;
9572 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9592 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9594 wxPyEndAllowThreads(__tstate
);
9595 if (PyErr_Occurred()) return NULL
;
9597 _resultobj
= _result
;
9602 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9605 src
= (wxMemoryDC
*) ptr
;
9606 dest
= (wxDC
*) src
;
9607 return (void *) dest
;
9610 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9613 src
= (wxMemoryDC
*) ptr
;
9614 dest
= (wxObject
*) src
;
9615 return (void *) dest
;
9618 #define new_wxMemoryDC() (new wxMemoryDC())
9619 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9620 PyObject
* _resultobj
;
9621 wxMemoryDC
* _result
;
9622 char *_kwnames
[] = { NULL
};
9626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9630 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9632 wxPyEndAllowThreads(__tstate
);
9633 if (PyErr_Occurred()) return NULL
;
9635 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9636 _resultobj
= Py_BuildValue("s",_ptemp
);
9639 _resultobj
= Py_None
;
9644 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9645 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9646 PyObject
* _resultobj
;
9649 PyObject
* _argo0
= 0;
9650 PyObject
* _argo1
= 0;
9651 char *_kwnames
[] = { "self","bitmap", NULL
};
9654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9664 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9665 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9672 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9674 wxPyEndAllowThreads(__tstate
);
9675 if (PyErr_Occurred()) return NULL
;
9676 } Py_INCREF(Py_None
);
9677 _resultobj
= Py_None
;
9681 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9684 src
= (wxScreenDC
*) ptr
;
9685 dest
= (wxDC
*) src
;
9686 return (void *) dest
;
9689 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9692 src
= (wxScreenDC
*) ptr
;
9693 dest
= (wxObject
*) src
;
9694 return (void *) dest
;
9697 #define new_wxScreenDC() (new wxScreenDC())
9698 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9699 PyObject
* _resultobj
;
9700 wxScreenDC
* _result
;
9701 char *_kwnames
[] = { NULL
};
9705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9709 _result
= (wxScreenDC
*)new_wxScreenDC();
9711 wxPyEndAllowThreads(__tstate
);
9712 if (PyErr_Occurred()) return NULL
;
9714 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9715 _resultobj
= Py_BuildValue("s",_ptemp
);
9718 _resultobj
= Py_None
;
9723 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9724 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9725 PyObject
* _resultobj
;
9729 PyObject
* _argo0
= 0;
9730 PyObject
* _argo1
= 0;
9731 char *_kwnames
[] = { "self","window", NULL
};
9734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9744 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9745 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9752 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9754 wxPyEndAllowThreads(__tstate
);
9755 if (PyErr_Occurred()) return NULL
;
9756 } _resultobj
= Py_BuildValue("i",_result
);
9760 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9761 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9762 PyObject
* _resultobj
;
9765 wxRect
* _arg1
= (wxRect
*) NULL
;
9766 PyObject
* _argo0
= 0;
9768 PyObject
* _obj1
= 0;
9769 char *_kwnames
[] = { "self","rect", NULL
};
9772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9784 if (! wxRect_helper(_obj1
, &_arg1
))
9788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9789 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9791 wxPyEndAllowThreads(__tstate
);
9792 if (PyErr_Occurred()) return NULL
;
9793 } _resultobj
= Py_BuildValue("i",_result
);
9797 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9798 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9799 PyObject
* _resultobj
;
9802 PyObject
* _argo0
= 0;
9803 char *_kwnames
[] = { "self", NULL
};
9806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9817 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9819 wxPyEndAllowThreads(__tstate
);
9820 if (PyErr_Occurred()) return NULL
;
9821 } _resultobj
= Py_BuildValue("i",_result
);
9825 static void *SwigwxClientDCTowxDC(void *ptr
) {
9828 src
= (wxClientDC
*) ptr
;
9829 dest
= (wxDC
*) src
;
9830 return (void *) dest
;
9833 static void *SwigwxClientDCTowxObject(void *ptr
) {
9836 src
= (wxClientDC
*) ptr
;
9837 dest
= (wxObject
*) src
;
9838 return (void *) dest
;
9841 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9842 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9843 PyObject
* _resultobj
;
9844 wxClientDC
* _result
;
9846 PyObject
* _argo0
= 0;
9847 char *_kwnames
[] = { "win", NULL
};
9851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9862 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9864 wxPyEndAllowThreads(__tstate
);
9865 if (PyErr_Occurred()) return NULL
;
9867 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9868 _resultobj
= Py_BuildValue("s",_ptemp
);
9871 _resultobj
= Py_None
;
9876 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9879 src
= (wxPaintDC
*) ptr
;
9880 dest
= (wxDC
*) src
;
9881 return (void *) dest
;
9884 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9887 src
= (wxPaintDC
*) ptr
;
9888 dest
= (wxObject
*) src
;
9889 return (void *) dest
;
9892 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9893 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9894 PyObject
* _resultobj
;
9895 wxPaintDC
* _result
;
9897 PyObject
* _argo0
= 0;
9898 char *_kwnames
[] = { "win", NULL
};
9902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9913 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9915 wxPyEndAllowThreads(__tstate
);
9916 if (PyErr_Occurred()) return NULL
;
9918 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9919 _resultobj
= Py_BuildValue("s",_ptemp
);
9922 _resultobj
= Py_None
;
9927 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9930 src
= (wxWindowDC
*) ptr
;
9931 dest
= (wxDC
*) src
;
9932 return (void *) dest
;
9935 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9938 src
= (wxWindowDC
*) ptr
;
9939 dest
= (wxObject
*) src
;
9940 return (void *) dest
;
9943 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9944 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9945 PyObject
* _resultobj
;
9946 wxWindowDC
* _result
;
9948 PyObject
* _argo0
= 0;
9949 char *_kwnames
[] = { "win", NULL
};
9953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9964 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9966 wxPyEndAllowThreads(__tstate
);
9967 if (PyErr_Occurred()) return NULL
;
9969 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9970 _resultobj
= Py_BuildValue("s",_ptemp
);
9973 _resultobj
= Py_None
;
9978 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9981 src
= (wxPalette
*) ptr
;
9982 dest
= (wxGDIObject
*) src
;
9983 return (void *) dest
;
9986 static void *SwigwxPaletteTowxObject(void *ptr
) {
9989 src
= (wxPalette
*) ptr
;
9990 dest
= (wxObject
*) src
;
9991 return (void *) dest
;
9994 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9995 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9996 PyObject
* _resultobj
;
9997 wxPalette
* _result
;
10002 PyObject
* _obj1
= 0;
10003 PyObject
* _obj2
= 0;
10004 PyObject
* _obj3
= 0;
10005 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10012 _arg1
= byte_LIST_helper(_obj1
);
10013 if (_arg1
== NULL
) {
10018 _arg2
= byte_LIST_helper(_obj2
);
10019 if (_arg2
== NULL
) {
10025 _arg3
= byte_LIST_helper(_obj3
);
10026 if (_arg3
== NULL
) {
10032 _arg0
= PyList_Size(_obj1
);
10039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10040 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10042 wxPyEndAllowThreads(__tstate
);
10043 if (PyErr_Occurred()) return NULL
;
10045 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10046 _resultobj
= Py_BuildValue("s",_ptemp
);
10048 Py_INCREF(Py_None
);
10049 _resultobj
= Py_None
;
10063 #define delete_wxPalette(_swigobj) (delete _swigobj)
10064 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10065 PyObject
* _resultobj
;
10067 PyObject
* _argo0
= 0;
10068 char *_kwnames
[] = { "self", NULL
};
10071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10082 delete_wxPalette(_arg0
);
10084 wxPyEndAllowThreads(__tstate
);
10085 if (PyErr_Occurred()) return NULL
;
10086 } Py_INCREF(Py_None
);
10087 _resultobj
= Py_None
;
10091 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10092 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10093 PyObject
* _resultobj
;
10099 PyObject
* _argo0
= 0;
10100 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10114 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10116 wxPyEndAllowThreads(__tstate
);
10117 if (PyErr_Occurred()) return NULL
;
10118 } _resultobj
= Py_BuildValue("i",_result
);
10122 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10123 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10124 PyObject
* _resultobj
;
10134 PyObject
* _argo0
= 0;
10135 char *_kwnames
[] = { "self","pixel", NULL
};
10139 _arg2
= (byte
*)&temp
;
10142 _arg3
= (byte
*)&temp0
;
10145 _arg4
= (byte
*)&temp1
;
10147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
10150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10158 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10160 wxPyEndAllowThreads(__tstate
);
10161 if (PyErr_Occurred()) return NULL
;
10162 } _resultobj
= Py_BuildValue("i",_result
);
10165 o
= PyInt_FromLong((long) (*_arg2
));
10166 _resultobj
= t_output_helper(_resultobj
, o
);
10170 o
= PyInt_FromLong((long) (*_arg3
));
10171 _resultobj
= t_output_helper(_resultobj
, o
);
10175 o
= PyInt_FromLong((long) (*_arg4
));
10176 _resultobj
= t_output_helper(_resultobj
, o
);
10181 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10182 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10183 PyObject
* _resultobj
;
10186 PyObject
* _argo0
= 0;
10187 char *_kwnames
[] = { "self", NULL
};
10190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10201 _result
= (bool )wxPalette_Ok(_arg0
);
10203 wxPyEndAllowThreads(__tstate
);
10204 if (PyErr_Occurred()) return NULL
;
10205 } _resultobj
= Py_BuildValue("i",_result
);
10209 static void *SwigwxImageListTowxObject(void *ptr
) {
10212 src
= (wxImageList
*) ptr
;
10213 dest
= (wxObject
*) src
;
10214 return (void *) dest
;
10217 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10218 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10219 PyObject
* _resultobj
;
10220 wxImageList
* _result
;
10223 int _arg2
= (int ) TRUE
;
10224 int _arg3
= (int ) 1;
10225 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10232 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10233 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10235 wxPyEndAllowThreads(__tstate
);
10236 if (PyErr_Occurred()) return NULL
;
10238 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10239 _resultobj
= Py_BuildValue("s",_ptemp
);
10241 Py_INCREF(Py_None
);
10242 _resultobj
= Py_None
;
10247 #define delete_wxImageList(_swigobj) (delete _swigobj)
10248 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10249 PyObject
* _resultobj
;
10250 wxImageList
* _arg0
;
10251 PyObject
* _argo0
= 0;
10252 char *_kwnames
[] = { "self", NULL
};
10255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10265 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10266 delete_wxImageList(_arg0
);
10268 wxPyEndAllowThreads(__tstate
);
10269 if (PyErr_Occurred()) return NULL
;
10270 } Py_INCREF(Py_None
);
10271 _resultobj
= Py_None
;
10275 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10276 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10277 PyObject
* _resultobj
;
10279 wxImageList
* _arg0
;
10281 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10282 PyObject
* _argo0
= 0;
10283 PyObject
* _argo1
= 0;
10284 PyObject
* _argo2
= 0;
10285 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10298 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10299 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10305 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10306 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10313 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10315 wxPyEndAllowThreads(__tstate
);
10316 if (PyErr_Occurred()) return NULL
;
10317 } _resultobj
= Py_BuildValue("i",_result
);
10321 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10322 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10323 PyObject
* _resultobj
;
10325 wxImageList
* _arg0
;
10328 PyObject
* _argo0
= 0;
10329 PyObject
* _argo1
= 0;
10331 PyObject
* _obj2
= 0;
10332 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10345 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10346 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10353 if (! wxColour_helper(_obj2
, &_arg2
))
10357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10358 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10360 wxPyEndAllowThreads(__tstate
);
10361 if (PyErr_Occurred()) return NULL
;
10362 } _resultobj
= Py_BuildValue("i",_result
);
10366 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10367 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10368 PyObject
* _resultobj
;
10370 wxImageList
* _arg0
;
10372 PyObject
* _argo0
= 0;
10373 PyObject
* _argo1
= 0;
10374 char *_kwnames
[] = { "self","icon", NULL
};
10377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10387 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10388 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10395 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10397 wxPyEndAllowThreads(__tstate
);
10398 if (PyErr_Occurred()) return NULL
;
10399 } _resultobj
= Py_BuildValue("i",_result
);
10403 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10404 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10405 PyObject
* _resultobj
;
10407 wxImageList
* _arg0
;
10410 PyObject
* _argo0
= 0;
10411 PyObject
* _argo2
= 0;
10412 char *_kwnames
[] = { "self","index","bitmap", NULL
};
10415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
10418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10425 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10426 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10433 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
10435 wxPyEndAllowThreads(__tstate
);
10436 if (PyErr_Occurred()) return NULL
;
10437 } _resultobj
= Py_BuildValue("i",_result
);
10441 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10442 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10443 PyObject
* _resultobj
;
10445 wxImageList
* _arg0
;
10450 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10451 bool _arg6
= (bool ) FALSE
;
10452 PyObject
* _argo0
= 0;
10453 PyObject
* _argo2
= 0;
10454 int tempbool6
= (int) FALSE
;
10455 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10468 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10469 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10474 _arg6
= (bool ) tempbool6
;
10476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10477 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10479 wxPyEndAllowThreads(__tstate
);
10480 if (PyErr_Occurred()) return NULL
;
10481 } _resultobj
= Py_BuildValue("i",_result
);
10485 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10486 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10487 PyObject
* _resultobj
;
10489 wxImageList
* _arg0
;
10490 PyObject
* _argo0
= 0;
10491 char *_kwnames
[] = { "self", NULL
};
10494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10505 _result
= (int )wxImageList_GetImageCount(_arg0
);
10507 wxPyEndAllowThreads(__tstate
);
10508 if (PyErr_Occurred()) return NULL
;
10509 } _resultobj
= Py_BuildValue("i",_result
);
10513 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10514 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10515 PyObject
* _resultobj
;
10517 wxImageList
* _arg0
;
10519 PyObject
* _argo0
= 0;
10520 char *_kwnames
[] = { "self","index", NULL
};
10523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10534 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10536 wxPyEndAllowThreads(__tstate
);
10537 if (PyErr_Occurred()) return NULL
;
10538 } _resultobj
= Py_BuildValue("i",_result
);
10542 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10543 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10544 PyObject
* _resultobj
;
10546 wxImageList
* _arg0
;
10547 PyObject
* _argo0
= 0;
10548 char *_kwnames
[] = { "self", NULL
};
10551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10562 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10564 wxPyEndAllowThreads(__tstate
);
10565 if (PyErr_Occurred()) return NULL
;
10566 } _resultobj
= Py_BuildValue("i",_result
);
10570 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10571 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10572 PyObject
* _resultobj
;
10573 wxImageList
* _arg0
;
10579 PyObject
* _argo0
= 0;
10580 char *_kwnames
[] = { "self","index", NULL
};
10589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10600 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10602 wxPyEndAllowThreads(__tstate
);
10603 if (PyErr_Occurred()) return NULL
;
10604 } Py_INCREF(Py_None
);
10605 _resultobj
= Py_None
;
10608 o
= PyInt_FromLong((long) (*_arg2
));
10609 _resultobj
= t_output_helper(_resultobj
, o
);
10613 o
= PyInt_FromLong((long) (*_arg3
));
10614 _resultobj
= t_output_helper(_resultobj
, o
);
10619 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10622 src
= (wxRegion
*) ptr
;
10623 dest
= (wxGDIObject
*) src
;
10624 return (void *) dest
;
10627 static void *SwigwxRegionTowxObject(void *ptr
) {
10630 src
= (wxRegion
*) ptr
;
10631 dest
= (wxObject
*) src
;
10632 return (void *) dest
;
10635 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10636 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10637 PyObject
* _resultobj
;
10638 wxRegion
* _result
;
10639 long _arg0
= (long ) 0;
10640 long _arg1
= (long ) 0;
10641 long _arg2
= (long ) 0;
10642 long _arg3
= (long ) 0;
10643 char *_kwnames
[] = { "x","y","width","height", NULL
};
10647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10651 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10653 wxPyEndAllowThreads(__tstate
);
10654 if (PyErr_Occurred()) return NULL
;
10656 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10657 _resultobj
= Py_BuildValue("s",_ptemp
);
10659 Py_INCREF(Py_None
);
10660 _resultobj
= Py_None
;
10665 #define delete_wxRegion(_swigobj) (delete _swigobj)
10666 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10667 PyObject
* _resultobj
;
10669 PyObject
* _argo0
= 0;
10670 char *_kwnames
[] = { "self", NULL
};
10673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10683 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10684 delete_wxRegion(_arg0
);
10686 wxPyEndAllowThreads(__tstate
);
10687 if (PyErr_Occurred()) return NULL
;
10688 } Py_INCREF(Py_None
);
10689 _resultobj
= Py_None
;
10693 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10694 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10695 PyObject
* _resultobj
;
10697 PyObject
* _argo0
= 0;
10698 char *_kwnames
[] = { "self", NULL
};
10701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10712 wxRegion_Clear(_arg0
);
10714 wxPyEndAllowThreads(__tstate
);
10715 if (PyErr_Occurred()) return NULL
;
10716 } Py_INCREF(Py_None
);
10717 _resultobj
= Py_None
;
10721 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10722 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10723 PyObject
* _resultobj
;
10728 PyObject
* _argo0
= 0;
10729 char *_kwnames
[] = { "self","x","y", NULL
};
10732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10743 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
10745 wxPyEndAllowThreads(__tstate
);
10746 if (PyErr_Occurred()) return NULL
;
10747 } _resultobj
= Py_BuildValue("i",_result
);
10751 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10752 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10753 PyObject
* _resultobj
;
10754 wxRegionContain _result
;
10758 PyObject
* _argo0
= 0;
10759 char *_kwnames
[] = { "self","x","y", NULL
};
10762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10773 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10775 wxPyEndAllowThreads(__tstate
);
10776 if (PyErr_Occurred()) return NULL
;
10777 } _resultobj
= Py_BuildValue("i",_result
);
10781 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10782 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10783 PyObject
* _resultobj
;
10784 wxRegionContain _result
;
10787 PyObject
* _argo0
= 0;
10789 PyObject
* _obj1
= 0;
10790 char *_kwnames
[] = { "self","pt", NULL
};
10793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10804 if (! wxPoint_helper(_obj1
, &_arg1
))
10808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10809 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10811 wxPyEndAllowThreads(__tstate
);
10812 if (PyErr_Occurred()) return NULL
;
10813 } _resultobj
= Py_BuildValue("i",_result
);
10817 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10818 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10819 PyObject
* _resultobj
;
10820 wxRegionContain _result
;
10823 PyObject
* _argo0
= 0;
10825 PyObject
* _obj1
= 0;
10826 char *_kwnames
[] = { "self","rect", NULL
};
10829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10840 if (! wxRect_helper(_obj1
, &_arg1
))
10844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10845 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10847 wxPyEndAllowThreads(__tstate
);
10848 if (PyErr_Occurred()) return NULL
;
10849 } _resultobj
= Py_BuildValue("i",_result
);
10853 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10854 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10855 PyObject
* _resultobj
;
10856 wxRegionContain _result
;
10862 PyObject
* _argo0
= 0;
10863 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10877 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10879 wxPyEndAllowThreads(__tstate
);
10880 if (PyErr_Occurred()) return NULL
;
10881 } _resultobj
= Py_BuildValue("i",_result
);
10885 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10886 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10887 PyObject
* _resultobj
;
10890 PyObject
* _argo0
= 0;
10891 char *_kwnames
[] = { "self", NULL
};
10895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10906 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10908 wxPyEndAllowThreads(__tstate
);
10909 if (PyErr_Occurred()) return NULL
;
10910 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10911 _resultobj
= Py_BuildValue("s",_ptemp
);
10915 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10916 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10917 PyObject
* _resultobj
;
10924 PyObject
* _argo0
= 0;
10925 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10938 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10939 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10941 wxPyEndAllowThreads(__tstate
);
10942 if (PyErr_Occurred()) return NULL
;
10943 } _resultobj
= Py_BuildValue("i",_result
);
10947 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10948 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10949 PyObject
* _resultobj
;
10953 PyObject
* _argo0
= 0;
10955 PyObject
* _obj1
= 0;
10956 char *_kwnames
[] = { "self","rect", NULL
};
10959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10970 if (! wxRect_helper(_obj1
, &_arg1
))
10974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10975 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10977 wxPyEndAllowThreads(__tstate
);
10978 if (PyErr_Occurred()) return NULL
;
10979 } _resultobj
= Py_BuildValue("i",_result
);
10983 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10984 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10985 PyObject
* _resultobj
;
10989 PyObject
* _argo0
= 0;
10990 PyObject
* _argo1
= 0;
10991 char *_kwnames
[] = { "self","region", NULL
};
10994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11004 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11005 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11012 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11014 wxPyEndAllowThreads(__tstate
);
11015 if (PyErr_Occurred()) return NULL
;
11016 } _resultobj
= Py_BuildValue("i",_result
);
11020 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11021 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11022 PyObject
* _resultobj
;
11025 PyObject
* _argo0
= 0;
11026 char *_kwnames
[] = { "self", NULL
};
11029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11040 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11042 wxPyEndAllowThreads(__tstate
);
11043 if (PyErr_Occurred()) return NULL
;
11044 } _resultobj
= Py_BuildValue("i",_result
);
11048 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11049 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11050 PyObject
* _resultobj
;
11057 PyObject
* _argo0
= 0;
11058 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11072 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11074 wxPyEndAllowThreads(__tstate
);
11075 if (PyErr_Occurred()) return NULL
;
11076 } _resultobj
= Py_BuildValue("i",_result
);
11080 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11081 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11082 PyObject
* _resultobj
;
11086 PyObject
* _argo0
= 0;
11088 PyObject
* _obj1
= 0;
11089 char *_kwnames
[] = { "self","rect", NULL
};
11092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11103 if (! wxRect_helper(_obj1
, &_arg1
))
11107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11108 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11110 wxPyEndAllowThreads(__tstate
);
11111 if (PyErr_Occurred()) return NULL
;
11112 } _resultobj
= Py_BuildValue("i",_result
);
11116 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11117 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11118 PyObject
* _resultobj
;
11122 PyObject
* _argo0
= 0;
11123 PyObject
* _argo1
= 0;
11124 char *_kwnames
[] = { "self","region", NULL
};
11127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11137 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11138 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11145 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11147 wxPyEndAllowThreads(__tstate
);
11148 if (PyErr_Occurred()) return NULL
;
11149 } _resultobj
= Py_BuildValue("i",_result
);
11153 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11154 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11155 PyObject
* _resultobj
;
11162 PyObject
* _argo0
= 0;
11163 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11177 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11179 wxPyEndAllowThreads(__tstate
);
11180 if (PyErr_Occurred()) return NULL
;
11181 } _resultobj
= Py_BuildValue("i",_result
);
11185 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11186 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11187 PyObject
* _resultobj
;
11191 PyObject
* _argo0
= 0;
11193 PyObject
* _obj1
= 0;
11194 char *_kwnames
[] = { "self","rect", NULL
};
11197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11208 if (! wxRect_helper(_obj1
, &_arg1
))
11212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11213 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11215 wxPyEndAllowThreads(__tstate
);
11216 if (PyErr_Occurred()) return NULL
;
11217 } _resultobj
= Py_BuildValue("i",_result
);
11221 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11222 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11223 PyObject
* _resultobj
;
11227 PyObject
* _argo0
= 0;
11228 PyObject
* _argo1
= 0;
11229 char *_kwnames
[] = { "self","region", NULL
};
11232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11242 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11243 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11250 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11252 wxPyEndAllowThreads(__tstate
);
11253 if (PyErr_Occurred()) return NULL
;
11254 } _resultobj
= Py_BuildValue("i",_result
);
11258 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11259 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11260 PyObject
* _resultobj
;
11267 PyObject
* _argo0
= 0;
11268 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11282 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11284 wxPyEndAllowThreads(__tstate
);
11285 if (PyErr_Occurred()) return NULL
;
11286 } _resultobj
= Py_BuildValue("i",_result
);
11290 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11291 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11292 PyObject
* _resultobj
;
11296 PyObject
* _argo0
= 0;
11298 PyObject
* _obj1
= 0;
11299 char *_kwnames
[] = { "self","rect", NULL
};
11302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11313 if (! wxRect_helper(_obj1
, &_arg1
))
11317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11318 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11320 wxPyEndAllowThreads(__tstate
);
11321 if (PyErr_Occurred()) return NULL
;
11322 } _resultobj
= Py_BuildValue("i",_result
);
11326 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11327 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11328 PyObject
* _resultobj
;
11332 PyObject
* _argo0
= 0;
11333 PyObject
* _argo1
= 0;
11334 char *_kwnames
[] = { "self","region", NULL
};
11337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11347 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11348 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11355 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11357 wxPyEndAllowThreads(__tstate
);
11358 if (PyErr_Occurred()) return NULL
;
11359 } _resultobj
= Py_BuildValue("i",_result
);
11363 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11364 wxRegionIterator
*src
;
11366 src
= (wxRegionIterator
*) ptr
;
11367 dest
= (wxObject
*) src
;
11368 return (void *) dest
;
11371 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11372 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11373 PyObject
* _resultobj
;
11374 wxRegionIterator
* _result
;
11376 PyObject
* _argo0
= 0;
11377 char *_kwnames
[] = { "region", NULL
};
11381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11392 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11394 wxPyEndAllowThreads(__tstate
);
11395 if (PyErr_Occurred()) return NULL
;
11397 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11398 _resultobj
= Py_BuildValue("s",_ptemp
);
11400 Py_INCREF(Py_None
);
11401 _resultobj
= Py_None
;
11406 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11407 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11408 PyObject
* _resultobj
;
11409 wxRegionIterator
* _arg0
;
11410 PyObject
* _argo0
= 0;
11411 char *_kwnames
[] = { "self", NULL
};
11414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11425 delete_wxRegionIterator(_arg0
);
11427 wxPyEndAllowThreads(__tstate
);
11428 if (PyErr_Occurred()) return NULL
;
11429 } Py_INCREF(Py_None
);
11430 _resultobj
= Py_None
;
11434 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11435 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11436 PyObject
* _resultobj
;
11438 wxRegionIterator
* _arg0
;
11439 PyObject
* _argo0
= 0;
11440 char *_kwnames
[] = { "self", NULL
};
11443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11454 _result
= (long )wxRegionIterator_GetX(_arg0
);
11456 wxPyEndAllowThreads(__tstate
);
11457 if (PyErr_Occurred()) return NULL
;
11458 } _resultobj
= Py_BuildValue("l",_result
);
11462 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11463 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11464 PyObject
* _resultobj
;
11466 wxRegionIterator
* _arg0
;
11467 PyObject
* _argo0
= 0;
11468 char *_kwnames
[] = { "self", NULL
};
11471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11481 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11482 _result
= (long )wxRegionIterator_GetY(_arg0
);
11484 wxPyEndAllowThreads(__tstate
);
11485 if (PyErr_Occurred()) return NULL
;
11486 } _resultobj
= Py_BuildValue("l",_result
);
11490 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11491 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11492 PyObject
* _resultobj
;
11494 wxRegionIterator
* _arg0
;
11495 PyObject
* _argo0
= 0;
11496 char *_kwnames
[] = { "self", NULL
};
11499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11510 _result
= (long )wxRegionIterator_GetW(_arg0
);
11512 wxPyEndAllowThreads(__tstate
);
11513 if (PyErr_Occurred()) return NULL
;
11514 } _resultobj
= Py_BuildValue("l",_result
);
11518 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11519 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11520 PyObject
* _resultobj
;
11522 wxRegionIterator
* _arg0
;
11523 PyObject
* _argo0
= 0;
11524 char *_kwnames
[] = { "self", NULL
};
11527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11538 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11540 wxPyEndAllowThreads(__tstate
);
11541 if (PyErr_Occurred()) return NULL
;
11542 } _resultobj
= Py_BuildValue("l",_result
);
11546 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11547 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11548 PyObject
* _resultobj
;
11550 wxRegionIterator
* _arg0
;
11551 PyObject
* _argo0
= 0;
11552 char *_kwnames
[] = { "self", NULL
};
11555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11566 _result
= (long )wxRegionIterator_GetH(_arg0
);
11568 wxPyEndAllowThreads(__tstate
);
11569 if (PyErr_Occurred()) return NULL
;
11570 } _resultobj
= Py_BuildValue("l",_result
);
11574 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11575 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11576 PyObject
* _resultobj
;
11578 wxRegionIterator
* _arg0
;
11579 PyObject
* _argo0
= 0;
11580 char *_kwnames
[] = { "self", NULL
};
11583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11594 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11596 wxPyEndAllowThreads(__tstate
);
11597 if (PyErr_Occurred()) return NULL
;
11598 } _resultobj
= Py_BuildValue("l",_result
);
11602 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11603 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11604 PyObject
* _resultobj
;
11606 wxRegionIterator
* _arg0
;
11607 PyObject
* _argo0
= 0;
11608 char *_kwnames
[] = { "self", NULL
};
11612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11623 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11625 wxPyEndAllowThreads(__tstate
);
11626 if (PyErr_Occurred()) return NULL
;
11627 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11628 _resultobj
= Py_BuildValue("s",_ptemp
);
11632 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11633 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11634 PyObject
* _resultobj
;
11636 wxRegionIterator
* _arg0
;
11637 PyObject
* _argo0
= 0;
11638 char *_kwnames
[] = { "self", NULL
};
11641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11652 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11654 wxPyEndAllowThreads(__tstate
);
11655 if (PyErr_Occurred()) return NULL
;
11656 } _resultobj
= Py_BuildValue("i",_result
);
11660 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11661 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11662 PyObject
* _resultobj
;
11663 wxRegionIterator
* _arg0
;
11664 PyObject
* _argo0
= 0;
11665 char *_kwnames
[] = { "self", NULL
};
11668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11679 wxRegionIterator_Reset(_arg0
);
11681 wxPyEndAllowThreads(__tstate
);
11682 if (PyErr_Occurred()) return NULL
;
11683 } Py_INCREF(Py_None
);
11684 _resultobj
= Py_None
;
11688 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11691 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11692 PyObject
* _resultobj
;
11693 wxRegionIterator
* _arg0
;
11694 PyObject
* _argo0
= 0;
11695 char *_kwnames
[] = { "self", NULL
};
11698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11701 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11702 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11709 wxRegionIterator_Next(_arg0
);
11711 wxPyEndAllowThreads(__tstate
);
11712 if (PyErr_Occurred()) return NULL
;
11713 } Py_INCREF(Py_None
);
11714 _resultobj
= Py_None
;
11718 static PyMethodDef gdicMethods
[] = {
11719 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11720 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11721 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11722 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11723 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11724 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11725 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11726 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11727 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11728 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11729 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11730 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11731 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11732 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11733 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11734 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11735 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11736 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11737 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11738 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11739 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11740 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11741 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11742 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11743 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11744 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11745 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11746 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11747 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11748 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11749 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
11750 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11751 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11752 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11753 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11754 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11755 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11756 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11757 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11758 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11759 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11760 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11761 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11762 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11763 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11764 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11765 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11766 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11767 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11768 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11769 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11770 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11771 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11772 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11773 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11774 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11775 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11776 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11777 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11778 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11779 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11780 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11781 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11782 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11783 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11784 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11785 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11786 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11787 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11788 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11789 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11790 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11791 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11792 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11793 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11794 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11795 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11796 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11797 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11798 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11799 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11800 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11801 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11802 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11803 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11804 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11805 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11806 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11807 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11808 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11809 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11810 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11811 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11812 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11813 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11814 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11815 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11816 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11817 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11818 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11819 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11820 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11821 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11822 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11823 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11824 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11825 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11826 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11827 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11828 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11829 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11830 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11831 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11832 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11833 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11834 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11835 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11836 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11837 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11838 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11839 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11840 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11841 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11842 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11843 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11844 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11845 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11846 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11847 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11848 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11849 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11850 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11851 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11852 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
11853 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
11854 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11855 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11856 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11857 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11858 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11859 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11860 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11861 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11862 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11863 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11864 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11865 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11866 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11867 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11868 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11869 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11870 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11871 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11872 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11873 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11874 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11875 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11876 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11877 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11878 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11879 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11880 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11881 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11882 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11883 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11884 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11885 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11886 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11887 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11888 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11889 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11890 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11891 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11892 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11893 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11894 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11895 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11896 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11897 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11898 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11899 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11900 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11901 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11902 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11903 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11904 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11905 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11906 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11907 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11908 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11909 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11910 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11911 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11912 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11913 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11914 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11915 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11916 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11917 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11918 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11919 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11920 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11921 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11922 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11923 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11924 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11925 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11926 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11927 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11928 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11929 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11930 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11931 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11932 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11933 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
11934 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11935 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
11936 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11937 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11938 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11939 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11940 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11941 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11942 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11943 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11944 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11945 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11946 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11947 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11948 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11949 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11950 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11951 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11952 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11953 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11954 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11955 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11956 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11957 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11958 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11959 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
11960 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
11961 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
11962 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
11963 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
11964 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
11965 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11966 { "wxNativeFontInfo_SetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_SetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11967 { "wxNativeFontInfo_GetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_GetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11968 { "wxNativeFontInfo_IsDefault", (PyCFunction
) _wrap_wxNativeFontInfo_IsDefault
, METH_VARARGS
| METH_KEYWORDS
},
11969 { "wxNativeFontInfo_FromXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_FromXFontName
, METH_VARARGS
| METH_KEYWORDS
},
11970 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11971 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11972 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11973 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11974 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11975 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11976 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11977 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11978 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11979 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11980 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11981 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11982 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11983 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11984 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11985 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11986 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11987 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11988 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11989 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11990 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11991 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11992 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11993 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11994 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11995 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11996 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11997 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11998 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11999 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12000 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12001 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12002 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12003 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12004 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12005 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12006 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12007 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12008 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12009 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12010 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12011 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12012 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12013 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12014 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12015 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12022 * This table is used by the pointer type-checker
12024 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12025 { "_signed_long","_long",0},
12026 { "_wxPrintQuality","_wxCoord",0},
12027 { "_wxPrintQuality","_int",0},
12028 { "_wxPrintQuality","_signed_int",0},
12029 { "_wxPrintQuality","_unsigned_int",0},
12030 { "_wxPrintQuality","_wxWindowID",0},
12031 { "_wxPrintQuality","_uint",0},
12032 { "_wxPrintQuality","_EBool",0},
12033 { "_wxPrintQuality","_size_t",0},
12034 { "_wxPrintQuality","_time_t",0},
12035 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12036 { "_byte","_unsigned_char",0},
12037 { "_long","_unsigned_long",0},
12038 { "_long","_signed_long",0},
12039 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12040 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12041 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12042 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12043 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12044 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12045 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12046 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12047 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12048 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12049 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12050 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12051 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12052 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12053 { "_size_t","_wxCoord",0},
12054 { "_size_t","_wxPrintQuality",0},
12055 { "_size_t","_time_t",0},
12056 { "_size_t","_unsigned_int",0},
12057 { "_size_t","_int",0},
12058 { "_size_t","_wxWindowID",0},
12059 { "_size_t","_uint",0},
12060 { "_uint","_wxCoord",0},
12061 { "_uint","_wxPrintQuality",0},
12062 { "_uint","_time_t",0},
12063 { "_uint","_size_t",0},
12064 { "_uint","_unsigned_int",0},
12065 { "_uint","_int",0},
12066 { "_uint","_wxWindowID",0},
12067 { "_wxChar","_char",0},
12068 { "_char","_wxChar",0},
12069 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12070 { "_EBool","_wxCoord",0},
12071 { "_EBool","_wxPrintQuality",0},
12072 { "_EBool","_signed_int",0},
12073 { "_EBool","_int",0},
12074 { "_EBool","_wxWindowID",0},
12075 { "_unsigned_long","_long",0},
12076 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12077 { "_signed_int","_wxCoord",0},
12078 { "_signed_int","_wxPrintQuality",0},
12079 { "_signed_int","_EBool",0},
12080 { "_signed_int","_wxWindowID",0},
12081 { "_signed_int","_int",0},
12082 { "_WXTYPE","_short",0},
12083 { "_WXTYPE","_signed_short",0},
12084 { "_WXTYPE","_unsigned_short",0},
12085 { "_unsigned_short","_WXTYPE",0},
12086 { "_unsigned_short","_short",0},
12087 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12088 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12089 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12090 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12091 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12092 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12093 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12094 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12095 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12096 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12097 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12098 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12099 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12100 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12101 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12102 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12103 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12104 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12105 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12106 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12107 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12108 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12109 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12110 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12111 { "_signed_short","_WXTYPE",0},
12112 { "_signed_short","_short",0},
12113 { "_unsigned_char","_byte",0},
12114 { "_unsigned_int","_wxCoord",0},
12115 { "_unsigned_int","_wxPrintQuality",0},
12116 { "_unsigned_int","_time_t",0},
12117 { "_unsigned_int","_size_t",0},
12118 { "_unsigned_int","_uint",0},
12119 { "_unsigned_int","_wxWindowID",0},
12120 { "_unsigned_int","_int",0},
12121 { "_short","_WXTYPE",0},
12122 { "_short","_unsigned_short",0},
12123 { "_short","_signed_short",0},
12124 { "_wxWindowID","_wxCoord",0},
12125 { "_wxWindowID","_wxPrintQuality",0},
12126 { "_wxWindowID","_time_t",0},
12127 { "_wxWindowID","_size_t",0},
12128 { "_wxWindowID","_EBool",0},
12129 { "_wxWindowID","_uint",0},
12130 { "_wxWindowID","_int",0},
12131 { "_wxWindowID","_signed_int",0},
12132 { "_wxWindowID","_unsigned_int",0},
12133 { "_int","_wxCoord",0},
12134 { "_int","_wxPrintQuality",0},
12135 { "_int","_time_t",0},
12136 { "_int","_size_t",0},
12137 { "_int","_EBool",0},
12138 { "_int","_uint",0},
12139 { "_int","_wxWindowID",0},
12140 { "_int","_unsigned_int",0},
12141 { "_int","_signed_int",0},
12142 { "_time_t","_wxCoord",0},
12143 { "_time_t","_wxPrintQuality",0},
12144 { "_time_t","_unsigned_int",0},
12145 { "_time_t","_int",0},
12146 { "_time_t","_wxWindowID",0},
12147 { "_time_t","_uint",0},
12148 { "_time_t","_size_t",0},
12149 { "_wxCoord","_int",0},
12150 { "_wxCoord","_signed_int",0},
12151 { "_wxCoord","_unsigned_int",0},
12152 { "_wxCoord","_wxWindowID",0},
12153 { "_wxCoord","_uint",0},
12154 { "_wxCoord","_EBool",0},
12155 { "_wxCoord","_size_t",0},
12156 { "_wxCoord","_time_t",0},
12157 { "_wxCoord","_wxPrintQuality",0},
12160 static PyObject
*SWIG_globals
;
12164 SWIGEXPORT(void) initgdic() {
12166 SWIG_globals
= SWIG_newvarlink();
12167 m
= Py_InitModule("gdic", gdicMethods
);
12168 d
= PyModule_GetDict(m
);
12169 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12170 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12171 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12172 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12173 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12174 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12175 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12176 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12177 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
12178 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12179 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12180 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12181 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12182 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12183 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12184 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12185 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12186 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12187 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12188 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12189 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12190 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12191 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12192 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12193 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12194 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12195 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12196 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12197 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12198 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12199 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12200 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12201 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12202 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12203 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12204 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12205 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12206 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12207 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12208 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12209 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12210 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12211 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12212 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12213 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
12214 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
12215 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
12216 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
12217 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12218 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12219 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12220 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12221 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12222 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12223 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12224 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12225 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12226 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12227 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12228 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12229 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12230 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12231 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12232 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12233 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12234 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12235 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12236 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12237 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12238 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12239 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12240 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12241 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12242 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12243 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12244 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12245 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12246 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12247 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12248 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12249 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12250 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12251 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12252 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12253 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12254 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12255 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12256 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12257 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12258 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12259 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12260 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12261 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12262 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12263 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12264 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12265 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12266 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12267 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12268 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12269 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12270 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12271 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12272 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12273 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12274 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12275 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12276 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12277 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12278 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12279 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12280 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12281 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12282 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12283 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12284 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12285 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12286 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12289 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12290 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);