2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
65 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyList_Check(target
)) {
75 target
= PyList_New(0);
76 PyList_Append(target
, o2
);
79 PyList_Append(target
,o
);
85 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
91 } else if (target
== Py_None
) {
95 if (!PyTuple_Check(target
)) {
97 target
= PyTuple_New(1);
98 PyTuple_SetItem(target
, 0, o2
);
101 PyTuple_SetItem(o3
, 0, o
);
104 target
= PySequence_Concat(o2
, o3
);
111 static char* wxStringErrorMsg
= "string type is required for parameter";
113 static wxString
wxPyEmptyStr("");
114 // Implementations of some alternate "constructors"
116 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
117 return new wxBitmap(width
, height
, depth
);
120 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
121 char** cArray
= NULL
;
124 if (!PyList_Check(listOfStrings
)) {
125 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
128 count
= PyList_Size(listOfStrings
);
129 cArray
= new char*[count
];
131 for(int x
=0; x
<count
; x
++) {
132 // TODO: Need some validation and error checking here
133 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
138 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
139 char** cArray
= NULL
;
142 cArray
= ConvertListOfStrings(listOfStrings
);
145 bmp
= new wxBitmap(cArray
);
151 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
152 return new wxBitmap(icon
);
157 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
158 int width
, int height
, int depth
= 1) {
159 if (! PyString_Check(data
)) {
160 PyErr_SetString(PyExc_TypeError
, "Expected string object");
164 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
168 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
169 return new wxMask(bitmap
, colour
);
171 // Implementations of some alternate "constructors"
172 wxIcon
* wxEmptyIcon() {
176 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
177 char** cArray
= NULL
;
180 cArray
= ConvertListOfStrings(listOfStrings
);
183 icon
= new wxIcon(cArray
);
187 // Alternate 'constructor'
188 wxCursor
* wxPyStockCursor(int id
) {
189 return new wxCursor(id
);
192 wxFontEncoding
wxFont_GetDefaultEncoding() {
193 return wxFont::GetDefaultEncoding();
196 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
197 wxFont::SetDefaultEncoding(encoding
);
199 // Alternate 'constructor'
200 wxColour
* wxNamedColour(const wxString
& colorName
) {
201 return new wxColour(colorName
);
203 // Alternate 'constructor'
204 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
205 return new wxMemoryDC(oldDC
);
209 extern wxFont
* wxNORMAL_FONT
;
210 extern wxFont
* wxSMALL_FONT
;
211 extern wxFont
* wxITALIC_FONT
;
212 extern wxFont
* wxSWISS_FONT
;
213 extern wxPen
* wxRED_PEN
;
214 extern wxPen
* wxCYAN_PEN
;
215 extern wxPen
* wxGREEN_PEN
;
216 extern wxPen
* wxBLACK_PEN
;
217 extern wxPen
* wxWHITE_PEN
;
218 extern wxPen
* wxTRANSPARENT_PEN
;
219 extern wxPen
* wxBLACK_DASHED_PEN
;
220 extern wxPen
* wxGREY_PEN
;
221 extern wxPen
* wxMEDIUM_GREY_PEN
;
222 extern wxPen
* wxLIGHT_GREY_PEN
;
223 extern wxBrush
* wxBLUE_BRUSH
;
224 extern wxBrush
* wxGREEN_BRUSH
;
225 extern wxBrush
* wxWHITE_BRUSH
;
226 extern wxBrush
* wxBLACK_BRUSH
;
227 extern wxBrush
* wxTRANSPARENT_BRUSH
;
228 extern wxBrush
* wxCYAN_BRUSH
;
229 extern wxBrush
* wxRED_BRUSH
;
230 extern wxBrush
* wxGREY_BRUSH
;
231 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
232 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
233 extern wxColour
* wxBLACK
;
234 extern wxColour
* wxWHITE
;
235 extern wxColour
* wxRED
;
236 extern wxColour
* wxBLUE
;
237 extern wxColour
* wxGREEN
;
238 extern wxColour
* wxCYAN
;
239 extern wxColour
* wxLIGHT_GREY
;
240 extern wxCursor
* wxSTANDARD_CURSOR
;
241 extern wxCursor
* wxHOURGLASS_CURSOR
;
242 extern wxCursor
* wxCROSS_CURSOR
;
243 extern wxBitmap wxNullBitmap
;
244 extern wxIcon wxNullIcon
;
245 extern wxCursor wxNullCursor
;
246 extern wxPen wxNullPen
;
247 extern wxBrush wxNullBrush
;
248 extern wxPalette wxNullPalette
;
249 extern wxFont wxNullFont
;
250 extern wxColour wxNullColour
;
251 extern wxFontList
* wxTheFontList
;
252 extern wxPenList
* wxThePenList
;
253 extern wxBrushlist
* wxTheBrushList
;
254 extern wxColourDatabase
* wxTheColourDatabase
;
260 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
261 PyObject
* _resultobj
;
265 int _arg2
= (int ) -1;
266 char *_kwnames
[] = { "width","height","depth", NULL
};
270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
273 wxPy_BEGIN_ALLOW_THREADS
;
274 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
276 wxPy_END_ALLOW_THREADS
;
278 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
279 _resultobj
= Py_BuildValue("s",_ptemp
);
282 _resultobj
= Py_None
;
287 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
288 PyObject
* _resultobj
;
291 PyObject
* _obj0
= 0;
292 char *_kwnames
[] = { "listOfStrings", NULL
};
296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
302 wxPy_BEGIN_ALLOW_THREADS
;
303 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
305 wxPy_END_ALLOW_THREADS
;
307 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
308 _resultobj
= Py_BuildValue("s",_ptemp
);
311 _resultobj
= Py_None
;
316 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
317 PyObject
* _resultobj
;
320 PyObject
* _argo0
= 0;
321 char *_kwnames
[] = { "icon", NULL
};
325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
335 wxPy_BEGIN_ALLOW_THREADS
;
336 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
338 wxPy_END_ALLOW_THREADS
;
340 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
341 _resultobj
= Py_BuildValue("s",_ptemp
);
344 _resultobj
= Py_None
;
349 static PyObject
*_wrap_wxBitmapFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
350 PyObject
* _resultobj
;
356 int _arg4
= (int ) 1;
357 PyObject
* _obj0
= 0;
358 char *_kwnames
[] = { "data","type","width","height","depth", NULL
};
362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olii|i:wxBitmapFromData",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
368 wxPy_BEGIN_ALLOW_THREADS
;
369 _result
= (wxBitmap
*)wxBitmapFromData(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
371 wxPy_END_ALLOW_THREADS
;
373 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
374 _resultobj
= Py_BuildValue("s",_ptemp
);
377 _resultobj
= Py_None
;
382 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
383 PyObject
* _resultobj
;
387 PyObject
* _argo0
= 0;
389 PyObject
* _obj1
= 0;
390 char *_kwnames
[] = { "bitmap","colour", NULL
};
394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
405 if (! wxColour_helper(_obj1
, &_arg1
))
409 wxPy_BEGIN_ALLOW_THREADS
;
410 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
412 wxPy_END_ALLOW_THREADS
;
414 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
415 _resultobj
= Py_BuildValue("s",_ptemp
);
418 _resultobj
= Py_None
;
423 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
424 PyObject
* _resultobj
;
426 char *_kwnames
[] = { NULL
};
430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
433 wxPy_BEGIN_ALLOW_THREADS
;
434 _result
= (wxIcon
*)wxEmptyIcon();
436 wxPy_END_ALLOW_THREADS
;
438 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
439 _resultobj
= Py_BuildValue("s",_ptemp
);
442 _resultobj
= Py_None
;
447 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
448 PyObject
* _resultobj
;
451 PyObject
* _obj0
= 0;
452 char *_kwnames
[] = { "listOfStrings", NULL
};
456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
462 wxPy_BEGIN_ALLOW_THREADS
;
463 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
465 wxPy_END_ALLOW_THREADS
;
467 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
468 _resultobj
= Py_BuildValue("s",_ptemp
);
471 _resultobj
= Py_None
;
476 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
477 PyObject
* _resultobj
;
480 char *_kwnames
[] = { "id", NULL
};
484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
487 wxPy_BEGIN_ALLOW_THREADS
;
488 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
490 wxPy_END_ALLOW_THREADS
;
492 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
493 _resultobj
= Py_BuildValue("s",_ptemp
);
496 _resultobj
= Py_None
;
501 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
502 PyObject
* _resultobj
;
503 wxFontEncoding _result
;
504 char *_kwnames
[] = { NULL
};
507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
510 wxPy_BEGIN_ALLOW_THREADS
;
511 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
513 wxPy_END_ALLOW_THREADS
;
514 } _resultobj
= Py_BuildValue("i",_result
);
518 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
519 PyObject
* _resultobj
;
520 wxFontEncoding _arg0
;
521 char *_kwnames
[] = { "encoding", NULL
};
524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
527 wxPy_BEGIN_ALLOW_THREADS
;
528 wxFont_SetDefaultEncoding(_arg0
);
530 wxPy_END_ALLOW_THREADS
;
531 } Py_INCREF(Py_None
);
532 _resultobj
= Py_None
;
536 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
537 PyObject
* _resultobj
;
540 PyObject
* _obj0
= 0;
541 char *_kwnames
[] = { "colorName", NULL
};
545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
548 #if PYTHON_API_VERSION >= 1009
549 char* tmpPtr
; int tmpSize
;
550 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
551 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
554 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
556 _arg0
= new wxString(tmpPtr
, tmpSize
);
558 if (!PyString_Check(_obj0
)) {
559 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
562 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
566 wxPy_BEGIN_ALLOW_THREADS
;
567 _result
= (wxColour
*)wxNamedColour(*_arg0
);
569 wxPy_END_ALLOW_THREADS
;
571 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
572 _resultobj
= Py_BuildValue("s",_ptemp
);
575 _resultobj
= Py_None
;
584 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
585 PyObject
* _resultobj
;
586 wxMemoryDC
* _result
;
588 PyObject
* _argo0
= 0;
589 char *_kwnames
[] = { "oldDC", NULL
};
593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
603 wxPy_BEGIN_ALLOW_THREADS
;
604 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
606 wxPy_END_ALLOW_THREADS
;
608 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
609 _resultobj
= Py_BuildValue("s",_ptemp
);
612 _resultobj
= Py_None
;
617 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
619 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
623 static PyObject
*_wrap_wxNORMAL_FONT_get() {
627 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
628 pyobj
= PyString_FromString(ptemp
);
632 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
634 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
638 static PyObject
*_wrap_wxSMALL_FONT_get() {
642 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
643 pyobj
= PyString_FromString(ptemp
);
647 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
649 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
653 static PyObject
*_wrap_wxITALIC_FONT_get() {
657 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
658 pyobj
= PyString_FromString(ptemp
);
662 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
664 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
668 static PyObject
*_wrap_wxSWISS_FONT_get() {
672 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
673 pyobj
= PyString_FromString(ptemp
);
677 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
679 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
683 static PyObject
*_wrap_wxRED_PEN_get() {
687 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
688 pyobj
= PyString_FromString(ptemp
);
692 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
694 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
698 static PyObject
*_wrap_wxCYAN_PEN_get() {
702 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
703 pyobj
= PyString_FromString(ptemp
);
707 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
709 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
713 static PyObject
*_wrap_wxGREEN_PEN_get() {
717 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
718 pyobj
= PyString_FromString(ptemp
);
722 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
724 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
728 static PyObject
*_wrap_wxBLACK_PEN_get() {
732 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
733 pyobj
= PyString_FromString(ptemp
);
737 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
739 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
743 static PyObject
*_wrap_wxWHITE_PEN_get() {
747 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
748 pyobj
= PyString_FromString(ptemp
);
752 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
754 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
758 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
762 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
763 pyobj
= PyString_FromString(ptemp
);
767 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
769 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
773 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
777 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
778 pyobj
= PyString_FromString(ptemp
);
782 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
784 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
788 static PyObject
*_wrap_wxGREY_PEN_get() {
792 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
793 pyobj
= PyString_FromString(ptemp
);
797 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
799 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
803 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
807 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
808 pyobj
= PyString_FromString(ptemp
);
812 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
814 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
818 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
822 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
823 pyobj
= PyString_FromString(ptemp
);
827 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
829 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
833 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
837 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
838 pyobj
= PyString_FromString(ptemp
);
842 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
844 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
848 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
852 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
853 pyobj
= PyString_FromString(ptemp
);
857 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
859 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
863 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
867 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
868 pyobj
= PyString_FromString(ptemp
);
872 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
874 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
878 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
882 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
883 pyobj
= PyString_FromString(ptemp
);
887 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
889 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
893 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
897 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
898 pyobj
= PyString_FromString(ptemp
);
902 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
904 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
908 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
912 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
913 pyobj
= PyString_FromString(ptemp
);
917 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
919 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
923 static PyObject
*_wrap_wxRED_BRUSH_get() {
927 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
928 pyobj
= PyString_FromString(ptemp
);
932 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
934 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
938 static PyObject
*_wrap_wxGREY_BRUSH_get() {
942 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
943 pyobj
= PyString_FromString(ptemp
);
947 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
949 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
953 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
957 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
958 pyobj
= PyString_FromString(ptemp
);
962 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
964 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
968 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
972 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
973 pyobj
= PyString_FromString(ptemp
);
977 static int _wrap_wxBLACK_set(PyObject
*val
) {
979 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
983 static PyObject
*_wrap_wxBLACK_get() {
987 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
988 pyobj
= PyString_FromString(ptemp
);
992 static int _wrap_wxWHITE_set(PyObject
*val
) {
994 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
998 static PyObject
*_wrap_wxWHITE_get() {
1002 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1003 pyobj
= PyString_FromString(ptemp
);
1007 static int _wrap_wxRED_set(PyObject
*val
) {
1009 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1013 static PyObject
*_wrap_wxRED_get() {
1017 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1018 pyobj
= PyString_FromString(ptemp
);
1022 static int _wrap_wxBLUE_set(PyObject
*val
) {
1024 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1028 static PyObject
*_wrap_wxBLUE_get() {
1032 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1033 pyobj
= PyString_FromString(ptemp
);
1037 static int _wrap_wxGREEN_set(PyObject
*val
) {
1039 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1043 static PyObject
*_wrap_wxGREEN_get() {
1047 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1048 pyobj
= PyString_FromString(ptemp
);
1052 static int _wrap_wxCYAN_set(PyObject
*val
) {
1054 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1058 static PyObject
*_wrap_wxCYAN_get() {
1062 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1063 pyobj
= PyString_FromString(ptemp
);
1067 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1069 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1073 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1077 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1078 pyobj
= PyString_FromString(ptemp
);
1082 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1084 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1088 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1092 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1093 pyobj
= PyString_FromString(ptemp
);
1097 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1099 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1103 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1107 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1108 pyobj
= PyString_FromString(ptemp
);
1112 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1114 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1118 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1122 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1123 pyobj
= PyString_FromString(ptemp
);
1127 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1129 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1133 static PyObject
*_wrap_wxNullBitmap_get() {
1137 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1138 pyobj
= PyString_FromString(ptemp
);
1142 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1144 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1148 static PyObject
*_wrap_wxNullIcon_get() {
1152 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1153 pyobj
= PyString_FromString(ptemp
);
1157 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1159 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1163 static PyObject
*_wrap_wxNullCursor_get() {
1167 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1168 pyobj
= PyString_FromString(ptemp
);
1172 static int _wrap_wxNullPen_set(PyObject
*val
) {
1174 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1178 static PyObject
*_wrap_wxNullPen_get() {
1182 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1183 pyobj
= PyString_FromString(ptemp
);
1187 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1189 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1193 static PyObject
*_wrap_wxNullBrush_get() {
1197 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1198 pyobj
= PyString_FromString(ptemp
);
1202 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1204 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1208 static PyObject
*_wrap_wxNullPalette_get() {
1212 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1213 pyobj
= PyString_FromString(ptemp
);
1217 static int _wrap_wxNullFont_set(PyObject
*val
) {
1219 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1223 static PyObject
*_wrap_wxNullFont_get() {
1227 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1228 pyobj
= PyString_FromString(ptemp
);
1232 static int _wrap_wxNullColour_set(PyObject
*val
) {
1234 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1238 static PyObject
*_wrap_wxNullColour_get() {
1242 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1243 pyobj
= PyString_FromString(ptemp
);
1247 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1249 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1253 static PyObject
*_wrap_wxTheFontList_get() {
1257 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1258 pyobj
= PyString_FromString(ptemp
);
1262 static int _wrap_wxThePenList_set(PyObject
*val
) {
1264 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1268 static PyObject
*_wrap_wxThePenList_get() {
1272 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1273 pyobj
= PyString_FromString(ptemp
);
1277 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1279 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1283 static PyObject
*_wrap_wxTheBrushList_get() {
1287 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1288 pyobj
= PyString_FromString(ptemp
);
1292 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1294 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1298 static PyObject
*_wrap_wxTheColourDatabase_get() {
1302 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1303 pyobj
= PyString_FromString(ptemp
);
1307 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1308 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1309 PyObject
* _resultobj
;
1313 PyObject
* _obj0
= 0;
1314 char *_kwnames
[] = { "name","type", NULL
};
1318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1321 #if PYTHON_API_VERSION >= 1009
1322 char* tmpPtr
; int tmpSize
;
1323 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1324 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1327 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1329 _arg0
= new wxString(tmpPtr
, tmpSize
);
1331 if (!PyString_Check(_obj0
)) {
1332 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1335 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1339 wxPy_BEGIN_ALLOW_THREADS
;
1340 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1342 wxPy_END_ALLOW_THREADS
;
1344 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1345 _resultobj
= Py_BuildValue("s",_ptemp
);
1348 _resultobj
= Py_None
;
1357 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1358 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1359 PyObject
* _resultobj
;
1361 PyObject
* _argo0
= 0;
1362 char *_kwnames
[] = { "self", NULL
};
1365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1375 wxPy_BEGIN_ALLOW_THREADS
;
1376 delete_wxBitmap(_arg0
);
1378 wxPy_END_ALLOW_THREADS
;
1379 } Py_INCREF(Py_None
);
1380 _resultobj
= Py_None
;
1384 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1385 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1386 PyObject
* _resultobj
;
1387 wxPalette
* _result
;
1389 PyObject
* _argo0
= 0;
1390 char *_kwnames
[] = { "self", NULL
};
1394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1404 wxPy_BEGIN_ALLOW_THREADS
;
1405 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1407 wxPy_END_ALLOW_THREADS
;
1409 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1410 _resultobj
= Py_BuildValue("s",_ptemp
);
1413 _resultobj
= Py_None
;
1418 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1419 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1420 PyObject
* _resultobj
;
1423 PyObject
* _argo0
= 0;
1424 char *_kwnames
[] = { "self", NULL
};
1428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1438 wxPy_BEGIN_ALLOW_THREADS
;
1439 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1441 wxPy_END_ALLOW_THREADS
;
1443 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1444 _resultobj
= Py_BuildValue("s",_ptemp
);
1447 _resultobj
= Py_None
;
1452 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1453 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1454 PyObject
* _resultobj
;
1459 PyObject
* _argo0
= 0;
1460 PyObject
* _obj1
= 0;
1461 char *_kwnames
[] = { "self","name","flags", NULL
};
1464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1474 #if PYTHON_API_VERSION >= 1009
1475 char* tmpPtr
; int tmpSize
;
1476 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1477 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1480 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1482 _arg1
= new wxString(tmpPtr
, tmpSize
);
1484 if (!PyString_Check(_obj1
)) {
1485 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1488 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1492 wxPy_BEGIN_ALLOW_THREADS
;
1493 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1495 wxPy_END_ALLOW_THREADS
;
1496 } _resultobj
= Py_BuildValue("i",_result
);
1504 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1505 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1506 PyObject
* _resultobj
;
1511 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1512 PyObject
* _argo0
= 0;
1513 PyObject
* _obj1
= 0;
1514 PyObject
* _argo3
= 0;
1515 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1528 #if PYTHON_API_VERSION >= 1009
1529 char* tmpPtr
; int tmpSize
;
1530 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1531 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1534 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1536 _arg1
= new wxString(tmpPtr
, tmpSize
);
1538 if (!PyString_Check(_obj1
)) {
1539 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1542 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1546 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1547 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1553 wxPy_BEGIN_ALLOW_THREADS
;
1554 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1556 wxPy_END_ALLOW_THREADS
;
1557 } _resultobj
= Py_BuildValue("i",_result
);
1565 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1566 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1567 PyObject
* _resultobj
;
1570 PyObject
* _argo0
= 0;
1571 PyObject
* _argo1
= 0;
1572 char *_kwnames
[] = { "self","mask", NULL
};
1575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1585 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1586 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1592 wxPy_BEGIN_ALLOW_THREADS
;
1593 wxBitmap_SetMask(_arg0
,_arg1
);
1595 wxPy_END_ALLOW_THREADS
;
1596 } Py_INCREF(Py_None
);
1597 _resultobj
= Py_None
;
1601 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1602 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1603 PyObject
* _resultobj
;
1606 PyObject
* _argo0
= 0;
1607 PyObject
* _argo1
= 0;
1608 char *_kwnames
[] = { "self","palette", NULL
};
1611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1621 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1622 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1628 wxPy_BEGIN_ALLOW_THREADS
;
1629 wxBitmap_SetPalette(_arg0
,*_arg1
);
1631 wxPy_END_ALLOW_THREADS
;
1632 } Py_INCREF(Py_None
);
1633 _resultobj
= Py_None
;
1637 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1638 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1639 PyObject
* _resultobj
;
1642 PyObject
* _argo0
= 0;
1643 char *_kwnames
[] = { "self", NULL
};
1646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1656 wxPy_BEGIN_ALLOW_THREADS
;
1657 _result
= (long )wxBitmap_GetHandle(_arg0
);
1659 wxPy_END_ALLOW_THREADS
;
1660 } _resultobj
= Py_BuildValue("l",_result
);
1664 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1665 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1666 PyObject
* _resultobj
;
1669 PyObject
* _argo0
= 0;
1670 char *_kwnames
[] = { "self","handle", NULL
};
1673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1683 wxPy_BEGIN_ALLOW_THREADS
;
1684 wxBitmap_SetHandle(_arg0
,_arg1
);
1686 wxPy_END_ALLOW_THREADS
;
1687 } Py_INCREF(Py_None
);
1688 _resultobj
= Py_None
;
1692 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1693 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1694 PyObject
* _resultobj
;
1697 PyObject
* _argo0
= 0;
1698 char *_kwnames
[] = { "self", NULL
};
1701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1711 wxPy_BEGIN_ALLOW_THREADS
;
1712 _result
= (bool )wxBitmap_Ok(_arg0
);
1714 wxPy_END_ALLOW_THREADS
;
1715 } _resultobj
= Py_BuildValue("i",_result
);
1719 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1720 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1721 PyObject
* _resultobj
;
1724 PyObject
* _argo0
= 0;
1725 char *_kwnames
[] = { "self", NULL
};
1728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
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_GetWidth. Expected _wxBitmap_p.");
1738 wxPy_BEGIN_ALLOW_THREADS
;
1739 _result
= (int )wxBitmap_GetWidth(_arg0
);
1741 wxPy_END_ALLOW_THREADS
;
1742 } _resultobj
= Py_BuildValue("i",_result
);
1746 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1747 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
* _resultobj
;
1751 PyObject
* _argo0
= 0;
1752 char *_kwnames
[] = { "self", NULL
};
1755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1765 wxPy_BEGIN_ALLOW_THREADS
;
1766 _result
= (int )wxBitmap_GetHeight(_arg0
);
1768 wxPy_END_ALLOW_THREADS
;
1769 } _resultobj
= Py_BuildValue("i",_result
);
1773 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1774 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1775 PyObject
* _resultobj
;
1778 PyObject
* _argo0
= 0;
1779 char *_kwnames
[] = { "self", NULL
};
1782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1792 wxPy_BEGIN_ALLOW_THREADS
;
1793 _result
= (int )wxBitmap_GetDepth(_arg0
);
1795 wxPy_END_ALLOW_THREADS
;
1796 } _resultobj
= Py_BuildValue("i",_result
);
1800 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1801 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1802 PyObject
* _resultobj
;
1805 PyObject
* _argo0
= 0;
1806 char *_kwnames
[] = { "self","w", NULL
};
1809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1819 wxPy_BEGIN_ALLOW_THREADS
;
1820 wxBitmap_SetWidth(_arg0
,_arg1
);
1822 wxPy_END_ALLOW_THREADS
;
1823 } Py_INCREF(Py_None
);
1824 _resultobj
= Py_None
;
1828 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1829 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1830 PyObject
* _resultobj
;
1833 PyObject
* _argo0
= 0;
1834 char *_kwnames
[] = { "self","h", NULL
};
1837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1847 wxPy_BEGIN_ALLOW_THREADS
;
1848 wxBitmap_SetHeight(_arg0
,_arg1
);
1850 wxPy_END_ALLOW_THREADS
;
1851 } Py_INCREF(Py_None
);
1852 _resultobj
= Py_None
;
1856 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1857 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1858 PyObject
* _resultobj
;
1861 PyObject
* _argo0
= 0;
1862 char *_kwnames
[] = { "self","d", NULL
};
1865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1875 wxPy_BEGIN_ALLOW_THREADS
;
1876 wxBitmap_SetDepth(_arg0
,_arg1
);
1878 wxPy_END_ALLOW_THREADS
;
1879 } Py_INCREF(Py_None
);
1880 _resultobj
= Py_None
;
1884 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
1885 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1886 PyObject
* _resultobj
;
1889 PyObject
* _argo0
= 0;
1891 PyObject
* _obj1
= 0;
1892 char *_kwnames
[] = { "self","size", NULL
};
1895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
1898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
1906 if (! wxSize_helper(_obj1
, &_arg1
))
1910 wxPy_BEGIN_ALLOW_THREADS
;
1911 wxBitmap_SetSize(_arg0
,*_arg1
);
1913 wxPy_END_ALLOW_THREADS
;
1914 } Py_INCREF(Py_None
);
1915 _resultobj
= Py_None
;
1919 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1920 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1921 PyObject
* _resultobj
;
1925 PyObject
* _argo0
= 0;
1927 PyObject
* _obj1
= 0;
1928 char *_kwnames
[] = { "self","rect", NULL
};
1932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1943 if (! wxRect_helper(_obj1
, &_arg1
))
1947 wxPy_BEGIN_ALLOW_THREADS
;
1948 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1950 wxPy_END_ALLOW_THREADS
;
1951 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1952 _resultobj
= Py_BuildValue("s",_ptemp
);
1956 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1957 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
* _resultobj
;
1962 PyObject
* _argo0
= 0;
1963 PyObject
* _argo1
= 0;
1964 char *_kwnames
[] = { "self","icon", NULL
};
1967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
1970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
1977 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1978 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
1979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
1984 wxPy_BEGIN_ALLOW_THREADS
;
1985 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
1987 wxPy_END_ALLOW_THREADS
;
1988 } _resultobj
= Py_BuildValue("i",_result
);
1992 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
1993 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1994 PyObject
* _resultobj
;
1998 PyObject
* _argo0
= 0;
1999 PyObject
* _argo1
= 0;
2000 char *_kwnames
[] = { "self","cursor", NULL
};
2003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2013 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2014 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2020 wxPy_BEGIN_ALLOW_THREADS
;
2021 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2023 wxPy_END_ALLOW_THREADS
;
2024 } _resultobj
= Py_BuildValue("i",_result
);
2028 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2029 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2030 PyObject
* _resultobj
;
2033 PyObject
* _argo0
= 0;
2034 char *_kwnames
[] = { "self", NULL
};
2037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2047 wxPy_BEGIN_ALLOW_THREADS
;
2048 _result
= (int )wxBitmap_GetQuality(_arg0
);
2050 wxPy_END_ALLOW_THREADS
;
2051 } _resultobj
= Py_BuildValue("i",_result
);
2055 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2056 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2057 PyObject
* _resultobj
;
2060 PyObject
* _argo0
= 0;
2061 char *_kwnames
[] = { "self","q", NULL
};
2064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2074 wxPy_BEGIN_ALLOW_THREADS
;
2075 wxBitmap_SetQuality(_arg0
,_arg1
);
2077 wxPy_END_ALLOW_THREADS
;
2078 } Py_INCREF(Py_None
);
2079 _resultobj
= Py_None
;
2083 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2084 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2085 PyObject
* _resultobj
;
2088 PyObject
* _argo0
= 0;
2089 char *_kwnames
[] = { "bitmap", NULL
};
2093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2103 wxPy_BEGIN_ALLOW_THREADS
;
2104 _result
= (wxMask
*)new_wxMask(*_arg0
);
2106 wxPy_END_ALLOW_THREADS
;
2108 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2109 _resultobj
= Py_BuildValue("s",_ptemp
);
2112 _resultobj
= Py_None
;
2117 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2118 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2119 PyObject
* _resultobj
;
2121 PyObject
* _argo0
= 0;
2122 char *_kwnames
[] = { "self", NULL
};
2125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2135 wxPy_BEGIN_ALLOW_THREADS
;
2136 wxMask_Destroy(_arg0
);
2138 wxPy_END_ALLOW_THREADS
;
2139 } Py_INCREF(Py_None
);
2140 _resultobj
= Py_None
;
2144 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2145 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2146 PyObject
* _resultobj
;
2150 int _arg2
= (int ) -1;
2151 int _arg3
= (int ) -1;
2152 PyObject
* _obj0
= 0;
2153 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2160 #if PYTHON_API_VERSION >= 1009
2161 char* tmpPtr
; int tmpSize
;
2162 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2163 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2166 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2168 _arg0
= new wxString(tmpPtr
, tmpSize
);
2170 if (!PyString_Check(_obj0
)) {
2171 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2174 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2178 wxPy_BEGIN_ALLOW_THREADS
;
2179 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2181 wxPy_END_ALLOW_THREADS
;
2183 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2184 _resultobj
= Py_BuildValue("s",_ptemp
);
2187 _resultobj
= Py_None
;
2196 #define delete_wxIcon(_swigobj) (delete _swigobj)
2197 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
* _resultobj
;
2200 PyObject
* _argo0
= 0;
2201 char *_kwnames
[] = { "self", NULL
};
2204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2214 wxPy_BEGIN_ALLOW_THREADS
;
2215 delete_wxIcon(_arg0
);
2217 wxPy_END_ALLOW_THREADS
;
2218 } Py_INCREF(Py_None
);
2219 _resultobj
= Py_None
;
2223 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2224 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2225 PyObject
* _resultobj
;
2230 PyObject
* _argo0
= 0;
2231 PyObject
* _obj1
= 0;
2232 char *_kwnames
[] = { "self","name","flags", NULL
};
2235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2245 #if PYTHON_API_VERSION >= 1009
2246 char* tmpPtr
; int tmpSize
;
2247 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2248 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2251 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2253 _arg1
= new wxString(tmpPtr
, tmpSize
);
2255 if (!PyString_Check(_obj1
)) {
2256 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2259 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2263 wxPy_BEGIN_ALLOW_THREADS
;
2264 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2266 wxPy_END_ALLOW_THREADS
;
2267 } _resultobj
= Py_BuildValue("i",_result
);
2275 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2276 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2277 PyObject
* _resultobj
;
2280 PyObject
* _argo0
= 0;
2281 char *_kwnames
[] = { "self", NULL
};
2284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2294 wxPy_BEGIN_ALLOW_THREADS
;
2295 _result
= (long )wxIcon_GetHandle(_arg0
);
2297 wxPy_END_ALLOW_THREADS
;
2298 } _resultobj
= Py_BuildValue("l",_result
);
2302 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2303 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2304 PyObject
* _resultobj
;
2307 PyObject
* _argo0
= 0;
2308 char *_kwnames
[] = { "self","handle", NULL
};
2311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2321 wxPy_BEGIN_ALLOW_THREADS
;
2322 wxIcon_SetHandle(_arg0
,_arg1
);
2324 wxPy_END_ALLOW_THREADS
;
2325 } Py_INCREF(Py_None
);
2326 _resultobj
= Py_None
;
2330 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2331 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2332 PyObject
* _resultobj
;
2335 PyObject
* _argo0
= 0;
2336 char *_kwnames
[] = { "self", NULL
};
2339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2349 wxPy_BEGIN_ALLOW_THREADS
;
2350 _result
= (bool )wxIcon_Ok(_arg0
);
2352 wxPy_END_ALLOW_THREADS
;
2353 } _resultobj
= Py_BuildValue("i",_result
);
2357 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2358 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2362 PyObject
* _argo0
= 0;
2363 char *_kwnames
[] = { "self", NULL
};
2366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2376 wxPy_BEGIN_ALLOW_THREADS
;
2377 _result
= (int )wxIcon_GetWidth(_arg0
);
2379 wxPy_END_ALLOW_THREADS
;
2380 } _resultobj
= Py_BuildValue("i",_result
);
2384 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2385 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2386 PyObject
* _resultobj
;
2389 PyObject
* _argo0
= 0;
2390 char *_kwnames
[] = { "self", NULL
};
2393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2403 wxPy_BEGIN_ALLOW_THREADS
;
2404 _result
= (int )wxIcon_GetHeight(_arg0
);
2406 wxPy_END_ALLOW_THREADS
;
2407 } _resultobj
= Py_BuildValue("i",_result
);
2411 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2412 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2413 PyObject
* _resultobj
;
2416 PyObject
* _argo0
= 0;
2417 char *_kwnames
[] = { "self", NULL
};
2420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2430 wxPy_BEGIN_ALLOW_THREADS
;
2431 _result
= (int )wxIcon_GetDepth(_arg0
);
2433 wxPy_END_ALLOW_THREADS
;
2434 } _resultobj
= Py_BuildValue("i",_result
);
2438 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2439 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2440 PyObject
* _resultobj
;
2443 PyObject
* _argo0
= 0;
2444 char *_kwnames
[] = { "self","w", NULL
};
2447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2457 wxPy_BEGIN_ALLOW_THREADS
;
2458 wxIcon_SetWidth(_arg0
,_arg1
);
2460 wxPy_END_ALLOW_THREADS
;
2461 } Py_INCREF(Py_None
);
2462 _resultobj
= Py_None
;
2466 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2467 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2468 PyObject
* _resultobj
;
2471 PyObject
* _argo0
= 0;
2472 char *_kwnames
[] = { "self","h", NULL
};
2475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2485 wxPy_BEGIN_ALLOW_THREADS
;
2486 wxIcon_SetHeight(_arg0
,_arg1
);
2488 wxPy_END_ALLOW_THREADS
;
2489 } Py_INCREF(Py_None
);
2490 _resultobj
= Py_None
;
2494 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2495 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2496 PyObject
* _resultobj
;
2499 PyObject
* _argo0
= 0;
2500 char *_kwnames
[] = { "self","d", NULL
};
2503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2513 wxPy_BEGIN_ALLOW_THREADS
;
2514 wxIcon_SetDepth(_arg0
,_arg1
);
2516 wxPy_END_ALLOW_THREADS
;
2517 } Py_INCREF(Py_None
);
2518 _resultobj
= Py_None
;
2522 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2523 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2524 PyObject
* _resultobj
;
2527 PyObject
* _argo0
= 0;
2529 PyObject
* _obj1
= 0;
2530 char *_kwnames
[] = { "self","size", NULL
};
2533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2544 if (! wxSize_helper(_obj1
, &_arg1
))
2548 wxPy_BEGIN_ALLOW_THREADS
;
2549 wxIcon_SetSize(_arg0
,*_arg1
);
2551 wxPy_END_ALLOW_THREADS
;
2552 } Py_INCREF(Py_None
);
2553 _resultobj
= Py_None
;
2557 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2558 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2559 PyObject
* _resultobj
;
2562 PyObject
* _argo0
= 0;
2563 PyObject
* _argo1
= 0;
2564 char *_kwnames
[] = { "self","bmp", NULL
};
2567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2577 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2578 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2584 wxPy_BEGIN_ALLOW_THREADS
;
2585 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2587 wxPy_END_ALLOW_THREADS
;
2588 } Py_INCREF(Py_None
);
2589 _resultobj
= Py_None
;
2593 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2594 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2595 PyObject
* _resultobj
;
2599 int _arg2
= (int ) 0;
2600 int _arg3
= (int ) 0;
2601 PyObject
* _obj0
= 0;
2602 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2609 #if PYTHON_API_VERSION >= 1009
2610 char* tmpPtr
; int tmpSize
;
2611 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2612 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2615 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2617 _arg0
= new wxString(tmpPtr
, tmpSize
);
2619 if (!PyString_Check(_obj0
)) {
2620 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2623 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2627 wxPy_BEGIN_ALLOW_THREADS
;
2628 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2630 wxPy_END_ALLOW_THREADS
;
2632 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2633 _resultobj
= Py_BuildValue("s",_ptemp
);
2636 _resultobj
= Py_None
;
2645 #define delete_wxCursor(_swigobj) (delete _swigobj)
2646 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2647 PyObject
* _resultobj
;
2649 PyObject
* _argo0
= 0;
2650 char *_kwnames
[] = { "self", NULL
};
2653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2663 wxPy_BEGIN_ALLOW_THREADS
;
2664 delete_wxCursor(_arg0
);
2666 wxPy_END_ALLOW_THREADS
;
2667 } Py_INCREF(Py_None
);
2668 _resultobj
= Py_None
;
2672 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2673 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2674 PyObject
* _resultobj
;
2677 PyObject
* _argo0
= 0;
2678 char *_kwnames
[] = { "self", NULL
};
2681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2691 wxPy_BEGIN_ALLOW_THREADS
;
2692 _result
= (long )wxCursor_GetHandle(_arg0
);
2694 wxPy_END_ALLOW_THREADS
;
2695 } _resultobj
= Py_BuildValue("l",_result
);
2699 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2700 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2701 PyObject
* _resultobj
;
2704 PyObject
* _argo0
= 0;
2705 char *_kwnames
[] = { "self","handle", NULL
};
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2718 wxPy_BEGIN_ALLOW_THREADS
;
2719 wxCursor_SetHandle(_arg0
,_arg1
);
2721 wxPy_END_ALLOW_THREADS
;
2722 } Py_INCREF(Py_None
);
2723 _resultobj
= Py_None
;
2727 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2728 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2729 PyObject
* _resultobj
;
2732 PyObject
* _argo0
= 0;
2733 char *_kwnames
[] = { "self", NULL
};
2736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2746 wxPy_BEGIN_ALLOW_THREADS
;
2747 _result
= (bool )wxCursor_Ok(_arg0
);
2749 wxPy_END_ALLOW_THREADS
;
2750 } _resultobj
= Py_BuildValue("i",_result
);
2754 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2755 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2756 PyObject
* _resultobj
;
2759 PyObject
* _argo0
= 0;
2760 char *_kwnames
[] = { "self", NULL
};
2763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2773 wxPy_BEGIN_ALLOW_THREADS
;
2774 _result
= (int )wxCursor_GetWidth(_arg0
);
2776 wxPy_END_ALLOW_THREADS
;
2777 } _resultobj
= Py_BuildValue("i",_result
);
2781 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
2782 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2783 PyObject
* _resultobj
;
2786 PyObject
* _argo0
= 0;
2787 char *_kwnames
[] = { "self", NULL
};
2790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
2793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
2800 wxPy_BEGIN_ALLOW_THREADS
;
2801 _result
= (int )wxCursor_GetHeight(_arg0
);
2803 wxPy_END_ALLOW_THREADS
;
2804 } _resultobj
= Py_BuildValue("i",_result
);
2808 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
2809 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2810 PyObject
* _resultobj
;
2813 PyObject
* _argo0
= 0;
2814 char *_kwnames
[] = { "self", NULL
};
2817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
2820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
2827 wxPy_BEGIN_ALLOW_THREADS
;
2828 _result
= (int )wxCursor_GetDepth(_arg0
);
2830 wxPy_END_ALLOW_THREADS
;
2831 } _resultobj
= Py_BuildValue("i",_result
);
2835 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2836 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
* _resultobj
;
2840 PyObject
* _argo0
= 0;
2841 char *_kwnames
[] = { "self","w", NULL
};
2844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
2854 wxPy_BEGIN_ALLOW_THREADS
;
2855 wxCursor_SetWidth(_arg0
,_arg1
);
2857 wxPy_END_ALLOW_THREADS
;
2858 } Py_INCREF(Py_None
);
2859 _resultobj
= Py_None
;
2863 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2864 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2865 PyObject
* _resultobj
;
2868 PyObject
* _argo0
= 0;
2869 char *_kwnames
[] = { "self","h", NULL
};
2872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
2882 wxPy_BEGIN_ALLOW_THREADS
;
2883 wxCursor_SetHeight(_arg0
,_arg1
);
2885 wxPy_END_ALLOW_THREADS
;
2886 } Py_INCREF(Py_None
);
2887 _resultobj
= Py_None
;
2891 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2892 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2893 PyObject
* _resultobj
;
2896 PyObject
* _argo0
= 0;
2897 char *_kwnames
[] = { "self","d", NULL
};
2900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
2910 wxPy_BEGIN_ALLOW_THREADS
;
2911 wxCursor_SetDepth(_arg0
,_arg1
);
2913 wxPy_END_ALLOW_THREADS
;
2914 } Py_INCREF(Py_None
);
2915 _resultobj
= Py_None
;
2919 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2920 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2921 PyObject
* _resultobj
;
2924 PyObject
* _argo0
= 0;
2926 PyObject
* _obj1
= 0;
2927 char *_kwnames
[] = { "self","size", NULL
};
2930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
2933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
2941 if (! wxSize_helper(_obj1
, &_arg1
))
2945 wxPy_BEGIN_ALLOW_THREADS
;
2946 wxCursor_SetSize(_arg0
,*_arg1
);
2948 wxPy_END_ALLOW_THREADS
;
2949 } Py_INCREF(Py_None
);
2950 _resultobj
= Py_None
;
2954 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2955 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2956 PyObject
* _resultobj
;
2962 int _arg4
= (int ) FALSE
;
2963 char * _arg5
= (char *) "";
2964 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2965 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2972 wxPy_BEGIN_ALLOW_THREADS
;
2973 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2975 wxPy_END_ALLOW_THREADS
;
2977 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2978 _resultobj
= Py_BuildValue("s",_ptemp
);
2981 _resultobj
= Py_None
;
2986 #define delete_wxFont(_swigobj) (delete _swigobj)
2987 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2988 PyObject
* _resultobj
;
2990 PyObject
* _argo0
= 0;
2991 char *_kwnames
[] = { "self", NULL
};
2994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
2997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3004 wxPy_BEGIN_ALLOW_THREADS
;
3005 delete_wxFont(_arg0
);
3007 wxPy_END_ALLOW_THREADS
;
3008 } Py_INCREF(Py_None
);
3009 _resultobj
= Py_None
;
3013 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3014 static PyObject
*_wrap_wxFont_Ok(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:wxFont_Ok",_kwnames
,&_argo0
))
3025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3032 wxPy_BEGIN_ALLOW_THREADS
;
3033 _result
= (bool )wxFont_Ok(_arg0
);
3035 wxPy_END_ALLOW_THREADS
;
3036 } _resultobj
= Py_BuildValue("i",_result
);
3040 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3041 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3042 PyObject
* _resultobj
;
3045 PyObject
* _argo0
= 0;
3046 char *_kwnames
[] = { "self", NULL
};
3049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3059 wxPy_BEGIN_ALLOW_THREADS
;
3060 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3062 wxPy_END_ALLOW_THREADS
;
3064 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3072 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3073 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3074 PyObject
* _resultobj
;
3077 PyObject
* _argo0
= 0;
3078 char *_kwnames
[] = { "self", NULL
};
3081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3091 wxPy_BEGIN_ALLOW_THREADS
;
3092 _result
= (int )wxFont_GetFamily(_arg0
);
3094 wxPy_END_ALLOW_THREADS
;
3095 } _resultobj
= Py_BuildValue("i",_result
);
3099 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
3100 static PyObject
*_wrap_wxFont_GetFontId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3101 PyObject
* _resultobj
;
3104 PyObject
* _argo0
= 0;
3105 char *_kwnames
[] = { "self", NULL
};
3108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFontId",_kwnames
,&_argo0
))
3111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
3118 wxPy_BEGIN_ALLOW_THREADS
;
3119 _result
= (int )wxFont_GetFontId(_arg0
);
3121 wxPy_END_ALLOW_THREADS
;
3122 } _resultobj
= Py_BuildValue("i",_result
);
3126 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3127 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3128 PyObject
* _resultobj
;
3131 PyObject
* _argo0
= 0;
3132 char *_kwnames
[] = { "self", NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3145 wxPy_BEGIN_ALLOW_THREADS
;
3146 _result
= (int )wxFont_GetPointSize(_arg0
);
3148 wxPy_END_ALLOW_THREADS
;
3149 } _resultobj
= Py_BuildValue("i",_result
);
3153 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3154 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3155 PyObject
* _resultobj
;
3158 PyObject
* _argo0
= 0;
3159 char *_kwnames
[] = { "self", NULL
};
3162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3172 wxPy_BEGIN_ALLOW_THREADS
;
3173 _result
= (int )wxFont_GetStyle(_arg0
);
3175 wxPy_END_ALLOW_THREADS
;
3176 } _resultobj
= Py_BuildValue("i",_result
);
3180 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3181 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3182 PyObject
* _resultobj
;
3185 PyObject
* _argo0
= 0;
3186 char *_kwnames
[] = { "self", NULL
};
3189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3199 wxPy_BEGIN_ALLOW_THREADS
;
3200 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3202 wxPy_END_ALLOW_THREADS
;
3203 } _resultobj
= Py_BuildValue("i",_result
);
3207 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3208 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3209 PyObject
* _resultobj
;
3212 PyObject
* _argo0
= 0;
3213 char *_kwnames
[] = { "self", NULL
};
3216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3226 wxPy_BEGIN_ALLOW_THREADS
;
3227 _result
= (int )wxFont_GetWeight(_arg0
);
3229 wxPy_END_ALLOW_THREADS
;
3230 } _resultobj
= Py_BuildValue("i",_result
);
3234 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3235 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3236 PyObject
* _resultobj
;
3237 wxFontEncoding _result
;
3239 PyObject
* _argo0
= 0;
3240 char *_kwnames
[] = { "self", NULL
};
3243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3253 wxPy_BEGIN_ALLOW_THREADS
;
3254 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3256 wxPy_END_ALLOW_THREADS
;
3257 } _resultobj
= Py_BuildValue("i",_result
);
3261 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3262 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3263 PyObject
* _resultobj
;
3266 PyObject
* _argo0
= 0;
3267 PyObject
* _obj1
= 0;
3268 char *_kwnames
[] = { "self","faceName", NULL
};
3271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3281 #if PYTHON_API_VERSION >= 1009
3282 char* tmpPtr
; int tmpSize
;
3283 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3284 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3287 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3289 _arg1
= new wxString(tmpPtr
, tmpSize
);
3291 if (!PyString_Check(_obj1
)) {
3292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3295 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3299 wxPy_BEGIN_ALLOW_THREADS
;
3300 wxFont_SetFaceName(_arg0
,*_arg1
);
3302 wxPy_END_ALLOW_THREADS
;
3303 } Py_INCREF(Py_None
);
3304 _resultobj
= Py_None
;
3312 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3313 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3314 PyObject
* _resultobj
;
3317 PyObject
* _argo0
= 0;
3318 char *_kwnames
[] = { "self","family", NULL
};
3321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3331 wxPy_BEGIN_ALLOW_THREADS
;
3332 wxFont_SetFamily(_arg0
,_arg1
);
3334 wxPy_END_ALLOW_THREADS
;
3335 } Py_INCREF(Py_None
);
3336 _resultobj
= Py_None
;
3340 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3341 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3342 PyObject
* _resultobj
;
3345 PyObject
* _argo0
= 0;
3346 char *_kwnames
[] = { "self","pointSize", NULL
};
3349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3359 wxPy_BEGIN_ALLOW_THREADS
;
3360 wxFont_SetPointSize(_arg0
,_arg1
);
3362 wxPy_END_ALLOW_THREADS
;
3363 } Py_INCREF(Py_None
);
3364 _resultobj
= Py_None
;
3368 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3369 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3370 PyObject
* _resultobj
;
3373 PyObject
* _argo0
= 0;
3374 char *_kwnames
[] = { "self","style", NULL
};
3377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3387 wxPy_BEGIN_ALLOW_THREADS
;
3388 wxFont_SetStyle(_arg0
,_arg1
);
3390 wxPy_END_ALLOW_THREADS
;
3391 } Py_INCREF(Py_None
);
3392 _resultobj
= Py_None
;
3396 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3397 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3398 PyObject
* _resultobj
;
3401 PyObject
* _argo0
= 0;
3403 char *_kwnames
[] = { "self","underlined", NULL
};
3406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3415 _arg1
= (bool ) tempbool1
;
3417 wxPy_BEGIN_ALLOW_THREADS
;
3418 wxFont_SetUnderlined(_arg0
,_arg1
);
3420 wxPy_END_ALLOW_THREADS
;
3421 } Py_INCREF(Py_None
);
3422 _resultobj
= Py_None
;
3426 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3427 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3428 PyObject
* _resultobj
;
3431 PyObject
* _argo0
= 0;
3432 char *_kwnames
[] = { "self","weight", NULL
};
3435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3445 wxPy_BEGIN_ALLOW_THREADS
;
3446 wxFont_SetWeight(_arg0
,_arg1
);
3448 wxPy_END_ALLOW_THREADS
;
3449 } Py_INCREF(Py_None
);
3450 _resultobj
= Py_None
;
3454 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3455 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3456 PyObject
* _resultobj
;
3458 wxFontEncoding _arg1
;
3459 PyObject
* _argo0
= 0;
3460 char *_kwnames
[] = { "self","encoding", NULL
};
3463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3473 wxPy_BEGIN_ALLOW_THREADS
;
3474 wxFont_SetEncoding(_arg0
,_arg1
);
3476 wxPy_END_ALLOW_THREADS
;
3477 } Py_INCREF(Py_None
);
3478 _resultobj
= Py_None
;
3482 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3483 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3484 PyObject
* _resultobj
;
3487 PyObject
* _argo0
= 0;
3488 char *_kwnames
[] = { "self", NULL
};
3491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3501 wxPy_BEGIN_ALLOW_THREADS
;
3502 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3504 wxPy_END_ALLOW_THREADS
;
3506 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3514 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3515 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3516 PyObject
* _resultobj
;
3519 PyObject
* _argo0
= 0;
3520 char *_kwnames
[] = { "self", NULL
};
3523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3533 wxPy_BEGIN_ALLOW_THREADS
;
3534 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3536 wxPy_END_ALLOW_THREADS
;
3538 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3546 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3547 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3548 PyObject
* _resultobj
;
3551 PyObject
* _argo0
= 0;
3552 char *_kwnames
[] = { "self", NULL
};
3555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3565 wxPy_BEGIN_ALLOW_THREADS
;
3566 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3568 wxPy_END_ALLOW_THREADS
;
3570 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3578 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3579 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3580 PyObject
* _resultobj
;
3583 PyObject
* _argo0
= 0;
3584 PyObject
* _argo1
= 0;
3585 char *_kwnames
[] = { "self","font", NULL
};
3588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3598 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3599 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3605 wxPy_BEGIN_ALLOW_THREADS
;
3606 wxFontList_AddFont(_arg0
,_arg1
);
3608 wxPy_END_ALLOW_THREADS
;
3609 } Py_INCREF(Py_None
);
3610 _resultobj
= Py_None
;
3614 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3615 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3616 PyObject
* _resultobj
;
3623 bool _arg5
= (bool ) FALSE
;
3624 char * _arg6
= (char *) NULL
;
3625 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3626 PyObject
* _argo0
= 0;
3627 int tempbool5
= (int) FALSE
;
3628 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3641 _arg5
= (bool ) tempbool5
;
3643 wxPy_BEGIN_ALLOW_THREADS
;
3644 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3646 wxPy_END_ALLOW_THREADS
;
3648 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3649 _resultobj
= Py_BuildValue("s",_ptemp
);
3652 _resultobj
= Py_None
;
3657 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3658 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3659 PyObject
* _resultobj
;
3662 PyObject
* _argo0
= 0;
3663 PyObject
* _argo1
= 0;
3664 char *_kwnames
[] = { "self","font", NULL
};
3667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3677 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3678 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3684 wxPy_BEGIN_ALLOW_THREADS
;
3685 wxFontList_RemoveFont(_arg0
,_arg1
);
3687 wxPy_END_ALLOW_THREADS
;
3688 } Py_INCREF(Py_None
);
3689 _resultobj
= Py_None
;
3693 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3694 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3695 PyObject
* _resultobj
;
3697 unsigned char _arg0
= (unsigned char ) 0;
3698 unsigned char _arg1
= (unsigned char ) 0;
3699 unsigned char _arg2
= (unsigned char ) 0;
3700 char *_kwnames
[] = { "red","green","blue", NULL
};
3704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3707 wxPy_BEGIN_ALLOW_THREADS
;
3708 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3710 wxPy_END_ALLOW_THREADS
;
3712 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3713 _resultobj
= Py_BuildValue("s",_ptemp
);
3716 _resultobj
= Py_None
;
3721 #define delete_wxColour(_swigobj) (delete _swigobj)
3722 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3723 PyObject
* _resultobj
;
3726 PyObject
* _obj0
= 0;
3727 char *_kwnames
[] = { "self", NULL
};
3730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3734 if (! wxColour_helper(_obj0
, &_arg0
))
3738 wxPy_BEGIN_ALLOW_THREADS
;
3739 delete_wxColour(_arg0
);
3741 wxPy_END_ALLOW_THREADS
;
3742 } Py_INCREF(Py_None
);
3743 _resultobj
= Py_None
;
3747 #define wxColour_Red(_swigobj) (_swigobj->Red())
3748 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3749 PyObject
* _resultobj
;
3750 unsigned char _result
;
3753 PyObject
* _obj0
= 0;
3754 char *_kwnames
[] = { "self", NULL
};
3757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3761 if (! wxColour_helper(_obj0
, &_arg0
))
3765 wxPy_BEGIN_ALLOW_THREADS
;
3766 _result
= (unsigned char )wxColour_Red(_arg0
);
3768 wxPy_END_ALLOW_THREADS
;
3769 } _resultobj
= Py_BuildValue("b",_result
);
3773 #define wxColour_Green(_swigobj) (_swigobj->Green())
3774 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3775 PyObject
* _resultobj
;
3776 unsigned char _result
;
3779 PyObject
* _obj0
= 0;
3780 char *_kwnames
[] = { "self", NULL
};
3783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3787 if (! wxColour_helper(_obj0
, &_arg0
))
3791 wxPy_BEGIN_ALLOW_THREADS
;
3792 _result
= (unsigned char )wxColour_Green(_arg0
);
3794 wxPy_END_ALLOW_THREADS
;
3795 } _resultobj
= Py_BuildValue("b",_result
);
3799 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3800 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3801 PyObject
* _resultobj
;
3802 unsigned char _result
;
3805 PyObject
* _obj0
= 0;
3806 char *_kwnames
[] = { "self", NULL
};
3809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3813 if (! wxColour_helper(_obj0
, &_arg0
))
3817 wxPy_BEGIN_ALLOW_THREADS
;
3818 _result
= (unsigned char )wxColour_Blue(_arg0
);
3820 wxPy_END_ALLOW_THREADS
;
3821 } _resultobj
= Py_BuildValue("b",_result
);
3825 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3826 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3827 PyObject
* _resultobj
;
3831 PyObject
* _obj0
= 0;
3832 char *_kwnames
[] = { "self", NULL
};
3835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3839 if (! wxColour_helper(_obj0
, &_arg0
))
3843 wxPy_BEGIN_ALLOW_THREADS
;
3844 _result
= (bool )wxColour_Ok(_arg0
);
3846 wxPy_END_ALLOW_THREADS
;
3847 } _resultobj
= Py_BuildValue("i",_result
);
3851 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3852 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3853 PyObject
* _resultobj
;
3855 unsigned char _arg1
;
3856 unsigned char _arg2
;
3857 unsigned char _arg3
;
3859 PyObject
* _obj0
= 0;
3860 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3867 if (! wxColour_helper(_obj0
, &_arg0
))
3871 wxPy_BEGIN_ALLOW_THREADS
;
3872 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3874 wxPy_END_ALLOW_THREADS
;
3875 } Py_INCREF(Py_None
);
3876 _resultobj
= Py_None
;
3880 static PyObject
* wxColour_Get(wxColour
*self
) {
3881 PyObject
* rv
= PyTuple_New(3);
3882 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3883 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3884 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3887 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3888 PyObject
* _resultobj
;
3892 PyObject
* _obj0
= 0;
3893 char *_kwnames
[] = { "self", NULL
};
3896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3900 if (! wxColour_helper(_obj0
, &_arg0
))
3904 wxPy_BEGIN_ALLOW_THREADS
;
3905 _result
= (PyObject
*)wxColour_Get(_arg0
);
3907 wxPy_END_ALLOW_THREADS
;
3909 _resultobj
= _result
;
3914 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3915 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3916 PyObject
* _resultobj
;
3918 wxColourDatabase
* _arg0
;
3920 PyObject
* _argo0
= 0;
3921 PyObject
* _obj1
= 0;
3922 char *_kwnames
[] = { "self","colour", NULL
};
3926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3936 #if PYTHON_API_VERSION >= 1009
3937 char* tmpPtr
; int tmpSize
;
3938 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3939 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3942 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3944 _arg1
= new wxString(tmpPtr
, tmpSize
);
3946 if (!PyString_Check(_obj1
)) {
3947 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3950 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3954 wxPy_BEGIN_ALLOW_THREADS
;
3955 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3957 wxPy_END_ALLOW_THREADS
;
3959 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3960 _resultobj
= Py_BuildValue("s",_ptemp
);
3963 _resultobj
= Py_None
;
3972 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3973 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3974 PyObject
* _resultobj
;
3976 wxColourDatabase
* _arg0
;
3978 PyObject
* _argo0
= 0;
3980 PyObject
* _obj1
= 0;
3981 char *_kwnames
[] = { "self","colour", NULL
};
3984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3995 if (! wxColour_helper(_obj1
, &_arg1
))
3999 wxPy_BEGIN_ALLOW_THREADS
;
4000 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4002 wxPy_END_ALLOW_THREADS
;
4004 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4012 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4013 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4015 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4016 PyObject
* _resultobj
;
4017 wxColourDatabase
* _arg0
;
4022 PyObject
* _argo0
= 0;
4023 PyObject
* _obj1
= 0;
4024 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4037 #if PYTHON_API_VERSION >= 1009
4038 char* tmpPtr
; int tmpSize
;
4039 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4040 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
4043 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4045 _arg1
= new wxString(tmpPtr
, tmpSize
);
4047 if (!PyString_Check(_obj1
)) {
4048 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4051 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4055 wxPy_BEGIN_ALLOW_THREADS
;
4056 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4058 wxPy_END_ALLOW_THREADS
;
4059 } Py_INCREF(Py_None
);
4060 _resultobj
= Py_None
;
4068 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4069 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4070 PyObject
* _resultobj
;
4073 int _arg1
= (int ) 1;
4074 int _arg2
= (int ) wxSOLID
;
4076 PyObject
* _obj0
= 0;
4077 char *_kwnames
[] = { "colour","width","style", NULL
};
4081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4085 if (! wxColour_helper(_obj0
, &_arg0
))
4089 wxPy_BEGIN_ALLOW_THREADS
;
4090 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4092 wxPy_END_ALLOW_THREADS
;
4094 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4095 _resultobj
= Py_BuildValue("s",_ptemp
);
4098 _resultobj
= Py_None
;
4103 #define delete_wxPen(_swigobj) (delete _swigobj)
4104 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4105 PyObject
* _resultobj
;
4107 PyObject
* _argo0
= 0;
4108 char *_kwnames
[] = { "self", NULL
};
4111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4121 wxPy_BEGIN_ALLOW_THREADS
;
4122 delete_wxPen(_arg0
);
4124 wxPy_END_ALLOW_THREADS
;
4125 } Py_INCREF(Py_None
);
4126 _resultobj
= Py_None
;
4130 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4131 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4132 PyObject
* _resultobj
;
4135 PyObject
* _argo0
= 0;
4136 char *_kwnames
[] = { "self", NULL
};
4139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4149 wxPy_BEGIN_ALLOW_THREADS
;
4150 _result
= (int )wxPen_GetCap(_arg0
);
4152 wxPy_END_ALLOW_THREADS
;
4153 } _resultobj
= Py_BuildValue("i",_result
);
4157 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4158 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4159 PyObject
* _resultobj
;
4162 PyObject
* _argo0
= 0;
4163 char *_kwnames
[] = { "self", NULL
};
4167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4177 wxPy_BEGIN_ALLOW_THREADS
;
4178 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
4179 _result
= (wxColour
*) &_result_ref
;
4181 wxPy_END_ALLOW_THREADS
;
4183 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4184 _resultobj
= Py_BuildValue("s",_ptemp
);
4187 _resultobj
= Py_None
;
4192 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4193 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4194 PyObject
* _resultobj
;
4197 PyObject
* _argo0
= 0;
4198 char *_kwnames
[] = { "self", NULL
};
4201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4211 wxPy_BEGIN_ALLOW_THREADS
;
4212 _result
= (int )wxPen_GetJoin(_arg0
);
4214 wxPy_END_ALLOW_THREADS
;
4215 } _resultobj
= Py_BuildValue("i",_result
);
4219 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4220 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4221 PyObject
* _resultobj
;
4224 PyObject
* _argo0
= 0;
4225 char *_kwnames
[] = { "self", NULL
};
4228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4238 wxPy_BEGIN_ALLOW_THREADS
;
4239 _result
= (int )wxPen_GetStyle(_arg0
);
4241 wxPy_END_ALLOW_THREADS
;
4242 } _resultobj
= Py_BuildValue("i",_result
);
4246 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4247 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4248 PyObject
* _resultobj
;
4251 PyObject
* _argo0
= 0;
4252 char *_kwnames
[] = { "self", NULL
};
4255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4265 wxPy_BEGIN_ALLOW_THREADS
;
4266 _result
= (int )wxPen_GetWidth(_arg0
);
4268 wxPy_END_ALLOW_THREADS
;
4269 } _resultobj
= Py_BuildValue("i",_result
);
4273 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4274 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4275 PyObject
* _resultobj
;
4278 PyObject
* _argo0
= 0;
4279 char *_kwnames
[] = { "self", NULL
};
4282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4292 wxPy_BEGIN_ALLOW_THREADS
;
4293 _result
= (bool )wxPen_Ok(_arg0
);
4295 wxPy_END_ALLOW_THREADS
;
4296 } _resultobj
= Py_BuildValue("i",_result
);
4300 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4301 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4302 PyObject
* _resultobj
;
4305 PyObject
* _argo0
= 0;
4306 char *_kwnames
[] = { "self","cap_style", NULL
};
4309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4319 wxPy_BEGIN_ALLOW_THREADS
;
4320 wxPen_SetCap(_arg0
,_arg1
);
4322 wxPy_END_ALLOW_THREADS
;
4323 } Py_INCREF(Py_None
);
4324 _resultobj
= Py_None
;
4328 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4329 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4330 PyObject
* _resultobj
;
4333 PyObject
* _argo0
= 0;
4335 PyObject
* _obj1
= 0;
4336 char *_kwnames
[] = { "self","colour", NULL
};
4339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4350 if (! wxColour_helper(_obj1
, &_arg1
))
4354 wxPy_BEGIN_ALLOW_THREADS
;
4355 wxPen_SetColour(_arg0
,*_arg1
);
4357 wxPy_END_ALLOW_THREADS
;
4358 } Py_INCREF(Py_None
);
4359 _resultobj
= Py_None
;
4363 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4364 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4365 PyObject
* _resultobj
;
4368 PyObject
* _argo0
= 0;
4369 char *_kwnames
[] = { "self","join_style", NULL
};
4372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4382 wxPy_BEGIN_ALLOW_THREADS
;
4383 wxPen_SetJoin(_arg0
,_arg1
);
4385 wxPy_END_ALLOW_THREADS
;
4386 } Py_INCREF(Py_None
);
4387 _resultobj
= Py_None
;
4391 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4392 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4393 PyObject
* _resultobj
;
4396 PyObject
* _argo0
= 0;
4397 char *_kwnames
[] = { "self","style", NULL
};
4400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4410 wxPy_BEGIN_ALLOW_THREADS
;
4411 wxPen_SetStyle(_arg0
,_arg1
);
4413 wxPy_END_ALLOW_THREADS
;
4414 } Py_INCREF(Py_None
);
4415 _resultobj
= Py_None
;
4419 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4420 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4421 PyObject
* _resultobj
;
4424 PyObject
* _argo0
= 0;
4425 char *_kwnames
[] = { "self","width", NULL
};
4428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4438 wxPy_BEGIN_ALLOW_THREADS
;
4439 wxPen_SetWidth(_arg0
,_arg1
);
4441 wxPy_END_ALLOW_THREADS
;
4442 } Py_INCREF(Py_None
);
4443 _resultobj
= Py_None
;
4447 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4448 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4449 PyObject
* _resultobj
;
4453 PyObject
* _argo0
= 0;
4454 PyObject
* _argo1
= 0;
4455 char *_kwnames
[] = { "self","dashes", NULL
};
4458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4468 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4469 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4475 wxPy_BEGIN_ALLOW_THREADS
;
4476 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4478 wxPy_END_ALLOW_THREADS
;
4479 } _resultobj
= Py_BuildValue("i",_result
);
4483 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4484 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4485 PyObject
* _resultobj
;
4489 PyObject
* _argo0
= 0;
4490 PyObject
* _obj2
= 0;
4491 char *_kwnames
[] = { "self","choices", NULL
};
4494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4505 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4506 if (_arg2
== NULL
) {
4512 _arg1
= PyList_Size(_obj2
);
4519 wxPy_BEGIN_ALLOW_THREADS
;
4520 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4522 wxPy_END_ALLOW_THREADS
;
4523 } Py_INCREF(Py_None
);
4524 _resultobj
= Py_None
;
4531 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4532 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4533 PyObject
* _resultobj
;
4536 PyObject
* _argo0
= 0;
4537 char *_kwnames
[] = { "self", NULL
};
4541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4551 wxPy_BEGIN_ALLOW_THREADS
;
4552 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4554 wxPy_END_ALLOW_THREADS
;
4556 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4557 _resultobj
= Py_BuildValue("s",_ptemp
);
4560 _resultobj
= Py_None
;
4565 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4566 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4567 PyObject
* _resultobj
;
4570 PyObject
* _argo0
= 0;
4571 PyObject
* _argo1
= 0;
4572 char *_kwnames
[] = { "self","stipple", NULL
};
4575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4585 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4586 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4592 wxPy_BEGIN_ALLOW_THREADS
;
4593 wxPen_SetStipple(_arg0
,*_arg1
);
4595 wxPy_END_ALLOW_THREADS
;
4596 } Py_INCREF(Py_None
);
4597 _resultobj
= Py_None
;
4601 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4602 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4603 PyObject
* _resultobj
;
4606 PyObject
* _argo0
= 0;
4607 PyObject
* _argo1
= 0;
4608 char *_kwnames
[] = { "self","pen", NULL
};
4611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4621 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4622 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4628 wxPy_BEGIN_ALLOW_THREADS
;
4629 wxPenList_AddPen(_arg0
,_arg1
);
4631 wxPy_END_ALLOW_THREADS
;
4632 } Py_INCREF(Py_None
);
4633 _resultobj
= Py_None
;
4637 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4638 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4639 PyObject
* _resultobj
;
4645 PyObject
* _argo0
= 0;
4647 PyObject
* _obj1
= 0;
4648 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4663 if (! wxColour_helper(_obj1
, &_arg1
))
4667 wxPy_BEGIN_ALLOW_THREADS
;
4668 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4670 wxPy_END_ALLOW_THREADS
;
4672 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4673 _resultobj
= Py_BuildValue("s",_ptemp
);
4676 _resultobj
= Py_None
;
4681 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4682 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4683 PyObject
* _resultobj
;
4686 PyObject
* _argo0
= 0;
4687 PyObject
* _argo1
= 0;
4688 char *_kwnames
[] = { "self","pen", NULL
};
4691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4701 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4702 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4708 wxPy_BEGIN_ALLOW_THREADS
;
4709 wxPenList_RemovePen(_arg0
,_arg1
);
4711 wxPy_END_ALLOW_THREADS
;
4712 } Py_INCREF(Py_None
);
4713 _resultobj
= Py_None
;
4717 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4718 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4719 PyObject
* _resultobj
;
4722 int _arg1
= (int ) wxSOLID
;
4724 PyObject
* _obj0
= 0;
4725 char *_kwnames
[] = { "colour","style", NULL
};
4729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4733 if (! wxColour_helper(_obj0
, &_arg0
))
4737 wxPy_BEGIN_ALLOW_THREADS
;
4738 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4740 wxPy_END_ALLOW_THREADS
;
4742 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4743 _resultobj
= Py_BuildValue("s",_ptemp
);
4746 _resultobj
= Py_None
;
4751 #define delete_wxBrush(_swigobj) (delete _swigobj)
4752 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4753 PyObject
* _resultobj
;
4755 PyObject
* _argo0
= 0;
4756 char *_kwnames
[] = { "self", NULL
};
4759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4769 wxPy_BEGIN_ALLOW_THREADS
;
4770 delete_wxBrush(_arg0
);
4772 wxPy_END_ALLOW_THREADS
;
4773 } Py_INCREF(Py_None
);
4774 _resultobj
= Py_None
;
4778 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4779 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4780 PyObject
* _resultobj
;
4783 PyObject
* _argo0
= 0;
4784 char *_kwnames
[] = { "self", NULL
};
4788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4798 wxPy_BEGIN_ALLOW_THREADS
;
4799 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
4800 _result
= (wxColour
*) &_result_ref
;
4802 wxPy_END_ALLOW_THREADS
;
4804 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4805 _resultobj
= Py_BuildValue("s",_ptemp
);
4808 _resultobj
= Py_None
;
4813 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4814 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4815 PyObject
* _resultobj
;
4818 PyObject
* _argo0
= 0;
4819 char *_kwnames
[] = { "self", NULL
};
4823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4833 wxPy_BEGIN_ALLOW_THREADS
;
4834 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4836 wxPy_END_ALLOW_THREADS
;
4838 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4839 _resultobj
= Py_BuildValue("s",_ptemp
);
4842 _resultobj
= Py_None
;
4847 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4848 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4849 PyObject
* _resultobj
;
4852 PyObject
* _argo0
= 0;
4853 char *_kwnames
[] = { "self", NULL
};
4856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4866 wxPy_BEGIN_ALLOW_THREADS
;
4867 _result
= (int )wxBrush_GetStyle(_arg0
);
4869 wxPy_END_ALLOW_THREADS
;
4870 } _resultobj
= Py_BuildValue("i",_result
);
4874 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4875 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4876 PyObject
* _resultobj
;
4879 PyObject
* _argo0
= 0;
4880 char *_kwnames
[] = { "self", NULL
};
4883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4893 wxPy_BEGIN_ALLOW_THREADS
;
4894 _result
= (bool )wxBrush_Ok(_arg0
);
4896 wxPy_END_ALLOW_THREADS
;
4897 } _resultobj
= Py_BuildValue("i",_result
);
4901 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4902 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4903 PyObject
* _resultobj
;
4906 PyObject
* _argo0
= 0;
4908 PyObject
* _obj1
= 0;
4909 char *_kwnames
[] = { "self","colour", NULL
};
4912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4923 if (! wxColour_helper(_obj1
, &_arg1
))
4927 wxPy_BEGIN_ALLOW_THREADS
;
4928 wxBrush_SetColour(_arg0
,*_arg1
);
4930 wxPy_END_ALLOW_THREADS
;
4931 } Py_INCREF(Py_None
);
4932 _resultobj
= Py_None
;
4936 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4937 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4938 PyObject
* _resultobj
;
4941 PyObject
* _argo0
= 0;
4942 PyObject
* _argo1
= 0;
4943 char *_kwnames
[] = { "self","bitmap", NULL
};
4946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4956 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4957 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4963 wxPy_BEGIN_ALLOW_THREADS
;
4964 wxBrush_SetStipple(_arg0
,*_arg1
);
4966 wxPy_END_ALLOW_THREADS
;
4967 } Py_INCREF(Py_None
);
4968 _resultobj
= Py_None
;
4972 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4973 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4974 PyObject
* _resultobj
;
4977 PyObject
* _argo0
= 0;
4978 char *_kwnames
[] = { "self","style", NULL
};
4981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4991 wxPy_BEGIN_ALLOW_THREADS
;
4992 wxBrush_SetStyle(_arg0
,_arg1
);
4994 wxPy_END_ALLOW_THREADS
;
4995 } Py_INCREF(Py_None
);
4996 _resultobj
= Py_None
;
5000 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5001 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5002 PyObject
* _resultobj
;
5003 wxBrushList
* _arg0
;
5005 PyObject
* _argo0
= 0;
5006 PyObject
* _argo1
= 0;
5007 char *_kwnames
[] = { "self","brush", NULL
};
5010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5020 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5021 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5027 wxPy_BEGIN_ALLOW_THREADS
;
5028 wxBrushList_AddBrush(_arg0
,_arg1
);
5030 wxPy_END_ALLOW_THREADS
;
5031 } Py_INCREF(Py_None
);
5032 _resultobj
= Py_None
;
5036 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5037 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5040 wxBrushList
* _arg0
;
5043 PyObject
* _argo0
= 0;
5045 PyObject
* _obj1
= 0;
5046 char *_kwnames
[] = { "self","colour","style", NULL
};
5050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5061 if (! wxColour_helper(_obj1
, &_arg1
))
5065 wxPy_BEGIN_ALLOW_THREADS
;
5066 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5068 wxPy_END_ALLOW_THREADS
;
5070 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5071 _resultobj
= Py_BuildValue("s",_ptemp
);
5074 _resultobj
= Py_None
;
5079 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5080 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5081 PyObject
* _resultobj
;
5082 wxBrushList
* _arg0
;
5084 PyObject
* _argo0
= 0;
5085 PyObject
* _argo1
= 0;
5086 char *_kwnames
[] = { "self","brush", NULL
};
5089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5099 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5100 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5106 wxPy_BEGIN_ALLOW_THREADS
;
5107 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5109 wxPy_END_ALLOW_THREADS
;
5110 } Py_INCREF(Py_None
);
5111 _resultobj
= Py_None
;
5115 #define delete_wxDC(_swigobj) (delete _swigobj)
5116 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5117 PyObject
* _resultobj
;
5119 PyObject
* _argo0
= 0;
5120 char *_kwnames
[] = { "self", NULL
};
5123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5133 wxPy_BEGIN_ALLOW_THREADS
;
5136 wxPy_END_ALLOW_THREADS
;
5137 } Py_INCREF(Py_None
);
5138 _resultobj
= Py_None
;
5142 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5143 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5144 PyObject
* _resultobj
;
5146 PyObject
* _argo0
= 0;
5147 char *_kwnames
[] = { "self", NULL
};
5150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5160 wxPy_BEGIN_ALLOW_THREADS
;
5161 wxDC_BeginDrawing(_arg0
);
5163 wxPy_END_ALLOW_THREADS
;
5164 } Py_INCREF(Py_None
);
5165 _resultobj
= Py_None
;
5169 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5170 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5171 PyObject
* _resultobj
;
5181 int _arg8
= (int ) wxCOPY
;
5182 int _arg9
= (int ) FALSE
;
5183 PyObject
* _argo0
= 0;
5184 PyObject
* _argo5
= 0;
5185 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5198 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5199 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5205 wxPy_BEGIN_ALLOW_THREADS
;
5206 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5208 wxPy_END_ALLOW_THREADS
;
5209 } _resultobj
= Py_BuildValue("i",_result
);
5213 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5214 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5215 PyObject
* _resultobj
;
5217 PyObject
* _argo0
= 0;
5218 char *_kwnames
[] = { "self", NULL
};
5221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5231 wxPy_BEGIN_ALLOW_THREADS
;
5234 wxPy_END_ALLOW_THREADS
;
5235 } Py_INCREF(Py_None
);
5236 _resultobj
= Py_None
;
5240 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5241 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5246 PyObject
* _argo0
= 0;
5247 char *_kwnames
[] = { "self","x","y", NULL
};
5250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5260 wxPy_BEGIN_ALLOW_THREADS
;
5261 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5263 wxPy_END_ALLOW_THREADS
;
5264 } Py_INCREF(Py_None
);
5265 _resultobj
= Py_None
;
5269 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5270 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5271 PyObject
* _resultobj
;
5273 PyObject
* _argo0
= 0;
5274 char *_kwnames
[] = { "self", NULL
};
5277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5287 wxPy_BEGIN_ALLOW_THREADS
;
5288 wxDC_DestroyClippingRegion(_arg0
);
5290 wxPy_END_ALLOW_THREADS
;
5291 } Py_INCREF(Py_None
);
5292 _resultobj
= Py_None
;
5296 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5297 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5298 PyObject
* _resultobj
;
5302 PyObject
* _argo0
= 0;
5303 char *_kwnames
[] = { "self","x", NULL
};
5306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5316 wxPy_BEGIN_ALLOW_THREADS
;
5317 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5319 wxPy_END_ALLOW_THREADS
;
5320 } _resultobj
= Py_BuildValue("l",_result
);
5324 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5325 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5326 PyObject
* _resultobj
;
5330 PyObject
* _argo0
= 0;
5331 char *_kwnames
[] = { "self","x", NULL
};
5334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5344 wxPy_BEGIN_ALLOW_THREADS
;
5345 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5347 wxPy_END_ALLOW_THREADS
;
5348 } _resultobj
= Py_BuildValue("l",_result
);
5352 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5353 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5354 PyObject
* _resultobj
;
5358 PyObject
* _argo0
= 0;
5359 char *_kwnames
[] = { "self","y", NULL
};
5362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5372 wxPy_BEGIN_ALLOW_THREADS
;
5373 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5375 wxPy_END_ALLOW_THREADS
;
5376 } _resultobj
= Py_BuildValue("l",_result
);
5380 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5381 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5382 PyObject
* _resultobj
;
5386 PyObject
* _argo0
= 0;
5387 char *_kwnames
[] = { "self","y", NULL
};
5390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5400 wxPy_BEGIN_ALLOW_THREADS
;
5401 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5403 wxPy_END_ALLOW_THREADS
;
5404 } _resultobj
= Py_BuildValue("l",_result
);
5408 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5409 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5410 PyObject
* _resultobj
;
5418 PyObject
* _argo0
= 0;
5419 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5432 wxPy_BEGIN_ALLOW_THREADS
;
5433 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5435 wxPy_END_ALLOW_THREADS
;
5436 } Py_INCREF(Py_None
);
5437 _resultobj
= Py_None
;
5441 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5442 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5443 PyObject
* _resultobj
;
5448 PyObject
* _argo0
= 0;
5449 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5462 wxPy_BEGIN_ALLOW_THREADS
;
5463 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5465 wxPy_END_ALLOW_THREADS
;
5466 } Py_INCREF(Py_None
);
5467 _resultobj
= Py_None
;
5471 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5472 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5473 PyObject
* _resultobj
;
5479 PyObject
* _argo0
= 0;
5480 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5493 wxPy_BEGIN_ALLOW_THREADS
;
5494 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5496 wxPy_END_ALLOW_THREADS
;
5497 } Py_INCREF(Py_None
);
5498 _resultobj
= Py_None
;
5502 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5503 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5504 PyObject
* _resultobj
;
5512 PyObject
* _argo0
= 0;
5513 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5526 wxPy_BEGIN_ALLOW_THREADS
;
5527 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5529 wxPy_END_ALLOW_THREADS
;
5530 } Py_INCREF(Py_None
);
5531 _resultobj
= Py_None
;
5535 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5536 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5537 PyObject
* _resultobj
;
5542 PyObject
* _argo0
= 0;
5543 PyObject
* _argo1
= 0;
5544 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5557 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5558 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5564 wxPy_BEGIN_ALLOW_THREADS
;
5565 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5567 wxPy_END_ALLOW_THREADS
;
5568 } Py_INCREF(Py_None
);
5569 _resultobj
= Py_None
;
5573 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5574 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5575 PyObject
* _resultobj
;
5581 PyObject
* _argo0
= 0;
5582 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5595 wxPy_BEGIN_ALLOW_THREADS
;
5596 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5598 wxPy_END_ALLOW_THREADS
;
5599 } Py_INCREF(Py_None
);
5600 _resultobj
= Py_None
;
5604 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5605 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5606 PyObject
* _resultobj
;
5610 long _arg3
= (long ) 0;
5611 long _arg4
= (long ) 0;
5612 PyObject
* _argo0
= 0;
5614 PyObject
* _obj2
= 0;
5615 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5629 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5630 if (_arg2
== NULL
) {
5638 wxPy_BEGIN_ALLOW_THREADS
;
5639 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5641 wxPy_END_ALLOW_THREADS
;
5642 } Py_INCREF(Py_None
);
5643 _resultobj
= Py_None
;
5650 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5651 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5652 PyObject
* _resultobj
;
5656 long _arg3
= (long ) 0;
5657 long _arg4
= (long ) 0;
5658 int _arg5
= (int ) wxODDEVEN_RULE
;
5659 PyObject
* _argo0
= 0;
5661 PyObject
* _obj2
= 0;
5662 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5676 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5677 if (_arg2
== NULL
) {
5685 wxPy_BEGIN_ALLOW_THREADS
;
5686 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5688 wxPy_END_ALLOW_THREADS
;
5689 } Py_INCREF(Py_None
);
5690 _resultobj
= Py_None
;
5697 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5698 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5699 PyObject
* _resultobj
;
5703 PyObject
* _argo0
= 0;
5704 char *_kwnames
[] = { "self","x","y", NULL
};
5707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5717 wxPy_BEGIN_ALLOW_THREADS
;
5718 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5720 wxPy_END_ALLOW_THREADS
;
5721 } Py_INCREF(Py_None
);
5722 _resultobj
= Py_None
;
5726 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5727 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5728 PyObject
* _resultobj
;
5734 PyObject
* _argo0
= 0;
5735 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5748 wxPy_BEGIN_ALLOW_THREADS
;
5749 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5751 wxPy_END_ALLOW_THREADS
;
5752 } Py_INCREF(Py_None
);
5753 _resultobj
= Py_None
;
5757 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5758 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5759 PyObject
* _resultobj
;
5765 PyObject
* _argo0
= 0;
5766 PyObject
* _obj1
= 0;
5767 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5780 #if PYTHON_API_VERSION >= 1009
5781 char* tmpPtr
; int tmpSize
;
5782 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5783 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5786 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5788 _arg1
= new wxString(tmpPtr
, tmpSize
);
5790 if (!PyString_Check(_obj1
)) {
5791 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5794 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5798 wxPy_BEGIN_ALLOW_THREADS
;
5799 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5801 wxPy_END_ALLOW_THREADS
;
5802 } Py_INCREF(Py_None
);
5803 _resultobj
= Py_None
;
5811 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5812 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5813 PyObject
* _resultobj
;
5819 long _arg5
= (long ) 20;
5820 PyObject
* _argo0
= 0;
5821 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5834 wxPy_BEGIN_ALLOW_THREADS
;
5835 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5837 wxPy_END_ALLOW_THREADS
;
5838 } Py_INCREF(Py_None
);
5839 _resultobj
= Py_None
;
5843 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5844 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5845 PyObject
* _resultobj
;
5849 PyObject
* _argo0
= 0;
5851 PyObject
* _obj2
= 0;
5852 char *_kwnames
[] = { "self","points", NULL
};
5855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5866 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5867 if (_arg2
== NULL
) {
5875 wxPy_BEGIN_ALLOW_THREADS
;
5876 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5878 wxPy_END_ALLOW_THREADS
;
5879 } Py_INCREF(Py_None
);
5880 _resultobj
= Py_None
;
5887 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5888 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5889 PyObject
* _resultobj
;
5894 PyObject
* _argo0
= 0;
5895 PyObject
* _obj1
= 0;
5896 char *_kwnames
[] = { "self","text","x","y", NULL
};
5899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5909 #if PYTHON_API_VERSION >= 1009
5910 char* tmpPtr
; int tmpSize
;
5911 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5912 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5915 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5917 _arg1
= new wxString(tmpPtr
, tmpSize
);
5919 if (!PyString_Check(_obj1
)) {
5920 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5923 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5927 wxPy_BEGIN_ALLOW_THREADS
;
5928 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5930 wxPy_END_ALLOW_THREADS
;
5931 } Py_INCREF(Py_None
);
5932 _resultobj
= Py_None
;
5940 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5941 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5942 PyObject
* _resultobj
;
5944 PyObject
* _argo0
= 0;
5945 char *_kwnames
[] = { "self", NULL
};
5948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5958 wxPy_BEGIN_ALLOW_THREADS
;
5961 wxPy_END_ALLOW_THREADS
;
5962 } Py_INCREF(Py_None
);
5963 _resultobj
= Py_None
;
5967 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5968 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5969 PyObject
* _resultobj
;
5971 PyObject
* _argo0
= 0;
5972 char *_kwnames
[] = { "self", NULL
};
5975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5985 wxPy_BEGIN_ALLOW_THREADS
;
5986 wxDC_EndDrawing(_arg0
);
5988 wxPy_END_ALLOW_THREADS
;
5989 } Py_INCREF(Py_None
);
5990 _resultobj
= Py_None
;
5994 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5995 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5996 PyObject
* _resultobj
;
5998 PyObject
* _argo0
= 0;
5999 char *_kwnames
[] = { "self", NULL
};
6002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6012 wxPy_BEGIN_ALLOW_THREADS
;
6013 wxDC_EndPage(_arg0
);
6015 wxPy_END_ALLOW_THREADS
;
6016 } Py_INCREF(Py_None
);
6017 _resultobj
= Py_None
;
6021 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6022 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6023 PyObject
* _resultobj
;
6028 int _arg4
= (int ) wxFLOOD_SURFACE
;
6029 PyObject
* _argo0
= 0;
6031 PyObject
* _obj3
= 0;
6032 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6046 if (! wxColour_helper(_obj3
, &_arg3
))
6050 wxPy_BEGIN_ALLOW_THREADS
;
6051 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6053 wxPy_END_ALLOW_THREADS
;
6054 } Py_INCREF(Py_None
);
6055 _resultobj
= Py_None
;
6059 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6060 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6061 PyObject
* _resultobj
;
6064 PyObject
* _argo0
= 0;
6065 char *_kwnames
[] = { "self", NULL
};
6069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6079 wxPy_BEGIN_ALLOW_THREADS
;
6080 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
6081 _result
= (wxBrush
*) &_result_ref
;
6083 wxPy_END_ALLOW_THREADS
;
6085 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6086 _resultobj
= Py_BuildValue("s",_ptemp
);
6089 _resultobj
= Py_None
;
6094 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6095 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6096 PyObject
* _resultobj
;
6099 PyObject
* _argo0
= 0;
6100 char *_kwnames
[] = { "self", NULL
};
6104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6114 wxPy_BEGIN_ALLOW_THREADS
;
6115 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
6116 _result
= (wxBrush
*) &_result_ref
;
6118 wxPy_END_ALLOW_THREADS
;
6120 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6121 _resultobj
= Py_BuildValue("s",_ptemp
);
6124 _resultobj
= Py_None
;
6129 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6130 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6131 PyObject
* _resultobj
;
6134 PyObject
* _argo0
= 0;
6135 char *_kwnames
[] = { "self", NULL
};
6138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6148 wxPy_BEGIN_ALLOW_THREADS
;
6149 _result
= (long )wxDC_GetCharHeight(_arg0
);
6151 wxPy_END_ALLOW_THREADS
;
6152 } _resultobj
= Py_BuildValue("l",_result
);
6156 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6157 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6158 PyObject
* _resultobj
;
6161 PyObject
* _argo0
= 0;
6162 char *_kwnames
[] = { "self", NULL
};
6165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6175 wxPy_BEGIN_ALLOW_THREADS
;
6176 _result
= (long )wxDC_GetCharWidth(_arg0
);
6178 wxPy_END_ALLOW_THREADS
;
6179 } _resultobj
= Py_BuildValue("l",_result
);
6183 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6184 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6185 PyObject
* _resultobj
;
6195 PyObject
* _argo0
= 0;
6196 char *_kwnames
[] = { "self", NULL
};
6211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6221 wxPy_BEGIN_ALLOW_THREADS
;
6222 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6224 wxPy_END_ALLOW_THREADS
;
6225 } Py_INCREF(Py_None
);
6226 _resultobj
= Py_None
;
6229 o
= PyInt_FromLong((long) (*_arg1
));
6230 _resultobj
= t_output_helper(_resultobj
, o
);
6234 o
= PyInt_FromLong((long) (*_arg2
));
6235 _resultobj
= t_output_helper(_resultobj
, o
);
6239 o
= PyInt_FromLong((long) (*_arg3
));
6240 _resultobj
= t_output_helper(_resultobj
, o
);
6244 o
= PyInt_FromLong((long) (*_arg4
));
6245 _resultobj
= t_output_helper(_resultobj
, o
);
6250 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6251 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6252 PyObject
* _resultobj
;
6255 PyObject
* _argo0
= 0;
6256 char *_kwnames
[] = { "self", NULL
};
6260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6270 wxPy_BEGIN_ALLOW_THREADS
;
6271 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6272 _result
= (wxFont
*) &_result_ref
;
6274 wxPy_END_ALLOW_THREADS
;
6276 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6277 _resultobj
= Py_BuildValue("s",_ptemp
);
6280 _resultobj
= Py_None
;
6285 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6286 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6287 PyObject
* _resultobj
;
6290 PyObject
* _argo0
= 0;
6291 char *_kwnames
[] = { "self", NULL
};
6294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6304 wxPy_BEGIN_ALLOW_THREADS
;
6305 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6307 wxPy_END_ALLOW_THREADS
;
6308 } _resultobj
= Py_BuildValue("i",_result
);
6312 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6313 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6314 PyObject
* _resultobj
;
6320 PyObject
* _argo0
= 0;
6321 char *_kwnames
[] = { "self", NULL
};
6330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6340 wxPy_BEGIN_ALLOW_THREADS
;
6341 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6343 wxPy_END_ALLOW_THREADS
;
6344 } Py_INCREF(Py_None
);
6345 _resultobj
= Py_None
;
6348 o
= PyFloat_FromDouble((double) (*_arg1
));
6349 _resultobj
= t_output_helper(_resultobj
, o
);
6353 o
= PyFloat_FromDouble((double) (*_arg2
));
6354 _resultobj
= t_output_helper(_resultobj
, o
);
6359 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6360 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6361 PyObject
* _resultobj
;
6364 PyObject
* _argo0
= 0;
6365 char *_kwnames
[] = { "self", NULL
};
6368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6378 wxPy_BEGIN_ALLOW_THREADS
;
6379 _result
= (int )wxDC_GetMapMode(_arg0
);
6381 wxPy_END_ALLOW_THREADS
;
6382 } _resultobj
= Py_BuildValue("i",_result
);
6386 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6387 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6388 PyObject
* _resultobj
;
6391 PyObject
* _argo0
= 0;
6392 char *_kwnames
[] = { "self", NULL
};
6395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6405 wxPy_BEGIN_ALLOW_THREADS
;
6406 _result
= (bool )wxDC_GetOptimization(_arg0
);
6408 wxPy_END_ALLOW_THREADS
;
6409 } _resultobj
= Py_BuildValue("i",_result
);
6413 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6414 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6415 PyObject
* _resultobj
;
6418 PyObject
* _argo0
= 0;
6419 char *_kwnames
[] = { "self", NULL
};
6423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_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_GetPen. Expected _wxDC_p.");
6433 wxPy_BEGIN_ALLOW_THREADS
;
6434 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6435 _result
= (wxPen
*) &_result_ref
;
6437 wxPy_END_ALLOW_THREADS
;
6439 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6440 _resultobj
= Py_BuildValue("s",_ptemp
);
6443 _resultobj
= Py_None
;
6448 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6449 wxColour
* wc
= new wxColour();
6450 self
->GetPixel(x
, y
, wc
);
6453 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6454 PyObject
* _resultobj
;
6459 PyObject
* _argo0
= 0;
6460 char *_kwnames
[] = { "self","x","y", NULL
};
6464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6474 wxPy_BEGIN_ALLOW_THREADS
;
6475 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6477 wxPy_END_ALLOW_THREADS
;
6479 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6480 _resultobj
= Py_BuildValue("s",_ptemp
);
6483 _resultobj
= Py_None
;
6488 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6489 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6490 PyObject
* _resultobj
;
6496 PyObject
* _argo0
= 0;
6497 char *_kwnames
[] = { "self", NULL
};
6506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6516 wxPy_BEGIN_ALLOW_THREADS
;
6517 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6519 wxPy_END_ALLOW_THREADS
;
6520 } Py_INCREF(Py_None
);
6521 _resultobj
= Py_None
;
6524 o
= PyInt_FromLong((long) (*_arg1
));
6525 _resultobj
= t_output_helper(_resultobj
, o
);
6529 o
= PyInt_FromLong((long) (*_arg2
));
6530 _resultobj
= t_output_helper(_resultobj
, o
);
6535 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6536 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6537 PyObject
* _resultobj
;
6540 PyObject
* _argo0
= 0;
6541 char *_kwnames
[] = { "self", NULL
};
6545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6555 wxPy_BEGIN_ALLOW_THREADS
;
6556 _result
= new wxSize (wxDC_GetSize(_arg0
));
6558 wxPy_END_ALLOW_THREADS
;
6559 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6560 _resultobj
= Py_BuildValue("s",_ptemp
);
6564 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6565 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6566 PyObject
* _resultobj
;
6569 PyObject
* _argo0
= 0;
6570 char *_kwnames
[] = { "self", NULL
};
6574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6584 wxPy_BEGIN_ALLOW_THREADS
;
6585 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6587 wxPy_END_ALLOW_THREADS
;
6588 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6589 _resultobj
= Py_BuildValue("s",_ptemp
);
6593 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6594 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6595 PyObject
* _resultobj
;
6598 PyObject
* _argo0
= 0;
6599 char *_kwnames
[] = { "self", NULL
};
6603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6613 wxPy_BEGIN_ALLOW_THREADS
;
6614 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
6615 _result
= (wxColour
*) &_result_ref
;
6617 wxPy_END_ALLOW_THREADS
;
6619 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6620 _resultobj
= Py_BuildValue("s",_ptemp
);
6623 _resultobj
= Py_None
;
6628 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6629 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6630 PyObject
* _resultobj
;
6637 PyObject
* _argo0
= 0;
6638 PyObject
* _obj1
= 0;
6639 char *_kwnames
[] = { "self","string", NULL
};
6648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6658 #if PYTHON_API_VERSION >= 1009
6659 char* tmpPtr
; int tmpSize
;
6660 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6661 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6664 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6666 _arg1
= new wxString(tmpPtr
, tmpSize
);
6668 if (!PyString_Check(_obj1
)) {
6669 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6672 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6676 wxPy_BEGIN_ALLOW_THREADS
;
6677 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6679 wxPy_END_ALLOW_THREADS
;
6680 } Py_INCREF(Py_None
);
6681 _resultobj
= Py_None
;
6684 o
= PyInt_FromLong((long) (*_arg2
));
6685 _resultobj
= t_output_helper(_resultobj
, o
);
6689 o
= PyInt_FromLong((long) (*_arg3
));
6690 _resultobj
= t_output_helper(_resultobj
, o
);
6699 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6700 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6701 PyObject
* _resultobj
;
6712 wxFont
* _arg6
= (wxFont
*) NULL
;
6713 PyObject
* _argo0
= 0;
6714 PyObject
* _obj1
= 0;
6715 PyObject
* _argo6
= 0;
6716 char *_kwnames
[] = { "self","string","font", NULL
};
6731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6741 #if PYTHON_API_VERSION >= 1009
6742 char* tmpPtr
; int tmpSize
;
6743 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6744 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6747 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6749 _arg1
= new wxString(tmpPtr
, tmpSize
);
6751 if (!PyString_Check(_obj1
)) {
6752 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6755 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6759 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6760 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6766 wxPy_BEGIN_ALLOW_THREADS
;
6767 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6769 wxPy_END_ALLOW_THREADS
;
6770 } Py_INCREF(Py_None
);
6771 _resultobj
= Py_None
;
6774 o
= PyInt_FromLong((long) (*_arg2
));
6775 _resultobj
= t_output_helper(_resultobj
, o
);
6779 o
= PyInt_FromLong((long) (*_arg3
));
6780 _resultobj
= t_output_helper(_resultobj
, o
);
6784 o
= PyInt_FromLong((long) (*_arg4
));
6785 _resultobj
= t_output_helper(_resultobj
, o
);
6789 o
= PyInt_FromLong((long) (*_arg5
));
6790 _resultobj
= t_output_helper(_resultobj
, o
);
6799 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6800 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6801 PyObject
* _resultobj
;
6804 PyObject
* _argo0
= 0;
6805 char *_kwnames
[] = { "self", NULL
};
6809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6819 wxPy_BEGIN_ALLOW_THREADS
;
6820 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
6821 _result
= (wxColour
*) &_result_ref
;
6823 wxPy_END_ALLOW_THREADS
;
6825 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6826 _resultobj
= Py_BuildValue("s",_ptemp
);
6829 _resultobj
= Py_None
;
6834 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6835 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6836 PyObject
* _resultobj
;
6842 PyObject
* _argo0
= 0;
6843 char *_kwnames
[] = { "self", NULL
};
6852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6862 wxPy_BEGIN_ALLOW_THREADS
;
6863 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6865 wxPy_END_ALLOW_THREADS
;
6866 } Py_INCREF(Py_None
);
6867 _resultobj
= Py_None
;
6870 o
= PyFloat_FromDouble((double) (*_arg1
));
6871 _resultobj
= t_output_helper(_resultobj
, o
);
6875 o
= PyFloat_FromDouble((double) (*_arg2
));
6876 _resultobj
= t_output_helper(_resultobj
, o
);
6881 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6882 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6883 PyObject
* _resultobj
;
6887 PyObject
* _argo0
= 0;
6888 char *_kwnames
[] = { "self","x", NULL
};
6891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6901 wxPy_BEGIN_ALLOW_THREADS
;
6902 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6904 wxPy_END_ALLOW_THREADS
;
6905 } _resultobj
= Py_BuildValue("l",_result
);
6909 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6910 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6911 PyObject
* _resultobj
;
6915 PyObject
* _argo0
= 0;
6916 char *_kwnames
[] = { "self","x", NULL
};
6919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6929 wxPy_BEGIN_ALLOW_THREADS
;
6930 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6932 wxPy_END_ALLOW_THREADS
;
6933 } _resultobj
= Py_BuildValue("l",_result
);
6937 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6938 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6939 PyObject
* _resultobj
;
6943 PyObject
* _argo0
= 0;
6944 char *_kwnames
[] = { "self","y", NULL
};
6947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6957 wxPy_BEGIN_ALLOW_THREADS
;
6958 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6960 wxPy_END_ALLOW_THREADS
;
6961 } _resultobj
= Py_BuildValue("l",_result
);
6965 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6966 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6967 PyObject
* _resultobj
;
6971 PyObject
* _argo0
= 0;
6972 char *_kwnames
[] = { "self","y", NULL
};
6975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6985 wxPy_BEGIN_ALLOW_THREADS
;
6986 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6988 wxPy_END_ALLOW_THREADS
;
6989 } _resultobj
= Py_BuildValue("l",_result
);
6993 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6994 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6995 PyObject
* _resultobj
;
6998 PyObject
* _argo0
= 0;
6999 char *_kwnames
[] = { "self", NULL
};
7002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7012 wxPy_BEGIN_ALLOW_THREADS
;
7013 _result
= (long )wxDC_MaxX(_arg0
);
7015 wxPy_END_ALLOW_THREADS
;
7016 } _resultobj
= Py_BuildValue("l",_result
);
7020 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7021 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7022 PyObject
* _resultobj
;
7025 PyObject
* _argo0
= 0;
7026 char *_kwnames
[] = { "self", NULL
};
7029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7039 wxPy_BEGIN_ALLOW_THREADS
;
7040 _result
= (long )wxDC_MaxY(_arg0
);
7042 wxPy_END_ALLOW_THREADS
;
7043 } _resultobj
= Py_BuildValue("l",_result
);
7047 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7048 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7049 PyObject
* _resultobj
;
7052 PyObject
* _argo0
= 0;
7053 char *_kwnames
[] = { "self", NULL
};
7056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7066 wxPy_BEGIN_ALLOW_THREADS
;
7067 _result
= (long )wxDC_MinX(_arg0
);
7069 wxPy_END_ALLOW_THREADS
;
7070 } _resultobj
= Py_BuildValue("l",_result
);
7074 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7075 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7076 PyObject
* _resultobj
;
7079 PyObject
* _argo0
= 0;
7080 char *_kwnames
[] = { "self", NULL
};
7083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7093 wxPy_BEGIN_ALLOW_THREADS
;
7094 _result
= (long )wxDC_MinY(_arg0
);
7096 wxPy_END_ALLOW_THREADS
;
7097 } _resultobj
= Py_BuildValue("l",_result
);
7101 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7102 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7103 PyObject
* _resultobj
;
7106 PyObject
* _argo0
= 0;
7107 char *_kwnames
[] = { "self", NULL
};
7110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7120 wxPy_BEGIN_ALLOW_THREADS
;
7121 _result
= (bool )wxDC_Ok(_arg0
);
7123 wxPy_END_ALLOW_THREADS
;
7124 } _resultobj
= Py_BuildValue("i",_result
);
7128 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7129 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7130 PyObject
* _resultobj
;
7134 PyObject
* _argo0
= 0;
7135 char *_kwnames
[] = { "self","x","y", NULL
};
7138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7148 wxPy_BEGIN_ALLOW_THREADS
;
7149 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7151 wxPy_END_ALLOW_THREADS
;
7152 } Py_INCREF(Py_None
);
7153 _resultobj
= Py_None
;
7157 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7158 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7159 PyObject
* _resultobj
;
7162 PyObject
* _argo0
= 0;
7163 PyObject
* _argo1
= 0;
7164 char *_kwnames
[] = { "self","brush", NULL
};
7167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7177 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7178 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7184 wxPy_BEGIN_ALLOW_THREADS
;
7185 wxDC_SetBackground(_arg0
,*_arg1
);
7187 wxPy_END_ALLOW_THREADS
;
7188 } Py_INCREF(Py_None
);
7189 _resultobj
= Py_None
;
7193 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7194 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7195 PyObject
* _resultobj
;
7198 PyObject
* _argo0
= 0;
7199 char *_kwnames
[] = { "self","mode", NULL
};
7202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7212 wxPy_BEGIN_ALLOW_THREADS
;
7213 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7215 wxPy_END_ALLOW_THREADS
;
7216 } Py_INCREF(Py_None
);
7217 _resultobj
= Py_None
;
7221 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7222 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7223 PyObject
* _resultobj
;
7229 PyObject
* _argo0
= 0;
7230 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7243 wxPy_BEGIN_ALLOW_THREADS
;
7244 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7246 wxPy_END_ALLOW_THREADS
;
7247 } Py_INCREF(Py_None
);
7248 _resultobj
= Py_None
;
7252 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7253 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7254 PyObject
* _resultobj
;
7257 PyObject
* _argo0
= 0;
7258 PyObject
* _argo1
= 0;
7259 char *_kwnames
[] = { "self","colourMap", NULL
};
7262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7272 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7273 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7279 wxPy_BEGIN_ALLOW_THREADS
;
7280 wxDC_SetPalette(_arg0
,*_arg1
);
7282 wxPy_END_ALLOW_THREADS
;
7283 } Py_INCREF(Py_None
);
7284 _resultobj
= Py_None
;
7288 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7289 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7290 PyObject
* _resultobj
;
7293 PyObject
* _argo0
= 0;
7294 PyObject
* _argo1
= 0;
7295 char *_kwnames
[] = { "self","brush", NULL
};
7298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7308 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7309 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7315 wxPy_BEGIN_ALLOW_THREADS
;
7316 wxDC_SetBrush(_arg0
,*_arg1
);
7318 wxPy_END_ALLOW_THREADS
;
7319 } Py_INCREF(Py_None
);
7320 _resultobj
= Py_None
;
7324 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7325 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7326 PyObject
* _resultobj
;
7329 PyObject
* _argo0
= 0;
7330 PyObject
* _argo1
= 0;
7331 char *_kwnames
[] = { "self","font", NULL
};
7334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7344 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7345 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7351 wxPy_BEGIN_ALLOW_THREADS
;
7352 wxDC_SetFont(_arg0
,*_arg1
);
7354 wxPy_END_ALLOW_THREADS
;
7355 } Py_INCREF(Py_None
);
7356 _resultobj
= Py_None
;
7360 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7361 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7362 PyObject
* _resultobj
;
7365 PyObject
* _argo0
= 0;
7366 char *_kwnames
[] = { "self","function", NULL
};
7369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7379 wxPy_BEGIN_ALLOW_THREADS
;
7380 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7382 wxPy_END_ALLOW_THREADS
;
7383 } Py_INCREF(Py_None
);
7384 _resultobj
= Py_None
;
7388 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7389 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
* _resultobj
;
7394 PyObject
* _argo0
= 0;
7395 char *_kwnames
[] = { "self","x","y", NULL
};
7398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7408 wxPy_BEGIN_ALLOW_THREADS
;
7409 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7411 wxPy_END_ALLOW_THREADS
;
7412 } Py_INCREF(Py_None
);
7413 _resultobj
= Py_None
;
7417 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7418 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7419 PyObject
* _resultobj
;
7422 PyObject
* _argo0
= 0;
7423 char *_kwnames
[] = { "self","mode", NULL
};
7426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7436 wxPy_BEGIN_ALLOW_THREADS
;
7437 wxDC_SetMapMode(_arg0
,_arg1
);
7439 wxPy_END_ALLOW_THREADS
;
7440 } Py_INCREF(Py_None
);
7441 _resultobj
= Py_None
;
7445 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7446 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7447 PyObject
* _resultobj
;
7450 PyObject
* _argo0
= 0;
7452 char *_kwnames
[] = { "self","optimize", NULL
};
7455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7464 _arg1
= (bool ) tempbool1
;
7466 wxPy_BEGIN_ALLOW_THREADS
;
7467 wxDC_SetOptimization(_arg0
,_arg1
);
7469 wxPy_END_ALLOW_THREADS
;
7470 } Py_INCREF(Py_None
);
7471 _resultobj
= Py_None
;
7475 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7476 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7477 PyObject
* _resultobj
;
7480 PyObject
* _argo0
= 0;
7481 PyObject
* _argo1
= 0;
7482 char *_kwnames
[] = { "self","pen", NULL
};
7485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7495 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7496 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7502 wxPy_BEGIN_ALLOW_THREADS
;
7503 wxDC_SetPen(_arg0
,*_arg1
);
7505 wxPy_END_ALLOW_THREADS
;
7506 } Py_INCREF(Py_None
);
7507 _resultobj
= Py_None
;
7511 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7512 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7513 PyObject
* _resultobj
;
7516 PyObject
* _argo0
= 0;
7518 PyObject
* _obj1
= 0;
7519 char *_kwnames
[] = { "self","colour", NULL
};
7522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7533 if (! wxColour_helper(_obj1
, &_arg1
))
7537 wxPy_BEGIN_ALLOW_THREADS
;
7538 wxDC_SetTextBackground(_arg0
,*_arg1
);
7540 wxPy_END_ALLOW_THREADS
;
7541 } Py_INCREF(Py_None
);
7542 _resultobj
= Py_None
;
7546 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7547 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7548 PyObject
* _resultobj
;
7551 PyObject
* _argo0
= 0;
7553 PyObject
* _obj1
= 0;
7554 char *_kwnames
[] = { "self","colour", NULL
};
7557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7568 if (! wxColour_helper(_obj1
, &_arg1
))
7572 wxPy_BEGIN_ALLOW_THREADS
;
7573 wxDC_SetTextForeground(_arg0
,*_arg1
);
7575 wxPy_END_ALLOW_THREADS
;
7576 } Py_INCREF(Py_None
);
7577 _resultobj
= Py_None
;
7581 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7582 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7583 PyObject
* _resultobj
;
7587 PyObject
* _argo0
= 0;
7588 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7601 wxPy_BEGIN_ALLOW_THREADS
;
7602 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7604 wxPy_END_ALLOW_THREADS
;
7605 } Py_INCREF(Py_None
);
7606 _resultobj
= Py_None
;
7610 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7611 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7612 PyObject
* _resultobj
;
7616 PyObject
* _argo0
= 0;
7617 PyObject
* _obj1
= 0;
7618 char *_kwnames
[] = { "self","message", NULL
};
7621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7631 #if PYTHON_API_VERSION >= 1009
7632 char* tmpPtr
; int tmpSize
;
7633 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7634 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
7637 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7639 _arg1
= new wxString(tmpPtr
, tmpSize
);
7641 if (!PyString_Check(_obj1
)) {
7642 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7645 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7649 wxPy_BEGIN_ALLOW_THREADS
;
7650 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7652 wxPy_END_ALLOW_THREADS
;
7653 } _resultobj
= Py_BuildValue("i",_result
);
7661 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7662 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7663 PyObject
* _resultobj
;
7665 PyObject
* _argo0
= 0;
7666 char *_kwnames
[] = { "self", NULL
};
7669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7679 wxPy_BEGIN_ALLOW_THREADS
;
7680 wxDC_StartPage(_arg0
);
7682 wxPy_END_ALLOW_THREADS
;
7683 } Py_INCREF(Py_None
);
7684 _resultobj
= Py_None
;
7688 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7689 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7690 PyObject
* _resultobj
;
7695 int _arg4
= (int ) FALSE
;
7696 PyObject
* _argo0
= 0;
7697 PyObject
* _argo1
= 0;
7698 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7711 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7712 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7718 wxPy_BEGIN_ALLOW_THREADS
;
7719 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7721 wxPy_END_ALLOW_THREADS
;
7722 } Py_INCREF(Py_None
);
7723 _resultobj
= Py_None
;
7727 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7728 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7729 PyObject
* _resultobj
;
7732 PyObject
* _argo0
= 0;
7733 char *_kwnames
[] = { "self", NULL
};
7736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7746 wxPy_BEGIN_ALLOW_THREADS
;
7747 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7749 wxPy_END_ALLOW_THREADS
;
7750 } _resultobj
= Py_BuildValue("i",_result
);
7754 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7755 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7756 PyObject
* _resultobj
;
7759 PyObject
* _argo0
= 0;
7760 char *_kwnames
[] = { "self", NULL
};
7763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7773 wxPy_BEGIN_ALLOW_THREADS
;
7774 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7776 wxPy_END_ALLOW_THREADS
;
7777 } _resultobj
= Py_BuildValue("i",_result
);
7781 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7782 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7783 PyObject
* _resultobj
;
7786 PyObject
* _argo0
= 0;
7787 char *_kwnames
[] = { "self", NULL
};
7790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7800 wxPy_BEGIN_ALLOW_THREADS
;
7801 _result
= (int )wxDC_GetDepth(_arg0
);
7803 wxPy_END_ALLOW_THREADS
;
7804 } _resultobj
= Py_BuildValue("i",_result
);
7808 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7809 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7810 PyObject
* _resultobj
;
7813 PyObject
* _argo0
= 0;
7814 char *_kwnames
[] = { "self", NULL
};
7818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7828 wxPy_BEGIN_ALLOW_THREADS
;
7829 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7831 wxPy_END_ALLOW_THREADS
;
7832 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7833 _resultobj
= Py_BuildValue("s",_ptemp
);
7837 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7838 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7839 PyObject
* _resultobj
;
7845 PyObject
* _argo0
= 0;
7846 char *_kwnames
[] = { "self", NULL
};
7855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7865 wxPy_BEGIN_ALLOW_THREADS
;
7866 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7868 wxPy_END_ALLOW_THREADS
;
7869 } Py_INCREF(Py_None
);
7870 _resultobj
= Py_None
;
7873 o
= PyInt_FromLong((long) (*_arg1
));
7874 _resultobj
= t_output_helper(_resultobj
, o
);
7878 o
= PyInt_FromLong((long) (*_arg2
));
7879 _resultobj
= t_output_helper(_resultobj
, o
);
7884 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7885 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7886 PyObject
* _resultobj
;
7890 PyObject
* _argo0
= 0;
7891 char *_kwnames
[] = { "self","x","y", NULL
};
7894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7904 wxPy_BEGIN_ALLOW_THREADS
;
7905 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7907 wxPy_END_ALLOW_THREADS
;
7908 } Py_INCREF(Py_None
);
7909 _resultobj
= Py_None
;
7913 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7914 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7915 PyObject
* _resultobj
;
7921 PyObject
* _argo0
= 0;
7922 char *_kwnames
[] = { "self", NULL
};
7931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7941 wxPy_BEGIN_ALLOW_THREADS
;
7942 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7944 wxPy_END_ALLOW_THREADS
;
7945 } Py_INCREF(Py_None
);
7946 _resultobj
= Py_None
;
7949 o
= PyInt_FromLong((long) (*_arg1
));
7950 _resultobj
= t_output_helper(_resultobj
, o
);
7954 o
= PyInt_FromLong((long) (*_arg2
));
7955 _resultobj
= t_output_helper(_resultobj
, o
);
7960 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7961 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7962 PyObject
* _resultobj
;
7966 PyObject
* _argo0
= 0;
7969 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7981 _arg1
= (bool ) tempbool1
;
7982 _arg2
= (bool ) tempbool2
;
7984 wxPy_BEGIN_ALLOW_THREADS
;
7985 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7987 wxPy_END_ALLOW_THREADS
;
7988 } Py_INCREF(Py_None
);
7989 _resultobj
= Py_None
;
7993 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7994 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7995 PyObject
* _resultobj
;
7999 PyObject
* _argo0
= 0;
8000 char *_kwnames
[] = { "self","x","y", NULL
};
8003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8013 wxPy_BEGIN_ALLOW_THREADS
;
8014 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8016 wxPy_END_ALLOW_THREADS
;
8017 } Py_INCREF(Py_None
);
8018 _resultobj
= Py_None
;
8022 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8023 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8024 PyObject
* _resultobj
;
8026 PyObject
* _argo0
= 0;
8027 char *_kwnames
[] = { "self", NULL
};
8030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8040 wxPy_BEGIN_ALLOW_THREADS
;
8041 wxDC_ResetBoundingBox(_arg0
);
8043 wxPy_END_ALLOW_THREADS
;
8044 } Py_INCREF(Py_None
);
8045 _resultobj
= Py_None
;
8049 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8052 src
= (wxMemoryDC
*) ptr
;
8053 dest
= (wxDC
*) src
;
8054 return (void *) dest
;
8057 #define new_wxMemoryDC() (new wxMemoryDC())
8058 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8059 PyObject
* _resultobj
;
8060 wxMemoryDC
* _result
;
8061 char *_kwnames
[] = { NULL
};
8065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8068 wxPy_BEGIN_ALLOW_THREADS
;
8069 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8071 wxPy_END_ALLOW_THREADS
;
8073 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8074 _resultobj
= Py_BuildValue("s",_ptemp
);
8077 _resultobj
= Py_None
;
8082 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8083 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8084 PyObject
* _resultobj
;
8087 PyObject
* _argo0
= 0;
8088 PyObject
* _argo1
= 0;
8089 char *_kwnames
[] = { "self","bitmap", NULL
};
8092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8102 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8103 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8109 wxPy_BEGIN_ALLOW_THREADS
;
8110 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8112 wxPy_END_ALLOW_THREADS
;
8113 } Py_INCREF(Py_None
);
8114 _resultobj
= Py_None
;
8118 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8121 src
= (wxScreenDC
*) ptr
;
8122 dest
= (wxDC
*) src
;
8123 return (void *) dest
;
8126 #define new_wxScreenDC() (new wxScreenDC())
8127 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8128 PyObject
* _resultobj
;
8129 wxScreenDC
* _result
;
8130 char *_kwnames
[] = { NULL
};
8134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8137 wxPy_BEGIN_ALLOW_THREADS
;
8138 _result
= (wxScreenDC
*)new_wxScreenDC();
8140 wxPy_END_ALLOW_THREADS
;
8142 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8143 _resultobj
= Py_BuildValue("s",_ptemp
);
8146 _resultobj
= Py_None
;
8151 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8152 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8153 PyObject
* _resultobj
;
8157 PyObject
* _argo0
= 0;
8158 PyObject
* _argo1
= 0;
8159 char *_kwnames
[] = { "self","window", NULL
};
8162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8172 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8173 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8179 wxPy_BEGIN_ALLOW_THREADS
;
8180 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8182 wxPy_END_ALLOW_THREADS
;
8183 } _resultobj
= Py_BuildValue("i",_result
);
8187 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8188 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8189 PyObject
* _resultobj
;
8192 wxRect
* _arg1
= (wxRect
*) NULL
;
8193 PyObject
* _argo0
= 0;
8195 PyObject
* _obj1
= 0;
8196 char *_kwnames
[] = { "self","rect", NULL
};
8199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8211 if (! wxRect_helper(_obj1
, &_arg1
))
8215 wxPy_BEGIN_ALLOW_THREADS
;
8216 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8218 wxPy_END_ALLOW_THREADS
;
8219 } _resultobj
= Py_BuildValue("i",_result
);
8223 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8224 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8225 PyObject
* _resultobj
;
8228 PyObject
* _argo0
= 0;
8229 char *_kwnames
[] = { "self", NULL
};
8232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8242 wxPy_BEGIN_ALLOW_THREADS
;
8243 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8245 wxPy_END_ALLOW_THREADS
;
8246 } _resultobj
= Py_BuildValue("i",_result
);
8250 static void *SwigwxClientDCTowxDC(void *ptr
) {
8253 src
= (wxClientDC
*) ptr
;
8254 dest
= (wxDC
*) src
;
8255 return (void *) dest
;
8258 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8259 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8260 PyObject
* _resultobj
;
8261 wxClientDC
* _result
;
8263 PyObject
* _argo0
= 0;
8264 char *_kwnames
[] = { "win", NULL
};
8268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8278 wxPy_BEGIN_ALLOW_THREADS
;
8279 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8281 wxPy_END_ALLOW_THREADS
;
8283 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8284 _resultobj
= Py_BuildValue("s",_ptemp
);
8287 _resultobj
= Py_None
;
8292 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8295 src
= (wxPaintDC
*) ptr
;
8296 dest
= (wxDC
*) src
;
8297 return (void *) dest
;
8300 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8301 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8302 PyObject
* _resultobj
;
8303 wxPaintDC
* _result
;
8305 PyObject
* _argo0
= 0;
8306 char *_kwnames
[] = { "win", NULL
};
8310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8320 wxPy_BEGIN_ALLOW_THREADS
;
8321 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8323 wxPy_END_ALLOW_THREADS
;
8325 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8326 _resultobj
= Py_BuildValue("s",_ptemp
);
8329 _resultobj
= Py_None
;
8334 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8337 src
= (wxWindowDC
*) ptr
;
8338 dest
= (wxDC
*) src
;
8339 return (void *) dest
;
8342 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8343 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8344 PyObject
* _resultobj
;
8345 wxWindowDC
* _result
;
8347 PyObject
* _argo0
= 0;
8348 char *_kwnames
[] = { "win", NULL
};
8352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8362 wxPy_BEGIN_ALLOW_THREADS
;
8363 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8365 wxPy_END_ALLOW_THREADS
;
8367 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8368 _resultobj
= Py_BuildValue("s",_ptemp
);
8371 _resultobj
= Py_None
;
8376 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
8379 src
= (wxMetaFileDC
*) ptr
;
8380 dest
= (wxDC
*) src
;
8381 return (void *) dest
;
8384 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8385 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8386 PyObject
* _resultobj
;
8387 wxMetaFileDC
* _result
;
8388 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
8389 PyObject
* _obj0
= 0;
8390 char *_kwnames
[] = { "filename", NULL
};
8394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
8398 #if PYTHON_API_VERSION >= 1009
8399 char* tmpPtr
; int tmpSize
;
8400 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8401 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
8404 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8406 _arg0
= new wxString(tmpPtr
, tmpSize
);
8408 if (!PyString_Check(_obj0
)) {
8409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8412 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8416 wxPy_BEGIN_ALLOW_THREADS
;
8417 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
8419 wxPy_END_ALLOW_THREADS
;
8421 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
8422 _resultobj
= Py_BuildValue("s",_ptemp
);
8425 _resultobj
= Py_None
;
8434 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8435 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8436 PyObject
* _resultobj
;
8437 wxMetaFile
* _result
;
8438 wxMetaFileDC
* _arg0
;
8439 PyObject
* _argo0
= 0;
8440 char *_kwnames
[] = { "self", NULL
};
8444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
8447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
8449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
8454 wxPy_BEGIN_ALLOW_THREADS
;
8455 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
8457 wxPy_END_ALLOW_THREADS
;
8459 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
8460 _resultobj
= Py_BuildValue("s",_ptemp
);
8463 _resultobj
= Py_None
;
8468 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8469 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8470 PyObject
* _resultobj
;
8471 wxPalette
* _result
;
8476 PyObject
* _obj1
= 0;
8477 PyObject
* _obj2
= 0;
8478 PyObject
* _obj3
= 0;
8479 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8486 _arg1
= byte_LIST_helper(_obj1
);
8487 if (_arg1
== NULL
) {
8492 _arg2
= byte_LIST_helper(_obj2
);
8493 if (_arg2
== NULL
) {
8499 _arg3
= byte_LIST_helper(_obj3
);
8500 if (_arg3
== NULL
) {
8506 _arg0
= PyList_Size(_obj1
);
8513 wxPy_BEGIN_ALLOW_THREADS
;
8514 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8516 wxPy_END_ALLOW_THREADS
;
8518 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8519 _resultobj
= Py_BuildValue("s",_ptemp
);
8522 _resultobj
= Py_None
;
8536 #define delete_wxPalette(_swigobj) (delete _swigobj)
8537 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8538 PyObject
* _resultobj
;
8540 PyObject
* _argo0
= 0;
8541 char *_kwnames
[] = { "self", NULL
};
8544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8554 wxPy_BEGIN_ALLOW_THREADS
;
8555 delete_wxPalette(_arg0
);
8557 wxPy_END_ALLOW_THREADS
;
8558 } Py_INCREF(Py_None
);
8559 _resultobj
= Py_None
;
8563 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8564 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8565 PyObject
* _resultobj
;
8571 PyObject
* _argo0
= 0;
8572 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8585 wxPy_BEGIN_ALLOW_THREADS
;
8586 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8588 wxPy_END_ALLOW_THREADS
;
8589 } _resultobj
= Py_BuildValue("i",_result
);
8593 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8594 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8595 PyObject
* _resultobj
;
8602 PyObject
* _argo0
= 0;
8603 PyObject
* _argo2
= 0;
8604 PyObject
* _argo3
= 0;
8605 PyObject
* _argo4
= 0;
8606 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
8609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
8612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8619 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8620 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
8621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8626 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8627 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
8628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8633 if (_argo4
== Py_None
) { _arg4
= NULL
; }
8634 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
8635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8640 wxPy_BEGIN_ALLOW_THREADS
;
8641 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8643 wxPy_END_ALLOW_THREADS
;
8644 } _resultobj
= Py_BuildValue("i",_result
);
8648 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8649 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8650 PyObject
* _resultobj
;
8653 PyObject
* _argo0
= 0;
8654 char *_kwnames
[] = { "self", NULL
};
8657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8667 wxPy_BEGIN_ALLOW_THREADS
;
8668 _result
= (bool )wxPalette_Ok(_arg0
);
8670 wxPy_END_ALLOW_THREADS
;
8671 } _resultobj
= Py_BuildValue("i",_result
);
8675 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8676 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8677 PyObject
* _resultobj
;
8678 wxImageList
* _result
;
8681 int _arg2
= (int ) TRUE
;
8682 int _arg3
= (int ) 1;
8683 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8690 wxPy_BEGIN_ALLOW_THREADS
;
8691 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8693 wxPy_END_ALLOW_THREADS
;
8695 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8696 _resultobj
= Py_BuildValue("s",_ptemp
);
8699 _resultobj
= Py_None
;
8704 #define delete_wxImageList(_swigobj) (delete _swigobj)
8705 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8706 PyObject
* _resultobj
;
8707 wxImageList
* _arg0
;
8708 PyObject
* _argo0
= 0;
8709 char *_kwnames
[] = { "self", NULL
};
8712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8722 wxPy_BEGIN_ALLOW_THREADS
;
8723 delete_wxImageList(_arg0
);
8725 wxPy_END_ALLOW_THREADS
;
8726 } Py_INCREF(Py_None
);
8727 _resultobj
= Py_None
;
8731 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8732 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8733 PyObject
* _resultobj
;
8735 wxImageList
* _arg0
;
8737 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8738 PyObject
* _argo0
= 0;
8739 PyObject
* _argo1
= 0;
8740 PyObject
* _argo2
= 0;
8741 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8761 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8762 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8768 wxPy_BEGIN_ALLOW_THREADS
;
8769 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8771 wxPy_END_ALLOW_THREADS
;
8772 } _resultobj
= Py_BuildValue("i",_result
);
8776 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8777 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8778 PyObject
* _resultobj
;
8780 wxImageList
* _arg0
;
8783 PyObject
* _argo0
= 0;
8784 PyObject
* _argo1
= 0;
8786 PyObject
* _obj2
= 0;
8787 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8800 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8801 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8808 if (! wxColour_helper(_obj2
, &_arg2
))
8812 wxPy_BEGIN_ALLOW_THREADS
;
8813 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8815 wxPy_END_ALLOW_THREADS
;
8816 } _resultobj
= Py_BuildValue("i",_result
);
8820 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8821 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8822 PyObject
* _resultobj
;
8824 wxImageList
* _arg0
;
8826 PyObject
* _argo0
= 0;
8827 PyObject
* _argo1
= 0;
8828 char *_kwnames
[] = { "self","icon", NULL
};
8831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8841 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8842 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8848 wxPy_BEGIN_ALLOW_THREADS
;
8849 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8851 wxPy_END_ALLOW_THREADS
;
8852 } _resultobj
= Py_BuildValue("i",_result
);
8856 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8857 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8858 PyObject
* _resultobj
;
8860 wxImageList
* _arg0
;
8863 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
8864 PyObject
* _argo0
= 0;
8865 PyObject
* _argo2
= 0;
8866 PyObject
* _argo3
= 0;
8867 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
8870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
8873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8880 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8881 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8887 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8888 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
8889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
8894 wxPy_BEGIN_ALLOW_THREADS
;
8895 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
8897 wxPy_END_ALLOW_THREADS
;
8898 } _resultobj
= Py_BuildValue("i",_result
);
8902 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8903 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8904 PyObject
* _resultobj
;
8906 wxImageList
* _arg0
;
8911 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8912 bool _arg6
= (bool ) FALSE
;
8913 PyObject
* _argo0
= 0;
8914 PyObject
* _argo2
= 0;
8915 int tempbool6
= (int) FALSE
;
8916 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8929 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8930 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8935 _arg6
= (bool ) tempbool6
;
8937 wxPy_BEGIN_ALLOW_THREADS
;
8938 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8940 wxPy_END_ALLOW_THREADS
;
8941 } _resultobj
= Py_BuildValue("i",_result
);
8945 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8946 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8947 PyObject
* _resultobj
;
8949 wxImageList
* _arg0
;
8950 PyObject
* _argo0
= 0;
8951 char *_kwnames
[] = { "self", NULL
};
8954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8964 wxPy_BEGIN_ALLOW_THREADS
;
8965 _result
= (int )wxImageList_GetImageCount(_arg0
);
8967 wxPy_END_ALLOW_THREADS
;
8968 } _resultobj
= Py_BuildValue("i",_result
);
8972 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8973 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8974 PyObject
* _resultobj
;
8976 wxImageList
* _arg0
;
8978 PyObject
* _argo0
= 0;
8979 char *_kwnames
[] = { "self","index", NULL
};
8982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8992 wxPy_BEGIN_ALLOW_THREADS
;
8993 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8995 wxPy_END_ALLOW_THREADS
;
8996 } _resultobj
= Py_BuildValue("i",_result
);
9000 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9001 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9002 PyObject
* _resultobj
;
9004 wxImageList
* _arg0
;
9005 PyObject
* _argo0
= 0;
9006 char *_kwnames
[] = { "self", NULL
};
9009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9019 wxPy_BEGIN_ALLOW_THREADS
;
9020 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9022 wxPy_END_ALLOW_THREADS
;
9023 } _resultobj
= Py_BuildValue("i",_result
);
9027 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9028 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9029 PyObject
* _resultobj
;
9030 wxImageList
* _arg0
;
9036 PyObject
* _argo0
= 0;
9037 char *_kwnames
[] = { "self","index", NULL
};
9046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9056 wxPy_BEGIN_ALLOW_THREADS
;
9057 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9059 wxPy_END_ALLOW_THREADS
;
9060 } Py_INCREF(Py_None
);
9061 _resultobj
= Py_None
;
9064 o
= PyInt_FromLong((long) (*_arg2
));
9065 _resultobj
= t_output_helper(_resultobj
, o
);
9069 o
= PyInt_FromLong((long) (*_arg3
));
9070 _resultobj
= t_output_helper(_resultobj
, o
);
9075 static PyMethodDef gdicMethods
[] = {
9076 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9077 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
9078 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9079 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
9080 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
9081 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9082 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
9083 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
9084 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
9085 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9086 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
9087 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9088 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
9089 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9090 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9091 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
9092 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
9093 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
9094 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
9095 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
9096 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
9097 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9098 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
9099 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
9100 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
9101 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
9102 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
9103 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9104 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
9105 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
9106 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9107 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9108 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9109 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
9110 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9111 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9112 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9113 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9114 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
9115 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
9116 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9117 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9118 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9119 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
9120 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9121 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9122 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9123 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9124 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
9125 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9126 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9127 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9128 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
9129 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9130 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
9131 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9132 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
9133 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
9134 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
9135 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
9136 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
9137 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
9138 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
9139 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
9140 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
9141 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
9142 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9143 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
9144 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
9145 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
9146 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
9147 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
9148 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
9149 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
9150 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
9151 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
9152 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
9153 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
9154 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
9155 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
9156 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
9157 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
9158 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
9159 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
9160 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
9161 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
9162 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
9163 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
9164 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
9165 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
9166 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
9167 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
9168 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
9169 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
9170 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
9171 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
9172 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
9173 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
9174 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
9175 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
9176 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
9177 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
9178 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
9179 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
9180 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
9181 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
9182 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
9183 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
9184 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
9185 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
9186 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
9187 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
9188 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
9189 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
9190 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
9191 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9192 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9193 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
9194 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9195 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9196 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9197 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
9198 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
9199 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
9200 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
9201 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
9202 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
9203 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9204 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
9205 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
9206 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
9207 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9208 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9209 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
9210 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
9211 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
9212 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9213 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9214 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9215 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
9216 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
9217 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
9218 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
9219 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
9220 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
9221 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
9222 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
9223 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
9224 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
9225 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9226 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
9227 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
9228 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
9229 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
9230 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
9231 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
9232 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
9233 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
9234 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
9235 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
9236 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
9237 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9238 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
9239 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
9240 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9241 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
9242 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
9243 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
9244 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9245 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
9246 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
9247 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9248 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
9249 { "wxFont_GetFontId", (PyCFunction
) _wrap_wxFont_GetFontId
, METH_VARARGS
| METH_KEYWORDS
},
9250 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
9251 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
9252 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9253 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
9254 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
9255 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9256 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9257 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9258 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9259 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9260 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9261 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9262 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9263 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9264 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9265 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
9266 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
9267 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9268 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9269 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9270 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9271 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9272 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9273 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9274 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9275 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9276 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9277 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9278 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
9279 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
9280 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
9281 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9282 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
9283 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
9284 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
9285 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
9286 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
9287 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9288 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9289 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9290 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9291 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9292 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9293 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9294 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9295 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9296 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9297 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9298 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9299 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
9300 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
9301 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
9302 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
9303 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9304 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9305 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9306 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
9307 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
9308 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9309 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9310 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
9311 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
9312 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
9313 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
9314 { "wxBitmapFromData", (PyCFunction
) _wrap_wxBitmapFromData
, METH_VARARGS
| METH_KEYWORDS
},
9315 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
9316 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
9317 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9324 * This table is used by the pointer type-checker
9326 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
9327 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
9328 { "_signed_long","_long",0},
9329 { "_wxPrintQuality","_wxCoord",0},
9330 { "_wxPrintQuality","_int",0},
9331 { "_wxPrintQuality","_signed_int",0},
9332 { "_wxPrintQuality","_unsigned_int",0},
9333 { "_wxPrintQuality","_wxWindowID",0},
9334 { "_wxPrintQuality","_uint",0},
9335 { "_wxPrintQuality","_EBool",0},
9336 { "_wxPrintQuality","_size_t",0},
9337 { "_wxPrintQuality","_time_t",0},
9338 { "_class_wxRegionIterator","_wxRegionIterator",0},
9339 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
9340 { "_wxCursor","_class_wxCursor",0},
9341 { "_wxMask","_class_wxMask",0},
9342 { "_wxPen","_class_wxPen",0},
9343 { "_byte","_unsigned_char",0},
9344 { "_wxColourDatabase","_class_wxColourDatabase",0},
9345 { "_long","_unsigned_long",0},
9346 { "_long","_signed_long",0},
9347 { "_wxImageList","_class_wxImageList",0},
9348 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
9349 { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9350 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9351 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
9352 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
9353 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
9354 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
9355 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
9356 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
9357 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
9358 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
9359 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9360 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9361 { "_wxDC","_class_wxDC",0},
9362 { "_size_t","_wxCoord",0},
9363 { "_size_t","_wxPrintQuality",0},
9364 { "_size_t","_time_t",0},
9365 { "_size_t","_unsigned_int",0},
9366 { "_size_t","_int",0},
9367 { "_size_t","_wxWindowID",0},
9368 { "_size_t","_uint",0},
9369 { "_class_wxRealPoint","_wxRealPoint",0},
9370 { "_class_wxMask","_wxMask",0},
9371 { "_wxColour","_class_wxColour",0},
9372 { "_wxBrush","_class_wxBrush",0},
9373 { "_uint","_wxCoord",0},
9374 { "_uint","_wxPrintQuality",0},
9375 { "_uint","_time_t",0},
9376 { "_uint","_size_t",0},
9377 { "_uint","_unsigned_int",0},
9378 { "_uint","_int",0},
9379 { "_uint","_wxWindowID",0},
9380 { "_wxChar","_char",0},
9381 { "_wxRect","_class_wxRect",0},
9382 { "_wxPoint","_class_wxPoint",0},
9383 { "_char","_wxChar",0},
9384 { "_wxBitmap","_class_wxBitmap",0},
9385 { "_wxPenList","_class_wxPenList",0},
9386 { "_wxWindowDC","_class_wxWindowDC",0},
9387 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
9388 { "_class_wxColourDatabase","_wxColourDatabase",0},
9389 { "_EBool","_wxCoord",0},
9390 { "_EBool","_wxPrintQuality",0},
9391 { "_EBool","_signed_int",0},
9392 { "_EBool","_int",0},
9393 { "_EBool","_wxWindowID",0},
9394 { "_class_wxRegion","_wxRegion",0},
9395 { "_wxFont","_class_wxFont",0},
9396 { "_unsigned_long","_long",0},
9397 { "_class_wxRect","_wxRect",0},
9398 { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9399 { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9400 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
9401 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
9402 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
9403 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
9404 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
9405 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
9406 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
9407 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
9408 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9409 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9410 { "_class_wxDC","_wxDC",0},
9411 { "_class_wxBrushList","_wxBrushList",0},
9412 { "_class_wxPenList","_wxPenList",0},
9413 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
9414 { "_signed_int","_wxCoord",0},
9415 { "_signed_int","_wxPrintQuality",0},
9416 { "_signed_int","_EBool",0},
9417 { "_signed_int","_wxWindowID",0},
9418 { "_signed_int","_int",0},
9419 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
9420 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
9421 { "_wxScreenDC","_class_wxScreenDC",0},
9422 { "_WXTYPE","_short",0},
9423 { "_WXTYPE","_signed_short",0},
9424 { "_WXTYPE","_unsigned_short",0},
9425 { "_class_wxBrush","_wxBrush",0},
9426 { "_unsigned_short","_WXTYPE",0},
9427 { "_unsigned_short","_short",0},
9428 { "_class_wxFont","_wxFont",0},
9429 { "_wxBusyInfo","_class_wxBusyInfo",0},
9430 { "_wxFontList","_class_wxFontList",0},
9431 { "_wxClientDC","_class_wxClientDC",0},
9432 { "_class_wxPoint","_wxPoint",0},
9433 { "_wxRealPoint","_class_wxRealPoint",0},
9434 { "_signed_short","_WXTYPE",0},
9435 { "_signed_short","_short",0},
9436 { "_wxMemoryDC","_class_wxMemoryDC",0},
9437 { "_wxPaintDC","_class_wxPaintDC",0},
9438 { "_class_wxWindowDC","_wxWindowDC",0},
9439 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
9440 { "_class_wxCursor","_wxCursor",0},
9441 { "_unsigned_char","_byte",0},
9442 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
9443 { "_unsigned_int","_wxCoord",0},
9444 { "_unsigned_int","_wxPrintQuality",0},
9445 { "_unsigned_int","_time_t",0},
9446 { "_unsigned_int","_size_t",0},
9447 { "_unsigned_int","_uint",0},
9448 { "_unsigned_int","_wxWindowID",0},
9449 { "_unsigned_int","_int",0},
9450 { "_wxIcon","_class_wxIcon",0},
9451 { "_class_wxPen","_wxPen",0},
9452 { "_short","_WXTYPE",0},
9453 { "_short","_unsigned_short",0},
9454 { "_short","_signed_short",0},
9455 { "_class_wxImageList","_wxImageList",0},
9456 { "_wxWindowID","_wxCoord",0},
9457 { "_wxWindowID","_wxPrintQuality",0},
9458 { "_wxWindowID","_time_t",0},
9459 { "_wxWindowID","_size_t",0},
9460 { "_wxWindowID","_EBool",0},
9461 { "_wxWindowID","_uint",0},
9462 { "_wxWindowID","_int",0},
9463 { "_wxWindowID","_signed_int",0},
9464 { "_wxWindowID","_unsigned_int",0},
9465 { "_int","_wxCoord",0},
9466 { "_int","_wxPrintQuality",0},
9467 { "_int","_time_t",0},
9468 { "_int","_size_t",0},
9469 { "_int","_EBool",0},
9470 { "_int","_uint",0},
9471 { "_int","_wxWindowID",0},
9472 { "_int","_unsigned_int",0},
9473 { "_int","_signed_int",0},
9474 { "_time_t","_wxCoord",0},
9475 { "_time_t","_wxPrintQuality",0},
9476 { "_time_t","_unsigned_int",0},
9477 { "_time_t","_int",0},
9478 { "_time_t","_wxWindowID",0},
9479 { "_time_t","_uint",0},
9480 { "_time_t","_size_t",0},
9481 { "_wxSize","_class_wxSize",0},
9482 { "_wxRegionIterator","_class_wxRegionIterator",0},
9483 { "_class_wxPaintDC","_wxPaintDC",0},
9484 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
9485 { "_class_wxIcon","_wxIcon",0},
9486 { "_class_wxColour","_wxColour",0},
9487 { "_class_wxScreenDC","_wxScreenDC",0},
9488 { "_wxPalette","_class_wxPalette",0},
9489 { "_wxCoord","_int",0},
9490 { "_wxCoord","_signed_int",0},
9491 { "_wxCoord","_unsigned_int",0},
9492 { "_wxCoord","_wxWindowID",0},
9493 { "_wxCoord","_uint",0},
9494 { "_wxCoord","_EBool",0},
9495 { "_wxCoord","_size_t",0},
9496 { "_wxCoord","_time_t",0},
9497 { "_wxCoord","_wxPrintQuality",0},
9498 { "_wxRegion","_class_wxRegion",0},
9499 { "_class_wxBusyInfo","_wxBusyInfo",0},
9500 { "_class_wxFontList","_wxFontList",0},
9501 { "_class_wxClientDC","_wxClientDC",0},
9502 { "_wxBrushList","_class_wxBrushList",0},
9503 { "_class_wxSize","_wxSize",0},
9504 { "_class_wxBitmap","_wxBitmap",0},
9505 { "_class_wxMemoryDC","_wxMemoryDC",0},
9506 { "_class_wxPalette","_wxPalette",0},
9509 static PyObject
*SWIG_globals
;
9513 SWIGEXPORT(void) initgdic() {
9515 SWIG_globals
= SWIG_newvarlink();
9516 m
= Py_InitModule("gdic", gdicMethods
);
9517 d
= PyModule_GetDict(m
);
9518 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
9519 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
9520 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
9521 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
9522 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
9523 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
9524 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
9525 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
9526 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
9527 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
9528 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
9529 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
9530 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
9531 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
9532 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
9533 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
9534 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
9535 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
9536 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
9537 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
9538 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
9539 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
9540 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
9541 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
9542 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
9543 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
9544 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
9545 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
9546 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
9547 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
9548 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
9549 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
9550 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
9551 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
9552 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
9553 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
9554 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
9555 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
9556 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
9557 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
9558 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
9559 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
9560 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
9561 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
9562 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
9563 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
9564 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
9565 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
9566 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
9567 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
9568 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
9569 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
9570 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
9571 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
9572 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
9573 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
9574 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
9575 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
9576 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
9577 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
9578 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
9579 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
9580 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
9581 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
9582 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
9583 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
9584 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
9585 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
9586 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
9587 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
9588 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
9589 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
9590 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
9591 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
9592 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
9593 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
9594 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
9595 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
9596 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
9597 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
9598 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
9599 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
9600 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
9603 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
9604 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);