2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/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";
98 static wxString
wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
101 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
102 return new wxBitmap(width
, height
, depth
);
105 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
106 char** cArray
= NULL
;
109 if (!PyList_Check(listOfStrings
)) {
110 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
113 count
= PyList_Size(listOfStrings
);
114 cArray
= new char*[count
];
116 for(int x
=0; x
<count
; x
++) {
117 // TODO: Need some validation and error checking here
118 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
124 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 cArray
= ConvertListOfStrings(listOfStrings
);
131 bmp
= new wxBitmap(cArray
);
137 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
138 return new wxBitmap(icon
);
142 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
143 return new wxBitmap(bits
, width
, height
, depth
);
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
158 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
159 return new wxMask(bitmap
, colour
);
161 // Implementations of some alternate "constructors"
162 wxIcon
* wxEmptyIcon() {
166 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
167 char** cArray
= NULL
;
170 cArray
= ConvertListOfStrings(listOfStrings
);
173 icon
= new wxIcon(cArray
);
177 // Alternate 'constructor'
178 wxCursor
* wxPyStockCursor(int id
) {
179 return new wxCursor(id
);
181 // Alternate 'constructor'
182 wxColour
* wxNamedColour(const wxString
& colorName
) {
183 return new wxColour(colorName
);
186 class wxPyPen
: public wxPen
{
188 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
189 : wxPen(colour
, width
, style
)
196 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
197 m_dash
= new wxDash
[nb_dashes
];
198 for (int i
=0; i
<nb_dashes
; i
++)
200 wxPen::SetDashes(nb_dashes
, m_dash
);
207 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
213 // Alternate 'constructor'
214 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
215 return new wxMemoryDC(oldDC
);
218 #include <wx/metafile.h>
221 extern wxFont
* wxNORMAL_FONT
;
222 extern wxFont
* wxSMALL_FONT
;
223 extern wxFont
* wxITALIC_FONT
;
224 extern wxFont
* wxSWISS_FONT
;
225 extern wxPen
* wxRED_PEN
;
226 extern wxPen
* wxCYAN_PEN
;
227 extern wxPen
* wxGREEN_PEN
;
228 extern wxPen
* wxBLACK_PEN
;
229 extern wxPen
* wxWHITE_PEN
;
230 extern wxPen
* wxTRANSPARENT_PEN
;
231 extern wxPen
* wxBLACK_DASHED_PEN
;
232 extern wxPen
* wxGREY_PEN
;
233 extern wxPen
* wxMEDIUM_GREY_PEN
;
234 extern wxPen
* wxLIGHT_GREY_PEN
;
235 extern wxBrush
* wxBLUE_BRUSH
;
236 extern wxBrush
* wxGREEN_BRUSH
;
237 extern wxBrush
* wxWHITE_BRUSH
;
238 extern wxBrush
* wxBLACK_BRUSH
;
239 extern wxBrush
* wxTRANSPARENT_BRUSH
;
240 extern wxBrush
* wxCYAN_BRUSH
;
241 extern wxBrush
* wxRED_BRUSH
;
242 extern wxBrush
* wxGREY_BRUSH
;
243 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
244 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
245 extern wxColour
* wxBLACK
;
246 extern wxColour
* wxWHITE
;
247 extern wxColour
* wxRED
;
248 extern wxColour
* wxBLUE
;
249 extern wxColour
* wxGREEN
;
250 extern wxColour
* wxCYAN
;
251 extern wxColour
* wxLIGHT_GREY
;
252 extern wxCursor
* wxSTANDARD_CURSOR
;
253 extern wxCursor
* wxHOURGLASS_CURSOR
;
254 extern wxCursor
* wxCROSS_CURSOR
;
255 extern wxBitmap wxNullBitmap
;
256 extern wxIcon wxNullIcon
;
257 extern wxCursor wxNullCursor
;
258 extern wxPen wxNullPen
;
259 extern wxBrush wxNullBrush
;
260 extern wxPalette wxNullPalette
;
261 extern wxFont wxNullFont
;
262 extern wxColour wxNullColour
;
263 extern wxFontList
* wxTheFontList
;
264 extern wxPenList
* wxThePenList
;
265 extern wxBrushList
* wxTheBrushList
;
266 extern wxColourDatabase
* wxTheColourDatabase
;
272 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
273 PyObject
* _resultobj
;
277 int _arg2
= (int ) -1;
278 char *_kwnames
[] = { "width","height","depth", NULL
};
282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
285 wxPy_BEGIN_ALLOW_THREADS
;
286 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
288 wxPy_END_ALLOW_THREADS
;
289 if (PyErr_Occurred()) return NULL
;
291 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
292 _resultobj
= Py_BuildValue("s",_ptemp
);
295 _resultobj
= Py_None
;
300 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
301 PyObject
* _resultobj
;
304 PyObject
* _obj0
= 0;
305 char *_kwnames
[] = { "listOfStrings", NULL
};
309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
315 wxPy_BEGIN_ALLOW_THREADS
;
316 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
318 wxPy_END_ALLOW_THREADS
;
319 if (PyErr_Occurred()) return NULL
;
321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
322 _resultobj
= Py_BuildValue("s",_ptemp
);
325 _resultobj
= Py_None
;
330 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
331 PyObject
* _resultobj
;
334 PyObject
* _argo0
= 0;
335 char *_kwnames
[] = { "icon", NULL
};
339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
349 wxPy_BEGIN_ALLOW_THREADS
;
350 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
352 wxPy_END_ALLOW_THREADS
;
353 if (PyErr_Occurred()) return NULL
;
355 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
356 _resultobj
= Py_BuildValue("s",_ptemp
);
359 _resultobj
= Py_None
;
364 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
365 PyObject
* _resultobj
;
370 int _arg3
= (int ) 1;
371 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
378 wxPy_BEGIN_ALLOW_THREADS
;
379 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
381 wxPy_END_ALLOW_THREADS
;
382 if (PyErr_Occurred()) return NULL
;
384 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
385 _resultobj
= Py_BuildValue("s",_ptemp
);
388 _resultobj
= Py_None
;
393 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
394 PyObject
* _resultobj
;
398 PyObject
* _argo0
= 0;
400 PyObject
* _obj1
= 0;
401 char *_kwnames
[] = { "bitmap","colour", NULL
};
405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
416 if (! wxColour_helper(_obj1
, &_arg1
))
420 wxPy_BEGIN_ALLOW_THREADS
;
421 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
423 wxPy_END_ALLOW_THREADS
;
424 if (PyErr_Occurred()) return NULL
;
426 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
427 _resultobj
= Py_BuildValue("s",_ptemp
);
430 _resultobj
= Py_None
;
435 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
436 PyObject
* _resultobj
;
438 char *_kwnames
[] = { NULL
};
442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
445 wxPy_BEGIN_ALLOW_THREADS
;
446 _result
= (wxIcon
*)wxEmptyIcon();
448 wxPy_END_ALLOW_THREADS
;
449 if (PyErr_Occurred()) return NULL
;
451 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
452 _resultobj
= Py_BuildValue("s",_ptemp
);
455 _resultobj
= Py_None
;
460 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
461 PyObject
* _resultobj
;
464 PyObject
* _obj0
= 0;
465 char *_kwnames
[] = { "listOfStrings", NULL
};
469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
475 wxPy_BEGIN_ALLOW_THREADS
;
476 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
478 wxPy_END_ALLOW_THREADS
;
479 if (PyErr_Occurred()) return NULL
;
481 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
482 _resultobj
= Py_BuildValue("s",_ptemp
);
485 _resultobj
= Py_None
;
490 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
491 PyObject
* _resultobj
;
494 char *_kwnames
[] = { "id", NULL
};
498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
501 wxPy_BEGIN_ALLOW_THREADS
;
502 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
504 wxPy_END_ALLOW_THREADS
;
505 if (PyErr_Occurred()) return NULL
;
507 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
508 _resultobj
= Py_BuildValue("s",_ptemp
);
511 _resultobj
= Py_None
;
516 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
517 PyObject
* _resultobj
;
520 PyObject
* _obj0
= 0;
521 char *_kwnames
[] = { "colorName", NULL
};
525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
528 #if PYTHON_API_VERSION >= 1009
529 char* tmpPtr
; int tmpSize
;
530 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
531 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
534 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
536 _arg0
= new wxString(tmpPtr
, tmpSize
);
538 if (!PyString_Check(_obj0
)) {
539 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
542 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
546 wxPy_BEGIN_ALLOW_THREADS
;
547 _result
= (wxColour
*)wxNamedColour(*_arg0
);
549 wxPy_END_ALLOW_THREADS
;
550 if (PyErr_Occurred()) return NULL
;
552 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
553 _resultobj
= Py_BuildValue("s",_ptemp
);
556 _resultobj
= Py_None
;
565 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
566 PyObject
* _resultobj
;
567 wxMemoryDC
* _result
;
569 PyObject
* _argo0
= 0;
570 char *_kwnames
[] = { "oldDC", NULL
};
574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
584 wxPy_BEGIN_ALLOW_THREADS
;
585 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
587 wxPy_END_ALLOW_THREADS
;
588 if (PyErr_Occurred()) return NULL
;
590 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
591 _resultobj
= Py_BuildValue("s",_ptemp
);
594 _resultobj
= Py_None
;
599 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
601 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
605 static PyObject
*_wrap_wxNORMAL_FONT_get() {
609 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
610 pyobj
= PyString_FromString(ptemp
);
614 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
616 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
620 static PyObject
*_wrap_wxSMALL_FONT_get() {
624 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
625 pyobj
= PyString_FromString(ptemp
);
629 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
631 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
635 static PyObject
*_wrap_wxITALIC_FONT_get() {
639 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
640 pyobj
= PyString_FromString(ptemp
);
644 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
646 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
650 static PyObject
*_wrap_wxSWISS_FONT_get() {
654 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
655 pyobj
= PyString_FromString(ptemp
);
659 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
661 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
665 static PyObject
*_wrap_wxRED_PEN_get() {
669 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
670 pyobj
= PyString_FromString(ptemp
);
674 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
676 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
680 static PyObject
*_wrap_wxCYAN_PEN_get() {
684 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
685 pyobj
= PyString_FromString(ptemp
);
689 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
691 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
695 static PyObject
*_wrap_wxGREEN_PEN_get() {
699 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
700 pyobj
= PyString_FromString(ptemp
);
704 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
706 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
710 static PyObject
*_wrap_wxBLACK_PEN_get() {
714 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
715 pyobj
= PyString_FromString(ptemp
);
719 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
721 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
725 static PyObject
*_wrap_wxWHITE_PEN_get() {
729 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
730 pyobj
= PyString_FromString(ptemp
);
734 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
736 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
740 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
744 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
745 pyobj
= PyString_FromString(ptemp
);
749 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
751 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
755 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
759 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
760 pyobj
= PyString_FromString(ptemp
);
764 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
766 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
770 static PyObject
*_wrap_wxGREY_PEN_get() {
774 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
775 pyobj
= PyString_FromString(ptemp
);
779 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
781 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
785 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
789 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
790 pyobj
= PyString_FromString(ptemp
);
794 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
796 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
800 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
804 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
805 pyobj
= PyString_FromString(ptemp
);
809 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
811 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
815 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
819 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
820 pyobj
= PyString_FromString(ptemp
);
824 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
826 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
830 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
834 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
835 pyobj
= PyString_FromString(ptemp
);
839 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
841 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
845 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
849 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
850 pyobj
= PyString_FromString(ptemp
);
854 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
856 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
860 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
864 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
865 pyobj
= PyString_FromString(ptemp
);
869 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
871 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
875 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
879 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
880 pyobj
= PyString_FromString(ptemp
);
884 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
886 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
890 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
894 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
895 pyobj
= PyString_FromString(ptemp
);
899 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
901 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
905 static PyObject
*_wrap_wxRED_BRUSH_get() {
909 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
910 pyobj
= PyString_FromString(ptemp
);
914 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
916 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
920 static PyObject
*_wrap_wxGREY_BRUSH_get() {
924 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
925 pyobj
= PyString_FromString(ptemp
);
929 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
931 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
935 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
939 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
940 pyobj
= PyString_FromString(ptemp
);
944 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
946 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
950 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
954 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
955 pyobj
= PyString_FromString(ptemp
);
959 static int _wrap_wxBLACK_set(PyObject
*val
) {
961 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
965 static PyObject
*_wrap_wxBLACK_get() {
969 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
970 pyobj
= PyString_FromString(ptemp
);
974 static int _wrap_wxWHITE_set(PyObject
*val
) {
976 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
980 static PyObject
*_wrap_wxWHITE_get() {
984 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
985 pyobj
= PyString_FromString(ptemp
);
989 static int _wrap_wxRED_set(PyObject
*val
) {
991 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
995 static PyObject
*_wrap_wxRED_get() {
999 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1000 pyobj
= PyString_FromString(ptemp
);
1004 static int _wrap_wxBLUE_set(PyObject
*val
) {
1006 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1010 static PyObject
*_wrap_wxBLUE_get() {
1014 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1015 pyobj
= PyString_FromString(ptemp
);
1019 static int _wrap_wxGREEN_set(PyObject
*val
) {
1021 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1025 static PyObject
*_wrap_wxGREEN_get() {
1029 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1030 pyobj
= PyString_FromString(ptemp
);
1034 static int _wrap_wxCYAN_set(PyObject
*val
) {
1036 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1040 static PyObject
*_wrap_wxCYAN_get() {
1044 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1045 pyobj
= PyString_FromString(ptemp
);
1049 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1051 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1055 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1059 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1060 pyobj
= PyString_FromString(ptemp
);
1064 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1066 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1070 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1074 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1075 pyobj
= PyString_FromString(ptemp
);
1079 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1081 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1085 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1089 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1090 pyobj
= PyString_FromString(ptemp
);
1094 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1096 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1100 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1104 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1105 pyobj
= PyString_FromString(ptemp
);
1109 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1111 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1115 static PyObject
*_wrap_wxNullBitmap_get() {
1119 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1120 pyobj
= PyString_FromString(ptemp
);
1124 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1126 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1130 static PyObject
*_wrap_wxNullIcon_get() {
1134 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1135 pyobj
= PyString_FromString(ptemp
);
1139 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1141 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1145 static PyObject
*_wrap_wxNullCursor_get() {
1149 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1150 pyobj
= PyString_FromString(ptemp
);
1154 static int _wrap_wxNullPen_set(PyObject
*val
) {
1156 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1160 static PyObject
*_wrap_wxNullPen_get() {
1164 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1165 pyobj
= PyString_FromString(ptemp
);
1169 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1171 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1175 static PyObject
*_wrap_wxNullBrush_get() {
1179 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1180 pyobj
= PyString_FromString(ptemp
);
1184 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1186 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1190 static PyObject
*_wrap_wxNullPalette_get() {
1194 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1195 pyobj
= PyString_FromString(ptemp
);
1199 static int _wrap_wxNullFont_set(PyObject
*val
) {
1201 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1205 static PyObject
*_wrap_wxNullFont_get() {
1209 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1210 pyobj
= PyString_FromString(ptemp
);
1214 static int _wrap_wxNullColour_set(PyObject
*val
) {
1216 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1220 static PyObject
*_wrap_wxNullColour_get() {
1224 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1225 pyobj
= PyString_FromString(ptemp
);
1229 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1231 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1235 static PyObject
*_wrap_wxTheFontList_get() {
1239 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1240 pyobj
= PyString_FromString(ptemp
);
1244 static int _wrap_wxThePenList_set(PyObject
*val
) {
1246 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1250 static PyObject
*_wrap_wxThePenList_get() {
1254 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1255 pyobj
= PyString_FromString(ptemp
);
1259 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1261 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1265 static PyObject
*_wrap_wxTheBrushList_get() {
1269 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1270 pyobj
= PyString_FromString(ptemp
);
1274 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1276 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1280 static PyObject
*_wrap_wxTheColourDatabase_get() {
1284 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1285 pyobj
= PyString_FromString(ptemp
);
1289 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1292 src
= (wxGDIObject
*) ptr
;
1293 dest
= (wxObject
*) src
;
1294 return (void *) dest
;
1297 #define new_wxGDIObject() (new wxGDIObject())
1298 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1299 PyObject
* _resultobj
;
1300 wxGDIObject
* _result
;
1301 char *_kwnames
[] = { NULL
};
1305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1308 wxPy_BEGIN_ALLOW_THREADS
;
1309 _result
= (wxGDIObject
*)new_wxGDIObject();
1311 wxPy_END_ALLOW_THREADS
;
1312 if (PyErr_Occurred()) return NULL
;
1314 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1315 _resultobj
= Py_BuildValue("s",_ptemp
);
1318 _resultobj
= Py_None
;
1323 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1324 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1325 PyObject
* _resultobj
;
1326 wxGDIObject
* _arg0
;
1327 PyObject
* _argo0
= 0;
1328 char *_kwnames
[] = { "self", NULL
};
1331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1341 wxPy_BEGIN_ALLOW_THREADS
;
1342 delete_wxGDIObject(_arg0
);
1344 wxPy_END_ALLOW_THREADS
;
1345 if (PyErr_Occurred()) return NULL
;
1346 } Py_INCREF(Py_None
);
1347 _resultobj
= Py_None
;
1351 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1352 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1353 PyObject
* _resultobj
;
1355 wxGDIObject
* _arg0
;
1356 PyObject
* _argo0
= 0;
1357 char *_kwnames
[] = { "self", NULL
};
1360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1363 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1364 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1370 wxPy_BEGIN_ALLOW_THREADS
;
1371 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1373 wxPy_END_ALLOW_THREADS
;
1374 if (PyErr_Occurred()) return NULL
;
1375 } _resultobj
= Py_BuildValue("i",_result
);
1379 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1380 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1381 PyObject
* _resultobj
;
1382 wxGDIObject
* _arg0
;
1384 PyObject
* _argo0
= 0;
1386 char *_kwnames
[] = { "self","visible", NULL
};
1389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1398 _arg1
= (bool ) tempbool1
;
1400 wxPy_BEGIN_ALLOW_THREADS
;
1401 wxGDIObject_SetVisible(_arg0
,_arg1
);
1403 wxPy_END_ALLOW_THREADS
;
1404 if (PyErr_Occurred()) return NULL
;
1405 } Py_INCREF(Py_None
);
1406 _resultobj
= Py_None
;
1410 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1411 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1412 PyObject
* _resultobj
;
1414 wxGDIObject
* _arg0
;
1415 PyObject
* _argo0
= 0;
1416 char *_kwnames
[] = { "self", NULL
};
1419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1429 wxPy_BEGIN_ALLOW_THREADS
;
1430 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1432 wxPy_END_ALLOW_THREADS
;
1433 if (PyErr_Occurred()) return NULL
;
1434 } _resultobj
= Py_BuildValue("i",_result
);
1438 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1441 src
= (wxBitmap
*) ptr
;
1442 dest
= (wxGDIObject
*) src
;
1443 return (void *) dest
;
1446 static void *SwigwxBitmapTowxObject(void *ptr
) {
1449 src
= (wxBitmap
*) ptr
;
1450 dest
= (wxObject
*) src
;
1451 return (void *) dest
;
1454 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1455 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1456 PyObject
* _resultobj
;
1459 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1460 PyObject
* _obj0
= 0;
1461 char *_kwnames
[] = { "name","type", NULL
};
1465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1468 #if PYTHON_API_VERSION >= 1009
1469 char* tmpPtr
; int tmpSize
;
1470 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1471 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1474 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1476 _arg0
= new wxString(tmpPtr
, tmpSize
);
1478 if (!PyString_Check(_obj0
)) {
1479 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1482 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1486 wxPy_BEGIN_ALLOW_THREADS
;
1487 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1489 wxPy_END_ALLOW_THREADS
;
1490 if (PyErr_Occurred()) return NULL
;
1492 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1493 _resultobj
= Py_BuildValue("s",_ptemp
);
1496 _resultobj
= Py_None
;
1505 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1506 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1507 PyObject
* _resultobj
;
1509 PyObject
* _argo0
= 0;
1510 char *_kwnames
[] = { "self", NULL
};
1513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1523 wxPy_BEGIN_ALLOW_THREADS
;
1524 delete_wxBitmap(_arg0
);
1526 wxPy_END_ALLOW_THREADS
;
1527 if (PyErr_Occurred()) return NULL
;
1528 } Py_INCREF(Py_None
);
1529 _resultobj
= Py_None
;
1533 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1534 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1535 PyObject
* _resultobj
;
1536 wxPalette
* _result
;
1538 PyObject
* _argo0
= 0;
1539 char *_kwnames
[] = { "self", NULL
};
1543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1553 wxPy_BEGIN_ALLOW_THREADS
;
1554 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1556 wxPy_END_ALLOW_THREADS
;
1557 if (PyErr_Occurred()) return NULL
;
1559 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1560 _resultobj
= Py_BuildValue("s",_ptemp
);
1563 _resultobj
= Py_None
;
1568 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1569 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1570 PyObject
* _resultobj
;
1573 PyObject
* _argo0
= 0;
1574 char *_kwnames
[] = { "self", NULL
};
1578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1588 wxPy_BEGIN_ALLOW_THREADS
;
1589 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1591 wxPy_END_ALLOW_THREADS
;
1592 if (PyErr_Occurred()) return NULL
;
1594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1595 _resultobj
= Py_BuildValue("s",_ptemp
);
1598 _resultobj
= Py_None
;
1603 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1604 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1605 PyObject
* _resultobj
;
1609 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_BMP
;
1610 PyObject
* _argo0
= 0;
1611 PyObject
* _obj1
= 0;
1612 char *_kwnames
[] = { "self","name","type", NULL
};
1615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1625 #if PYTHON_API_VERSION >= 1009
1626 char* tmpPtr
; int tmpSize
;
1627 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1628 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1631 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1633 _arg1
= new wxString(tmpPtr
, tmpSize
);
1635 if (!PyString_Check(_obj1
)) {
1636 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1639 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1643 wxPy_BEGIN_ALLOW_THREADS
;
1644 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1646 wxPy_END_ALLOW_THREADS
;
1647 if (PyErr_Occurred()) return NULL
;
1648 } _resultobj
= Py_BuildValue("i",_result
);
1656 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1657 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1658 PyObject
* _resultobj
;
1663 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1664 PyObject
* _argo0
= 0;
1665 PyObject
* _obj1
= 0;
1666 PyObject
* _argo3
= 0;
1667 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1680 #if PYTHON_API_VERSION >= 1009
1681 char* tmpPtr
; int tmpSize
;
1682 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1683 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1686 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1688 _arg1
= new wxString(tmpPtr
, tmpSize
);
1690 if (!PyString_Check(_obj1
)) {
1691 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1694 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1698 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1699 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1705 wxPy_BEGIN_ALLOW_THREADS
;
1706 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1708 wxPy_END_ALLOW_THREADS
;
1709 if (PyErr_Occurred()) return NULL
;
1710 } _resultobj
= Py_BuildValue("i",_result
);
1718 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1719 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1720 PyObject
* _resultobj
;
1723 PyObject
* _argo0
= 0;
1724 PyObject
* _argo1
= 0;
1725 char *_kwnames
[] = { "self","mask", NULL
};
1728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1738 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1739 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1745 wxPy_BEGIN_ALLOW_THREADS
;
1746 wxBitmap_SetMask(_arg0
,_arg1
);
1748 wxPy_END_ALLOW_THREADS
;
1749 if (PyErr_Occurred()) return NULL
;
1750 } Py_INCREF(Py_None
);
1751 _resultobj
= Py_None
;
1755 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1756 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1757 PyObject
* _resultobj
;
1760 PyObject
* _argo0
= 0;
1761 PyObject
* _argo1
= 0;
1762 char *_kwnames
[] = { "self","palette", NULL
};
1765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1775 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1776 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1782 wxPy_BEGIN_ALLOW_THREADS
;
1783 wxBitmap_SetPalette(_arg0
,*_arg1
);
1785 wxPy_END_ALLOW_THREADS
;
1786 if (PyErr_Occurred()) return NULL
;
1787 } Py_INCREF(Py_None
);
1788 _resultobj
= Py_None
;
1792 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1793 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1794 PyObject
* _resultobj
;
1797 PyObject
* _argo0
= 0;
1798 char *_kwnames
[] = { "self", NULL
};
1801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1811 wxPy_BEGIN_ALLOW_THREADS
;
1812 _result
= (long )wxBitmap_GetHandle(_arg0
);
1814 wxPy_END_ALLOW_THREADS
;
1815 if (PyErr_Occurred()) return NULL
;
1816 } _resultobj
= Py_BuildValue("l",_result
);
1820 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1821 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1822 PyObject
* _resultobj
;
1825 PyObject
* _argo0
= 0;
1826 char *_kwnames
[] = { "self","handle", NULL
};
1829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1839 wxPy_BEGIN_ALLOW_THREADS
;
1840 wxBitmap_SetHandle(_arg0
,_arg1
);
1842 wxPy_END_ALLOW_THREADS
;
1843 if (PyErr_Occurred()) return NULL
;
1844 } Py_INCREF(Py_None
);
1845 _resultobj
= Py_None
;
1849 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1850 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1851 PyObject
* _resultobj
;
1854 PyObject
* _argo0
= 0;
1855 char *_kwnames
[] = { "self", NULL
};
1858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1868 wxPy_BEGIN_ALLOW_THREADS
;
1869 _result
= (bool )wxBitmap_Ok(_arg0
);
1871 wxPy_END_ALLOW_THREADS
;
1872 if (PyErr_Occurred()) return NULL
;
1873 } _resultobj
= Py_BuildValue("i",_result
);
1877 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1878 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1879 PyObject
* _resultobj
;
1882 PyObject
* _argo0
= 0;
1883 char *_kwnames
[] = { "self", NULL
};
1886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1896 wxPy_BEGIN_ALLOW_THREADS
;
1897 _result
= (int )wxBitmap_GetWidth(_arg0
);
1899 wxPy_END_ALLOW_THREADS
;
1900 if (PyErr_Occurred()) return NULL
;
1901 } _resultobj
= Py_BuildValue("i",_result
);
1905 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1906 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1907 PyObject
* _resultobj
;
1910 PyObject
* _argo0
= 0;
1911 char *_kwnames
[] = { "self", NULL
};
1914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1924 wxPy_BEGIN_ALLOW_THREADS
;
1925 _result
= (int )wxBitmap_GetHeight(_arg0
);
1927 wxPy_END_ALLOW_THREADS
;
1928 if (PyErr_Occurred()) return NULL
;
1929 } _resultobj
= Py_BuildValue("i",_result
);
1933 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1934 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1935 PyObject
* _resultobj
;
1938 PyObject
* _argo0
= 0;
1939 char *_kwnames
[] = { "self", NULL
};
1942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1952 wxPy_BEGIN_ALLOW_THREADS
;
1953 _result
= (int )wxBitmap_GetDepth(_arg0
);
1955 wxPy_END_ALLOW_THREADS
;
1956 if (PyErr_Occurred()) return NULL
;
1957 } _resultobj
= Py_BuildValue("i",_result
);
1961 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1962 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1963 PyObject
* _resultobj
;
1966 PyObject
* _argo0
= 0;
1967 char *_kwnames
[] = { "self","w", NULL
};
1970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1980 wxPy_BEGIN_ALLOW_THREADS
;
1981 wxBitmap_SetWidth(_arg0
,_arg1
);
1983 wxPy_END_ALLOW_THREADS
;
1984 if (PyErr_Occurred()) return NULL
;
1985 } Py_INCREF(Py_None
);
1986 _resultobj
= Py_None
;
1990 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1991 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1992 PyObject
* _resultobj
;
1995 PyObject
* _argo0
= 0;
1996 char *_kwnames
[] = { "self","h", NULL
};
1999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2009 wxPy_BEGIN_ALLOW_THREADS
;
2010 wxBitmap_SetHeight(_arg0
,_arg1
);
2012 wxPy_END_ALLOW_THREADS
;
2013 if (PyErr_Occurred()) return NULL
;
2014 } Py_INCREF(Py_None
);
2015 _resultobj
= Py_None
;
2019 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2020 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2021 PyObject
* _resultobj
;
2024 PyObject
* _argo0
= 0;
2025 char *_kwnames
[] = { "self","d", NULL
};
2028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2038 wxPy_BEGIN_ALLOW_THREADS
;
2039 wxBitmap_SetDepth(_arg0
,_arg1
);
2041 wxPy_END_ALLOW_THREADS
;
2042 if (PyErr_Occurred()) return NULL
;
2043 } Py_INCREF(Py_None
);
2044 _resultobj
= Py_None
;
2048 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2049 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2050 PyObject
* _resultobj
;
2053 PyObject
* _argo0
= 0;
2055 PyObject
* _obj1
= 0;
2056 char *_kwnames
[] = { "self","size", NULL
};
2059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2070 if (! wxSize_helper(_obj1
, &_arg1
))
2074 wxPy_BEGIN_ALLOW_THREADS
;
2075 wxBitmap_SetSize(_arg0
,*_arg1
);
2077 wxPy_END_ALLOW_THREADS
;
2078 if (PyErr_Occurred()) return NULL
;
2079 } Py_INCREF(Py_None
);
2080 _resultobj
= Py_None
;
2084 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2085 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2086 PyObject
* _resultobj
;
2090 PyObject
* _argo0
= 0;
2092 PyObject
* _obj1
= 0;
2093 char *_kwnames
[] = { "self","rect", NULL
};
2097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2108 if (! wxRect_helper(_obj1
, &_arg1
))
2112 wxPy_BEGIN_ALLOW_THREADS
;
2113 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2115 wxPy_END_ALLOW_THREADS
;
2116 if (PyErr_Occurred()) return NULL
;
2117 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2118 _resultobj
= Py_BuildValue("s",_ptemp
);
2122 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2123 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2124 PyObject
* _resultobj
;
2128 PyObject
* _argo0
= 0;
2129 PyObject
* _argo1
= 0;
2130 char *_kwnames
[] = { "self","icon", NULL
};
2133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2143 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2144 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2150 wxPy_BEGIN_ALLOW_THREADS
;
2151 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2153 wxPy_END_ALLOW_THREADS
;
2154 if (PyErr_Occurred()) return NULL
;
2155 } _resultobj
= Py_BuildValue("i",_result
);
2159 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2160 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2161 PyObject
* _resultobj
;
2165 PyObject
* _argo0
= 0;
2166 PyObject
* _argo1
= 0;
2167 char *_kwnames
[] = { "self","cursor", NULL
};
2170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2180 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2181 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2187 wxPy_BEGIN_ALLOW_THREADS
;
2188 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2190 wxPy_END_ALLOW_THREADS
;
2191 if (PyErr_Occurred()) return NULL
;
2192 } _resultobj
= Py_BuildValue("i",_result
);
2196 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2197 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
* _resultobj
;
2201 PyObject
* _argo0
= 0;
2202 char *_kwnames
[] = { "self", NULL
};
2205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2215 wxPy_BEGIN_ALLOW_THREADS
;
2216 _result
= (int )wxBitmap_GetQuality(_arg0
);
2218 wxPy_END_ALLOW_THREADS
;
2219 if (PyErr_Occurred()) return NULL
;
2220 } _resultobj
= Py_BuildValue("i",_result
);
2224 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2225 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2226 PyObject
* _resultobj
;
2229 PyObject
* _argo0
= 0;
2230 char *_kwnames
[] = { "self","q", NULL
};
2233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2243 wxPy_BEGIN_ALLOW_THREADS
;
2244 wxBitmap_SetQuality(_arg0
,_arg1
);
2246 wxPy_END_ALLOW_THREADS
;
2247 if (PyErr_Occurred()) return NULL
;
2248 } Py_INCREF(Py_None
);
2249 _resultobj
= Py_None
;
2253 static void *SwigwxMaskTowxObject(void *ptr
) {
2256 src
= (wxMask
*) ptr
;
2257 dest
= (wxObject
*) src
;
2258 return (void *) dest
;
2261 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2262 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2263 PyObject
* _resultobj
;
2266 PyObject
* _argo0
= 0;
2267 char *_kwnames
[] = { "bitmap", NULL
};
2271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2281 wxPy_BEGIN_ALLOW_THREADS
;
2282 _result
= (wxMask
*)new_wxMask(*_arg0
);
2284 wxPy_END_ALLOW_THREADS
;
2285 if (PyErr_Occurred()) return NULL
;
2287 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2288 _resultobj
= Py_BuildValue("s",_ptemp
);
2291 _resultobj
= Py_None
;
2296 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2297 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2298 PyObject
* _resultobj
;
2300 PyObject
* _argo0
= 0;
2301 char *_kwnames
[] = { "self", NULL
};
2304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2307 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2308 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2314 wxPy_BEGIN_ALLOW_THREADS
;
2315 wxMask_Destroy(_arg0
);
2317 wxPy_END_ALLOW_THREADS
;
2318 if (PyErr_Occurred()) return NULL
;
2319 } Py_INCREF(Py_None
);
2320 _resultobj
= Py_None
;
2324 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2327 src
= (wxIcon
*) ptr
;
2328 dest
= (wxGDIObject
*) src
;
2329 return (void *) dest
;
2332 static void *SwigwxIconTowxObject(void *ptr
) {
2335 src
= (wxIcon
*) ptr
;
2336 dest
= (wxObject
*) src
;
2337 return (void *) dest
;
2340 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2341 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2342 PyObject
* _resultobj
;
2346 int _arg2
= (int ) -1;
2347 int _arg3
= (int ) -1;
2348 PyObject
* _obj0
= 0;
2349 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2356 #if PYTHON_API_VERSION >= 1009
2357 char* tmpPtr
; int tmpSize
;
2358 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2359 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2362 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2364 _arg0
= new wxString(tmpPtr
, tmpSize
);
2366 if (!PyString_Check(_obj0
)) {
2367 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2370 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2374 wxPy_BEGIN_ALLOW_THREADS
;
2375 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2377 wxPy_END_ALLOW_THREADS
;
2378 if (PyErr_Occurred()) return NULL
;
2380 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2381 _resultobj
= Py_BuildValue("s",_ptemp
);
2384 _resultobj
= Py_None
;
2393 #define delete_wxIcon(_swigobj) (delete _swigobj)
2394 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2395 PyObject
* _resultobj
;
2397 PyObject
* _argo0
= 0;
2398 char *_kwnames
[] = { "self", NULL
};
2401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2411 wxPy_BEGIN_ALLOW_THREADS
;
2412 delete_wxIcon(_arg0
);
2414 wxPy_END_ALLOW_THREADS
;
2415 if (PyErr_Occurred()) return NULL
;
2416 } Py_INCREF(Py_None
);
2417 _resultobj
= Py_None
;
2421 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2422 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2423 PyObject
* _resultobj
;
2428 PyObject
* _argo0
= 0;
2429 PyObject
* _obj1
= 0;
2430 char *_kwnames
[] = { "self","name","flags", NULL
};
2433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2443 #if PYTHON_API_VERSION >= 1009
2444 char* tmpPtr
; int tmpSize
;
2445 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2446 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2449 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2451 _arg1
= new wxString(tmpPtr
, tmpSize
);
2453 if (!PyString_Check(_obj1
)) {
2454 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2457 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2461 wxPy_BEGIN_ALLOW_THREADS
;
2462 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2464 wxPy_END_ALLOW_THREADS
;
2465 if (PyErr_Occurred()) return NULL
;
2466 } _resultobj
= Py_BuildValue("i",_result
);
2474 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2475 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2476 PyObject
* _resultobj
;
2479 PyObject
* _argo0
= 0;
2480 char *_kwnames
[] = { "self", NULL
};
2483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2493 wxPy_BEGIN_ALLOW_THREADS
;
2494 _result
= (long )wxIcon_GetHandle(_arg0
);
2496 wxPy_END_ALLOW_THREADS
;
2497 if (PyErr_Occurred()) return NULL
;
2498 } _resultobj
= Py_BuildValue("l",_result
);
2502 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2503 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2504 PyObject
* _resultobj
;
2507 PyObject
* _argo0
= 0;
2508 char *_kwnames
[] = { "self","handle", NULL
};
2511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2521 wxPy_BEGIN_ALLOW_THREADS
;
2522 wxIcon_SetHandle(_arg0
,_arg1
);
2524 wxPy_END_ALLOW_THREADS
;
2525 if (PyErr_Occurred()) return NULL
;
2526 } Py_INCREF(Py_None
);
2527 _resultobj
= Py_None
;
2531 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2532 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2533 PyObject
* _resultobj
;
2536 PyObject
* _argo0
= 0;
2537 char *_kwnames
[] = { "self", NULL
};
2540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2550 wxPy_BEGIN_ALLOW_THREADS
;
2551 _result
= (bool )wxIcon_Ok(_arg0
);
2553 wxPy_END_ALLOW_THREADS
;
2554 if (PyErr_Occurred()) return NULL
;
2555 } _resultobj
= Py_BuildValue("i",_result
);
2559 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2560 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2561 PyObject
* _resultobj
;
2564 PyObject
* _argo0
= 0;
2565 char *_kwnames
[] = { "self", NULL
};
2568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2578 wxPy_BEGIN_ALLOW_THREADS
;
2579 _result
= (int )wxIcon_GetWidth(_arg0
);
2581 wxPy_END_ALLOW_THREADS
;
2582 if (PyErr_Occurred()) return NULL
;
2583 } _resultobj
= Py_BuildValue("i",_result
);
2587 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2588 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2589 PyObject
* _resultobj
;
2592 PyObject
* _argo0
= 0;
2593 char *_kwnames
[] = { "self", NULL
};
2596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2606 wxPy_BEGIN_ALLOW_THREADS
;
2607 _result
= (int )wxIcon_GetHeight(_arg0
);
2609 wxPy_END_ALLOW_THREADS
;
2610 if (PyErr_Occurred()) return NULL
;
2611 } _resultobj
= Py_BuildValue("i",_result
);
2615 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2616 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2617 PyObject
* _resultobj
;
2620 PyObject
* _argo0
= 0;
2621 char *_kwnames
[] = { "self", NULL
};
2624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2634 wxPy_BEGIN_ALLOW_THREADS
;
2635 _result
= (int )wxIcon_GetDepth(_arg0
);
2637 wxPy_END_ALLOW_THREADS
;
2638 if (PyErr_Occurred()) return NULL
;
2639 } _resultobj
= Py_BuildValue("i",_result
);
2643 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2644 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2645 PyObject
* _resultobj
;
2648 PyObject
* _argo0
= 0;
2649 char *_kwnames
[] = { "self","w", NULL
};
2652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2662 wxPy_BEGIN_ALLOW_THREADS
;
2663 wxIcon_SetWidth(_arg0
,_arg1
);
2665 wxPy_END_ALLOW_THREADS
;
2666 if (PyErr_Occurred()) return NULL
;
2667 } Py_INCREF(Py_None
);
2668 _resultobj
= Py_None
;
2672 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2673 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2674 PyObject
* _resultobj
;
2677 PyObject
* _argo0
= 0;
2678 char *_kwnames
[] = { "self","h", NULL
};
2681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2691 wxPy_BEGIN_ALLOW_THREADS
;
2692 wxIcon_SetHeight(_arg0
,_arg1
);
2694 wxPy_END_ALLOW_THREADS
;
2695 if (PyErr_Occurred()) return NULL
;
2696 } Py_INCREF(Py_None
);
2697 _resultobj
= Py_None
;
2701 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2702 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2703 PyObject
* _resultobj
;
2706 PyObject
* _argo0
= 0;
2707 char *_kwnames
[] = { "self","d", NULL
};
2710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2720 wxPy_BEGIN_ALLOW_THREADS
;
2721 wxIcon_SetDepth(_arg0
,_arg1
);
2723 wxPy_END_ALLOW_THREADS
;
2724 if (PyErr_Occurred()) return NULL
;
2725 } Py_INCREF(Py_None
);
2726 _resultobj
= Py_None
;
2730 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2731 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2732 PyObject
* _resultobj
;
2735 PyObject
* _argo0
= 0;
2737 PyObject
* _obj1
= 0;
2738 char *_kwnames
[] = { "self","size", NULL
};
2741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2752 if (! wxSize_helper(_obj1
, &_arg1
))
2756 wxPy_BEGIN_ALLOW_THREADS
;
2757 wxIcon_SetSize(_arg0
,*_arg1
);
2759 wxPy_END_ALLOW_THREADS
;
2760 if (PyErr_Occurred()) return NULL
;
2761 } Py_INCREF(Py_None
);
2762 _resultobj
= Py_None
;
2766 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2767 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2768 PyObject
* _resultobj
;
2771 PyObject
* _argo0
= 0;
2772 PyObject
* _argo1
= 0;
2773 char *_kwnames
[] = { "self","bmp", NULL
};
2776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2786 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2787 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2793 wxPy_BEGIN_ALLOW_THREADS
;
2794 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2796 wxPy_END_ALLOW_THREADS
;
2797 if (PyErr_Occurred()) return NULL
;
2798 } Py_INCREF(Py_None
);
2799 _resultobj
= Py_None
;
2803 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2806 src
= (wxCursor
*) ptr
;
2807 dest
= (wxGDIObject
*) src
;
2808 return (void *) dest
;
2811 static void *SwigwxCursorTowxObject(void *ptr
) {
2814 src
= (wxCursor
*) ptr
;
2815 dest
= (wxObject
*) src
;
2816 return (void *) dest
;
2819 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2820 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
* _resultobj
;
2825 int _arg2
= (int ) 0;
2826 int _arg3
= (int ) 0;
2827 PyObject
* _obj0
= 0;
2828 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2835 #if PYTHON_API_VERSION >= 1009
2836 char* tmpPtr
; int tmpSize
;
2837 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2838 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2841 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2843 _arg0
= new wxString(tmpPtr
, tmpSize
);
2845 if (!PyString_Check(_obj0
)) {
2846 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2849 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2853 wxPy_BEGIN_ALLOW_THREADS
;
2854 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2856 wxPy_END_ALLOW_THREADS
;
2857 if (PyErr_Occurred()) return NULL
;
2859 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2860 _resultobj
= Py_BuildValue("s",_ptemp
);
2863 _resultobj
= Py_None
;
2872 #define delete_wxCursor(_swigobj) (delete _swigobj)
2873 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2874 PyObject
* _resultobj
;
2876 PyObject
* _argo0
= 0;
2877 char *_kwnames
[] = { "self", NULL
};
2880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2890 wxPy_BEGIN_ALLOW_THREADS
;
2891 delete_wxCursor(_arg0
);
2893 wxPy_END_ALLOW_THREADS
;
2894 if (PyErr_Occurred()) return NULL
;
2895 } Py_INCREF(Py_None
);
2896 _resultobj
= Py_None
;
2900 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2901 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2902 PyObject
* _resultobj
;
2905 PyObject
* _argo0
= 0;
2906 char *_kwnames
[] = { "self", NULL
};
2909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2919 wxPy_BEGIN_ALLOW_THREADS
;
2920 _result
= (long )wxCursor_GetHandle(_arg0
);
2922 wxPy_END_ALLOW_THREADS
;
2923 if (PyErr_Occurred()) return NULL
;
2924 } _resultobj
= Py_BuildValue("l",_result
);
2928 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2929 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2930 PyObject
* _resultobj
;
2933 PyObject
* _argo0
= 0;
2934 char *_kwnames
[] = { "self","handle", NULL
};
2937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2947 wxPy_BEGIN_ALLOW_THREADS
;
2948 wxCursor_SetHandle(_arg0
,_arg1
);
2950 wxPy_END_ALLOW_THREADS
;
2951 if (PyErr_Occurred()) return NULL
;
2952 } Py_INCREF(Py_None
);
2953 _resultobj
= Py_None
;
2957 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2958 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2959 PyObject
* _resultobj
;
2962 PyObject
* _argo0
= 0;
2963 char *_kwnames
[] = { "self", NULL
};
2966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2976 wxPy_BEGIN_ALLOW_THREADS
;
2977 _result
= (bool )wxCursor_Ok(_arg0
);
2979 wxPy_END_ALLOW_THREADS
;
2980 if (PyErr_Occurred()) return NULL
;
2981 } _resultobj
= Py_BuildValue("i",_result
);
2985 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2986 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2987 PyObject
* _resultobj
;
2990 PyObject
* _argo0
= 0;
2991 char *_kwnames
[] = { "self", NULL
};
2994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3004 wxPy_BEGIN_ALLOW_THREADS
;
3005 _result
= (int )wxCursor_GetWidth(_arg0
);
3007 wxPy_END_ALLOW_THREADS
;
3008 if (PyErr_Occurred()) return NULL
;
3009 } _resultobj
= Py_BuildValue("i",_result
);
3013 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3014 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3015 PyObject
* _resultobj
;
3018 PyObject
* _argo0
= 0;
3019 char *_kwnames
[] = { "self", NULL
};
3022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3032 wxPy_BEGIN_ALLOW_THREADS
;
3033 _result
= (int )wxCursor_GetHeight(_arg0
);
3035 wxPy_END_ALLOW_THREADS
;
3036 if (PyErr_Occurred()) return NULL
;
3037 } _resultobj
= Py_BuildValue("i",_result
);
3041 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3042 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3043 PyObject
* _resultobj
;
3046 PyObject
* _argo0
= 0;
3047 char *_kwnames
[] = { "self", NULL
};
3050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3060 wxPy_BEGIN_ALLOW_THREADS
;
3061 _result
= (int )wxCursor_GetDepth(_arg0
);
3063 wxPy_END_ALLOW_THREADS
;
3064 if (PyErr_Occurred()) return NULL
;
3065 } _resultobj
= Py_BuildValue("i",_result
);
3069 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3070 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3071 PyObject
* _resultobj
;
3074 PyObject
* _argo0
= 0;
3075 char *_kwnames
[] = { "self","w", NULL
};
3078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3088 wxPy_BEGIN_ALLOW_THREADS
;
3089 wxCursor_SetWidth(_arg0
,_arg1
);
3091 wxPy_END_ALLOW_THREADS
;
3092 if (PyErr_Occurred()) return NULL
;
3093 } Py_INCREF(Py_None
);
3094 _resultobj
= Py_None
;
3098 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3099 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3100 PyObject
* _resultobj
;
3103 PyObject
* _argo0
= 0;
3104 char *_kwnames
[] = { "self","h", NULL
};
3107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3117 wxPy_BEGIN_ALLOW_THREADS
;
3118 wxCursor_SetHeight(_arg0
,_arg1
);
3120 wxPy_END_ALLOW_THREADS
;
3121 if (PyErr_Occurred()) return NULL
;
3122 } Py_INCREF(Py_None
);
3123 _resultobj
= Py_None
;
3127 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3128 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3132 PyObject
* _argo0
= 0;
3133 char *_kwnames
[] = { "self","d", NULL
};
3136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3146 wxPy_BEGIN_ALLOW_THREADS
;
3147 wxCursor_SetDepth(_arg0
,_arg1
);
3149 wxPy_END_ALLOW_THREADS
;
3150 if (PyErr_Occurred()) return NULL
;
3151 } Py_INCREF(Py_None
);
3152 _resultobj
= Py_None
;
3156 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3157 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3158 PyObject
* _resultobj
;
3161 PyObject
* _argo0
= 0;
3163 PyObject
* _obj1
= 0;
3164 char *_kwnames
[] = { "self","size", NULL
};
3167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3178 if (! wxSize_helper(_obj1
, &_arg1
))
3182 wxPy_BEGIN_ALLOW_THREADS
;
3183 wxCursor_SetSize(_arg0
,*_arg1
);
3185 wxPy_END_ALLOW_THREADS
;
3186 if (PyErr_Occurred()) return NULL
;
3187 } Py_INCREF(Py_None
);
3188 _resultobj
= Py_None
;
3192 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3193 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3194 PyObject
* _resultobj
;
3196 wxNativeFontInfo
* _arg0
;
3198 PyObject
* _argo0
= 0;
3199 PyObject
* _obj1
= 0;
3200 char *_kwnames
[] = { "self","s", NULL
};
3203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
3206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3213 #if PYTHON_API_VERSION >= 1009
3214 char* tmpPtr
; int tmpSize
;
3215 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3216 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3219 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3221 _arg1
= new wxString(tmpPtr
, tmpSize
);
3223 if (!PyString_Check(_obj1
)) {
3224 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3227 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3231 wxPy_BEGIN_ALLOW_THREADS
;
3232 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
3234 wxPy_END_ALLOW_THREADS
;
3235 if (PyErr_Occurred()) return NULL
;
3236 } _resultobj
= Py_BuildValue("i",_result
);
3244 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3245 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3246 PyObject
* _resultobj
;
3248 wxNativeFontInfo
* _arg0
;
3249 PyObject
* _argo0
= 0;
3250 char *_kwnames
[] = { "self", NULL
};
3253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
3256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3263 wxPy_BEGIN_ALLOW_THREADS
;
3264 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
3266 wxPy_END_ALLOW_THREADS
;
3267 if (PyErr_Occurred()) return NULL
;
3269 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3277 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
3278 return self
->ToString();
3280 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3281 PyObject
* _resultobj
;
3283 wxNativeFontInfo
* _arg0
;
3284 PyObject
* _argo0
= 0;
3285 char *_kwnames
[] = { "self", NULL
};
3288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
3291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3298 wxPy_BEGIN_ALLOW_THREADS
;
3299 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
3301 wxPy_END_ALLOW_THREADS
;
3302 if (PyErr_Occurred()) return NULL
;
3304 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3312 #define new_wxFontMapper() (new wxFontMapper())
3313 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3314 PyObject
* _resultobj
;
3315 wxFontMapper
* _result
;
3316 char *_kwnames
[] = { NULL
};
3320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3323 wxPy_BEGIN_ALLOW_THREADS
;
3324 _result
= (wxFontMapper
*)new_wxFontMapper();
3326 wxPy_END_ALLOW_THREADS
;
3327 if (PyErr_Occurred()) return NULL
;
3329 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3330 _resultobj
= Py_BuildValue("s",_ptemp
);
3333 _resultobj
= Py_None
;
3338 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3339 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3340 PyObject
* _resultobj
;
3341 wxFontMapper
* _arg0
;
3342 PyObject
* _argo0
= 0;
3343 char *_kwnames
[] = { "self", NULL
};
3346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3356 wxPy_BEGIN_ALLOW_THREADS
;
3357 delete_wxFontMapper(_arg0
);
3359 wxPy_END_ALLOW_THREADS
;
3360 if (PyErr_Occurred()) return NULL
;
3361 } Py_INCREF(Py_None
);
3362 _resultobj
= Py_None
;
3366 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3367 wxFontEncoding alt_enc
;
3368 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3369 return PyInt_FromLong(alt_enc
);
3375 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3376 PyObject
* _resultobj
;
3378 wxFontMapper
* _arg0
;
3379 wxFontEncoding _arg1
;
3380 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3381 bool _arg3
= (bool ) TRUE
;
3382 PyObject
* _argo0
= 0;
3383 PyObject
* _obj2
= 0;
3384 int tempbool3
= (int) TRUE
;
3385 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3399 #if PYTHON_API_VERSION >= 1009
3400 char* tmpPtr
; int tmpSize
;
3401 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3402 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3405 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3407 _arg2
= new wxString(tmpPtr
, tmpSize
);
3409 if (!PyString_Check(_obj2
)) {
3410 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3413 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3416 _arg3
= (bool ) tempbool3
;
3418 wxPy_BEGIN_ALLOW_THREADS
;
3419 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3421 wxPy_END_ALLOW_THREADS
;
3422 if (PyErr_Occurred()) return NULL
;
3424 _resultobj
= _result
;
3433 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3434 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3435 PyObject
* _resultobj
;
3437 wxFontMapper
* _arg0
;
3438 wxFontEncoding _arg1
;
3439 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3440 PyObject
* _argo0
= 0;
3441 PyObject
* _obj2
= 0;
3442 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3456 #if PYTHON_API_VERSION >= 1009
3457 char* tmpPtr
; int tmpSize
;
3458 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3459 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3462 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3464 _arg2
= new wxString(tmpPtr
, tmpSize
);
3466 if (!PyString_Check(_obj2
)) {
3467 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3470 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3474 wxPy_BEGIN_ALLOW_THREADS
;
3475 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3477 wxPy_END_ALLOW_THREADS
;
3478 if (PyErr_Occurred()) return NULL
;
3479 } _resultobj
= Py_BuildValue("i",_result
);
3487 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3488 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3489 PyObject
* _resultobj
;
3490 wxFontEncoding _result
;
3491 wxFontMapper
* _arg0
;
3493 bool _arg2
= (bool ) TRUE
;
3494 PyObject
* _argo0
= 0;
3495 PyObject
* _obj1
= 0;
3496 int tempbool2
= (int) TRUE
;
3497 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3510 #if PYTHON_API_VERSION >= 1009
3511 char* tmpPtr
; int tmpSize
;
3512 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3513 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3516 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3518 _arg1
= new wxString(tmpPtr
, tmpSize
);
3520 if (!PyString_Check(_obj1
)) {
3521 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3524 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3527 _arg2
= (bool ) tempbool2
;
3529 wxPy_BEGIN_ALLOW_THREADS
;
3530 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3532 wxPy_END_ALLOW_THREADS
;
3533 if (PyErr_Occurred()) return NULL
;
3534 } _resultobj
= Py_BuildValue("i",_result
);
3542 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3543 PyObject
* _resultobj
;
3545 wxFontEncoding _arg0
;
3546 char *_kwnames
[] = { "encoding", NULL
};
3549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3552 wxPy_BEGIN_ALLOW_THREADS
;
3553 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3555 wxPy_END_ALLOW_THREADS
;
3556 if (PyErr_Occurred()) return NULL
;
3558 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3566 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3567 PyObject
* _resultobj
;
3569 wxFontEncoding _arg0
;
3570 char *_kwnames
[] = { "encoding", NULL
};
3573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3576 wxPy_BEGIN_ALLOW_THREADS
;
3577 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3579 wxPy_END_ALLOW_THREADS
;
3580 if (PyErr_Occurred()) return NULL
;
3582 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3590 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3591 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3592 PyObject
* _resultobj
;
3593 wxFontMapper
* _arg0
;
3595 PyObject
* _argo0
= 0;
3596 PyObject
* _argo1
= 0;
3597 char *_kwnames
[] = { "self","parent", NULL
};
3600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3610 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3611 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3617 wxPy_BEGIN_ALLOW_THREADS
;
3618 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3620 wxPy_END_ALLOW_THREADS
;
3621 if (PyErr_Occurred()) return NULL
;
3622 } Py_INCREF(Py_None
);
3623 _resultobj
= Py_None
;
3627 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3628 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3629 PyObject
* _resultobj
;
3630 wxFontMapper
* _arg0
;
3632 PyObject
* _argo0
= 0;
3633 PyObject
* _obj1
= 0;
3634 char *_kwnames
[] = { "self","title", NULL
};
3637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3647 #if PYTHON_API_VERSION >= 1009
3648 char* tmpPtr
; int tmpSize
;
3649 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3650 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3653 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3655 _arg1
= new wxString(tmpPtr
, tmpSize
);
3657 if (!PyString_Check(_obj1
)) {
3658 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3661 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3665 wxPy_BEGIN_ALLOW_THREADS
;
3666 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3668 wxPy_END_ALLOW_THREADS
;
3669 if (PyErr_Occurred()) return NULL
;
3670 } Py_INCREF(Py_None
);
3671 _resultobj
= Py_None
;
3679 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3680 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3681 PyObject
* _resultobj
;
3682 wxFontMapper
* _arg0
;
3683 wxConfigBase
* _arg1
;
3684 PyObject
* _argo0
= 0;
3685 PyObject
* _argo1
= 0;
3686 char *_kwnames
[] = { "self","config", NULL
};
3689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3699 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3700 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3706 wxPy_BEGIN_ALLOW_THREADS
;
3707 wxFontMapper_SetConfig(_arg0
,_arg1
);
3709 wxPy_END_ALLOW_THREADS
;
3710 if (PyErr_Occurred()) return NULL
;
3711 } Py_INCREF(Py_None
);
3712 _resultobj
= Py_None
;
3716 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3717 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3718 PyObject
* _resultobj
;
3719 wxFontMapper
* _arg0
;
3721 PyObject
* _argo0
= 0;
3722 PyObject
* _obj1
= 0;
3723 char *_kwnames
[] = { "self","prefix", NULL
};
3726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3736 #if PYTHON_API_VERSION >= 1009
3737 char* tmpPtr
; int tmpSize
;
3738 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3739 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3742 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3744 _arg1
= new wxString(tmpPtr
, tmpSize
);
3746 if (!PyString_Check(_obj1
)) {
3747 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3750 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3754 wxPy_BEGIN_ALLOW_THREADS
;
3755 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3757 wxPy_END_ALLOW_THREADS
;
3758 if (PyErr_Occurred()) return NULL
;
3759 } Py_INCREF(Py_None
);
3760 _resultobj
= Py_None
;
3768 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3769 PyObject
* _resultobj
;
3771 char *_kwnames
[] = { NULL
};
3774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3777 wxPy_BEGIN_ALLOW_THREADS
;
3778 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3780 wxPy_END_ALLOW_THREADS
;
3781 if (PyErr_Occurred()) return NULL
;
3782 } _resultobj
= Py_BuildValue("s", _result
);
3786 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3789 src
= (wxFont
*) ptr
;
3790 dest
= (wxGDIObject
*) src
;
3791 return (void *) dest
;
3794 static void *SwigwxFontTowxObject(void *ptr
) {
3797 src
= (wxFont
*) ptr
;
3798 dest
= (wxObject
*) src
;
3799 return (void *) dest
;
3802 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3803 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3804 PyObject
* _resultobj
;
3810 int _arg4
= (int ) FALSE
;
3811 char * _arg5
= (char *) "";
3812 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3813 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3820 wxPy_BEGIN_ALLOW_THREADS
;
3821 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3823 wxPy_END_ALLOW_THREADS
;
3824 if (PyErr_Occurred()) return NULL
;
3826 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3827 _resultobj
= Py_BuildValue("s",_ptemp
);
3830 _resultobj
= Py_None
;
3835 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3836 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3837 PyObject
* _resultobj
;
3839 wxNativeFontInfo
* _arg0
;
3840 PyObject
* _argo0
= 0;
3841 char *_kwnames
[] = { "info", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3855 wxPy_BEGIN_ALLOW_THREADS
;
3856 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3858 wxPy_END_ALLOW_THREADS
;
3859 if (PyErr_Occurred()) return NULL
;
3861 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3862 _resultobj
= Py_BuildValue("s",_ptemp
);
3865 _resultobj
= Py_None
;
3870 #define delete_wxFont(_swigobj) (delete _swigobj)
3871 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3872 PyObject
* _resultobj
;
3874 PyObject
* _argo0
= 0;
3875 char *_kwnames
[] = { "self", NULL
};
3878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3888 wxPy_BEGIN_ALLOW_THREADS
;
3889 delete_wxFont(_arg0
);
3891 wxPy_END_ALLOW_THREADS
;
3892 if (PyErr_Occurred()) return NULL
;
3893 } Py_INCREF(Py_None
);
3894 _resultobj
= Py_None
;
3898 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3899 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3900 PyObject
* _resultobj
;
3903 PyObject
* _argo0
= 0;
3904 char *_kwnames
[] = { "self", NULL
};
3907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3917 wxPy_BEGIN_ALLOW_THREADS
;
3918 _result
= (bool )wxFont_Ok(_arg0
);
3920 wxPy_END_ALLOW_THREADS
;
3921 if (PyErr_Occurred()) return NULL
;
3922 } _resultobj
= Py_BuildValue("i",_result
);
3926 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3927 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3928 PyObject
* _resultobj
;
3931 PyObject
* _argo0
= 0;
3932 char *_kwnames
[] = { "self", NULL
};
3935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3945 wxPy_BEGIN_ALLOW_THREADS
;
3946 _result
= (int )wxFont_GetPointSize(_arg0
);
3948 wxPy_END_ALLOW_THREADS
;
3949 if (PyErr_Occurred()) return NULL
;
3950 } _resultobj
= Py_BuildValue("i",_result
);
3954 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3955 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3956 PyObject
* _resultobj
;
3959 PyObject
* _argo0
= 0;
3960 char *_kwnames
[] = { "self", NULL
};
3963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
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_GetFamily. Expected _wxFont_p.");
3973 wxPy_BEGIN_ALLOW_THREADS
;
3974 _result
= (int )wxFont_GetFamily(_arg0
);
3976 wxPy_END_ALLOW_THREADS
;
3977 if (PyErr_Occurred()) return NULL
;
3978 } _resultobj
= Py_BuildValue("i",_result
);
3982 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3983 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3984 PyObject
* _resultobj
;
3987 PyObject
* _argo0
= 0;
3988 char *_kwnames
[] = { "self", NULL
};
3991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4001 wxPy_BEGIN_ALLOW_THREADS
;
4002 _result
= (int )wxFont_GetStyle(_arg0
);
4004 wxPy_END_ALLOW_THREADS
;
4005 if (PyErr_Occurred()) return NULL
;
4006 } _resultobj
= Py_BuildValue("i",_result
);
4010 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4011 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4012 PyObject
* _resultobj
;
4015 PyObject
* _argo0
= 0;
4016 char *_kwnames
[] = { "self", NULL
};
4019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
4022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4029 wxPy_BEGIN_ALLOW_THREADS
;
4030 _result
= (int )wxFont_GetWeight(_arg0
);
4032 wxPy_END_ALLOW_THREADS
;
4033 if (PyErr_Occurred()) return NULL
;
4034 } _resultobj
= Py_BuildValue("i",_result
);
4038 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4039 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4040 PyObject
* _resultobj
;
4043 PyObject
* _argo0
= 0;
4044 char *_kwnames
[] = { "self", NULL
};
4047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
4050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4057 wxPy_BEGIN_ALLOW_THREADS
;
4058 _result
= (bool )wxFont_GetUnderlined(_arg0
);
4060 wxPy_END_ALLOW_THREADS
;
4061 if (PyErr_Occurred()) return NULL
;
4062 } _resultobj
= Py_BuildValue("i",_result
);
4066 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4067 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4068 PyObject
* _resultobj
;
4071 PyObject
* _argo0
= 0;
4072 char *_kwnames
[] = { "self", NULL
};
4075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
4078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4085 wxPy_BEGIN_ALLOW_THREADS
;
4086 _result
= new wxString (wxFont_GetFaceName(_arg0
));
4088 wxPy_END_ALLOW_THREADS
;
4089 if (PyErr_Occurred()) return NULL
;
4091 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4099 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4100 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4101 PyObject
* _resultobj
;
4102 wxFontEncoding _result
;
4104 PyObject
* _argo0
= 0;
4105 char *_kwnames
[] = { "self", NULL
};
4108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
4111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4118 wxPy_BEGIN_ALLOW_THREADS
;
4119 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
4121 wxPy_END_ALLOW_THREADS
;
4122 if (PyErr_Occurred()) return NULL
;
4123 } _resultobj
= Py_BuildValue("i",_result
);
4127 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4128 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4129 PyObject
* _resultobj
;
4130 wxNativeFontInfo
* _result
;
4132 PyObject
* _argo0
= 0;
4133 char *_kwnames
[] = { "self", NULL
};
4137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
4140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4147 wxPy_BEGIN_ALLOW_THREADS
;
4148 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
4150 wxPy_END_ALLOW_THREADS
;
4151 if (PyErr_Occurred()) return NULL
;
4153 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
4154 _resultobj
= Py_BuildValue("s",_ptemp
);
4157 _resultobj
= Py_None
;
4162 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4163 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4164 PyObject
* _resultobj
;
4167 PyObject
* _argo0
= 0;
4168 char *_kwnames
[] = { "self","pointSize", NULL
};
4171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
4174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4181 wxPy_BEGIN_ALLOW_THREADS
;
4182 wxFont_SetPointSize(_arg0
,_arg1
);
4184 wxPy_END_ALLOW_THREADS
;
4185 if (PyErr_Occurred()) return NULL
;
4186 } Py_INCREF(Py_None
);
4187 _resultobj
= Py_None
;
4191 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4192 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4193 PyObject
* _resultobj
;
4196 PyObject
* _argo0
= 0;
4197 char *_kwnames
[] = { "self","family", NULL
};
4200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
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_SetFamily. Expected _wxFont_p.");
4210 wxPy_BEGIN_ALLOW_THREADS
;
4211 wxFont_SetFamily(_arg0
,_arg1
);
4213 wxPy_END_ALLOW_THREADS
;
4214 if (PyErr_Occurred()) return NULL
;
4215 } Py_INCREF(Py_None
);
4216 _resultobj
= Py_None
;
4220 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4221 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4222 PyObject
* _resultobj
;
4225 PyObject
* _argo0
= 0;
4226 char *_kwnames
[] = { "self","style", NULL
};
4229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4239 wxPy_BEGIN_ALLOW_THREADS
;
4240 wxFont_SetStyle(_arg0
,_arg1
);
4242 wxPy_END_ALLOW_THREADS
;
4243 if (PyErr_Occurred()) return NULL
;
4244 } Py_INCREF(Py_None
);
4245 _resultobj
= Py_None
;
4249 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4250 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4251 PyObject
* _resultobj
;
4254 PyObject
* _argo0
= 0;
4255 char *_kwnames
[] = { "self","weight", NULL
};
4258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4268 wxPy_BEGIN_ALLOW_THREADS
;
4269 wxFont_SetWeight(_arg0
,_arg1
);
4271 wxPy_END_ALLOW_THREADS
;
4272 if (PyErr_Occurred()) return NULL
;
4273 } Py_INCREF(Py_None
);
4274 _resultobj
= Py_None
;
4278 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4279 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4280 PyObject
* _resultobj
;
4283 PyObject
* _argo0
= 0;
4284 PyObject
* _obj1
= 0;
4285 char *_kwnames
[] = { "self","faceName", NULL
};
4288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4298 #if PYTHON_API_VERSION >= 1009
4299 char* tmpPtr
; int tmpSize
;
4300 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4301 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4304 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4306 _arg1
= new wxString(tmpPtr
, tmpSize
);
4308 if (!PyString_Check(_obj1
)) {
4309 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4312 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4316 wxPy_BEGIN_ALLOW_THREADS
;
4317 wxFont_SetFaceName(_arg0
,*_arg1
);
4319 wxPy_END_ALLOW_THREADS
;
4320 if (PyErr_Occurred()) return NULL
;
4321 } Py_INCREF(Py_None
);
4322 _resultobj
= Py_None
;
4330 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4331 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4332 PyObject
* _resultobj
;
4335 PyObject
* _argo0
= 0;
4337 char *_kwnames
[] = { "self","underlined", NULL
};
4340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4349 _arg1
= (bool ) tempbool1
;
4351 wxPy_BEGIN_ALLOW_THREADS
;
4352 wxFont_SetUnderlined(_arg0
,_arg1
);
4354 wxPy_END_ALLOW_THREADS
;
4355 if (PyErr_Occurred()) return NULL
;
4356 } Py_INCREF(Py_None
);
4357 _resultobj
= Py_None
;
4361 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4362 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4363 PyObject
* _resultobj
;
4365 wxFontEncoding _arg1
;
4366 PyObject
* _argo0
= 0;
4367 char *_kwnames
[] = { "self","encoding", NULL
};
4370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4380 wxPy_BEGIN_ALLOW_THREADS
;
4381 wxFont_SetEncoding(_arg0
,_arg1
);
4383 wxPy_END_ALLOW_THREADS
;
4384 if (PyErr_Occurred()) return NULL
;
4385 } Py_INCREF(Py_None
);
4386 _resultobj
= Py_None
;
4390 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4391 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4392 PyObject
* _resultobj
;
4394 wxNativeFontInfo
* _arg1
;
4395 PyObject
* _argo0
= 0;
4396 PyObject
* _argo1
= 0;
4397 char *_kwnames
[] = { "self","info", NULL
};
4400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4410 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4411 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4417 wxPy_BEGIN_ALLOW_THREADS
;
4418 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4420 wxPy_END_ALLOW_THREADS
;
4421 if (PyErr_Occurred()) return NULL
;
4422 } Py_INCREF(Py_None
);
4423 _resultobj
= Py_None
;
4427 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4428 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4429 PyObject
* _resultobj
;
4432 PyObject
* _argo0
= 0;
4433 char *_kwnames
[] = { "self", NULL
};
4436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4446 wxPy_BEGIN_ALLOW_THREADS
;
4447 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4449 wxPy_END_ALLOW_THREADS
;
4450 if (PyErr_Occurred()) return NULL
;
4452 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4460 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4461 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4462 PyObject
* _resultobj
;
4465 PyObject
* _argo0
= 0;
4466 char *_kwnames
[] = { "self", NULL
};
4469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4479 wxPy_BEGIN_ALLOW_THREADS
;
4480 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4482 wxPy_END_ALLOW_THREADS
;
4483 if (PyErr_Occurred()) return NULL
;
4485 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4493 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4494 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4495 PyObject
* _resultobj
;
4498 PyObject
* _argo0
= 0;
4499 char *_kwnames
[] = { "self", NULL
};
4502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4512 wxPy_BEGIN_ALLOW_THREADS
;
4513 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4515 wxPy_END_ALLOW_THREADS
;
4516 if (PyErr_Occurred()) return NULL
;
4518 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4526 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4527 PyObject
* _resultobj
;
4528 wxFontEncoding _result
;
4529 char *_kwnames
[] = { NULL
};
4532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4535 wxPy_BEGIN_ALLOW_THREADS
;
4536 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4538 wxPy_END_ALLOW_THREADS
;
4539 if (PyErr_Occurred()) return NULL
;
4540 } _resultobj
= Py_BuildValue("i",_result
);
4544 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4545 PyObject
* _resultobj
;
4546 wxFontEncoding _arg0
;
4547 char *_kwnames
[] = { "encoding", NULL
};
4550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4553 wxPy_BEGIN_ALLOW_THREADS
;
4554 wxFont::SetDefaultEncoding(_arg0
);
4556 wxPy_END_ALLOW_THREADS
;
4557 if (PyErr_Occurred()) return NULL
;
4558 } Py_INCREF(Py_None
);
4559 _resultobj
= Py_None
;
4563 static void *SwigwxFontListTowxObject(void *ptr
) {
4566 src
= (wxFontList
*) ptr
;
4567 dest
= (wxObject
*) src
;
4568 return (void *) dest
;
4571 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4572 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4573 PyObject
* _resultobj
;
4576 PyObject
* _argo0
= 0;
4577 PyObject
* _argo1
= 0;
4578 char *_kwnames
[] = { "self","font", NULL
};
4581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4591 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4592 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4598 wxPy_BEGIN_ALLOW_THREADS
;
4599 wxFontList_AddFont(_arg0
,_arg1
);
4601 wxPy_END_ALLOW_THREADS
;
4602 if (PyErr_Occurred()) return NULL
;
4603 } Py_INCREF(Py_None
);
4604 _resultobj
= Py_None
;
4608 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4609 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4610 PyObject
* _resultobj
;
4617 bool _arg5
= (bool ) FALSE
;
4618 char * _arg6
= (char *) NULL
;
4619 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4620 PyObject
* _argo0
= 0;
4621 int tempbool5
= (int) FALSE
;
4622 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4635 _arg5
= (bool ) tempbool5
;
4637 wxPy_BEGIN_ALLOW_THREADS
;
4638 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4640 wxPy_END_ALLOW_THREADS
;
4641 if (PyErr_Occurred()) return NULL
;
4643 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4644 _resultobj
= Py_BuildValue("s",_ptemp
);
4647 _resultobj
= Py_None
;
4652 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4653 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4654 PyObject
* _resultobj
;
4657 PyObject
* _argo0
= 0;
4658 PyObject
* _argo1
= 0;
4659 char *_kwnames
[] = { "self","font", NULL
};
4662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4672 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4673 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4679 wxPy_BEGIN_ALLOW_THREADS
;
4680 wxFontList_RemoveFont(_arg0
,_arg1
);
4682 wxPy_END_ALLOW_THREADS
;
4683 if (PyErr_Occurred()) return NULL
;
4684 } Py_INCREF(Py_None
);
4685 _resultobj
= Py_None
;
4689 static void *SwigwxColourTowxObject(void *ptr
) {
4692 src
= (wxColour
*) ptr
;
4693 dest
= (wxObject
*) src
;
4694 return (void *) dest
;
4697 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4698 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4699 PyObject
* _resultobj
;
4701 unsigned char _arg0
= (unsigned char ) 0;
4702 unsigned char _arg1
= (unsigned char ) 0;
4703 unsigned char _arg2
= (unsigned char ) 0;
4704 char *_kwnames
[] = { "red","green","blue", NULL
};
4708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4711 wxPy_BEGIN_ALLOW_THREADS
;
4712 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4714 wxPy_END_ALLOW_THREADS
;
4715 if (PyErr_Occurred()) return NULL
;
4717 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4718 _resultobj
= Py_BuildValue("s",_ptemp
);
4721 _resultobj
= Py_None
;
4726 #define delete_wxColour(_swigobj) (delete _swigobj)
4727 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4728 PyObject
* _resultobj
;
4731 PyObject
* _obj0
= 0;
4732 char *_kwnames
[] = { "self", NULL
};
4735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4739 if (! wxColour_helper(_obj0
, &_arg0
))
4743 wxPy_BEGIN_ALLOW_THREADS
;
4744 delete_wxColour(_arg0
);
4746 wxPy_END_ALLOW_THREADS
;
4747 if (PyErr_Occurred()) return NULL
;
4748 } Py_INCREF(Py_None
);
4749 _resultobj
= Py_None
;
4753 #define wxColour_Red(_swigobj) (_swigobj->Red())
4754 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4755 PyObject
* _resultobj
;
4756 unsigned char _result
;
4759 PyObject
* _obj0
= 0;
4760 char *_kwnames
[] = { "self", NULL
};
4763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4767 if (! wxColour_helper(_obj0
, &_arg0
))
4771 wxPy_BEGIN_ALLOW_THREADS
;
4772 _result
= (unsigned char )wxColour_Red(_arg0
);
4774 wxPy_END_ALLOW_THREADS
;
4775 if (PyErr_Occurred()) return NULL
;
4776 } _resultobj
= Py_BuildValue("b",_result
);
4780 #define wxColour_Green(_swigobj) (_swigobj->Green())
4781 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4782 PyObject
* _resultobj
;
4783 unsigned char _result
;
4786 PyObject
* _obj0
= 0;
4787 char *_kwnames
[] = { "self", NULL
};
4790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4794 if (! wxColour_helper(_obj0
, &_arg0
))
4798 wxPy_BEGIN_ALLOW_THREADS
;
4799 _result
= (unsigned char )wxColour_Green(_arg0
);
4801 wxPy_END_ALLOW_THREADS
;
4802 if (PyErr_Occurred()) return NULL
;
4803 } _resultobj
= Py_BuildValue("b",_result
);
4807 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4808 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4809 PyObject
* _resultobj
;
4810 unsigned char _result
;
4813 PyObject
* _obj0
= 0;
4814 char *_kwnames
[] = { "self", NULL
};
4817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4821 if (! wxColour_helper(_obj0
, &_arg0
))
4825 wxPy_BEGIN_ALLOW_THREADS
;
4826 _result
= (unsigned char )wxColour_Blue(_arg0
);
4828 wxPy_END_ALLOW_THREADS
;
4829 if (PyErr_Occurred()) return NULL
;
4830 } _resultobj
= Py_BuildValue("b",_result
);
4834 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4835 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4836 PyObject
* _resultobj
;
4840 PyObject
* _obj0
= 0;
4841 char *_kwnames
[] = { "self", NULL
};
4844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4848 if (! wxColour_helper(_obj0
, &_arg0
))
4852 wxPy_BEGIN_ALLOW_THREADS
;
4853 _result
= (bool )wxColour_Ok(_arg0
);
4855 wxPy_END_ALLOW_THREADS
;
4856 if (PyErr_Occurred()) return NULL
;
4857 } _resultobj
= Py_BuildValue("i",_result
);
4861 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4862 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4863 PyObject
* _resultobj
;
4865 unsigned char _arg1
;
4866 unsigned char _arg2
;
4867 unsigned char _arg3
;
4869 PyObject
* _obj0
= 0;
4870 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4877 if (! wxColour_helper(_obj0
, &_arg0
))
4881 wxPy_BEGIN_ALLOW_THREADS
;
4882 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4884 wxPy_END_ALLOW_THREADS
;
4885 if (PyErr_Occurred()) return NULL
;
4886 } Py_INCREF(Py_None
);
4887 _resultobj
= Py_None
;
4891 static PyObject
* wxColour_Get(wxColour
*self
) {
4892 PyObject
* rv
= PyTuple_New(3);
4893 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4894 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4895 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4898 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4899 PyObject
* _resultobj
;
4903 PyObject
* _obj0
= 0;
4904 char *_kwnames
[] = { "self", NULL
};
4907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4911 if (! wxColour_helper(_obj0
, &_arg0
))
4915 wxPy_BEGIN_ALLOW_THREADS
;
4916 _result
= (PyObject
*)wxColour_Get(_arg0
);
4918 wxPy_END_ALLOW_THREADS
;
4919 if (PyErr_Occurred()) return NULL
;
4921 _resultobj
= _result
;
4926 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4927 wxColourDatabase
*src
;
4929 src
= (wxColourDatabase
*) ptr
;
4930 dest
= (wxObject
*) src
;
4931 return (void *) dest
;
4934 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4935 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4936 PyObject
* _resultobj
;
4938 wxColourDatabase
* _arg0
;
4940 PyObject
* _argo0
= 0;
4941 PyObject
* _obj1
= 0;
4942 char *_kwnames
[] = { "self","colour", NULL
};
4946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4956 #if PYTHON_API_VERSION >= 1009
4957 char* tmpPtr
; int tmpSize
;
4958 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4959 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4962 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4964 _arg1
= new wxString(tmpPtr
, tmpSize
);
4966 if (!PyString_Check(_obj1
)) {
4967 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4970 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4974 wxPy_BEGIN_ALLOW_THREADS
;
4975 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4977 wxPy_END_ALLOW_THREADS
;
4978 if (PyErr_Occurred()) return NULL
;
4980 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4981 _resultobj
= Py_BuildValue("s",_ptemp
);
4984 _resultobj
= Py_None
;
4993 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4994 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4995 PyObject
* _resultobj
;
4997 wxColourDatabase
* _arg0
;
4999 PyObject
* _argo0
= 0;
5001 PyObject
* _obj1
= 0;
5002 char *_kwnames
[] = { "self","colour", NULL
};
5005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
5008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5016 if (! wxColour_helper(_obj1
, &_arg1
))
5020 wxPy_BEGIN_ALLOW_THREADS
;
5021 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
5023 wxPy_END_ALLOW_THREADS
;
5024 if (PyErr_Occurred()) return NULL
;
5026 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5034 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
5035 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
5037 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5039 wxColourDatabase
* _arg0
;
5044 PyObject
* _argo0
= 0;
5045 PyObject
* _obj1
= 0;
5046 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
5049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
5054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5059 #if PYTHON_API_VERSION >= 1009
5060 char* tmpPtr
; int tmpSize
;
5061 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5062 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5065 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5067 _arg1
= new wxString(tmpPtr
, tmpSize
);
5069 if (!PyString_Check(_obj1
)) {
5070 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5073 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5077 wxPy_BEGIN_ALLOW_THREADS
;
5078 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5080 wxPy_END_ALLOW_THREADS
;
5081 if (PyErr_Occurred()) return NULL
;
5082 } Py_INCREF(Py_None
);
5083 _resultobj
= Py_None
;
5091 static void *SwigwxPenTowxGDIObject(void *ptr
) {
5094 src
= (wxPen
*) ptr
;
5095 dest
= (wxGDIObject
*) src
;
5096 return (void *) dest
;
5099 static void *SwigwxPenTowxObject(void *ptr
) {
5102 src
= (wxPen
*) ptr
;
5103 dest
= (wxObject
*) src
;
5104 return (void *) dest
;
5107 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5108 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5109 PyObject
* _resultobj
;
5112 int _arg1
= (int ) 1;
5113 int _arg2
= (int ) wxSOLID
;
5115 PyObject
* _obj0
= 0;
5116 char *_kwnames
[] = { "colour","width","style", NULL
};
5120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5124 if (! wxColour_helper(_obj0
, &_arg0
))
5128 wxPy_BEGIN_ALLOW_THREADS
;
5129 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5131 wxPy_END_ALLOW_THREADS
;
5132 if (PyErr_Occurred()) return NULL
;
5134 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5135 _resultobj
= Py_BuildValue("s",_ptemp
);
5138 _resultobj
= Py_None
;
5143 #define delete_wxPen(_swigobj) (delete _swigobj)
5144 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5145 PyObject
* _resultobj
;
5147 PyObject
* _argo0
= 0;
5148 char *_kwnames
[] = { "self", NULL
};
5151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5161 wxPy_BEGIN_ALLOW_THREADS
;
5162 delete_wxPen(_arg0
);
5164 wxPy_END_ALLOW_THREADS
;
5165 if (PyErr_Occurred()) return NULL
;
5166 } Py_INCREF(Py_None
);
5167 _resultobj
= Py_None
;
5171 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5172 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5173 PyObject
* _resultobj
;
5176 PyObject
* _argo0
= 0;
5177 char *_kwnames
[] = { "self", NULL
};
5180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5190 wxPy_BEGIN_ALLOW_THREADS
;
5191 _result
= (int )wxPen_GetCap(_arg0
);
5193 wxPy_END_ALLOW_THREADS
;
5194 if (PyErr_Occurred()) return NULL
;
5195 } _resultobj
= Py_BuildValue("i",_result
);
5199 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5200 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5201 PyObject
* _resultobj
;
5204 PyObject
* _argo0
= 0;
5205 char *_kwnames
[] = { "self", NULL
};
5209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5219 wxPy_BEGIN_ALLOW_THREADS
;
5220 _result
= new wxColour (wxPen_GetColour(_arg0
));
5222 wxPy_END_ALLOW_THREADS
;
5223 if (PyErr_Occurred()) return NULL
;
5224 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5225 _resultobj
= Py_BuildValue("s",_ptemp
);
5229 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5230 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5231 PyObject
* _resultobj
;
5234 PyObject
* _argo0
= 0;
5235 char *_kwnames
[] = { "self", NULL
};
5238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5248 wxPy_BEGIN_ALLOW_THREADS
;
5249 _result
= (int )wxPen_GetJoin(_arg0
);
5251 wxPy_END_ALLOW_THREADS
;
5252 if (PyErr_Occurred()) return NULL
;
5253 } _resultobj
= Py_BuildValue("i",_result
);
5257 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5258 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5259 PyObject
* _resultobj
;
5262 PyObject
* _argo0
= 0;
5263 char *_kwnames
[] = { "self", NULL
};
5266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5276 wxPy_BEGIN_ALLOW_THREADS
;
5277 _result
= (int )wxPen_GetStyle(_arg0
);
5279 wxPy_END_ALLOW_THREADS
;
5280 if (PyErr_Occurred()) return NULL
;
5281 } _resultobj
= Py_BuildValue("i",_result
);
5285 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5286 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5287 PyObject
* _resultobj
;
5290 PyObject
* _argo0
= 0;
5291 char *_kwnames
[] = { "self", NULL
};
5294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5304 wxPy_BEGIN_ALLOW_THREADS
;
5305 _result
= (int )wxPen_GetWidth(_arg0
);
5307 wxPy_END_ALLOW_THREADS
;
5308 if (PyErr_Occurred()) return NULL
;
5309 } _resultobj
= Py_BuildValue("i",_result
);
5313 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5314 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5315 PyObject
* _resultobj
;
5318 PyObject
* _argo0
= 0;
5319 char *_kwnames
[] = { "self", NULL
};
5322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5332 wxPy_BEGIN_ALLOW_THREADS
;
5333 _result
= (bool )wxPen_Ok(_arg0
);
5335 wxPy_END_ALLOW_THREADS
;
5336 if (PyErr_Occurred()) return NULL
;
5337 } _resultobj
= Py_BuildValue("i",_result
);
5341 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5342 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5343 PyObject
* _resultobj
;
5346 PyObject
* _argo0
= 0;
5347 char *_kwnames
[] = { "self","cap_style", NULL
};
5350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5360 wxPy_BEGIN_ALLOW_THREADS
;
5361 wxPen_SetCap(_arg0
,_arg1
);
5363 wxPy_END_ALLOW_THREADS
;
5364 if (PyErr_Occurred()) return NULL
;
5365 } Py_INCREF(Py_None
);
5366 _resultobj
= Py_None
;
5370 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5371 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5372 PyObject
* _resultobj
;
5375 PyObject
* _argo0
= 0;
5377 PyObject
* _obj1
= 0;
5378 char *_kwnames
[] = { "self","colour", NULL
};
5381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5392 if (! wxColour_helper(_obj1
, &_arg1
))
5396 wxPy_BEGIN_ALLOW_THREADS
;
5397 wxPen_SetColour(_arg0
,*_arg1
);
5399 wxPy_END_ALLOW_THREADS
;
5400 if (PyErr_Occurred()) return NULL
;
5401 } Py_INCREF(Py_None
);
5402 _resultobj
= Py_None
;
5406 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5407 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5408 PyObject
* _resultobj
;
5411 PyObject
* _argo0
= 0;
5412 char *_kwnames
[] = { "self","join_style", NULL
};
5415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5425 wxPy_BEGIN_ALLOW_THREADS
;
5426 wxPen_SetJoin(_arg0
,_arg1
);
5428 wxPy_END_ALLOW_THREADS
;
5429 if (PyErr_Occurred()) return NULL
;
5430 } Py_INCREF(Py_None
);
5431 _resultobj
= Py_None
;
5435 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5436 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5437 PyObject
* _resultobj
;
5440 PyObject
* _argo0
= 0;
5441 char *_kwnames
[] = { "self","style", NULL
};
5444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5454 wxPy_BEGIN_ALLOW_THREADS
;
5455 wxPen_SetStyle(_arg0
,_arg1
);
5457 wxPy_END_ALLOW_THREADS
;
5458 if (PyErr_Occurred()) return NULL
;
5459 } Py_INCREF(Py_None
);
5460 _resultobj
= Py_None
;
5464 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5465 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5466 PyObject
* _resultobj
;
5469 PyObject
* _argo0
= 0;
5470 char *_kwnames
[] = { "self","width", NULL
};
5473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5483 wxPy_BEGIN_ALLOW_THREADS
;
5484 wxPen_SetWidth(_arg0
,_arg1
);
5486 wxPy_END_ALLOW_THREADS
;
5487 if (PyErr_Occurred()) return NULL
;
5488 } Py_INCREF(Py_None
);
5489 _resultobj
= Py_None
;
5493 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5494 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5495 PyObject
* _resultobj
;
5499 PyObject
* _argo0
= 0;
5500 PyObject
* _obj2
= 0;
5501 char *_kwnames
[] = { "self","choices", NULL
};
5504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5515 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5516 if (_arg2
== NULL
) {
5522 _arg1
= PyList_Size(_obj2
);
5529 wxPy_BEGIN_ALLOW_THREADS
;
5530 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5532 wxPy_END_ALLOW_THREADS
;
5533 if (PyErr_Occurred()) return NULL
;
5534 } Py_INCREF(Py_None
);
5535 _resultobj
= Py_None
;
5542 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
5543 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5544 PyObject
* _resultobj
;
5547 PyObject
* _argo0
= 0;
5548 char *_kwnames
[] = { "self", NULL
};
5552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
5555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
5562 wxPy_BEGIN_ALLOW_THREADS
;
5563 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
5565 wxPy_END_ALLOW_THREADS
;
5566 if (PyErr_Occurred()) return NULL
;
5568 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5569 _resultobj
= Py_BuildValue("s",_ptemp
);
5572 _resultobj
= Py_None
;
5577 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5578 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5579 PyObject
* _resultobj
;
5582 PyObject
* _argo0
= 0;
5583 PyObject
* _argo1
= 0;
5584 char *_kwnames
[] = { "self","stipple", NULL
};
5587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
5597 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5598 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
5604 wxPy_BEGIN_ALLOW_THREADS
;
5605 wxPen_SetStipple(_arg0
,*_arg1
);
5607 wxPy_END_ALLOW_THREADS
;
5608 if (PyErr_Occurred()) return NULL
;
5609 } Py_INCREF(Py_None
);
5610 _resultobj
= Py_None
;
5614 static void *SwigwxPyPenTowxPen(void *ptr
) {
5617 src
= (wxPyPen
*) ptr
;
5618 dest
= (wxPen
*) src
;
5619 return (void *) dest
;
5622 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5625 src
= (wxPyPen
*) ptr
;
5626 dest
= (wxGDIObject
*) src
;
5627 return (void *) dest
;
5630 static void *SwigwxPyPenTowxObject(void *ptr
) {
5633 src
= (wxPyPen
*) ptr
;
5634 dest
= (wxObject
*) src
;
5635 return (void *) dest
;
5638 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5639 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5640 PyObject
* _resultobj
;
5643 int _arg1
= (int ) 1;
5644 int _arg2
= (int ) wxSOLID
;
5646 PyObject
* _obj0
= 0;
5647 char *_kwnames
[] = { "colour","width","style", NULL
};
5651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5655 if (! wxColour_helper(_obj0
, &_arg0
))
5659 wxPy_BEGIN_ALLOW_THREADS
;
5660 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5662 wxPy_END_ALLOW_THREADS
;
5663 if (PyErr_Occurred()) return NULL
;
5665 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5666 _resultobj
= Py_BuildValue("s",_ptemp
);
5669 _resultobj
= Py_None
;
5674 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5675 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5676 PyObject
* _resultobj
;
5678 PyObject
* _argo0
= 0;
5679 char *_kwnames
[] = { "self", NULL
};
5682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5692 wxPy_BEGIN_ALLOW_THREADS
;
5693 delete_wxPyPen(_arg0
);
5695 wxPy_END_ALLOW_THREADS
;
5696 if (PyErr_Occurred()) return NULL
;
5697 } Py_INCREF(Py_None
);
5698 _resultobj
= Py_None
;
5702 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5703 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5704 PyObject
* _resultobj
;
5708 PyObject
* _argo0
= 0;
5709 PyObject
* _obj2
= 0;
5710 char *_kwnames
[] = { "self","choices", NULL
};
5713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5724 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5725 if (_arg2
== NULL
) {
5731 _arg1
= PyList_Size(_obj2
);
5738 wxPy_BEGIN_ALLOW_THREADS
;
5739 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5741 wxPy_END_ALLOW_THREADS
;
5742 if (PyErr_Occurred()) return NULL
;
5743 } Py_INCREF(Py_None
);
5744 _resultobj
= Py_None
;
5751 static void *SwigwxPenListTowxObject(void *ptr
) {
5754 src
= (wxPenList
*) ptr
;
5755 dest
= (wxObject
*) src
;
5756 return (void *) dest
;
5759 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5760 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5761 PyObject
* _resultobj
;
5764 PyObject
* _argo0
= 0;
5765 PyObject
* _argo1
= 0;
5766 char *_kwnames
[] = { "self","pen", NULL
};
5769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5779 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5780 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5786 wxPy_BEGIN_ALLOW_THREADS
;
5787 wxPenList_AddPen(_arg0
,_arg1
);
5789 wxPy_END_ALLOW_THREADS
;
5790 if (PyErr_Occurred()) return NULL
;
5791 } Py_INCREF(Py_None
);
5792 _resultobj
= Py_None
;
5796 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5797 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5798 PyObject
* _resultobj
;
5804 PyObject
* _argo0
= 0;
5806 PyObject
* _obj1
= 0;
5807 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5822 if (! wxColour_helper(_obj1
, &_arg1
))
5826 wxPy_BEGIN_ALLOW_THREADS
;
5827 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5829 wxPy_END_ALLOW_THREADS
;
5830 if (PyErr_Occurred()) return NULL
;
5832 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5833 _resultobj
= Py_BuildValue("s",_ptemp
);
5836 _resultobj
= Py_None
;
5841 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5842 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5843 PyObject
* _resultobj
;
5846 PyObject
* _argo0
= 0;
5847 PyObject
* _argo1
= 0;
5848 char *_kwnames
[] = { "self","pen", NULL
};
5851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5861 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5862 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5868 wxPy_BEGIN_ALLOW_THREADS
;
5869 wxPenList_RemovePen(_arg0
,_arg1
);
5871 wxPy_END_ALLOW_THREADS
;
5872 if (PyErr_Occurred()) return NULL
;
5873 } Py_INCREF(Py_None
);
5874 _resultobj
= Py_None
;
5878 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5881 src
= (wxBrush
*) ptr
;
5882 dest
= (wxGDIObject
*) src
;
5883 return (void *) dest
;
5886 static void *SwigwxBrushTowxObject(void *ptr
) {
5889 src
= (wxBrush
*) ptr
;
5890 dest
= (wxObject
*) src
;
5891 return (void *) dest
;
5894 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5895 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5896 PyObject
* _resultobj
;
5899 int _arg1
= (int ) wxSOLID
;
5901 PyObject
* _obj0
= 0;
5902 char *_kwnames
[] = { "colour","style", NULL
};
5906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5910 if (! wxColour_helper(_obj0
, &_arg0
))
5914 wxPy_BEGIN_ALLOW_THREADS
;
5915 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5917 wxPy_END_ALLOW_THREADS
;
5918 if (PyErr_Occurred()) return NULL
;
5920 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5921 _resultobj
= Py_BuildValue("s",_ptemp
);
5924 _resultobj
= Py_None
;
5929 #define delete_wxBrush(_swigobj) (delete _swigobj)
5930 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5931 PyObject
* _resultobj
;
5933 PyObject
* _argo0
= 0;
5934 char *_kwnames
[] = { "self", NULL
};
5937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5947 wxPy_BEGIN_ALLOW_THREADS
;
5948 delete_wxBrush(_arg0
);
5950 wxPy_END_ALLOW_THREADS
;
5951 if (PyErr_Occurred()) return NULL
;
5952 } Py_INCREF(Py_None
);
5953 _resultobj
= Py_None
;
5957 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5958 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5959 PyObject
* _resultobj
;
5962 PyObject
* _argo0
= 0;
5963 char *_kwnames
[] = { "self", NULL
};
5967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5977 wxPy_BEGIN_ALLOW_THREADS
;
5978 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5980 wxPy_END_ALLOW_THREADS
;
5981 if (PyErr_Occurred()) return NULL
;
5982 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5983 _resultobj
= Py_BuildValue("s",_ptemp
);
5987 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5988 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5989 PyObject
* _resultobj
;
5992 PyObject
* _argo0
= 0;
5993 char *_kwnames
[] = { "self", NULL
};
5997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
6000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6007 wxPy_BEGIN_ALLOW_THREADS
;
6008 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
6010 wxPy_END_ALLOW_THREADS
;
6011 if (PyErr_Occurred()) return NULL
;
6013 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
6014 _resultobj
= Py_BuildValue("s",_ptemp
);
6017 _resultobj
= Py_None
;
6022 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6023 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6024 PyObject
* _resultobj
;
6027 PyObject
* _argo0
= 0;
6028 char *_kwnames
[] = { "self", NULL
};
6031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
6034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6041 wxPy_BEGIN_ALLOW_THREADS
;
6042 _result
= (int )wxBrush_GetStyle(_arg0
);
6044 wxPy_END_ALLOW_THREADS
;
6045 if (PyErr_Occurred()) return NULL
;
6046 } _resultobj
= Py_BuildValue("i",_result
);
6050 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6051 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6052 PyObject
* _resultobj
;
6055 PyObject
* _argo0
= 0;
6056 char *_kwnames
[] = { "self", NULL
};
6059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
6062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6069 wxPy_BEGIN_ALLOW_THREADS
;
6070 _result
= (bool )wxBrush_Ok(_arg0
);
6072 wxPy_END_ALLOW_THREADS
;
6073 if (PyErr_Occurred()) return NULL
;
6074 } _resultobj
= Py_BuildValue("i",_result
);
6078 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6079 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6080 PyObject
* _resultobj
;
6083 PyObject
* _argo0
= 0;
6085 PyObject
* _obj1
= 0;
6086 char *_kwnames
[] = { "self","colour", NULL
};
6089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
6092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6100 if (! wxColour_helper(_obj1
, &_arg1
))
6104 wxPy_BEGIN_ALLOW_THREADS
;
6105 wxBrush_SetColour(_arg0
,*_arg1
);
6107 wxPy_END_ALLOW_THREADS
;
6108 if (PyErr_Occurred()) return NULL
;
6109 } Py_INCREF(Py_None
);
6110 _resultobj
= Py_None
;
6114 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6115 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6116 PyObject
* _resultobj
;
6119 PyObject
* _argo0
= 0;
6120 PyObject
* _argo1
= 0;
6121 char *_kwnames
[] = { "self","bitmap", NULL
};
6124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
6127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6134 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6135 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6141 wxPy_BEGIN_ALLOW_THREADS
;
6142 wxBrush_SetStipple(_arg0
,*_arg1
);
6144 wxPy_END_ALLOW_THREADS
;
6145 if (PyErr_Occurred()) return NULL
;
6146 } Py_INCREF(Py_None
);
6147 _resultobj
= Py_None
;
6151 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6152 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6153 PyObject
* _resultobj
;
6156 PyObject
* _argo0
= 0;
6157 char *_kwnames
[] = { "self","style", NULL
};
6160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6170 wxPy_BEGIN_ALLOW_THREADS
;
6171 wxBrush_SetStyle(_arg0
,_arg1
);
6173 wxPy_END_ALLOW_THREADS
;
6174 if (PyErr_Occurred()) return NULL
;
6175 } Py_INCREF(Py_None
);
6176 _resultobj
= Py_None
;
6180 static void *SwigwxBrushListTowxObject(void *ptr
) {
6183 src
= (wxBrushList
*) ptr
;
6184 dest
= (wxObject
*) src
;
6185 return (void *) dest
;
6188 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6189 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6190 PyObject
* _resultobj
;
6191 wxBrushList
* _arg0
;
6193 PyObject
* _argo0
= 0;
6194 PyObject
* _argo1
= 0;
6195 char *_kwnames
[] = { "self","brush", NULL
};
6198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6208 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6209 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6215 wxPy_BEGIN_ALLOW_THREADS
;
6216 wxBrushList_AddBrush(_arg0
,_arg1
);
6218 wxPy_END_ALLOW_THREADS
;
6219 if (PyErr_Occurred()) return NULL
;
6220 } Py_INCREF(Py_None
);
6221 _resultobj
= Py_None
;
6225 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6226 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6227 PyObject
* _resultobj
;
6229 wxBrushList
* _arg0
;
6232 PyObject
* _argo0
= 0;
6234 PyObject
* _obj1
= 0;
6235 char *_kwnames
[] = { "self","colour","style", NULL
};
6239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6250 if (! wxColour_helper(_obj1
, &_arg1
))
6254 wxPy_BEGIN_ALLOW_THREADS
;
6255 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6257 wxPy_END_ALLOW_THREADS
;
6258 if (PyErr_Occurred()) return NULL
;
6260 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6261 _resultobj
= Py_BuildValue("s",_ptemp
);
6264 _resultobj
= Py_None
;
6269 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6270 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6271 PyObject
* _resultobj
;
6272 wxBrushList
* _arg0
;
6274 PyObject
* _argo0
= 0;
6275 PyObject
* _argo1
= 0;
6276 char *_kwnames
[] = { "self","brush", NULL
};
6279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6289 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6290 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6296 wxPy_BEGIN_ALLOW_THREADS
;
6297 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6299 wxPy_END_ALLOW_THREADS
;
6300 if (PyErr_Occurred()) return NULL
;
6301 } Py_INCREF(Py_None
);
6302 _resultobj
= Py_None
;
6306 static void *SwigwxDCTowxObject(void *ptr
) {
6310 dest
= (wxObject
*) src
;
6311 return (void *) dest
;
6314 #define delete_wxDC(_swigobj) (delete _swigobj)
6315 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6316 PyObject
* _resultobj
;
6318 PyObject
* _argo0
= 0;
6319 char *_kwnames
[] = { "self", NULL
};
6322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6332 wxPy_BEGIN_ALLOW_THREADS
;
6335 wxPy_END_ALLOW_THREADS
;
6336 if (PyErr_Occurred()) return NULL
;
6337 } Py_INCREF(Py_None
);
6338 _resultobj
= Py_None
;
6342 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6343 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6344 PyObject
* _resultobj
;
6346 PyObject
* _argo0
= 0;
6347 char *_kwnames
[] = { "self", NULL
};
6350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6360 wxPy_BEGIN_ALLOW_THREADS
;
6361 wxDC_BeginDrawing(_arg0
);
6363 wxPy_END_ALLOW_THREADS
;
6364 if (PyErr_Occurred()) return NULL
;
6365 } Py_INCREF(Py_None
);
6366 _resultobj
= Py_None
;
6370 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6371 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6372 PyObject
* _resultobj
;
6382 int _arg8
= (int ) wxCOPY
;
6383 int _arg9
= (int ) FALSE
;
6384 PyObject
* _argo0
= 0;
6385 PyObject
* _argo5
= 0;
6386 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6399 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6400 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6406 wxPy_BEGIN_ALLOW_THREADS
;
6407 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6409 wxPy_END_ALLOW_THREADS
;
6410 if (PyErr_Occurred()) return NULL
;
6411 } _resultobj
= Py_BuildValue("i",_result
);
6415 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6416 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6417 PyObject
* _resultobj
;
6419 PyObject
* _argo0
= 0;
6420 char *_kwnames
[] = { "self", NULL
};
6423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6433 wxPy_BEGIN_ALLOW_THREADS
;
6436 wxPy_END_ALLOW_THREADS
;
6437 if (PyErr_Occurred()) return NULL
;
6438 } Py_INCREF(Py_None
);
6439 _resultobj
= Py_None
;
6443 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6444 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6445 PyObject
* _resultobj
;
6449 PyObject
* _argo0
= 0;
6450 char *_kwnames
[] = { "self","x","y", NULL
};
6453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6463 wxPy_BEGIN_ALLOW_THREADS
;
6464 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6466 wxPy_END_ALLOW_THREADS
;
6467 if (PyErr_Occurred()) return NULL
;
6468 } Py_INCREF(Py_None
);
6469 _resultobj
= Py_None
;
6473 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6474 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6475 PyObject
* _resultobj
;
6477 PyObject
* _argo0
= 0;
6478 char *_kwnames
[] = { "self", NULL
};
6481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6491 wxPy_BEGIN_ALLOW_THREADS
;
6492 wxDC_DestroyClippingRegion(_arg0
);
6494 wxPy_END_ALLOW_THREADS
;
6495 if (PyErr_Occurred()) return NULL
;
6496 } Py_INCREF(Py_None
);
6497 _resultobj
= Py_None
;
6501 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6502 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6503 PyObject
* _resultobj
;
6507 PyObject
* _argo0
= 0;
6508 char *_kwnames
[] = { "self","x", NULL
};
6511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6521 wxPy_BEGIN_ALLOW_THREADS
;
6522 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6524 wxPy_END_ALLOW_THREADS
;
6525 if (PyErr_Occurred()) return NULL
;
6526 } _resultobj
= Py_BuildValue("l",_result
);
6530 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6531 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6532 PyObject
* _resultobj
;
6536 PyObject
* _argo0
= 0;
6537 char *_kwnames
[] = { "self","x", NULL
};
6540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
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_DeviceToLogicalXRel. Expected _wxDC_p.");
6550 wxPy_BEGIN_ALLOW_THREADS
;
6551 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6553 wxPy_END_ALLOW_THREADS
;
6554 if (PyErr_Occurred()) return NULL
;
6555 } _resultobj
= Py_BuildValue("l",_result
);
6559 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6560 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6561 PyObject
* _resultobj
;
6565 PyObject
* _argo0
= 0;
6566 char *_kwnames
[] = { "self","y", NULL
};
6569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6579 wxPy_BEGIN_ALLOW_THREADS
;
6580 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6582 wxPy_END_ALLOW_THREADS
;
6583 if (PyErr_Occurred()) return NULL
;
6584 } _resultobj
= Py_BuildValue("l",_result
);
6588 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6589 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6590 PyObject
* _resultobj
;
6594 PyObject
* _argo0
= 0;
6595 char *_kwnames
[] = { "self","y", NULL
};
6598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6608 wxPy_BEGIN_ALLOW_THREADS
;
6609 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6611 wxPy_END_ALLOW_THREADS
;
6612 if (PyErr_Occurred()) return NULL
;
6613 } _resultobj
= Py_BuildValue("l",_result
);
6617 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6618 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6619 PyObject
* _resultobj
;
6627 PyObject
* _argo0
= 0;
6628 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6641 wxPy_BEGIN_ALLOW_THREADS
;
6642 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6644 wxPy_END_ALLOW_THREADS
;
6645 if (PyErr_Occurred()) return NULL
;
6646 } Py_INCREF(Py_None
);
6647 _resultobj
= Py_None
;
6651 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6652 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6653 PyObject
* _resultobj
;
6658 PyObject
* _argo0
= 0;
6659 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6672 wxPy_BEGIN_ALLOW_THREADS
;
6673 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6675 wxPy_END_ALLOW_THREADS
;
6676 if (PyErr_Occurred()) return NULL
;
6677 } Py_INCREF(Py_None
);
6678 _resultobj
= Py_None
;
6682 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6683 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6684 PyObject
* _resultobj
;
6690 PyObject
* _argo0
= 0;
6691 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6704 wxPy_BEGIN_ALLOW_THREADS
;
6705 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6707 wxPy_END_ALLOW_THREADS
;
6708 if (PyErr_Occurred()) return NULL
;
6709 } Py_INCREF(Py_None
);
6710 _resultobj
= Py_None
;
6714 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6715 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6716 PyObject
* _resultobj
;
6724 PyObject
* _argo0
= 0;
6725 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6738 wxPy_BEGIN_ALLOW_THREADS
;
6739 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6741 wxPy_END_ALLOW_THREADS
;
6742 if (PyErr_Occurred()) return NULL
;
6743 } Py_INCREF(Py_None
);
6744 _resultobj
= Py_None
;
6748 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6749 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6750 PyObject
* _resultobj
;
6755 PyObject
* _argo0
= 0;
6756 PyObject
* _argo1
= 0;
6757 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6770 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6771 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6777 wxPy_BEGIN_ALLOW_THREADS
;
6778 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6780 wxPy_END_ALLOW_THREADS
;
6781 if (PyErr_Occurred()) return NULL
;
6782 } Py_INCREF(Py_None
);
6783 _resultobj
= Py_None
;
6787 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6788 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6789 PyObject
* _resultobj
;
6795 PyObject
* _argo0
= 0;
6796 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6809 wxPy_BEGIN_ALLOW_THREADS
;
6810 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6812 wxPy_END_ALLOW_THREADS
;
6813 if (PyErr_Occurred()) return NULL
;
6814 } Py_INCREF(Py_None
);
6815 _resultobj
= Py_None
;
6819 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6820 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6821 PyObject
* _resultobj
;
6825 long _arg3
= (long ) 0;
6826 long _arg4
= (long ) 0;
6827 PyObject
* _argo0
= 0;
6829 PyObject
* _obj2
= 0;
6830 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6844 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6845 if (_arg2
== NULL
) {
6853 wxPy_BEGIN_ALLOW_THREADS
;
6854 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6856 wxPy_END_ALLOW_THREADS
;
6857 if (PyErr_Occurred()) return NULL
;
6858 } Py_INCREF(Py_None
);
6859 _resultobj
= Py_None
;
6866 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6867 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6868 PyObject
* _resultobj
;
6872 long _arg3
= (long ) 0;
6873 long _arg4
= (long ) 0;
6874 int _arg5
= (int ) wxODDEVEN_RULE
;
6875 PyObject
* _argo0
= 0;
6877 PyObject
* _obj2
= 0;
6878 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6892 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6893 if (_arg2
== NULL
) {
6901 wxPy_BEGIN_ALLOW_THREADS
;
6902 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6904 wxPy_END_ALLOW_THREADS
;
6905 if (PyErr_Occurred()) return NULL
;
6906 } Py_INCREF(Py_None
);
6907 _resultobj
= Py_None
;
6914 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6915 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6916 PyObject
* _resultobj
;
6920 PyObject
* _argo0
= 0;
6921 char *_kwnames
[] = { "self","x","y", NULL
};
6924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6934 wxPy_BEGIN_ALLOW_THREADS
;
6935 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6937 wxPy_END_ALLOW_THREADS
;
6938 if (PyErr_Occurred()) return NULL
;
6939 } Py_INCREF(Py_None
);
6940 _resultobj
= Py_None
;
6944 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6945 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6946 PyObject
* _resultobj
;
6952 PyObject
* _argo0
= 0;
6953 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6966 wxPy_BEGIN_ALLOW_THREADS
;
6967 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6969 wxPy_END_ALLOW_THREADS
;
6970 if (PyErr_Occurred()) return NULL
;
6971 } Py_INCREF(Py_None
);
6972 _resultobj
= Py_None
;
6976 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6977 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6978 PyObject
* _resultobj
;
6984 PyObject
* _argo0
= 0;
6985 PyObject
* _obj1
= 0;
6986 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6999 #if PYTHON_API_VERSION >= 1009
7000 char* tmpPtr
; int tmpSize
;
7001 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7002 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7005 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7007 _arg1
= new wxString(tmpPtr
, tmpSize
);
7009 if (!PyString_Check(_obj1
)) {
7010 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7013 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7017 wxPy_BEGIN_ALLOW_THREADS
;
7018 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7020 wxPy_END_ALLOW_THREADS
;
7021 if (PyErr_Occurred()) return NULL
;
7022 } Py_INCREF(Py_None
);
7023 _resultobj
= Py_None
;
7031 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7032 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7033 PyObject
* _resultobj
;
7039 long _arg5
= (long ) 20;
7040 PyObject
* _argo0
= 0;
7041 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7054 wxPy_BEGIN_ALLOW_THREADS
;
7055 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7057 wxPy_END_ALLOW_THREADS
;
7058 if (PyErr_Occurred()) return NULL
;
7059 } Py_INCREF(Py_None
);
7060 _resultobj
= Py_None
;
7064 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7065 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7066 PyObject
* _resultobj
;
7070 PyObject
* _argo0
= 0;
7072 PyObject
* _obj2
= 0;
7073 char *_kwnames
[] = { "self","points", NULL
};
7076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7087 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7088 if (_arg2
== NULL
) {
7096 wxPy_BEGIN_ALLOW_THREADS
;
7097 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7099 wxPy_END_ALLOW_THREADS
;
7100 if (PyErr_Occurred()) return NULL
;
7101 } Py_INCREF(Py_None
);
7102 _resultobj
= Py_None
;
7109 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7110 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7111 PyObject
* _resultobj
;
7116 PyObject
* _argo0
= 0;
7117 PyObject
* _obj1
= 0;
7118 char *_kwnames
[] = { "self","text","x","y", NULL
};
7121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7131 #if PYTHON_API_VERSION >= 1009
7132 char* tmpPtr
; int tmpSize
;
7133 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7134 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7137 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7139 _arg1
= new wxString(tmpPtr
, tmpSize
);
7141 if (!PyString_Check(_obj1
)) {
7142 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7145 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7149 wxPy_BEGIN_ALLOW_THREADS
;
7150 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7152 wxPy_END_ALLOW_THREADS
;
7153 if (PyErr_Occurred()) return NULL
;
7154 } Py_INCREF(Py_None
);
7155 _resultobj
= Py_None
;
7163 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7164 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7165 PyObject
* _resultobj
;
7167 PyObject
* _argo0
= 0;
7168 char *_kwnames
[] = { "self", NULL
};
7171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7181 wxPy_BEGIN_ALLOW_THREADS
;
7184 wxPy_END_ALLOW_THREADS
;
7185 if (PyErr_Occurred()) return NULL
;
7186 } Py_INCREF(Py_None
);
7187 _resultobj
= Py_None
;
7191 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7192 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7193 PyObject
* _resultobj
;
7195 PyObject
* _argo0
= 0;
7196 char *_kwnames
[] = { "self", NULL
};
7199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7209 wxPy_BEGIN_ALLOW_THREADS
;
7210 wxDC_EndDrawing(_arg0
);
7212 wxPy_END_ALLOW_THREADS
;
7213 if (PyErr_Occurred()) return NULL
;
7214 } Py_INCREF(Py_None
);
7215 _resultobj
= Py_None
;
7219 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7220 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7221 PyObject
* _resultobj
;
7223 PyObject
* _argo0
= 0;
7224 char *_kwnames
[] = { "self", NULL
};
7227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7237 wxPy_BEGIN_ALLOW_THREADS
;
7238 wxDC_EndPage(_arg0
);
7240 wxPy_END_ALLOW_THREADS
;
7241 if (PyErr_Occurred()) return NULL
;
7242 } Py_INCREF(Py_None
);
7243 _resultobj
= Py_None
;
7247 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7248 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7249 PyObject
* _resultobj
;
7254 int _arg4
= (int ) wxFLOOD_SURFACE
;
7255 PyObject
* _argo0
= 0;
7257 PyObject
* _obj3
= 0;
7258 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7272 if (! wxColour_helper(_obj3
, &_arg3
))
7276 wxPy_BEGIN_ALLOW_THREADS
;
7277 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7279 wxPy_END_ALLOW_THREADS
;
7280 if (PyErr_Occurred()) return NULL
;
7281 } Py_INCREF(Py_None
);
7282 _resultobj
= Py_None
;
7286 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7287 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7288 PyObject
* _resultobj
;
7291 PyObject
* _argo0
= 0;
7292 char *_kwnames
[] = { "self", NULL
};
7296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7306 wxPy_BEGIN_ALLOW_THREADS
;
7307 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
7308 _result
= (wxBrush
*) &_result_ref
;
7310 wxPy_END_ALLOW_THREADS
;
7311 if (PyErr_Occurred()) return NULL
;
7313 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7314 _resultobj
= Py_BuildValue("s",_ptemp
);
7317 _resultobj
= Py_None
;
7322 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7323 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7324 PyObject
* _resultobj
;
7327 PyObject
* _argo0
= 0;
7328 char *_kwnames
[] = { "self", NULL
};
7332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7342 wxPy_BEGIN_ALLOW_THREADS
;
7343 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
7344 _result
= (wxBrush
*) &_result_ref
;
7346 wxPy_END_ALLOW_THREADS
;
7347 if (PyErr_Occurred()) return NULL
;
7349 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
7350 _resultobj
= Py_BuildValue("s",_ptemp
);
7353 _resultobj
= Py_None
;
7358 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7359 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7360 PyObject
* _resultobj
;
7363 PyObject
* _argo0
= 0;
7364 char *_kwnames
[] = { "self", NULL
};
7367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7377 wxPy_BEGIN_ALLOW_THREADS
;
7378 _result
= (long )wxDC_GetCharHeight(_arg0
);
7380 wxPy_END_ALLOW_THREADS
;
7381 if (PyErr_Occurred()) return NULL
;
7382 } _resultobj
= Py_BuildValue("l",_result
);
7386 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7387 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7388 PyObject
* _resultobj
;
7391 PyObject
* _argo0
= 0;
7392 char *_kwnames
[] = { "self", NULL
};
7395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7405 wxPy_BEGIN_ALLOW_THREADS
;
7406 _result
= (long )wxDC_GetCharWidth(_arg0
);
7408 wxPy_END_ALLOW_THREADS
;
7409 if (PyErr_Occurred()) return NULL
;
7410 } _resultobj
= Py_BuildValue("l",_result
);
7414 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7415 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7416 PyObject
* _resultobj
;
7426 PyObject
* _argo0
= 0;
7427 char *_kwnames
[] = { "self", NULL
};
7442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7452 wxPy_BEGIN_ALLOW_THREADS
;
7453 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7455 wxPy_END_ALLOW_THREADS
;
7456 if (PyErr_Occurred()) return NULL
;
7457 } Py_INCREF(Py_None
);
7458 _resultobj
= Py_None
;
7461 o
= PyInt_FromLong((long) (*_arg1
));
7462 _resultobj
= t_output_helper(_resultobj
, o
);
7466 o
= PyInt_FromLong((long) (*_arg2
));
7467 _resultobj
= t_output_helper(_resultobj
, o
);
7471 o
= PyInt_FromLong((long) (*_arg3
));
7472 _resultobj
= t_output_helper(_resultobj
, o
);
7476 o
= PyInt_FromLong((long) (*_arg4
));
7477 _resultobj
= t_output_helper(_resultobj
, o
);
7482 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7483 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7484 PyObject
* _resultobj
;
7487 PyObject
* _argo0
= 0;
7488 char *_kwnames
[] = { "self", NULL
};
7492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7502 wxPy_BEGIN_ALLOW_THREADS
;
7503 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
7504 _result
= (wxFont
*) &_result_ref
;
7506 wxPy_END_ALLOW_THREADS
;
7507 if (PyErr_Occurred()) return NULL
;
7509 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
7510 _resultobj
= Py_BuildValue("s",_ptemp
);
7513 _resultobj
= Py_None
;
7518 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7519 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7520 PyObject
* _resultobj
;
7523 PyObject
* _argo0
= 0;
7524 char *_kwnames
[] = { "self", NULL
};
7527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7537 wxPy_BEGIN_ALLOW_THREADS
;
7538 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7540 wxPy_END_ALLOW_THREADS
;
7541 if (PyErr_Occurred()) return NULL
;
7542 } _resultobj
= Py_BuildValue("i",_result
);
7546 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7547 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7548 PyObject
* _resultobj
;
7554 PyObject
* _argo0
= 0;
7555 char *_kwnames
[] = { "self", NULL
};
7564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7574 wxPy_BEGIN_ALLOW_THREADS
;
7575 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7577 wxPy_END_ALLOW_THREADS
;
7578 if (PyErr_Occurred()) return NULL
;
7579 } Py_INCREF(Py_None
);
7580 _resultobj
= Py_None
;
7583 o
= PyFloat_FromDouble((double) (*_arg1
));
7584 _resultobj
= t_output_helper(_resultobj
, o
);
7588 o
= PyFloat_FromDouble((double) (*_arg2
));
7589 _resultobj
= t_output_helper(_resultobj
, o
);
7594 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7595 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7596 PyObject
* _resultobj
;
7599 PyObject
* _argo0
= 0;
7600 char *_kwnames
[] = { "self", NULL
};
7603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7613 wxPy_BEGIN_ALLOW_THREADS
;
7614 _result
= (int )wxDC_GetMapMode(_arg0
);
7616 wxPy_END_ALLOW_THREADS
;
7617 if (PyErr_Occurred()) return NULL
;
7618 } _resultobj
= Py_BuildValue("i",_result
);
7622 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7623 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7624 PyObject
* _resultobj
;
7627 PyObject
* _argo0
= 0;
7628 char *_kwnames
[] = { "self", NULL
};
7631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7641 wxPy_BEGIN_ALLOW_THREADS
;
7642 _result
= (bool )wxDC_GetOptimization(_arg0
);
7644 wxPy_END_ALLOW_THREADS
;
7645 if (PyErr_Occurred()) return NULL
;
7646 } _resultobj
= Py_BuildValue("i",_result
);
7650 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7651 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7652 PyObject
* _resultobj
;
7655 PyObject
* _argo0
= 0;
7656 char *_kwnames
[] = { "self", NULL
};
7660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7670 wxPy_BEGIN_ALLOW_THREADS
;
7671 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
7672 _result
= (wxPen
*) &_result_ref
;
7674 wxPy_END_ALLOW_THREADS
;
7675 if (PyErr_Occurred()) return NULL
;
7677 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
7678 _resultobj
= Py_BuildValue("s",_ptemp
);
7681 _resultobj
= Py_None
;
7686 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7687 wxColour
* wc
= new wxColour();
7688 self
->GetPixel(x
, y
, wc
);
7691 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7692 PyObject
* _resultobj
;
7697 PyObject
* _argo0
= 0;
7698 char *_kwnames
[] = { "self","x","y", NULL
};
7702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7712 wxPy_BEGIN_ALLOW_THREADS
;
7713 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7715 wxPy_END_ALLOW_THREADS
;
7716 if (PyErr_Occurred()) return NULL
;
7718 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7719 _resultobj
= Py_BuildValue("s",_ptemp
);
7722 _resultobj
= Py_None
;
7727 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7728 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7729 PyObject
* _resultobj
;
7735 PyObject
* _argo0
= 0;
7736 char *_kwnames
[] = { "self", NULL
};
7745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7755 wxPy_BEGIN_ALLOW_THREADS
;
7756 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7758 wxPy_END_ALLOW_THREADS
;
7759 if (PyErr_Occurred()) return NULL
;
7760 } Py_INCREF(Py_None
);
7761 _resultobj
= Py_None
;
7764 o
= PyInt_FromLong((long) (*_arg1
));
7765 _resultobj
= t_output_helper(_resultobj
, o
);
7769 o
= PyInt_FromLong((long) (*_arg2
));
7770 _resultobj
= t_output_helper(_resultobj
, o
);
7775 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7776 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7777 PyObject
* _resultobj
;
7780 PyObject
* _argo0
= 0;
7781 char *_kwnames
[] = { "self", NULL
};
7785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7795 wxPy_BEGIN_ALLOW_THREADS
;
7796 _result
= new wxSize (wxDC_GetSize(_arg0
));
7798 wxPy_END_ALLOW_THREADS
;
7799 if (PyErr_Occurred()) return NULL
;
7800 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7801 _resultobj
= Py_BuildValue("s",_ptemp
);
7805 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7806 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7807 PyObject
* _resultobj
;
7810 PyObject
* _argo0
= 0;
7811 char *_kwnames
[] = { "self", NULL
};
7815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7825 wxPy_BEGIN_ALLOW_THREADS
;
7826 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7828 wxPy_END_ALLOW_THREADS
;
7829 if (PyErr_Occurred()) return NULL
;
7830 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7831 _resultobj
= Py_BuildValue("s",_ptemp
);
7835 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7836 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7837 PyObject
* _resultobj
;
7840 PyObject
* _argo0
= 0;
7841 char *_kwnames
[] = { "self", NULL
};
7845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7855 wxPy_BEGIN_ALLOW_THREADS
;
7856 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7858 wxPy_END_ALLOW_THREADS
;
7859 if (PyErr_Occurred()) return NULL
;
7860 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7861 _resultobj
= Py_BuildValue("s",_ptemp
);
7865 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7866 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7867 PyObject
* _resultobj
;
7874 PyObject
* _argo0
= 0;
7875 PyObject
* _obj1
= 0;
7876 char *_kwnames
[] = { "self","string", NULL
};
7885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7895 #if PYTHON_API_VERSION >= 1009
7896 char* tmpPtr
; int tmpSize
;
7897 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7898 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7901 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7903 _arg1
= new wxString(tmpPtr
, tmpSize
);
7905 if (!PyString_Check(_obj1
)) {
7906 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7909 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7913 wxPy_BEGIN_ALLOW_THREADS
;
7914 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7916 wxPy_END_ALLOW_THREADS
;
7917 if (PyErr_Occurred()) return NULL
;
7918 } Py_INCREF(Py_None
);
7919 _resultobj
= Py_None
;
7922 o
= PyInt_FromLong((long) (*_arg2
));
7923 _resultobj
= t_output_helper(_resultobj
, o
);
7927 o
= PyInt_FromLong((long) (*_arg3
));
7928 _resultobj
= t_output_helper(_resultobj
, o
);
7937 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7938 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7939 PyObject
* _resultobj
;
7950 wxFont
* _arg6
= (wxFont
*) NULL
;
7951 PyObject
* _argo0
= 0;
7952 PyObject
* _obj1
= 0;
7953 PyObject
* _argo6
= 0;
7954 char *_kwnames
[] = { "self","string","font", NULL
};
7969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7979 #if PYTHON_API_VERSION >= 1009
7980 char* tmpPtr
; int tmpSize
;
7981 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7982 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7985 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7987 _arg1
= new wxString(tmpPtr
, tmpSize
);
7989 if (!PyString_Check(_obj1
)) {
7990 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7993 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7997 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7998 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8004 wxPy_BEGIN_ALLOW_THREADS
;
8005 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8007 wxPy_END_ALLOW_THREADS
;
8008 if (PyErr_Occurred()) return NULL
;
8009 } Py_INCREF(Py_None
);
8010 _resultobj
= Py_None
;
8013 o
= PyInt_FromLong((long) (*_arg2
));
8014 _resultobj
= t_output_helper(_resultobj
, o
);
8018 o
= PyInt_FromLong((long) (*_arg3
));
8019 _resultobj
= t_output_helper(_resultobj
, o
);
8023 o
= PyInt_FromLong((long) (*_arg4
));
8024 _resultobj
= t_output_helper(_resultobj
, o
);
8028 o
= PyInt_FromLong((long) (*_arg5
));
8029 _resultobj
= t_output_helper(_resultobj
, o
);
8038 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8039 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8040 PyObject
* _resultobj
;
8043 PyObject
* _argo0
= 0;
8044 char *_kwnames
[] = { "self", NULL
};
8048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8058 wxPy_BEGIN_ALLOW_THREADS
;
8059 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8061 wxPy_END_ALLOW_THREADS
;
8062 if (PyErr_Occurred()) return NULL
;
8063 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8064 _resultobj
= Py_BuildValue("s",_ptemp
);
8068 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8069 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8070 PyObject
* _resultobj
;
8076 PyObject
* _argo0
= 0;
8077 char *_kwnames
[] = { "self", NULL
};
8086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8096 wxPy_BEGIN_ALLOW_THREADS
;
8097 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8099 wxPy_END_ALLOW_THREADS
;
8100 if (PyErr_Occurred()) return NULL
;
8101 } Py_INCREF(Py_None
);
8102 _resultobj
= Py_None
;
8105 o
= PyFloat_FromDouble((double) (*_arg1
));
8106 _resultobj
= t_output_helper(_resultobj
, o
);
8110 o
= PyFloat_FromDouble((double) (*_arg2
));
8111 _resultobj
= t_output_helper(_resultobj
, o
);
8116 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8117 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8118 PyObject
* _resultobj
;
8122 PyObject
* _argo0
= 0;
8123 char *_kwnames
[] = { "self","x", NULL
};
8126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8136 wxPy_BEGIN_ALLOW_THREADS
;
8137 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8139 wxPy_END_ALLOW_THREADS
;
8140 if (PyErr_Occurred()) return NULL
;
8141 } _resultobj
= Py_BuildValue("l",_result
);
8145 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8146 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8147 PyObject
* _resultobj
;
8151 PyObject
* _argo0
= 0;
8152 char *_kwnames
[] = { "self","x", NULL
};
8155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8165 wxPy_BEGIN_ALLOW_THREADS
;
8166 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8168 wxPy_END_ALLOW_THREADS
;
8169 if (PyErr_Occurred()) return NULL
;
8170 } _resultobj
= Py_BuildValue("l",_result
);
8174 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8175 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8176 PyObject
* _resultobj
;
8180 PyObject
* _argo0
= 0;
8181 char *_kwnames
[] = { "self","y", NULL
};
8184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8194 wxPy_BEGIN_ALLOW_THREADS
;
8195 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8197 wxPy_END_ALLOW_THREADS
;
8198 if (PyErr_Occurred()) return NULL
;
8199 } _resultobj
= Py_BuildValue("l",_result
);
8203 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8204 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8205 PyObject
* _resultobj
;
8209 PyObject
* _argo0
= 0;
8210 char *_kwnames
[] = { "self","y", NULL
};
8213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8223 wxPy_BEGIN_ALLOW_THREADS
;
8224 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8226 wxPy_END_ALLOW_THREADS
;
8227 if (PyErr_Occurred()) return NULL
;
8228 } _resultobj
= Py_BuildValue("l",_result
);
8232 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8233 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8234 PyObject
* _resultobj
;
8237 PyObject
* _argo0
= 0;
8238 char *_kwnames
[] = { "self", NULL
};
8241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8251 wxPy_BEGIN_ALLOW_THREADS
;
8252 _result
= (long )wxDC_MaxX(_arg0
);
8254 wxPy_END_ALLOW_THREADS
;
8255 if (PyErr_Occurred()) return NULL
;
8256 } _resultobj
= Py_BuildValue("l",_result
);
8260 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8261 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8262 PyObject
* _resultobj
;
8265 PyObject
* _argo0
= 0;
8266 char *_kwnames
[] = { "self", NULL
};
8269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8279 wxPy_BEGIN_ALLOW_THREADS
;
8280 _result
= (long )wxDC_MaxY(_arg0
);
8282 wxPy_END_ALLOW_THREADS
;
8283 if (PyErr_Occurred()) return NULL
;
8284 } _resultobj
= Py_BuildValue("l",_result
);
8288 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8289 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8290 PyObject
* _resultobj
;
8293 PyObject
* _argo0
= 0;
8294 char *_kwnames
[] = { "self", NULL
};
8297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8307 wxPy_BEGIN_ALLOW_THREADS
;
8308 _result
= (long )wxDC_MinX(_arg0
);
8310 wxPy_END_ALLOW_THREADS
;
8311 if (PyErr_Occurred()) return NULL
;
8312 } _resultobj
= Py_BuildValue("l",_result
);
8316 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8317 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8318 PyObject
* _resultobj
;
8321 PyObject
* _argo0
= 0;
8322 char *_kwnames
[] = { "self", NULL
};
8325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8335 wxPy_BEGIN_ALLOW_THREADS
;
8336 _result
= (long )wxDC_MinY(_arg0
);
8338 wxPy_END_ALLOW_THREADS
;
8339 if (PyErr_Occurred()) return NULL
;
8340 } _resultobj
= Py_BuildValue("l",_result
);
8344 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8345 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8346 PyObject
* _resultobj
;
8349 PyObject
* _argo0
= 0;
8350 char *_kwnames
[] = { "self", NULL
};
8353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8363 wxPy_BEGIN_ALLOW_THREADS
;
8364 _result
= (bool )wxDC_Ok(_arg0
);
8366 wxPy_END_ALLOW_THREADS
;
8367 if (PyErr_Occurred()) return NULL
;
8368 } _resultobj
= Py_BuildValue("i",_result
);
8372 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8373 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8374 PyObject
* _resultobj
;
8378 PyObject
* _argo0
= 0;
8379 char *_kwnames
[] = { "self","x","y", NULL
};
8382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8392 wxPy_BEGIN_ALLOW_THREADS
;
8393 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8395 wxPy_END_ALLOW_THREADS
;
8396 if (PyErr_Occurred()) return NULL
;
8397 } Py_INCREF(Py_None
);
8398 _resultobj
= Py_None
;
8402 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8403 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8404 PyObject
* _resultobj
;
8407 PyObject
* _argo0
= 0;
8408 PyObject
* _argo1
= 0;
8409 char *_kwnames
[] = { "self","brush", NULL
};
8412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8422 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8423 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8429 wxPy_BEGIN_ALLOW_THREADS
;
8430 wxDC_SetBackground(_arg0
,*_arg1
);
8432 wxPy_END_ALLOW_THREADS
;
8433 if (PyErr_Occurred()) return NULL
;
8434 } Py_INCREF(Py_None
);
8435 _resultobj
= Py_None
;
8439 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8440 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8441 PyObject
* _resultobj
;
8444 PyObject
* _argo0
= 0;
8445 char *_kwnames
[] = { "self","mode", NULL
};
8448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8458 wxPy_BEGIN_ALLOW_THREADS
;
8459 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8461 wxPy_END_ALLOW_THREADS
;
8462 if (PyErr_Occurred()) return NULL
;
8463 } Py_INCREF(Py_None
);
8464 _resultobj
= Py_None
;
8468 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8469 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8470 PyObject
* _resultobj
;
8476 PyObject
* _argo0
= 0;
8477 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8490 wxPy_BEGIN_ALLOW_THREADS
;
8491 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8493 wxPy_END_ALLOW_THREADS
;
8494 if (PyErr_Occurred()) return NULL
;
8495 } Py_INCREF(Py_None
);
8496 _resultobj
= Py_None
;
8500 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8501 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8502 PyObject
* _resultobj
;
8505 PyObject
* _argo0
= 0;
8506 PyObject
* _argo1
= 0;
8507 char *_kwnames
[] = { "self","region", NULL
};
8510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8520 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8521 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8527 wxPy_BEGIN_ALLOW_THREADS
;
8528 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8530 wxPy_END_ALLOW_THREADS
;
8531 if (PyErr_Occurred()) return NULL
;
8532 } Py_INCREF(Py_None
);
8533 _resultobj
= Py_None
;
8537 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8538 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8539 PyObject
* _resultobj
;
8542 PyObject
* _argo0
= 0;
8543 PyObject
* _argo1
= 0;
8544 char *_kwnames
[] = { "self","colourMap", NULL
};
8547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8557 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8558 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8564 wxPy_BEGIN_ALLOW_THREADS
;
8565 wxDC_SetPalette(_arg0
,*_arg1
);
8567 wxPy_END_ALLOW_THREADS
;
8568 if (PyErr_Occurred()) return NULL
;
8569 } Py_INCREF(Py_None
);
8570 _resultobj
= Py_None
;
8574 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8575 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8576 PyObject
* _resultobj
;
8579 PyObject
* _argo0
= 0;
8580 PyObject
* _argo1
= 0;
8581 char *_kwnames
[] = { "self","brush", NULL
};
8584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8594 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8595 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8601 wxPy_BEGIN_ALLOW_THREADS
;
8602 wxDC_SetBrush(_arg0
,*_arg1
);
8604 wxPy_END_ALLOW_THREADS
;
8605 if (PyErr_Occurred()) return NULL
;
8606 } Py_INCREF(Py_None
);
8607 _resultobj
= Py_None
;
8611 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8612 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8613 PyObject
* _resultobj
;
8616 PyObject
* _argo0
= 0;
8617 PyObject
* _argo1
= 0;
8618 char *_kwnames
[] = { "self","font", NULL
};
8621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8631 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8632 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8638 wxPy_BEGIN_ALLOW_THREADS
;
8639 wxDC_SetFont(_arg0
,*_arg1
);
8641 wxPy_END_ALLOW_THREADS
;
8642 if (PyErr_Occurred()) return NULL
;
8643 } Py_INCREF(Py_None
);
8644 _resultobj
= Py_None
;
8648 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8649 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8650 PyObject
* _resultobj
;
8653 PyObject
* _argo0
= 0;
8654 char *_kwnames
[] = { "self","function", NULL
};
8657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8667 wxPy_BEGIN_ALLOW_THREADS
;
8668 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8670 wxPy_END_ALLOW_THREADS
;
8671 if (PyErr_Occurred()) return NULL
;
8672 } Py_INCREF(Py_None
);
8673 _resultobj
= Py_None
;
8677 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8678 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8679 PyObject
* _resultobj
;
8683 PyObject
* _argo0
= 0;
8684 char *_kwnames
[] = { "self","x","y", NULL
};
8687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8697 wxPy_BEGIN_ALLOW_THREADS
;
8698 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8700 wxPy_END_ALLOW_THREADS
;
8701 if (PyErr_Occurred()) return NULL
;
8702 } Py_INCREF(Py_None
);
8703 _resultobj
= Py_None
;
8707 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8708 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8709 PyObject
* _resultobj
;
8712 PyObject
* _argo0
= 0;
8713 char *_kwnames
[] = { "self","mode", NULL
};
8716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8726 wxPy_BEGIN_ALLOW_THREADS
;
8727 wxDC_SetMapMode(_arg0
,_arg1
);
8729 wxPy_END_ALLOW_THREADS
;
8730 if (PyErr_Occurred()) return NULL
;
8731 } Py_INCREF(Py_None
);
8732 _resultobj
= Py_None
;
8736 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8737 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8738 PyObject
* _resultobj
;
8741 PyObject
* _argo0
= 0;
8743 char *_kwnames
[] = { "self","optimize", NULL
};
8746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8755 _arg1
= (bool ) tempbool1
;
8757 wxPy_BEGIN_ALLOW_THREADS
;
8758 wxDC_SetOptimization(_arg0
,_arg1
);
8760 wxPy_END_ALLOW_THREADS
;
8761 if (PyErr_Occurred()) return NULL
;
8762 } Py_INCREF(Py_None
);
8763 _resultobj
= Py_None
;
8767 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8768 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8769 PyObject
* _resultobj
;
8772 PyObject
* _argo0
= 0;
8773 PyObject
* _argo1
= 0;
8774 char *_kwnames
[] = { "self","pen", NULL
};
8777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8787 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8788 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8794 wxPy_BEGIN_ALLOW_THREADS
;
8795 wxDC_SetPen(_arg0
,*_arg1
);
8797 wxPy_END_ALLOW_THREADS
;
8798 if (PyErr_Occurred()) return NULL
;
8799 } Py_INCREF(Py_None
);
8800 _resultobj
= Py_None
;
8804 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8805 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8806 PyObject
* _resultobj
;
8809 PyObject
* _argo0
= 0;
8811 PyObject
* _obj1
= 0;
8812 char *_kwnames
[] = { "self","colour", NULL
};
8815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8826 if (! wxColour_helper(_obj1
, &_arg1
))
8830 wxPy_BEGIN_ALLOW_THREADS
;
8831 wxDC_SetTextBackground(_arg0
,*_arg1
);
8833 wxPy_END_ALLOW_THREADS
;
8834 if (PyErr_Occurred()) return NULL
;
8835 } Py_INCREF(Py_None
);
8836 _resultobj
= Py_None
;
8840 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8841 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8842 PyObject
* _resultobj
;
8845 PyObject
* _argo0
= 0;
8847 PyObject
* _obj1
= 0;
8848 char *_kwnames
[] = { "self","colour", NULL
};
8851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8862 if (! wxColour_helper(_obj1
, &_arg1
))
8866 wxPy_BEGIN_ALLOW_THREADS
;
8867 wxDC_SetTextForeground(_arg0
,*_arg1
);
8869 wxPy_END_ALLOW_THREADS
;
8870 if (PyErr_Occurred()) return NULL
;
8871 } Py_INCREF(Py_None
);
8872 _resultobj
= Py_None
;
8876 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8877 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8878 PyObject
* _resultobj
;
8882 PyObject
* _argo0
= 0;
8883 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8896 wxPy_BEGIN_ALLOW_THREADS
;
8897 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8899 wxPy_END_ALLOW_THREADS
;
8900 if (PyErr_Occurred()) return NULL
;
8901 } Py_INCREF(Py_None
);
8902 _resultobj
= Py_None
;
8906 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8907 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8908 PyObject
* _resultobj
;
8912 PyObject
* _argo0
= 0;
8913 PyObject
* _obj1
= 0;
8914 char *_kwnames
[] = { "self","message", NULL
};
8917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8927 #if PYTHON_API_VERSION >= 1009
8928 char* tmpPtr
; int tmpSize
;
8929 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8930 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8933 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8935 _arg1
= new wxString(tmpPtr
, tmpSize
);
8937 if (!PyString_Check(_obj1
)) {
8938 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8941 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8945 wxPy_BEGIN_ALLOW_THREADS
;
8946 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8948 wxPy_END_ALLOW_THREADS
;
8949 if (PyErr_Occurred()) return NULL
;
8950 } _resultobj
= Py_BuildValue("i",_result
);
8958 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8959 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8960 PyObject
* _resultobj
;
8962 PyObject
* _argo0
= 0;
8963 char *_kwnames
[] = { "self", NULL
};
8966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8976 wxPy_BEGIN_ALLOW_THREADS
;
8977 wxDC_StartPage(_arg0
);
8979 wxPy_END_ALLOW_THREADS
;
8980 if (PyErr_Occurred()) return NULL
;
8981 } Py_INCREF(Py_None
);
8982 _resultobj
= Py_None
;
8986 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8987 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8988 PyObject
* _resultobj
;
8993 int _arg4
= (int ) FALSE
;
8994 PyObject
* _argo0
= 0;
8995 PyObject
* _argo1
= 0;
8996 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9009 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9010 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9016 wxPy_BEGIN_ALLOW_THREADS
;
9017 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9019 wxPy_END_ALLOW_THREADS
;
9020 if (PyErr_Occurred()) return NULL
;
9021 } Py_INCREF(Py_None
);
9022 _resultobj
= Py_None
;
9026 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9027 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9028 PyObject
* _resultobj
;
9031 PyObject
* _argo0
= 0;
9032 char *_kwnames
[] = { "self", NULL
};
9035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9045 wxPy_BEGIN_ALLOW_THREADS
;
9046 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9048 wxPy_END_ALLOW_THREADS
;
9049 if (PyErr_Occurred()) return NULL
;
9050 } _resultobj
= Py_BuildValue("i",_result
);
9054 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9055 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9056 PyObject
* _resultobj
;
9059 PyObject
* _argo0
= 0;
9060 char *_kwnames
[] = { "self", NULL
};
9063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9073 wxPy_BEGIN_ALLOW_THREADS
;
9074 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9076 wxPy_END_ALLOW_THREADS
;
9077 if (PyErr_Occurred()) return NULL
;
9078 } _resultobj
= Py_BuildValue("i",_result
);
9082 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9083 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9084 PyObject
* _resultobj
;
9087 PyObject
* _argo0
= 0;
9088 char *_kwnames
[] = { "self", NULL
};
9091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9101 wxPy_BEGIN_ALLOW_THREADS
;
9102 _result
= (int )wxDC_GetDepth(_arg0
);
9104 wxPy_END_ALLOW_THREADS
;
9105 if (PyErr_Occurred()) return NULL
;
9106 } _resultobj
= Py_BuildValue("i",_result
);
9110 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9111 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9112 PyObject
* _resultobj
;
9115 PyObject
* _argo0
= 0;
9116 char *_kwnames
[] = { "self", NULL
};
9120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9130 wxPy_BEGIN_ALLOW_THREADS
;
9131 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9133 wxPy_END_ALLOW_THREADS
;
9134 if (PyErr_Occurred()) return NULL
;
9135 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9136 _resultobj
= Py_BuildValue("s",_ptemp
);
9140 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9141 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9142 PyObject
* _resultobj
;
9148 PyObject
* _argo0
= 0;
9149 char *_kwnames
[] = { "self", NULL
};
9158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9168 wxPy_BEGIN_ALLOW_THREADS
;
9169 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9171 wxPy_END_ALLOW_THREADS
;
9172 if (PyErr_Occurred()) return NULL
;
9173 } Py_INCREF(Py_None
);
9174 _resultobj
= Py_None
;
9177 o
= PyInt_FromLong((long) (*_arg1
));
9178 _resultobj
= t_output_helper(_resultobj
, o
);
9182 o
= PyInt_FromLong((long) (*_arg2
));
9183 _resultobj
= t_output_helper(_resultobj
, o
);
9188 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9189 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9190 PyObject
* _resultobj
;
9194 PyObject
* _argo0
= 0;
9195 char *_kwnames
[] = { "self","x","y", NULL
};
9198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9208 wxPy_BEGIN_ALLOW_THREADS
;
9209 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9211 wxPy_END_ALLOW_THREADS
;
9212 if (PyErr_Occurred()) return NULL
;
9213 } Py_INCREF(Py_None
);
9214 _resultobj
= Py_None
;
9218 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9219 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9220 PyObject
* _resultobj
;
9226 PyObject
* _argo0
= 0;
9227 char *_kwnames
[] = { "self", NULL
};
9236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9246 wxPy_BEGIN_ALLOW_THREADS
;
9247 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9249 wxPy_END_ALLOW_THREADS
;
9250 if (PyErr_Occurred()) return NULL
;
9251 } Py_INCREF(Py_None
);
9252 _resultobj
= Py_None
;
9255 o
= PyInt_FromLong((long) (*_arg1
));
9256 _resultobj
= t_output_helper(_resultobj
, o
);
9260 o
= PyInt_FromLong((long) (*_arg2
));
9261 _resultobj
= t_output_helper(_resultobj
, o
);
9266 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9267 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9268 PyObject
* _resultobj
;
9272 PyObject
* _argo0
= 0;
9275 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9287 _arg1
= (bool ) tempbool1
;
9288 _arg2
= (bool ) tempbool2
;
9290 wxPy_BEGIN_ALLOW_THREADS
;
9291 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9293 wxPy_END_ALLOW_THREADS
;
9294 if (PyErr_Occurred()) return NULL
;
9295 } Py_INCREF(Py_None
);
9296 _resultobj
= Py_None
;
9300 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9301 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9302 PyObject
* _resultobj
;
9306 PyObject
* _argo0
= 0;
9307 char *_kwnames
[] = { "self","x","y", NULL
};
9310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9320 wxPy_BEGIN_ALLOW_THREADS
;
9321 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9323 wxPy_END_ALLOW_THREADS
;
9324 if (PyErr_Occurred()) return NULL
;
9325 } Py_INCREF(Py_None
);
9326 _resultobj
= Py_None
;
9330 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9331 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9332 PyObject
* _resultobj
;
9334 PyObject
* _argo0
= 0;
9335 char *_kwnames
[] = { "self", NULL
};
9338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9348 wxPy_BEGIN_ALLOW_THREADS
;
9349 wxDC_ResetBoundingBox(_arg0
);
9351 wxPy_END_ALLOW_THREADS
;
9352 if (PyErr_Occurred()) return NULL
;
9353 } Py_INCREF(Py_None
);
9354 _resultobj
= Py_None
;
9358 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9359 PyObject
* _resultobj
;
9369 PyObject
* _argo0
= 0;
9370 char *_kwnames
[] = { "self", NULL
};
9385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9395 wxPy_BEGIN_ALLOW_THREADS
;
9396 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9398 wxPy_END_ALLOW_THREADS
;
9399 if (PyErr_Occurred()) return NULL
;
9400 } Py_INCREF(Py_None
);
9401 _resultobj
= Py_None
;
9404 o
= PyInt_FromLong((long) (*_arg1
));
9405 _resultobj
= t_output_helper(_resultobj
, o
);
9409 o
= PyInt_FromLong((long) (*_arg2
));
9410 _resultobj
= t_output_helper(_resultobj
, o
);
9414 o
= PyInt_FromLong((long) (*_arg3
));
9415 _resultobj
= t_output_helper(_resultobj
, o
);
9419 o
= PyInt_FromLong((long) (*_arg4
));
9420 _resultobj
= t_output_helper(_resultobj
, o
);
9425 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
9426 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9427 PyObject
* _resultobj
;
9430 PyObject
* _argo0
= 0;
9431 char *_kwnames
[] = { "self", NULL
};
9434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
9437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
9444 wxPy_BEGIN_ALLOW_THREADS
;
9445 _result
= (long )wxDC_GetHDC(_arg0
);
9447 wxPy_END_ALLOW_THREADS
;
9448 if (PyErr_Occurred()) return NULL
;
9449 } _resultobj
= Py_BuildValue("l",_result
);
9453 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9454 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9455 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9463 if (!PySequence_Check(pyPoints
)) {
9466 if (!PySequence_Check(pyPens
)) {
9469 numObjs
= PySequence_Length(pyPoints
);
9470 numPens
= PySequence_Length(pyPens
);
9472 for (i
= 0; i
< numObjs
; i
++) {
9476 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9479 obj
= PySequence_GetItem(pyPens
, i
);
9481 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9492 // Get the point coordinants
9494 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9497 obj
= PySequence_GetItem(pyPoints
, i
);
9499 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9505 // Now draw the point
9506 self
->DrawPoint(x1
, y1
);
9516 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9519 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9522 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9523 PyObject
* _resultobj
;
9528 PyObject
* _argo0
= 0;
9529 PyObject
* _obj1
= 0;
9530 PyObject
* _obj2
= 0;
9531 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9550 wxPy_BEGIN_ALLOW_THREADS
;
9551 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9553 wxPy_END_ALLOW_THREADS
;
9554 if (PyErr_Occurred()) return NULL
;
9556 _resultobj
= _result
;
9561 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9562 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9563 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9571 if (!PySequence_Check(pyLines
)) {
9574 if (!PySequence_Check(pyPens
)) {
9577 numObjs
= PySequence_Length(pyLines
);
9578 numPens
= PySequence_Length(pyPens
);
9580 for (i
= 0; i
< numObjs
; i
++) {
9584 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9587 obj
= PySequence_GetItem(pyPens
, i
);
9589 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9600 // Get the line coordinants
9602 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9605 obj
= PySequence_GetItem(pyLines
, i
);
9607 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9613 // Now draw the line
9614 self
->DrawLine(x1
, y1
, x2
, y2
);
9624 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9627 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9630 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9631 PyObject
* _resultobj
;
9636 PyObject
* _argo0
= 0;
9637 PyObject
* _obj1
= 0;
9638 PyObject
* _obj2
= 0;
9639 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9658 wxPy_BEGIN_ALLOW_THREADS
;
9659 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9661 wxPy_END_ALLOW_THREADS
;
9662 if (PyErr_Occurred()) return NULL
;
9664 _resultobj
= _result
;
9669 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9672 src
= (wxMemoryDC
*) ptr
;
9673 dest
= (wxDC
*) src
;
9674 return (void *) dest
;
9677 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9680 src
= (wxMemoryDC
*) ptr
;
9681 dest
= (wxObject
*) src
;
9682 return (void *) dest
;
9685 #define new_wxMemoryDC() (new wxMemoryDC())
9686 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9687 PyObject
* _resultobj
;
9688 wxMemoryDC
* _result
;
9689 char *_kwnames
[] = { NULL
};
9693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9696 wxPy_BEGIN_ALLOW_THREADS
;
9697 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9699 wxPy_END_ALLOW_THREADS
;
9700 if (PyErr_Occurred()) return NULL
;
9702 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9703 _resultobj
= Py_BuildValue("s",_ptemp
);
9706 _resultobj
= Py_None
;
9711 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9712 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9713 PyObject
* _resultobj
;
9716 PyObject
* _argo0
= 0;
9717 PyObject
* _argo1
= 0;
9718 char *_kwnames
[] = { "self","bitmap", NULL
};
9721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9731 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9732 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9738 wxPy_BEGIN_ALLOW_THREADS
;
9739 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9741 wxPy_END_ALLOW_THREADS
;
9742 if (PyErr_Occurred()) return NULL
;
9743 } Py_INCREF(Py_None
);
9744 _resultobj
= Py_None
;
9748 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9751 src
= (wxScreenDC
*) ptr
;
9752 dest
= (wxDC
*) src
;
9753 return (void *) dest
;
9756 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9759 src
= (wxScreenDC
*) ptr
;
9760 dest
= (wxObject
*) src
;
9761 return (void *) dest
;
9764 #define new_wxScreenDC() (new wxScreenDC())
9765 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9766 PyObject
* _resultobj
;
9767 wxScreenDC
* _result
;
9768 char *_kwnames
[] = { NULL
};
9772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9775 wxPy_BEGIN_ALLOW_THREADS
;
9776 _result
= (wxScreenDC
*)new_wxScreenDC();
9778 wxPy_END_ALLOW_THREADS
;
9779 if (PyErr_Occurred()) return NULL
;
9781 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9782 _resultobj
= Py_BuildValue("s",_ptemp
);
9785 _resultobj
= Py_None
;
9790 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9791 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9792 PyObject
* _resultobj
;
9796 PyObject
* _argo0
= 0;
9797 PyObject
* _argo1
= 0;
9798 char *_kwnames
[] = { "self","window", NULL
};
9801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9811 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9812 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9818 wxPy_BEGIN_ALLOW_THREADS
;
9819 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9821 wxPy_END_ALLOW_THREADS
;
9822 if (PyErr_Occurred()) return NULL
;
9823 } _resultobj
= Py_BuildValue("i",_result
);
9827 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9828 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9829 PyObject
* _resultobj
;
9832 wxRect
* _arg1
= (wxRect
*) NULL
;
9833 PyObject
* _argo0
= 0;
9835 PyObject
* _obj1
= 0;
9836 char *_kwnames
[] = { "self","rect", NULL
};
9839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9851 if (! wxRect_helper(_obj1
, &_arg1
))
9855 wxPy_BEGIN_ALLOW_THREADS
;
9856 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9858 wxPy_END_ALLOW_THREADS
;
9859 if (PyErr_Occurred()) return NULL
;
9860 } _resultobj
= Py_BuildValue("i",_result
);
9864 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9865 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9866 PyObject
* _resultobj
;
9869 PyObject
* _argo0
= 0;
9870 char *_kwnames
[] = { "self", NULL
};
9873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9883 wxPy_BEGIN_ALLOW_THREADS
;
9884 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9886 wxPy_END_ALLOW_THREADS
;
9887 if (PyErr_Occurred()) return NULL
;
9888 } _resultobj
= Py_BuildValue("i",_result
);
9892 static void *SwigwxClientDCTowxDC(void *ptr
) {
9895 src
= (wxClientDC
*) ptr
;
9896 dest
= (wxDC
*) src
;
9897 return (void *) dest
;
9900 static void *SwigwxClientDCTowxObject(void *ptr
) {
9903 src
= (wxClientDC
*) ptr
;
9904 dest
= (wxObject
*) src
;
9905 return (void *) dest
;
9908 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9909 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9910 PyObject
* _resultobj
;
9911 wxClientDC
* _result
;
9913 PyObject
* _argo0
= 0;
9914 char *_kwnames
[] = { "win", NULL
};
9918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9928 wxPy_BEGIN_ALLOW_THREADS
;
9929 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9931 wxPy_END_ALLOW_THREADS
;
9932 if (PyErr_Occurred()) return NULL
;
9934 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9935 _resultobj
= Py_BuildValue("s",_ptemp
);
9938 _resultobj
= Py_None
;
9943 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9946 src
= (wxPaintDC
*) ptr
;
9947 dest
= (wxDC
*) src
;
9948 return (void *) dest
;
9951 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9954 src
= (wxPaintDC
*) ptr
;
9955 dest
= (wxObject
*) src
;
9956 return (void *) dest
;
9959 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9960 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9961 PyObject
* _resultobj
;
9962 wxPaintDC
* _result
;
9964 PyObject
* _argo0
= 0;
9965 char *_kwnames
[] = { "win", NULL
};
9969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9979 wxPy_BEGIN_ALLOW_THREADS
;
9980 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9982 wxPy_END_ALLOW_THREADS
;
9983 if (PyErr_Occurred()) return NULL
;
9985 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9986 _resultobj
= Py_BuildValue("s",_ptemp
);
9989 _resultobj
= Py_None
;
9994 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9997 src
= (wxWindowDC
*) ptr
;
9998 dest
= (wxDC
*) src
;
9999 return (void *) dest
;
10002 static void *SwigwxWindowDCTowxObject(void *ptr
) {
10005 src
= (wxWindowDC
*) ptr
;
10006 dest
= (wxObject
*) src
;
10007 return (void *) dest
;
10010 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10011 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10012 PyObject
* _resultobj
;
10013 wxWindowDC
* _result
;
10015 PyObject
* _argo0
= 0;
10016 char *_kwnames
[] = { "win", NULL
};
10020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
10023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
10025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10030 wxPy_BEGIN_ALLOW_THREADS
;
10031 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10033 wxPy_END_ALLOW_THREADS
;
10034 if (PyErr_Occurred()) return NULL
;
10036 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10037 _resultobj
= Py_BuildValue("s",_ptemp
);
10039 Py_INCREF(Py_None
);
10040 _resultobj
= Py_None
;
10045 static void *SwigwxMetaFileTowxObject(void *ptr
) {
10048 src
= (wxMetaFile
*) ptr
;
10049 dest
= (wxObject
*) src
;
10050 return (void *) dest
;
10053 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10054 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10055 PyObject
* _resultobj
;
10056 wxMetaFile
* _result
;
10057 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
10058 PyObject
* _obj0
= 0;
10059 char *_kwnames
[] = { "filename", NULL
};
10063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
10067 #if PYTHON_API_VERSION >= 1009
10068 char* tmpPtr
; int tmpSize
;
10069 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10070 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10073 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10075 _arg0
= new wxString(tmpPtr
, tmpSize
);
10077 if (!PyString_Check(_obj0
)) {
10078 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10081 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10085 wxPy_BEGIN_ALLOW_THREADS
;
10086 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
10088 wxPy_END_ALLOW_THREADS
;
10089 if (PyErr_Occurred()) return NULL
;
10091 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10092 _resultobj
= Py_BuildValue("s",_ptemp
);
10094 Py_INCREF(Py_None
);
10095 _resultobj
= Py_None
;
10104 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10105 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10106 PyObject
* _resultobj
;
10107 wxMetaFile
* _arg0
;
10108 PyObject
* _argo0
= 0;
10109 char *_kwnames
[] = { "self", NULL
};
10112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
10115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10122 wxPy_BEGIN_ALLOW_THREADS
;
10123 delete_wxMetaFile(_arg0
);
10125 wxPy_END_ALLOW_THREADS
;
10126 if (PyErr_Occurred()) return NULL
;
10127 } Py_INCREF(Py_None
);
10128 _resultobj
= Py_None
;
10132 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10133 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10134 PyObject
* _resultobj
;
10136 wxMetaFile
* _arg0
;
10137 PyObject
* _argo0
= 0;
10138 char *_kwnames
[] = { "self", NULL
};
10141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
10144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10151 wxPy_BEGIN_ALLOW_THREADS
;
10152 _result
= (bool )wxMetaFile_Ok(_arg0
);
10154 wxPy_END_ALLOW_THREADS
;
10155 if (PyErr_Occurred()) return NULL
;
10156 } _resultobj
= Py_BuildValue("i",_result
);
10160 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10161 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10162 PyObject
* _resultobj
;
10164 wxMetaFile
* _arg0
;
10165 int _arg1
= (int ) 0;
10166 int _arg2
= (int ) 0;
10167 PyObject
* _argo0
= 0;
10168 char *_kwnames
[] = { "self","width","height", NULL
};
10171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10181 wxPy_BEGIN_ALLOW_THREADS
;
10182 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
10184 wxPy_END_ALLOW_THREADS
;
10185 if (PyErr_Occurred()) return NULL
;
10186 } _resultobj
= Py_BuildValue("i",_result
);
10190 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10191 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10192 PyObject
* _resultobj
;
10194 wxMetaFile
* _arg0
;
10195 PyObject
* _argo0
= 0;
10196 char *_kwnames
[] = { "self", NULL
};
10200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
10203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10210 wxPy_BEGIN_ALLOW_THREADS
;
10211 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
10213 wxPy_END_ALLOW_THREADS
;
10214 if (PyErr_Occurred()) return NULL
;
10215 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
10216 _resultobj
= Py_BuildValue("s",_ptemp
);
10220 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10221 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10222 PyObject
* _resultobj
;
10224 wxMetaFile
* _arg0
;
10225 PyObject
* _argo0
= 0;
10226 char *_kwnames
[] = { "self", NULL
};
10229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
10232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10239 wxPy_BEGIN_ALLOW_THREADS
;
10240 _result
= (int )wxMetaFile_GetWidth(_arg0
);
10242 wxPy_END_ALLOW_THREADS
;
10243 if (PyErr_Occurred()) return NULL
;
10244 } _resultobj
= Py_BuildValue("i",_result
);
10248 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10249 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10250 PyObject
* _resultobj
;
10252 wxMetaFile
* _arg0
;
10253 PyObject
* _argo0
= 0;
10254 char *_kwnames
[] = { "self", NULL
};
10257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
10260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10267 wxPy_BEGIN_ALLOW_THREADS
;
10268 _result
= (int )wxMetaFile_GetHeight(_arg0
);
10270 wxPy_END_ALLOW_THREADS
;
10271 if (PyErr_Occurred()) return NULL
;
10272 } _resultobj
= Py_BuildValue("i",_result
);
10276 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10277 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10278 PyObject
* _resultobj
;
10279 wxString
* _result
;
10280 wxMetaFile
* _arg0
;
10281 PyObject
* _argo0
= 0;
10282 char *_kwnames
[] = { "self", NULL
};
10285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
10288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10295 wxPy_BEGIN_ALLOW_THREADS
;
10296 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
10297 _result
= (wxString
*) &_result_ref
;
10299 wxPy_END_ALLOW_THREADS
;
10300 if (PyErr_Occurred()) return NULL
;
10302 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10307 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
10310 src
= (wxMetaFileDC
*) ptr
;
10311 dest
= (wxDC
*) src
;
10312 return (void *) dest
;
10315 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
10318 src
= (wxMetaFileDC
*) ptr
;
10319 dest
= (wxObject
*) src
;
10320 return (void *) dest
;
10323 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10324 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10325 PyObject
* _resultobj
;
10326 wxMetaFileDC
* _result
;
10327 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
10328 int _arg1
= (int ) 0;
10329 int _arg2
= (int ) 0;
10330 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
10331 PyObject
* _obj0
= 0;
10332 PyObject
* _obj3
= 0;
10333 char *_kwnames
[] = { "filename","width","height","description", NULL
};
10337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
10341 #if PYTHON_API_VERSION >= 1009
10342 char* tmpPtr
; int tmpSize
;
10343 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10347 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10349 _arg0
= new wxString(tmpPtr
, tmpSize
);
10351 if (!PyString_Check(_obj0
)) {
10352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10355 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10360 #if PYTHON_API_VERSION >= 1009
10361 char* tmpPtr
; int tmpSize
;
10362 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
10363 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10366 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
10368 _arg3
= new wxString(tmpPtr
, tmpSize
);
10370 if (!PyString_Check(_obj3
)) {
10371 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10374 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
10378 wxPy_BEGIN_ALLOW_THREADS
;
10379 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
10381 wxPy_END_ALLOW_THREADS
;
10382 if (PyErr_Occurred()) return NULL
;
10384 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
10385 _resultobj
= Py_BuildValue("s",_ptemp
);
10387 Py_INCREF(Py_None
);
10388 _resultobj
= Py_None
;
10401 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10402 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10403 PyObject
* _resultobj
;
10404 wxMetaFile
* _result
;
10405 wxMetaFileDC
* _arg0
;
10406 PyObject
* _argo0
= 0;
10407 char *_kwnames
[] = { "self", NULL
};
10411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
10414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
10416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10421 wxPy_BEGIN_ALLOW_THREADS
;
10422 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
10424 wxPy_END_ALLOW_THREADS
;
10425 if (PyErr_Occurred()) return NULL
;
10427 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10428 _resultobj
= Py_BuildValue("s",_ptemp
);
10430 Py_INCREF(Py_None
);
10431 _resultobj
= Py_None
;
10436 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
10439 src
= (wxPalette
*) ptr
;
10440 dest
= (wxGDIObject
*) src
;
10441 return (void *) dest
;
10444 static void *SwigwxPaletteTowxObject(void *ptr
) {
10447 src
= (wxPalette
*) ptr
;
10448 dest
= (wxObject
*) src
;
10449 return (void *) dest
;
10452 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10453 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10454 PyObject
* _resultobj
;
10455 wxPalette
* _result
;
10460 PyObject
* _obj1
= 0;
10461 PyObject
* _obj2
= 0;
10462 PyObject
* _obj3
= 0;
10463 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10470 _arg1
= byte_LIST_helper(_obj1
);
10471 if (_arg1
== NULL
) {
10476 _arg2
= byte_LIST_helper(_obj2
);
10477 if (_arg2
== NULL
) {
10483 _arg3
= byte_LIST_helper(_obj3
);
10484 if (_arg3
== NULL
) {
10490 _arg0
= PyList_Size(_obj1
);
10497 wxPy_BEGIN_ALLOW_THREADS
;
10498 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10500 wxPy_END_ALLOW_THREADS
;
10501 if (PyErr_Occurred()) return NULL
;
10503 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10504 _resultobj
= Py_BuildValue("s",_ptemp
);
10506 Py_INCREF(Py_None
);
10507 _resultobj
= Py_None
;
10521 #define delete_wxPalette(_swigobj) (delete _swigobj)
10522 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10523 PyObject
* _resultobj
;
10525 PyObject
* _argo0
= 0;
10526 char *_kwnames
[] = { "self", NULL
};
10529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10539 wxPy_BEGIN_ALLOW_THREADS
;
10540 delete_wxPalette(_arg0
);
10542 wxPy_END_ALLOW_THREADS
;
10543 if (PyErr_Occurred()) return NULL
;
10544 } Py_INCREF(Py_None
);
10545 _resultobj
= Py_None
;
10549 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10550 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10551 PyObject
* _resultobj
;
10557 PyObject
* _argo0
= 0;
10558 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10571 wxPy_BEGIN_ALLOW_THREADS
;
10572 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10574 wxPy_END_ALLOW_THREADS
;
10575 if (PyErr_Occurred()) return NULL
;
10576 } _resultobj
= Py_BuildValue("i",_result
);
10580 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10581 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10582 PyObject
* _resultobj
;
10589 PyObject
* _argo0
= 0;
10590 PyObject
* _argo2
= 0;
10591 PyObject
* _argo3
= 0;
10592 PyObject
* _argo4
= 0;
10593 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
10596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
10599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10606 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10607 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
10608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10613 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10614 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
10615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10620 if (_argo4
== Py_None
) { _arg4
= NULL
; }
10621 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
10622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10627 wxPy_BEGIN_ALLOW_THREADS
;
10628 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10630 wxPy_END_ALLOW_THREADS
;
10631 if (PyErr_Occurred()) return NULL
;
10632 } _resultobj
= Py_BuildValue("i",_result
);
10636 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10637 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10638 PyObject
* _resultobj
;
10641 PyObject
* _argo0
= 0;
10642 char *_kwnames
[] = { "self", NULL
};
10645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10655 wxPy_BEGIN_ALLOW_THREADS
;
10656 _result
= (bool )wxPalette_Ok(_arg0
);
10658 wxPy_END_ALLOW_THREADS
;
10659 if (PyErr_Occurred()) return NULL
;
10660 } _resultobj
= Py_BuildValue("i",_result
);
10664 static void *SwigwxImageListTowxObject(void *ptr
) {
10667 src
= (wxImageList
*) ptr
;
10668 dest
= (wxObject
*) src
;
10669 return (void *) dest
;
10672 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10673 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10674 PyObject
* _resultobj
;
10675 wxImageList
* _result
;
10678 int _arg2
= (int ) TRUE
;
10679 int _arg3
= (int ) 1;
10680 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10687 wxPy_BEGIN_ALLOW_THREADS
;
10688 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10690 wxPy_END_ALLOW_THREADS
;
10691 if (PyErr_Occurred()) return NULL
;
10693 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10694 _resultobj
= Py_BuildValue("s",_ptemp
);
10696 Py_INCREF(Py_None
);
10697 _resultobj
= Py_None
;
10702 #define delete_wxImageList(_swigobj) (delete _swigobj)
10703 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10704 PyObject
* _resultobj
;
10705 wxImageList
* _arg0
;
10706 PyObject
* _argo0
= 0;
10707 char *_kwnames
[] = { "self", NULL
};
10710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10720 wxPy_BEGIN_ALLOW_THREADS
;
10721 delete_wxImageList(_arg0
);
10723 wxPy_END_ALLOW_THREADS
;
10724 if (PyErr_Occurred()) return NULL
;
10725 } Py_INCREF(Py_None
);
10726 _resultobj
= Py_None
;
10730 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10731 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10732 PyObject
* _resultobj
;
10734 wxImageList
* _arg0
;
10736 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10737 PyObject
* _argo0
= 0;
10738 PyObject
* _argo1
= 0;
10739 PyObject
* _argo2
= 0;
10740 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10753 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10754 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10760 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10761 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10767 wxPy_BEGIN_ALLOW_THREADS
;
10768 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10770 wxPy_END_ALLOW_THREADS
;
10771 if (PyErr_Occurred()) return NULL
;
10772 } _resultobj
= Py_BuildValue("i",_result
);
10776 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10777 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10778 PyObject
* _resultobj
;
10780 wxImageList
* _arg0
;
10783 PyObject
* _argo0
= 0;
10784 PyObject
* _argo1
= 0;
10786 PyObject
* _obj2
= 0;
10787 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10800 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10801 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10808 if (! wxColour_helper(_obj2
, &_arg2
))
10812 wxPy_BEGIN_ALLOW_THREADS
;
10813 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10815 wxPy_END_ALLOW_THREADS
;
10816 if (PyErr_Occurred()) return NULL
;
10817 } _resultobj
= Py_BuildValue("i",_result
);
10821 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10822 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10823 PyObject
* _resultobj
;
10825 wxImageList
* _arg0
;
10827 PyObject
* _argo0
= 0;
10828 PyObject
* _argo1
= 0;
10829 char *_kwnames
[] = { "self","icon", NULL
};
10832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10842 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10843 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10849 wxPy_BEGIN_ALLOW_THREADS
;
10850 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10852 wxPy_END_ALLOW_THREADS
;
10853 if (PyErr_Occurred()) return NULL
;
10854 } _resultobj
= Py_BuildValue("i",_result
);
10858 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10859 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10860 PyObject
* _resultobj
;
10862 wxImageList
* _arg0
;
10865 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
10866 PyObject
* _argo0
= 0;
10867 PyObject
* _argo2
= 0;
10868 PyObject
* _argo3
= 0;
10869 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
10872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
10875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10882 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10883 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10889 if (_argo3
== Py_None
) { _arg3
= NULL
; }
10890 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
10891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10896 wxPy_BEGIN_ALLOW_THREADS
;
10897 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
10899 wxPy_END_ALLOW_THREADS
;
10900 if (PyErr_Occurred()) return NULL
;
10901 } _resultobj
= Py_BuildValue("i",_result
);
10905 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10906 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10907 PyObject
* _resultobj
;
10909 wxImageList
* _arg0
;
10914 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10915 bool _arg6
= (bool ) FALSE
;
10916 PyObject
* _argo0
= 0;
10917 PyObject
* _argo2
= 0;
10918 int tempbool6
= (int) FALSE
;
10919 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10932 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10933 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10938 _arg6
= (bool ) tempbool6
;
10940 wxPy_BEGIN_ALLOW_THREADS
;
10941 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10943 wxPy_END_ALLOW_THREADS
;
10944 if (PyErr_Occurred()) return NULL
;
10945 } _resultobj
= Py_BuildValue("i",_result
);
10949 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10950 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10951 PyObject
* _resultobj
;
10953 wxImageList
* _arg0
;
10954 PyObject
* _argo0
= 0;
10955 char *_kwnames
[] = { "self", NULL
};
10958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10968 wxPy_BEGIN_ALLOW_THREADS
;
10969 _result
= (int )wxImageList_GetImageCount(_arg0
);
10971 wxPy_END_ALLOW_THREADS
;
10972 if (PyErr_Occurred()) return NULL
;
10973 } _resultobj
= Py_BuildValue("i",_result
);
10977 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10978 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10979 PyObject
* _resultobj
;
10981 wxImageList
* _arg0
;
10983 PyObject
* _argo0
= 0;
10984 char *_kwnames
[] = { "self","index", NULL
};
10987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10997 wxPy_BEGIN_ALLOW_THREADS
;
10998 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
11000 wxPy_END_ALLOW_THREADS
;
11001 if (PyErr_Occurred()) return NULL
;
11002 } _resultobj
= Py_BuildValue("i",_result
);
11006 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11007 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11008 PyObject
* _resultobj
;
11010 wxImageList
* _arg0
;
11011 PyObject
* _argo0
= 0;
11012 char *_kwnames
[] = { "self", NULL
};
11015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
11018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11025 wxPy_BEGIN_ALLOW_THREADS
;
11026 _result
= (bool )wxImageList_RemoveAll(_arg0
);
11028 wxPy_END_ALLOW_THREADS
;
11029 if (PyErr_Occurred()) return NULL
;
11030 } _resultobj
= Py_BuildValue("i",_result
);
11034 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11035 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11036 PyObject
* _resultobj
;
11037 wxImageList
* _arg0
;
11043 PyObject
* _argo0
= 0;
11044 char *_kwnames
[] = { "self","index", NULL
};
11053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
11056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
11058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11063 wxPy_BEGIN_ALLOW_THREADS
;
11064 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
11066 wxPy_END_ALLOW_THREADS
;
11067 if (PyErr_Occurred()) return NULL
;
11068 } Py_INCREF(Py_None
);
11069 _resultobj
= Py_None
;
11072 o
= PyInt_FromLong((long) (*_arg2
));
11073 _resultobj
= t_output_helper(_resultobj
, o
);
11077 o
= PyInt_FromLong((long) (*_arg3
));
11078 _resultobj
= t_output_helper(_resultobj
, o
);
11083 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
11086 src
= (wxRegion
*) ptr
;
11087 dest
= (wxGDIObject
*) src
;
11088 return (void *) dest
;
11091 static void *SwigwxRegionTowxObject(void *ptr
) {
11094 src
= (wxRegion
*) ptr
;
11095 dest
= (wxObject
*) src
;
11096 return (void *) dest
;
11099 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11100 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11101 PyObject
* _resultobj
;
11102 wxRegion
* _result
;
11103 long _arg0
= (long ) 0;
11104 long _arg1
= (long ) 0;
11105 long _arg2
= (long ) 0;
11106 long _arg3
= (long ) 0;
11107 char *_kwnames
[] = { "x","y","width","height", NULL
};
11111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
11114 wxPy_BEGIN_ALLOW_THREADS
;
11115 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
11117 wxPy_END_ALLOW_THREADS
;
11118 if (PyErr_Occurred()) return NULL
;
11120 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
11121 _resultobj
= Py_BuildValue("s",_ptemp
);
11123 Py_INCREF(Py_None
);
11124 _resultobj
= Py_None
;
11129 #define delete_wxRegion(_swigobj) (delete _swigobj)
11130 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11131 PyObject
* _resultobj
;
11133 PyObject
* _argo0
= 0;
11134 char *_kwnames
[] = { "self", NULL
};
11137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
11140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11147 wxPy_BEGIN_ALLOW_THREADS
;
11148 delete_wxRegion(_arg0
);
11150 wxPy_END_ALLOW_THREADS
;
11151 if (PyErr_Occurred()) return NULL
;
11152 } Py_INCREF(Py_None
);
11153 _resultobj
= Py_None
;
11157 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11158 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11159 PyObject
* _resultobj
;
11161 PyObject
* _argo0
= 0;
11162 char *_kwnames
[] = { "self", NULL
};
11165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
11168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11175 wxPy_BEGIN_ALLOW_THREADS
;
11176 wxRegion_Clear(_arg0
);
11178 wxPy_END_ALLOW_THREADS
;
11179 if (PyErr_Occurred()) return NULL
;
11180 } Py_INCREF(Py_None
);
11181 _resultobj
= Py_None
;
11185 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11186 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11187 PyObject
* _resultobj
;
11188 wxRegionContain _result
;
11192 PyObject
* _argo0
= 0;
11193 char *_kwnames
[] = { "self","x","y", NULL
};
11196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11206 wxPy_BEGIN_ALLOW_THREADS
;
11207 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
11209 wxPy_END_ALLOW_THREADS
;
11210 if (PyErr_Occurred()) return NULL
;
11211 } _resultobj
= Py_BuildValue("i",_result
);
11215 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11216 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11217 PyObject
* _resultobj
;
11218 wxRegionContain _result
;
11221 PyObject
* _argo0
= 0;
11223 PyObject
* _obj1
= 0;
11224 char *_kwnames
[] = { "self","pt", NULL
};
11227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
11230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11238 if (! wxPoint_helper(_obj1
, &_arg1
))
11242 wxPy_BEGIN_ALLOW_THREADS
;
11243 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
11245 wxPy_END_ALLOW_THREADS
;
11246 if (PyErr_Occurred()) return NULL
;
11247 } _resultobj
= Py_BuildValue("i",_result
);
11251 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11252 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11253 PyObject
* _resultobj
;
11254 wxRegionContain _result
;
11257 PyObject
* _argo0
= 0;
11259 PyObject
* _obj1
= 0;
11260 char *_kwnames
[] = { "self","rect", NULL
};
11263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
11266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11274 if (! wxRect_helper(_obj1
, &_arg1
))
11278 wxPy_BEGIN_ALLOW_THREADS
;
11279 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
11281 wxPy_END_ALLOW_THREADS
;
11282 if (PyErr_Occurred()) return NULL
;
11283 } _resultobj
= Py_BuildValue("i",_result
);
11287 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11288 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11289 PyObject
* _resultobj
;
11290 wxRegionContain _result
;
11296 PyObject
* _argo0
= 0;
11297 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
11300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11310 wxPy_BEGIN_ALLOW_THREADS
;
11311 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11313 wxPy_END_ALLOW_THREADS
;
11314 if (PyErr_Occurred()) return NULL
;
11315 } _resultobj
= Py_BuildValue("i",_result
);
11319 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11320 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11321 PyObject
* _resultobj
;
11324 PyObject
* _argo0
= 0;
11325 char *_kwnames
[] = { "self", NULL
};
11329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
11332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11339 wxPy_BEGIN_ALLOW_THREADS
;
11340 _result
= new wxRect (wxRegion_GetBox(_arg0
));
11342 wxPy_END_ALLOW_THREADS
;
11343 if (PyErr_Occurred()) return NULL
;
11344 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11345 _resultobj
= Py_BuildValue("s",_ptemp
);
11349 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11350 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11351 PyObject
* _resultobj
;
11358 PyObject
* _argo0
= 0;
11359 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11372 wxPy_BEGIN_ALLOW_THREADS
;
11373 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11375 wxPy_END_ALLOW_THREADS
;
11376 if (PyErr_Occurred()) return NULL
;
11377 } _resultobj
= Py_BuildValue("i",_result
);
11381 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11382 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11383 PyObject
* _resultobj
;
11387 PyObject
* _argo0
= 0;
11389 PyObject
* _obj1
= 0;
11390 char *_kwnames
[] = { "self","rect", NULL
};
11393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
11396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11404 if (! wxRect_helper(_obj1
, &_arg1
))
11408 wxPy_BEGIN_ALLOW_THREADS
;
11409 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
11411 wxPy_END_ALLOW_THREADS
;
11412 if (PyErr_Occurred()) return NULL
;
11413 } _resultobj
= Py_BuildValue("i",_result
);
11417 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11418 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11419 PyObject
* _resultobj
;
11423 PyObject
* _argo0
= 0;
11424 PyObject
* _argo1
= 0;
11425 char *_kwnames
[] = { "self","region", NULL
};
11428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
11431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11438 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11439 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11445 wxPy_BEGIN_ALLOW_THREADS
;
11446 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11448 wxPy_END_ALLOW_THREADS
;
11449 if (PyErr_Occurred()) return NULL
;
11450 } _resultobj
= Py_BuildValue("i",_result
);
11454 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11455 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11456 PyObject
* _resultobj
;
11459 PyObject
* _argo0
= 0;
11460 char *_kwnames
[] = { "self", NULL
};
11463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11473 wxPy_BEGIN_ALLOW_THREADS
;
11474 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11476 wxPy_END_ALLOW_THREADS
;
11477 if (PyErr_Occurred()) return NULL
;
11478 } _resultobj
= Py_BuildValue("i",_result
);
11482 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11483 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11484 PyObject
* _resultobj
;
11491 PyObject
* _argo0
= 0;
11492 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11505 wxPy_BEGIN_ALLOW_THREADS
;
11506 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11508 wxPy_END_ALLOW_THREADS
;
11509 if (PyErr_Occurred()) return NULL
;
11510 } _resultobj
= Py_BuildValue("i",_result
);
11514 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11515 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11516 PyObject
* _resultobj
;
11520 PyObject
* _argo0
= 0;
11522 PyObject
* _obj1
= 0;
11523 char *_kwnames
[] = { "self","rect", NULL
};
11526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11537 if (! wxRect_helper(_obj1
, &_arg1
))
11541 wxPy_BEGIN_ALLOW_THREADS
;
11542 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11544 wxPy_END_ALLOW_THREADS
;
11545 if (PyErr_Occurred()) return NULL
;
11546 } _resultobj
= Py_BuildValue("i",_result
);
11550 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11551 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11552 PyObject
* _resultobj
;
11556 PyObject
* _argo0
= 0;
11557 PyObject
* _argo1
= 0;
11558 char *_kwnames
[] = { "self","region", NULL
};
11561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11571 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11572 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11578 wxPy_BEGIN_ALLOW_THREADS
;
11579 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11581 wxPy_END_ALLOW_THREADS
;
11582 if (PyErr_Occurred()) return NULL
;
11583 } _resultobj
= Py_BuildValue("i",_result
);
11587 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11588 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11589 PyObject
* _resultobj
;
11596 PyObject
* _argo0
= 0;
11597 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11610 wxPy_BEGIN_ALLOW_THREADS
;
11611 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11613 wxPy_END_ALLOW_THREADS
;
11614 if (PyErr_Occurred()) return NULL
;
11615 } _resultobj
= Py_BuildValue("i",_result
);
11619 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11620 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11621 PyObject
* _resultobj
;
11625 PyObject
* _argo0
= 0;
11627 PyObject
* _obj1
= 0;
11628 char *_kwnames
[] = { "self","rect", NULL
};
11631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11642 if (! wxRect_helper(_obj1
, &_arg1
))
11646 wxPy_BEGIN_ALLOW_THREADS
;
11647 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11649 wxPy_END_ALLOW_THREADS
;
11650 if (PyErr_Occurred()) return NULL
;
11651 } _resultobj
= Py_BuildValue("i",_result
);
11655 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11656 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11657 PyObject
* _resultobj
;
11661 PyObject
* _argo0
= 0;
11662 PyObject
* _argo1
= 0;
11663 char *_kwnames
[] = { "self","region", NULL
};
11666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11676 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11677 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11683 wxPy_BEGIN_ALLOW_THREADS
;
11684 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11686 wxPy_END_ALLOW_THREADS
;
11687 if (PyErr_Occurred()) return NULL
;
11688 } _resultobj
= Py_BuildValue("i",_result
);
11692 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11693 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11694 PyObject
* _resultobj
;
11701 PyObject
* _argo0
= 0;
11702 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11715 wxPy_BEGIN_ALLOW_THREADS
;
11716 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11718 wxPy_END_ALLOW_THREADS
;
11719 if (PyErr_Occurred()) return NULL
;
11720 } _resultobj
= Py_BuildValue("i",_result
);
11724 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11725 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11726 PyObject
* _resultobj
;
11730 PyObject
* _argo0
= 0;
11732 PyObject
* _obj1
= 0;
11733 char *_kwnames
[] = { "self","rect", NULL
};
11736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11747 if (! wxRect_helper(_obj1
, &_arg1
))
11751 wxPy_BEGIN_ALLOW_THREADS
;
11752 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11754 wxPy_END_ALLOW_THREADS
;
11755 if (PyErr_Occurred()) return NULL
;
11756 } _resultobj
= Py_BuildValue("i",_result
);
11760 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11761 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11762 PyObject
* _resultobj
;
11766 PyObject
* _argo0
= 0;
11767 PyObject
* _argo1
= 0;
11768 char *_kwnames
[] = { "self","region", NULL
};
11771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11781 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11782 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11788 wxPy_BEGIN_ALLOW_THREADS
;
11789 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11791 wxPy_END_ALLOW_THREADS
;
11792 if (PyErr_Occurred()) return NULL
;
11793 } _resultobj
= Py_BuildValue("i",_result
);
11797 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11798 wxRegionIterator
*src
;
11800 src
= (wxRegionIterator
*) ptr
;
11801 dest
= (wxObject
*) src
;
11802 return (void *) dest
;
11805 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11806 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11807 PyObject
* _resultobj
;
11808 wxRegionIterator
* _result
;
11810 PyObject
* _argo0
= 0;
11811 char *_kwnames
[] = { "region", NULL
};
11815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11825 wxPy_BEGIN_ALLOW_THREADS
;
11826 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11828 wxPy_END_ALLOW_THREADS
;
11829 if (PyErr_Occurred()) return NULL
;
11831 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11832 _resultobj
= Py_BuildValue("s",_ptemp
);
11834 Py_INCREF(Py_None
);
11835 _resultobj
= Py_None
;
11840 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11841 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11842 PyObject
* _resultobj
;
11843 wxRegionIterator
* _arg0
;
11844 PyObject
* _argo0
= 0;
11845 char *_kwnames
[] = { "self", NULL
};
11848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11858 wxPy_BEGIN_ALLOW_THREADS
;
11859 delete_wxRegionIterator(_arg0
);
11861 wxPy_END_ALLOW_THREADS
;
11862 if (PyErr_Occurred()) return NULL
;
11863 } Py_INCREF(Py_None
);
11864 _resultobj
= Py_None
;
11868 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11869 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11870 PyObject
* _resultobj
;
11872 wxRegionIterator
* _arg0
;
11873 PyObject
* _argo0
= 0;
11874 char *_kwnames
[] = { "self", NULL
};
11877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11887 wxPy_BEGIN_ALLOW_THREADS
;
11888 _result
= (long )wxRegionIterator_GetX(_arg0
);
11890 wxPy_END_ALLOW_THREADS
;
11891 if (PyErr_Occurred()) return NULL
;
11892 } _resultobj
= Py_BuildValue("l",_result
);
11896 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11897 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11898 PyObject
* _resultobj
;
11900 wxRegionIterator
* _arg0
;
11901 PyObject
* _argo0
= 0;
11902 char *_kwnames
[] = { "self", NULL
};
11905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11915 wxPy_BEGIN_ALLOW_THREADS
;
11916 _result
= (long )wxRegionIterator_GetY(_arg0
);
11918 wxPy_END_ALLOW_THREADS
;
11919 if (PyErr_Occurred()) return NULL
;
11920 } _resultobj
= Py_BuildValue("l",_result
);
11924 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11925 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11926 PyObject
* _resultobj
;
11928 wxRegionIterator
* _arg0
;
11929 PyObject
* _argo0
= 0;
11930 char *_kwnames
[] = { "self", NULL
};
11933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11943 wxPy_BEGIN_ALLOW_THREADS
;
11944 _result
= (long )wxRegionIterator_GetW(_arg0
);
11946 wxPy_END_ALLOW_THREADS
;
11947 if (PyErr_Occurred()) return NULL
;
11948 } _resultobj
= Py_BuildValue("l",_result
);
11952 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11953 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11954 PyObject
* _resultobj
;
11956 wxRegionIterator
* _arg0
;
11957 PyObject
* _argo0
= 0;
11958 char *_kwnames
[] = { "self", NULL
};
11961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11971 wxPy_BEGIN_ALLOW_THREADS
;
11972 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11974 wxPy_END_ALLOW_THREADS
;
11975 if (PyErr_Occurred()) return NULL
;
11976 } _resultobj
= Py_BuildValue("l",_result
);
11980 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11981 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11982 PyObject
* _resultobj
;
11984 wxRegionIterator
* _arg0
;
11985 PyObject
* _argo0
= 0;
11986 char *_kwnames
[] = { "self", NULL
};
11989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11999 wxPy_BEGIN_ALLOW_THREADS
;
12000 _result
= (long )wxRegionIterator_GetH(_arg0
);
12002 wxPy_END_ALLOW_THREADS
;
12003 if (PyErr_Occurred()) return NULL
;
12004 } _resultobj
= Py_BuildValue("l",_result
);
12008 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12009 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12010 PyObject
* _resultobj
;
12012 wxRegionIterator
* _arg0
;
12013 PyObject
* _argo0
= 0;
12014 char *_kwnames
[] = { "self", NULL
};
12017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
12020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12027 wxPy_BEGIN_ALLOW_THREADS
;
12028 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
12030 wxPy_END_ALLOW_THREADS
;
12031 if (PyErr_Occurred()) return NULL
;
12032 } _resultobj
= Py_BuildValue("l",_result
);
12036 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12037 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12038 PyObject
* _resultobj
;
12040 wxRegionIterator
* _arg0
;
12041 PyObject
* _argo0
= 0;
12042 char *_kwnames
[] = { "self", NULL
};
12046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
12049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12056 wxPy_BEGIN_ALLOW_THREADS
;
12057 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
12059 wxPy_END_ALLOW_THREADS
;
12060 if (PyErr_Occurred()) return NULL
;
12061 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12062 _resultobj
= Py_BuildValue("s",_ptemp
);
12066 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12067 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12068 PyObject
* _resultobj
;
12070 wxRegionIterator
* _arg0
;
12071 PyObject
* _argo0
= 0;
12072 char *_kwnames
[] = { "self", NULL
};
12075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
12078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12085 wxPy_BEGIN_ALLOW_THREADS
;
12086 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
12088 wxPy_END_ALLOW_THREADS
;
12089 if (PyErr_Occurred()) return NULL
;
12090 } _resultobj
= Py_BuildValue("i",_result
);
12094 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12095 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12096 PyObject
* _resultobj
;
12097 wxRegionIterator
* _arg0
;
12098 PyObject
* _argo0
= 0;
12099 char *_kwnames
[] = { "self", NULL
};
12102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
12105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12112 wxPy_BEGIN_ALLOW_THREADS
;
12113 wxRegionIterator_Reset(_arg0
);
12115 wxPy_END_ALLOW_THREADS
;
12116 if (PyErr_Occurred()) return NULL
;
12117 } Py_INCREF(Py_None
);
12118 _resultobj
= Py_None
;
12122 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
12125 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12126 PyObject
* _resultobj
;
12127 wxRegionIterator
* _arg0
;
12128 PyObject
* _argo0
= 0;
12129 char *_kwnames
[] = { "self", NULL
};
12132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
12135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12142 wxPy_BEGIN_ALLOW_THREADS
;
12143 wxRegionIterator_Next(_arg0
);
12145 wxPy_END_ALLOW_THREADS
;
12146 if (PyErr_Occurred()) return NULL
;
12147 } Py_INCREF(Py_None
);
12148 _resultobj
= Py_None
;
12152 static PyMethodDef gdicMethods
[] = {
12153 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
12154 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
12155 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
12156 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
12157 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12158 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
12159 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12160 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
12161 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
12162 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
12163 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12164 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12165 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
12166 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
12167 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
12168 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
12169 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
12170 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
12171 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
12172 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
12173 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
12174 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
12175 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
12176 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
12177 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
12178 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
12179 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
12180 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
12181 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
12182 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
12183 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12184 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12185 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12186 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12187 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
12188 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
12189 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
12190 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
12191 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
12192 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
12193 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
12194 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
12195 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12196 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12197 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12198 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
12199 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12200 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12201 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12202 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
12203 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
12204 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
12205 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12206 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12207 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12208 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
12209 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12210 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12211 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12212 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
12213 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
12214 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
12215 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12216 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12217 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
12218 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
12219 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
12220 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
12221 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
12222 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
12223 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
12224 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12225 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12226 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12227 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
12228 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12229 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12230 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12231 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
12232 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12233 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12234 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12235 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12236 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
12237 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
12238 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12239 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12240 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12241 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
12242 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12243 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12244 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12245 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12246 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
12247 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12248 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12249 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
12250 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12251 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
12252 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12253 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12254 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12255 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
12256 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
12257 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
12258 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
12259 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
12260 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
12261 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
12262 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
12263 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12264 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12265 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12266 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12267 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12268 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
12269 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12270 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
12271 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12272 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
12273 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12274 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12275 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12276 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12277 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
12278 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
12279 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
12280 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
12281 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12282 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12283 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
12284 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
12285 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12286 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
12287 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
12288 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
12289 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12290 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
12291 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12292 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
12293 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
12294 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
12295 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
12296 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
12297 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
12298 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
12299 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
12300 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
12301 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
12302 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
12303 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
12304 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
12305 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12306 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
12307 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12308 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
12309 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12310 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
12311 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
12312 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
12313 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
12314 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12315 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12316 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12317 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12318 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12319 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12320 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12321 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12322 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12323 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
12324 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
12325 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
12326 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12327 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12328 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12329 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12330 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12331 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12332 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12333 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12334 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12335 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12336 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
12337 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12338 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12339 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12340 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12341 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12342 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
12343 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12344 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12345 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
12346 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
12347 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
12348 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
12349 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
12350 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12351 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
12352 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
12353 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
12354 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12355 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12356 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
12357 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
12358 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
12359 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12360 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12361 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
12362 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
12363 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
12364 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12365 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12366 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12367 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12368 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12369 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12370 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12371 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12372 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12373 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12374 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
12375 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
12376 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
12377 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12378 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
12379 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
12380 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12381 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12382 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
12383 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
12384 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12385 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
12386 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
12387 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
12388 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
12389 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
12390 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
12391 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12392 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
12393 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
12394 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12395 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
12396 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
12397 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
12398 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
12399 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12400 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12401 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12402 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12403 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12404 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12405 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12406 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12407 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12408 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12409 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12410 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12411 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12412 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12413 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12414 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12415 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12416 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12417 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12418 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12419 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12420 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12421 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12422 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12423 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12424 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12425 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
12426 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
12427 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
12428 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
12429 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
12430 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12431 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12432 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12433 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12434 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12435 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12436 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12437 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12438 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12439 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12440 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12441 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12442 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12443 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
12444 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
12445 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12446 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
12447 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12448 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12449 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12450 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12451 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12452 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12453 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12454 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12455 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12456 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12457 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12458 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12459 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12460 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12461 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12462 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12463 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12464 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12471 * This table is used by the pointer type-checker
12473 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12474 { "_signed_long","_long",0},
12475 { "_wxPrintQuality","_wxCoord",0},
12476 { "_wxPrintQuality","_int",0},
12477 { "_wxPrintQuality","_signed_int",0},
12478 { "_wxPrintQuality","_unsigned_int",0},
12479 { "_wxPrintQuality","_wxWindowID",0},
12480 { "_wxPrintQuality","_uint",0},
12481 { "_wxPrintQuality","_EBool",0},
12482 { "_wxPrintQuality","_size_t",0},
12483 { "_wxPrintQuality","_time_t",0},
12484 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12485 { "_byte","_unsigned_char",0},
12486 { "_long","_unsigned_long",0},
12487 { "_long","_signed_long",0},
12488 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12489 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12490 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12491 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12492 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12493 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12494 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12495 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12496 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12497 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
12498 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12499 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12500 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12501 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12502 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12503 { "_size_t","_wxCoord",0},
12504 { "_size_t","_wxPrintQuality",0},
12505 { "_size_t","_time_t",0},
12506 { "_size_t","_unsigned_int",0},
12507 { "_size_t","_int",0},
12508 { "_size_t","_wxWindowID",0},
12509 { "_size_t","_uint",0},
12510 { "_uint","_wxCoord",0},
12511 { "_uint","_wxPrintQuality",0},
12512 { "_uint","_time_t",0},
12513 { "_uint","_size_t",0},
12514 { "_uint","_unsigned_int",0},
12515 { "_uint","_int",0},
12516 { "_uint","_wxWindowID",0},
12517 { "_wxChar","_char",0},
12518 { "_char","_wxChar",0},
12519 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12520 { "_EBool","_wxCoord",0},
12521 { "_EBool","_wxPrintQuality",0},
12522 { "_EBool","_signed_int",0},
12523 { "_EBool","_int",0},
12524 { "_EBool","_wxWindowID",0},
12525 { "_unsigned_long","_long",0},
12526 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12527 { "_signed_int","_wxCoord",0},
12528 { "_signed_int","_wxPrintQuality",0},
12529 { "_signed_int","_EBool",0},
12530 { "_signed_int","_wxWindowID",0},
12531 { "_signed_int","_int",0},
12532 { "_WXTYPE","_short",0},
12533 { "_WXTYPE","_signed_short",0},
12534 { "_WXTYPE","_unsigned_short",0},
12535 { "_unsigned_short","_WXTYPE",0},
12536 { "_unsigned_short","_short",0},
12537 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12538 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12539 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12540 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12541 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
12542 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
12543 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12544 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12545 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12546 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12547 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12548 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12549 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12550 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12551 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12552 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12553 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12554 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12555 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12556 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12557 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12558 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12559 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12560 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12561 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12562 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12563 { "_signed_short","_WXTYPE",0},
12564 { "_signed_short","_short",0},
12565 { "_unsigned_char","_byte",0},
12566 { "_unsigned_int","_wxCoord",0},
12567 { "_unsigned_int","_wxPrintQuality",0},
12568 { "_unsigned_int","_time_t",0},
12569 { "_unsigned_int","_size_t",0},
12570 { "_unsigned_int","_uint",0},
12571 { "_unsigned_int","_wxWindowID",0},
12572 { "_unsigned_int","_int",0},
12573 { "_short","_WXTYPE",0},
12574 { "_short","_unsigned_short",0},
12575 { "_short","_signed_short",0},
12576 { "_wxWindowID","_wxCoord",0},
12577 { "_wxWindowID","_wxPrintQuality",0},
12578 { "_wxWindowID","_time_t",0},
12579 { "_wxWindowID","_size_t",0},
12580 { "_wxWindowID","_EBool",0},
12581 { "_wxWindowID","_uint",0},
12582 { "_wxWindowID","_int",0},
12583 { "_wxWindowID","_signed_int",0},
12584 { "_wxWindowID","_unsigned_int",0},
12585 { "_int","_wxCoord",0},
12586 { "_int","_wxPrintQuality",0},
12587 { "_int","_time_t",0},
12588 { "_int","_size_t",0},
12589 { "_int","_EBool",0},
12590 { "_int","_uint",0},
12591 { "_int","_wxWindowID",0},
12592 { "_int","_unsigned_int",0},
12593 { "_int","_signed_int",0},
12594 { "_time_t","_wxCoord",0},
12595 { "_time_t","_wxPrintQuality",0},
12596 { "_time_t","_unsigned_int",0},
12597 { "_time_t","_int",0},
12598 { "_time_t","_wxWindowID",0},
12599 { "_time_t","_uint",0},
12600 { "_time_t","_size_t",0},
12601 { "_wxCoord","_int",0},
12602 { "_wxCoord","_signed_int",0},
12603 { "_wxCoord","_unsigned_int",0},
12604 { "_wxCoord","_wxWindowID",0},
12605 { "_wxCoord","_uint",0},
12606 { "_wxCoord","_EBool",0},
12607 { "_wxCoord","_size_t",0},
12608 { "_wxCoord","_time_t",0},
12609 { "_wxCoord","_wxPrintQuality",0},
12612 static PyObject
*SWIG_globals
;
12616 SWIGEXPORT(void) initgdic() {
12618 SWIG_globals
= SWIG_newvarlink();
12619 m
= Py_InitModule("gdic", gdicMethods
);
12620 d
= PyModule_GetDict(m
);
12621 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12622 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12623 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12624 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12625 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12626 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12627 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12628 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12629 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12630 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12631 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12632 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12633 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12634 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12635 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12636 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12637 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12638 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12639 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12640 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12641 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12642 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12643 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12644 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12645 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12646 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12647 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12648 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12649 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12650 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12651 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12652 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12653 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12654 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12655 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12656 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12657 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12658 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12659 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12660 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12661 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12662 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12663 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12664 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
12665 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
12666 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
12667 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
12668 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12669 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12670 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12671 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12672 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12673 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12674 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12675 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12676 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12677 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12678 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12679 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12680 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12681 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12682 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12683 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12684 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12685 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12686 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12687 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12688 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12689 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12690 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12691 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12692 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12693 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12694 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12695 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12696 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12697 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12698 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12699 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12700 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12701 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12702 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12703 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12704 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12705 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12706 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12707 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12708 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12709 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12710 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12711 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12712 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12713 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12714 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12715 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12716 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12717 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12718 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12719 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12720 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12721 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12722 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12723 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12724 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12725 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12726 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12727 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12728 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12729 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12730 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12731 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12732 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12733 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12734 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12735 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12736 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12737 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12740 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12741 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);