2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/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 #if PYTHON_API_VERSION >= 1009
112 static char* wxStringErrorMsg
= "String or Unicode type required";
114 static char* wxStringErrorMsg
= "string type is required for parameter";
117 static wxString
wxPyEmptyStr("");
118 // Implementations of some alternate "constructors"
120 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
121 return new wxBitmap(width
, height
, depth
);
124 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
125 char** cArray
= NULL
;
128 if (!PyList_Check(listOfStrings
)) {
129 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
132 count
= PyList_Size(listOfStrings
);
133 cArray
= new char*[count
];
135 for(int x
=0; x
<count
; x
++) {
136 // TODO: Need some validation and error checking here
137 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
142 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
143 char** cArray
= NULL
;
146 cArray
= ConvertListOfStrings(listOfStrings
);
149 bmp
= new wxBitmap(cArray
);
155 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
156 return new wxBitmap(icon
);
162 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
163 int width
, int height
, int depth
= 1) {
164 if (! PyString_Check(data
)) {
165 PyErr_SetString(PyExc_TypeError
, "Expected string object");
169 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
173 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
174 return new wxMask(bitmap
, colour
);
176 // Implementations of some alternate "constructors"
177 wxIcon
* wxEmptyIcon() {
181 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
182 char** cArray
= NULL
;
185 cArray
= ConvertListOfStrings(listOfStrings
);
188 icon
= new wxIcon(cArray
);
192 // Alternate 'constructor'
193 wxCursor
* wxPyStockCursor(int id
) {
194 return new wxCursor(id
);
197 wxFontEncoding
wxFont_GetDefaultEncoding() {
198 return wxFont::GetDefaultEncoding();
201 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
202 wxFont::SetDefaultEncoding(encoding
);
204 // Alternate 'constructor'
205 wxColour
* wxNamedColour(const wxString
& colorName
) {
206 return new wxColour(colorName
);
208 // Alternate 'constructor'
209 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
210 return new wxMemoryDC(oldDC
);
214 extern wxFont
* wxNORMAL_FONT
;
215 extern wxFont
* wxSMALL_FONT
;
216 extern wxFont
* wxITALIC_FONT
;
217 extern wxFont
* wxSWISS_FONT
;
218 extern wxPen
* wxRED_PEN
;
219 extern wxPen
* wxCYAN_PEN
;
220 extern wxPen
* wxGREEN_PEN
;
221 extern wxPen
* wxBLACK_PEN
;
222 extern wxPen
* wxWHITE_PEN
;
223 extern wxPen
* wxTRANSPARENT_PEN
;
224 extern wxPen
* wxBLACK_DASHED_PEN
;
225 extern wxPen
* wxGREY_PEN
;
226 extern wxPen
* wxMEDIUM_GREY_PEN
;
227 extern wxPen
* wxLIGHT_GREY_PEN
;
228 extern wxBrush
* wxBLUE_BRUSH
;
229 extern wxBrush
* wxGREEN_BRUSH
;
230 extern wxBrush
* wxWHITE_BRUSH
;
231 extern wxBrush
* wxBLACK_BRUSH
;
232 extern wxBrush
* wxTRANSPARENT_BRUSH
;
233 extern wxBrush
* wxCYAN_BRUSH
;
234 extern wxBrush
* wxRED_BRUSH
;
235 extern wxBrush
* wxGREY_BRUSH
;
236 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
237 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
238 extern wxColour
* wxBLACK
;
239 extern wxColour
* wxWHITE
;
240 extern wxColour
* wxRED
;
241 extern wxColour
* wxBLUE
;
242 extern wxColour
* wxGREEN
;
243 extern wxColour
* wxCYAN
;
244 extern wxColour
* wxLIGHT_GREY
;
245 extern wxCursor
* wxSTANDARD_CURSOR
;
246 extern wxCursor
* wxHOURGLASS_CURSOR
;
247 extern wxCursor
* wxCROSS_CURSOR
;
248 extern wxBitmap wxNullBitmap
;
249 extern wxIcon wxNullIcon
;
250 extern wxCursor wxNullCursor
;
251 extern wxPen wxNullPen
;
252 extern wxBrush wxNullBrush
;
253 extern wxPalette wxNullPalette
;
254 extern wxFont wxNullFont
;
255 extern wxColour wxNullColour
;
256 extern wxFontList
* wxTheFontList
;
257 extern wxPenList
* wxThePenList
;
258 extern wxBrushlist
* wxTheBrushList
;
259 extern wxColourDatabase
* wxTheColourDatabase
;
265 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
266 PyObject
* _resultobj
;
270 int _arg2
= (int ) -1;
271 char *_kwnames
[] = { "width","height","depth", NULL
};
275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
278 wxPy_BEGIN_ALLOW_THREADS
;
279 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
281 wxPy_END_ALLOW_THREADS
;
283 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
284 _resultobj
= Py_BuildValue("s",_ptemp
);
287 _resultobj
= Py_None
;
292 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
293 PyObject
* _resultobj
;
296 PyObject
* _obj0
= 0;
297 char *_kwnames
[] = { "listOfStrings", NULL
};
301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
307 wxPy_BEGIN_ALLOW_THREADS
;
308 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
310 wxPy_END_ALLOW_THREADS
;
312 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
313 _resultobj
= Py_BuildValue("s",_ptemp
);
316 _resultobj
= Py_None
;
321 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
322 PyObject
* _resultobj
;
325 PyObject
* _argo0
= 0;
326 char *_kwnames
[] = { "icon", NULL
};
330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
340 wxPy_BEGIN_ALLOW_THREADS
;
341 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
343 wxPy_END_ALLOW_THREADS
;
345 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
346 _resultobj
= Py_BuildValue("s",_ptemp
);
349 _resultobj
= Py_None
;
354 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
355 PyObject
* _resultobj
;
359 PyObject
* _argo0
= 0;
361 PyObject
* _obj1
= 0;
362 char *_kwnames
[] = { "bitmap","colour", NULL
};
366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
377 if (! wxColour_helper(_obj1
, &_arg1
))
381 wxPy_BEGIN_ALLOW_THREADS
;
382 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
384 wxPy_END_ALLOW_THREADS
;
386 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
387 _resultobj
= Py_BuildValue("s",_ptemp
);
390 _resultobj
= Py_None
;
395 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
396 PyObject
* _resultobj
;
398 char *_kwnames
[] = { NULL
};
402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
405 wxPy_BEGIN_ALLOW_THREADS
;
406 _result
= (wxIcon
*)wxEmptyIcon();
408 wxPy_END_ALLOW_THREADS
;
410 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
411 _resultobj
= Py_BuildValue("s",_ptemp
);
414 _resultobj
= Py_None
;
419 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
420 PyObject
* _resultobj
;
423 PyObject
* _obj0
= 0;
424 char *_kwnames
[] = { "listOfStrings", NULL
};
428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
434 wxPy_BEGIN_ALLOW_THREADS
;
435 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
437 wxPy_END_ALLOW_THREADS
;
439 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
440 _resultobj
= Py_BuildValue("s",_ptemp
);
443 _resultobj
= Py_None
;
448 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
449 PyObject
* _resultobj
;
452 char *_kwnames
[] = { "id", NULL
};
456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
459 wxPy_BEGIN_ALLOW_THREADS
;
460 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
462 wxPy_END_ALLOW_THREADS
;
464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
465 _resultobj
= Py_BuildValue("s",_ptemp
);
468 _resultobj
= Py_None
;
473 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
474 PyObject
* _resultobj
;
475 wxFontEncoding _result
;
476 char *_kwnames
[] = { NULL
};
479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
482 wxPy_BEGIN_ALLOW_THREADS
;
483 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
485 wxPy_END_ALLOW_THREADS
;
486 } _resultobj
= Py_BuildValue("i",_result
);
490 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
491 PyObject
* _resultobj
;
492 wxFontEncoding _arg0
;
493 char *_kwnames
[] = { "encoding", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
499 wxPy_BEGIN_ALLOW_THREADS
;
500 wxFont_SetDefaultEncoding(_arg0
);
502 wxPy_END_ALLOW_THREADS
;
503 } Py_INCREF(Py_None
);
504 _resultobj
= Py_None
;
508 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
509 PyObject
* _resultobj
;
512 PyObject
* _obj0
= 0;
513 char *_kwnames
[] = { "colorName", NULL
};
517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
520 #if PYTHON_API_VERSION >= 1009
521 char* tmpPtr
; int tmpSize
;
522 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
523 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
526 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
528 _arg0
= new wxString(tmpPtr
, tmpSize
);
530 if (!PyString_Check(_obj0
)) {
531 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
534 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
538 wxPy_BEGIN_ALLOW_THREADS
;
539 _result
= (wxColour
*)wxNamedColour(*_arg0
);
541 wxPy_END_ALLOW_THREADS
;
543 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
544 _resultobj
= Py_BuildValue("s",_ptemp
);
547 _resultobj
= Py_None
;
556 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
557 PyObject
* _resultobj
;
558 wxMemoryDC
* _result
;
560 PyObject
* _argo0
= 0;
561 char *_kwnames
[] = { "oldDC", NULL
};
565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
575 wxPy_BEGIN_ALLOW_THREADS
;
576 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
578 wxPy_END_ALLOW_THREADS
;
580 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
581 _resultobj
= Py_BuildValue("s",_ptemp
);
584 _resultobj
= Py_None
;
589 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
591 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
595 static PyObject
*_wrap_wxNORMAL_FONT_get() {
599 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
600 pyobj
= PyString_FromString(ptemp
);
604 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
606 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
610 static PyObject
*_wrap_wxSMALL_FONT_get() {
614 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
615 pyobj
= PyString_FromString(ptemp
);
619 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
621 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
625 static PyObject
*_wrap_wxITALIC_FONT_get() {
629 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
630 pyobj
= PyString_FromString(ptemp
);
634 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
636 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
640 static PyObject
*_wrap_wxSWISS_FONT_get() {
644 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
645 pyobj
= PyString_FromString(ptemp
);
649 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
651 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
655 static PyObject
*_wrap_wxRED_PEN_get() {
659 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
660 pyobj
= PyString_FromString(ptemp
);
664 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
666 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
670 static PyObject
*_wrap_wxCYAN_PEN_get() {
674 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
675 pyobj
= PyString_FromString(ptemp
);
679 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
681 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
685 static PyObject
*_wrap_wxGREEN_PEN_get() {
689 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
690 pyobj
= PyString_FromString(ptemp
);
694 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
696 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
700 static PyObject
*_wrap_wxBLACK_PEN_get() {
704 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
705 pyobj
= PyString_FromString(ptemp
);
709 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
711 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
715 static PyObject
*_wrap_wxWHITE_PEN_get() {
719 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
720 pyobj
= PyString_FromString(ptemp
);
724 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
726 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
730 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
734 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
735 pyobj
= PyString_FromString(ptemp
);
739 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
741 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
745 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
749 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
750 pyobj
= PyString_FromString(ptemp
);
754 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
756 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
760 static PyObject
*_wrap_wxGREY_PEN_get() {
764 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
765 pyobj
= PyString_FromString(ptemp
);
769 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
771 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
775 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
779 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
780 pyobj
= PyString_FromString(ptemp
);
784 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
786 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
790 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
794 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
795 pyobj
= PyString_FromString(ptemp
);
799 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
801 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
805 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
809 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
810 pyobj
= PyString_FromString(ptemp
);
814 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
816 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
820 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
824 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
825 pyobj
= PyString_FromString(ptemp
);
829 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
831 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
835 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
839 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
840 pyobj
= PyString_FromString(ptemp
);
844 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
846 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
850 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
854 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
855 pyobj
= PyString_FromString(ptemp
);
859 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
861 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
865 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
869 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
870 pyobj
= PyString_FromString(ptemp
);
874 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
876 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
880 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
884 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
885 pyobj
= PyString_FromString(ptemp
);
889 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
891 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
895 static PyObject
*_wrap_wxRED_BRUSH_get() {
899 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
900 pyobj
= PyString_FromString(ptemp
);
904 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
906 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
910 static PyObject
*_wrap_wxGREY_BRUSH_get() {
914 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
915 pyobj
= PyString_FromString(ptemp
);
919 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
921 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
925 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
929 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
930 pyobj
= PyString_FromString(ptemp
);
934 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
936 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
940 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
944 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
945 pyobj
= PyString_FromString(ptemp
);
949 static int _wrap_wxBLACK_set(PyObject
*val
) {
951 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
955 static PyObject
*_wrap_wxBLACK_get() {
959 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
960 pyobj
= PyString_FromString(ptemp
);
964 static int _wrap_wxWHITE_set(PyObject
*val
) {
966 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
970 static PyObject
*_wrap_wxWHITE_get() {
974 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
975 pyobj
= PyString_FromString(ptemp
);
979 static int _wrap_wxRED_set(PyObject
*val
) {
981 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
985 static PyObject
*_wrap_wxRED_get() {
989 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
990 pyobj
= PyString_FromString(ptemp
);
994 static int _wrap_wxBLUE_set(PyObject
*val
) {
996 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1000 static PyObject
*_wrap_wxBLUE_get() {
1004 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1005 pyobj
= PyString_FromString(ptemp
);
1009 static int _wrap_wxGREEN_set(PyObject
*val
) {
1011 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1015 static PyObject
*_wrap_wxGREEN_get() {
1019 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1020 pyobj
= PyString_FromString(ptemp
);
1024 static int _wrap_wxCYAN_set(PyObject
*val
) {
1026 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1030 static PyObject
*_wrap_wxCYAN_get() {
1034 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1035 pyobj
= PyString_FromString(ptemp
);
1039 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1041 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1045 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1049 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1050 pyobj
= PyString_FromString(ptemp
);
1054 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1056 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1060 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1064 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1065 pyobj
= PyString_FromString(ptemp
);
1069 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1071 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1075 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1079 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1080 pyobj
= PyString_FromString(ptemp
);
1084 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1086 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1090 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1094 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1095 pyobj
= PyString_FromString(ptemp
);
1099 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1101 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1105 static PyObject
*_wrap_wxNullBitmap_get() {
1109 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1110 pyobj
= PyString_FromString(ptemp
);
1114 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1116 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1120 static PyObject
*_wrap_wxNullIcon_get() {
1124 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1125 pyobj
= PyString_FromString(ptemp
);
1129 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1131 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1135 static PyObject
*_wrap_wxNullCursor_get() {
1139 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1140 pyobj
= PyString_FromString(ptemp
);
1144 static int _wrap_wxNullPen_set(PyObject
*val
) {
1146 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1150 static PyObject
*_wrap_wxNullPen_get() {
1154 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1155 pyobj
= PyString_FromString(ptemp
);
1159 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1161 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1165 static PyObject
*_wrap_wxNullBrush_get() {
1169 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1170 pyobj
= PyString_FromString(ptemp
);
1174 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1176 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1180 static PyObject
*_wrap_wxNullPalette_get() {
1184 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1185 pyobj
= PyString_FromString(ptemp
);
1189 static int _wrap_wxNullFont_set(PyObject
*val
) {
1191 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1195 static PyObject
*_wrap_wxNullFont_get() {
1199 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1200 pyobj
= PyString_FromString(ptemp
);
1204 static int _wrap_wxNullColour_set(PyObject
*val
) {
1206 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1210 static PyObject
*_wrap_wxNullColour_get() {
1214 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1215 pyobj
= PyString_FromString(ptemp
);
1219 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1221 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1225 static PyObject
*_wrap_wxTheFontList_get() {
1229 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1230 pyobj
= PyString_FromString(ptemp
);
1234 static int _wrap_wxThePenList_set(PyObject
*val
) {
1236 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1240 static PyObject
*_wrap_wxThePenList_get() {
1244 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1245 pyobj
= PyString_FromString(ptemp
);
1249 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1251 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1255 static PyObject
*_wrap_wxTheBrushList_get() {
1259 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1260 pyobj
= PyString_FromString(ptemp
);
1264 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1266 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1270 static PyObject
*_wrap_wxTheColourDatabase_get() {
1274 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1275 pyobj
= PyString_FromString(ptemp
);
1279 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1280 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1281 PyObject
* _resultobj
;
1285 PyObject
* _obj0
= 0;
1286 char *_kwnames
[] = { "name","type", NULL
};
1290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1293 #if PYTHON_API_VERSION >= 1009
1294 char* tmpPtr
; int tmpSize
;
1295 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1296 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1299 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1301 _arg0
= new wxString(tmpPtr
, tmpSize
);
1303 if (!PyString_Check(_obj0
)) {
1304 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1307 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1311 wxPy_BEGIN_ALLOW_THREADS
;
1312 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1314 wxPy_END_ALLOW_THREADS
;
1316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1317 _resultobj
= Py_BuildValue("s",_ptemp
);
1320 _resultobj
= Py_None
;
1329 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1330 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1331 PyObject
* _resultobj
;
1333 PyObject
* _argo0
= 0;
1334 char *_kwnames
[] = { "self", NULL
};
1337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1347 wxPy_BEGIN_ALLOW_THREADS
;
1348 delete_wxBitmap(_arg0
);
1350 wxPy_END_ALLOW_THREADS
;
1351 } Py_INCREF(Py_None
);
1352 _resultobj
= Py_None
;
1356 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1357 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1358 PyObject
* _resultobj
;
1359 wxPalette
* _result
;
1361 PyObject
* _argo0
= 0;
1362 char *_kwnames
[] = { "self", NULL
};
1366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1376 wxPy_BEGIN_ALLOW_THREADS
;
1377 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1379 wxPy_END_ALLOW_THREADS
;
1381 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1382 _resultobj
= Py_BuildValue("s",_ptemp
);
1385 _resultobj
= Py_None
;
1390 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1391 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1392 PyObject
* _resultobj
;
1395 PyObject
* _argo0
= 0;
1396 char *_kwnames
[] = { "self", NULL
};
1400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1410 wxPy_BEGIN_ALLOW_THREADS
;
1411 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1413 wxPy_END_ALLOW_THREADS
;
1415 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1416 _resultobj
= Py_BuildValue("s",_ptemp
);
1419 _resultobj
= Py_None
;
1424 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1425 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1426 PyObject
* _resultobj
;
1431 PyObject
* _argo0
= 0;
1432 PyObject
* _obj1
= 0;
1433 char *_kwnames
[] = { "self","name","flags", NULL
};
1436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1446 #if PYTHON_API_VERSION >= 1009
1447 char* tmpPtr
; int tmpSize
;
1448 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1449 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1452 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1454 _arg1
= new wxString(tmpPtr
, tmpSize
);
1456 if (!PyString_Check(_obj1
)) {
1457 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1460 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1464 wxPy_BEGIN_ALLOW_THREADS
;
1465 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1467 wxPy_END_ALLOW_THREADS
;
1468 } _resultobj
= Py_BuildValue("i",_result
);
1476 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1477 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1478 PyObject
* _resultobj
;
1483 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1484 PyObject
* _argo0
= 0;
1485 PyObject
* _obj1
= 0;
1486 PyObject
* _argo3
= 0;
1487 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1500 #if PYTHON_API_VERSION >= 1009
1501 char* tmpPtr
; int tmpSize
;
1502 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1503 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1506 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1508 _arg1
= new wxString(tmpPtr
, tmpSize
);
1510 if (!PyString_Check(_obj1
)) {
1511 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1514 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1518 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1519 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1525 wxPy_BEGIN_ALLOW_THREADS
;
1526 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1528 wxPy_END_ALLOW_THREADS
;
1529 } _resultobj
= Py_BuildValue("i",_result
);
1537 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1538 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1539 PyObject
* _resultobj
;
1542 PyObject
* _argo0
= 0;
1543 PyObject
* _argo1
= 0;
1544 char *_kwnames
[] = { "self","mask", NULL
};
1547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1557 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1558 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1564 wxPy_BEGIN_ALLOW_THREADS
;
1565 wxBitmap_SetMask(_arg0
,_arg1
);
1567 wxPy_END_ALLOW_THREADS
;
1568 } Py_INCREF(Py_None
);
1569 _resultobj
= Py_None
;
1573 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1574 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1575 PyObject
* _resultobj
;
1578 PyObject
* _argo0
= 0;
1579 char *_kwnames
[] = { "self", NULL
};
1582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1592 wxPy_BEGIN_ALLOW_THREADS
;
1593 _result
= (bool )wxBitmap_Ok(_arg0
);
1595 wxPy_END_ALLOW_THREADS
;
1596 } _resultobj
= Py_BuildValue("i",_result
);
1600 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1601 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1602 PyObject
* _resultobj
;
1605 PyObject
* _argo0
= 0;
1606 char *_kwnames
[] = { "self", NULL
};
1609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1619 wxPy_BEGIN_ALLOW_THREADS
;
1620 _result
= (int )wxBitmap_GetWidth(_arg0
);
1622 wxPy_END_ALLOW_THREADS
;
1623 } _resultobj
= Py_BuildValue("i",_result
);
1627 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1628 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1629 PyObject
* _resultobj
;
1632 PyObject
* _argo0
= 0;
1633 char *_kwnames
[] = { "self", NULL
};
1636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1646 wxPy_BEGIN_ALLOW_THREADS
;
1647 _result
= (int )wxBitmap_GetHeight(_arg0
);
1649 wxPy_END_ALLOW_THREADS
;
1650 } _resultobj
= Py_BuildValue("i",_result
);
1654 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1655 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1656 PyObject
* _resultobj
;
1659 PyObject
* _argo0
= 0;
1660 char *_kwnames
[] = { "self", NULL
};
1663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1673 wxPy_BEGIN_ALLOW_THREADS
;
1674 _result
= (int )wxBitmap_GetDepth(_arg0
);
1676 wxPy_END_ALLOW_THREADS
;
1677 } _resultobj
= Py_BuildValue("i",_result
);
1681 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1682 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1683 PyObject
* _resultobj
;
1686 PyObject
* _argo0
= 0;
1687 char *_kwnames
[] = { "self","w", NULL
};
1690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1700 wxPy_BEGIN_ALLOW_THREADS
;
1701 wxBitmap_SetWidth(_arg0
,_arg1
);
1703 wxPy_END_ALLOW_THREADS
;
1704 } Py_INCREF(Py_None
);
1705 _resultobj
= Py_None
;
1709 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1710 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1711 PyObject
* _resultobj
;
1714 PyObject
* _argo0
= 0;
1715 char *_kwnames
[] = { "self","h", NULL
};
1718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1728 wxPy_BEGIN_ALLOW_THREADS
;
1729 wxBitmap_SetHeight(_arg0
,_arg1
);
1731 wxPy_END_ALLOW_THREADS
;
1732 } Py_INCREF(Py_None
);
1733 _resultobj
= Py_None
;
1737 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1738 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1739 PyObject
* _resultobj
;
1742 PyObject
* _argo0
= 0;
1743 char *_kwnames
[] = { "self","d", NULL
};
1746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1756 wxPy_BEGIN_ALLOW_THREADS
;
1757 wxBitmap_SetDepth(_arg0
,_arg1
);
1759 wxPy_END_ALLOW_THREADS
;
1760 } Py_INCREF(Py_None
);
1761 _resultobj
= Py_None
;
1765 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1766 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1767 PyObject
* _resultobj
;
1771 PyObject
* _argo0
= 0;
1773 PyObject
* _obj1
= 0;
1774 char *_kwnames
[] = { "self","rect", NULL
};
1778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1789 if (! wxRect_helper(_obj1
, &_arg1
))
1793 wxPy_BEGIN_ALLOW_THREADS
;
1794 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1796 wxPy_END_ALLOW_THREADS
;
1797 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1798 _resultobj
= Py_BuildValue("s",_ptemp
);
1802 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1803 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1804 PyObject
* _resultobj
;
1807 PyObject
* _argo0
= 0;
1808 char *_kwnames
[] = { "bitmap", NULL
};
1812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
1815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1822 wxPy_BEGIN_ALLOW_THREADS
;
1823 _result
= (wxMask
*)new_wxMask(*_arg0
);
1825 wxPy_END_ALLOW_THREADS
;
1827 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1828 _resultobj
= Py_BuildValue("s",_ptemp
);
1831 _resultobj
= Py_None
;
1836 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
1837 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1838 PyObject
* _resultobj
;
1840 PyObject
* _argo0
= 0;
1841 char *_kwnames
[] = { "self", NULL
};
1844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
1847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
1849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
1854 wxPy_BEGIN_ALLOW_THREADS
;
1855 wxMask_Destroy(_arg0
);
1857 wxPy_END_ALLOW_THREADS
;
1858 } Py_INCREF(Py_None
);
1859 _resultobj
= Py_None
;
1863 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1864 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1865 PyObject
* _resultobj
;
1869 int _arg2
= (int ) -1;
1870 int _arg3
= (int ) -1;
1871 PyObject
* _obj0
= 0;
1872 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
1876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
1879 #if PYTHON_API_VERSION >= 1009
1880 char* tmpPtr
; int tmpSize
;
1881 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1882 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1885 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1887 _arg0
= new wxString(tmpPtr
, tmpSize
);
1889 if (!PyString_Check(_obj0
)) {
1890 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1893 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1897 wxPy_BEGIN_ALLOW_THREADS
;
1898 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
1900 wxPy_END_ALLOW_THREADS
;
1902 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
1903 _resultobj
= Py_BuildValue("s",_ptemp
);
1906 _resultobj
= Py_None
;
1915 #define delete_wxIcon(_swigobj) (delete _swigobj)
1916 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1917 PyObject
* _resultobj
;
1919 PyObject
* _argo0
= 0;
1920 char *_kwnames
[] = { "self", NULL
};
1923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
1926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
1933 wxPy_BEGIN_ALLOW_THREADS
;
1934 delete_wxIcon(_arg0
);
1936 wxPy_END_ALLOW_THREADS
;
1937 } Py_INCREF(Py_None
);
1938 _resultobj
= Py_None
;
1942 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1943 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1944 PyObject
* _resultobj
;
1949 PyObject
* _argo0
= 0;
1950 PyObject
* _obj1
= 0;
1951 char *_kwnames
[] = { "self","name","flags", NULL
};
1954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
1964 #if PYTHON_API_VERSION >= 1009
1965 char* tmpPtr
; int tmpSize
;
1966 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1967 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1970 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1972 _arg1
= new wxString(tmpPtr
, tmpSize
);
1974 if (!PyString_Check(_obj1
)) {
1975 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1978 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1982 wxPy_BEGIN_ALLOW_THREADS
;
1983 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
1985 wxPy_END_ALLOW_THREADS
;
1986 } _resultobj
= Py_BuildValue("i",_result
);
1994 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
1995 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1996 PyObject
* _resultobj
;
1999 PyObject
* _argo0
= 0;
2000 char *_kwnames
[] = { "self", NULL
};
2003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2013 wxPy_BEGIN_ALLOW_THREADS
;
2014 _result
= (bool )wxIcon_Ok(_arg0
);
2016 wxPy_END_ALLOW_THREADS
;
2017 } _resultobj
= Py_BuildValue("i",_result
);
2021 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2022 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2023 PyObject
* _resultobj
;
2026 PyObject
* _argo0
= 0;
2027 char *_kwnames
[] = { "self", NULL
};
2030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2040 wxPy_BEGIN_ALLOW_THREADS
;
2041 _result
= (int )wxIcon_GetWidth(_arg0
);
2043 wxPy_END_ALLOW_THREADS
;
2044 } _resultobj
= Py_BuildValue("i",_result
);
2048 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2049 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2050 PyObject
* _resultobj
;
2053 PyObject
* _argo0
= 0;
2054 char *_kwnames
[] = { "self", NULL
};
2057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2067 wxPy_BEGIN_ALLOW_THREADS
;
2068 _result
= (int )wxIcon_GetHeight(_arg0
);
2070 wxPy_END_ALLOW_THREADS
;
2071 } _resultobj
= Py_BuildValue("i",_result
);
2075 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2076 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2077 PyObject
* _resultobj
;
2080 PyObject
* _argo0
= 0;
2081 char *_kwnames
[] = { "self", NULL
};
2084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2094 wxPy_BEGIN_ALLOW_THREADS
;
2095 _result
= (int )wxIcon_GetDepth(_arg0
);
2097 wxPy_END_ALLOW_THREADS
;
2098 } _resultobj
= Py_BuildValue("i",_result
);
2102 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2103 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2104 PyObject
* _resultobj
;
2107 PyObject
* _argo0
= 0;
2108 char *_kwnames
[] = { "self","w", NULL
};
2111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2121 wxPy_BEGIN_ALLOW_THREADS
;
2122 wxIcon_SetWidth(_arg0
,_arg1
);
2124 wxPy_END_ALLOW_THREADS
;
2125 } Py_INCREF(Py_None
);
2126 _resultobj
= Py_None
;
2130 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2131 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2132 PyObject
* _resultobj
;
2135 PyObject
* _argo0
= 0;
2136 char *_kwnames
[] = { "self","h", NULL
};
2139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2149 wxPy_BEGIN_ALLOW_THREADS
;
2150 wxIcon_SetHeight(_arg0
,_arg1
);
2152 wxPy_END_ALLOW_THREADS
;
2153 } Py_INCREF(Py_None
);
2154 _resultobj
= Py_None
;
2158 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2159 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2160 PyObject
* _resultobj
;
2163 PyObject
* _argo0
= 0;
2164 char *_kwnames
[] = { "self","d", NULL
};
2167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2177 wxPy_BEGIN_ALLOW_THREADS
;
2178 wxIcon_SetDepth(_arg0
,_arg1
);
2180 wxPy_END_ALLOW_THREADS
;
2181 } Py_INCREF(Py_None
);
2182 _resultobj
= Py_None
;
2186 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2187 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2188 PyObject
* _resultobj
;
2191 PyObject
* _argo0
= 0;
2192 PyObject
* _argo1
= 0;
2193 char *_kwnames
[] = { "self","bmp", NULL
};
2196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2206 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2207 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2213 wxPy_BEGIN_ALLOW_THREADS
;
2214 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2216 wxPy_END_ALLOW_THREADS
;
2217 } Py_INCREF(Py_None
);
2218 _resultobj
= Py_None
;
2222 #define delete_wxCursor(_swigobj) (delete _swigobj)
2223 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2224 PyObject
* _resultobj
;
2226 PyObject
* _argo0
= 0;
2227 char *_kwnames
[] = { "self", NULL
};
2230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2240 wxPy_BEGIN_ALLOW_THREADS
;
2241 delete_wxCursor(_arg0
);
2243 wxPy_END_ALLOW_THREADS
;
2244 } Py_INCREF(Py_None
);
2245 _resultobj
= Py_None
;
2249 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2250 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2251 PyObject
* _resultobj
;
2254 PyObject
* _argo0
= 0;
2255 char *_kwnames
[] = { "self", NULL
};
2258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2268 wxPy_BEGIN_ALLOW_THREADS
;
2269 _result
= (bool )wxCursor_Ok(_arg0
);
2271 wxPy_END_ALLOW_THREADS
;
2272 } _resultobj
= Py_BuildValue("i",_result
);
2276 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2277 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2284 int _arg4
= (int ) FALSE
;
2285 char * _arg5
= (char *) "";
2286 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2287 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2294 wxPy_BEGIN_ALLOW_THREADS
;
2295 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2297 wxPy_END_ALLOW_THREADS
;
2299 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2300 _resultobj
= Py_BuildValue("s",_ptemp
);
2303 _resultobj
= Py_None
;
2308 #define delete_wxFont(_swigobj) (delete _swigobj)
2309 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2310 PyObject
* _resultobj
;
2312 PyObject
* _argo0
= 0;
2313 char *_kwnames
[] = { "self", NULL
};
2316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
2319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
2326 wxPy_BEGIN_ALLOW_THREADS
;
2327 delete_wxFont(_arg0
);
2329 wxPy_END_ALLOW_THREADS
;
2330 } Py_INCREF(Py_None
);
2331 _resultobj
= Py_None
;
2335 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2336 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
* _resultobj
;
2340 PyObject
* _argo0
= 0;
2341 char *_kwnames
[] = { "self", NULL
};
2344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
2347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2354 wxPy_BEGIN_ALLOW_THREADS
;
2355 _result
= (bool )wxFont_Ok(_arg0
);
2357 wxPy_END_ALLOW_THREADS
;
2358 } _resultobj
= Py_BuildValue("i",_result
);
2362 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2363 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2364 PyObject
* _resultobj
;
2367 PyObject
* _argo0
= 0;
2368 char *_kwnames
[] = { "self", NULL
};
2371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
2374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2381 wxPy_BEGIN_ALLOW_THREADS
;
2382 _result
= new wxString (wxFont_GetFaceName(_arg0
));
2384 wxPy_END_ALLOW_THREADS
;
2386 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2394 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2395 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2396 PyObject
* _resultobj
;
2399 PyObject
* _argo0
= 0;
2400 char *_kwnames
[] = { "self", NULL
};
2403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
2406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2413 wxPy_BEGIN_ALLOW_THREADS
;
2414 _result
= (int )wxFont_GetFamily(_arg0
);
2416 wxPy_END_ALLOW_THREADS
;
2417 } _resultobj
= Py_BuildValue("i",_result
);
2421 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2422 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2423 PyObject
* _resultobj
;
2426 PyObject
* _argo0
= 0;
2427 char *_kwnames
[] = { "self", NULL
};
2430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
2433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2440 wxPy_BEGIN_ALLOW_THREADS
;
2441 _result
= (int )wxFont_GetPointSize(_arg0
);
2443 wxPy_END_ALLOW_THREADS
;
2444 } _resultobj
= Py_BuildValue("i",_result
);
2448 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2449 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2450 PyObject
* _resultobj
;
2453 PyObject
* _argo0
= 0;
2454 char *_kwnames
[] = { "self", NULL
};
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
2460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2467 wxPy_BEGIN_ALLOW_THREADS
;
2468 _result
= (int )wxFont_GetStyle(_arg0
);
2470 wxPy_END_ALLOW_THREADS
;
2471 } _resultobj
= Py_BuildValue("i",_result
);
2475 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2476 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2477 PyObject
* _resultobj
;
2480 PyObject
* _argo0
= 0;
2481 char *_kwnames
[] = { "self", NULL
};
2484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
2487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2494 wxPy_BEGIN_ALLOW_THREADS
;
2495 _result
= (bool )wxFont_GetUnderlined(_arg0
);
2497 wxPy_END_ALLOW_THREADS
;
2498 } _resultobj
= Py_BuildValue("i",_result
);
2502 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2503 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2504 PyObject
* _resultobj
;
2507 PyObject
* _argo0
= 0;
2508 char *_kwnames
[] = { "self", NULL
};
2511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
2514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2521 wxPy_BEGIN_ALLOW_THREADS
;
2522 _result
= (int )wxFont_GetWeight(_arg0
);
2524 wxPy_END_ALLOW_THREADS
;
2525 } _resultobj
= Py_BuildValue("i",_result
);
2529 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2530 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2531 PyObject
* _resultobj
;
2532 wxFontEncoding _result
;
2534 PyObject
* _argo0
= 0;
2535 char *_kwnames
[] = { "self", NULL
};
2538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
2541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
2548 wxPy_BEGIN_ALLOW_THREADS
;
2549 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
2551 wxPy_END_ALLOW_THREADS
;
2552 } _resultobj
= Py_BuildValue("i",_result
);
2556 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2557 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2558 PyObject
* _resultobj
;
2561 PyObject
* _argo0
= 0;
2562 PyObject
* _obj1
= 0;
2563 char *_kwnames
[] = { "self","faceName", NULL
};
2566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2576 #if PYTHON_API_VERSION >= 1009
2577 char* tmpPtr
; int tmpSize
;
2578 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2579 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2582 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2584 _arg1
= new wxString(tmpPtr
, tmpSize
);
2586 if (!PyString_Check(_obj1
)) {
2587 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2590 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2594 wxPy_BEGIN_ALLOW_THREADS
;
2595 wxFont_SetFaceName(_arg0
,*_arg1
);
2597 wxPy_END_ALLOW_THREADS
;
2598 } Py_INCREF(Py_None
);
2599 _resultobj
= Py_None
;
2607 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2608 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2609 PyObject
* _resultobj
;
2612 PyObject
* _argo0
= 0;
2613 char *_kwnames
[] = { "self","family", NULL
};
2616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2626 wxPy_BEGIN_ALLOW_THREADS
;
2627 wxFont_SetFamily(_arg0
,_arg1
);
2629 wxPy_END_ALLOW_THREADS
;
2630 } Py_INCREF(Py_None
);
2631 _resultobj
= Py_None
;
2635 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2636 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2637 PyObject
* _resultobj
;
2640 PyObject
* _argo0
= 0;
2641 char *_kwnames
[] = { "self","pointSize", NULL
};
2644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2654 wxPy_BEGIN_ALLOW_THREADS
;
2655 wxFont_SetPointSize(_arg0
,_arg1
);
2657 wxPy_END_ALLOW_THREADS
;
2658 } Py_INCREF(Py_None
);
2659 _resultobj
= Py_None
;
2663 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2664 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2665 PyObject
* _resultobj
;
2668 PyObject
* _argo0
= 0;
2669 char *_kwnames
[] = { "self","style", NULL
};
2672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2682 wxPy_BEGIN_ALLOW_THREADS
;
2683 wxFont_SetStyle(_arg0
,_arg1
);
2685 wxPy_END_ALLOW_THREADS
;
2686 } Py_INCREF(Py_None
);
2687 _resultobj
= Py_None
;
2691 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2692 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2693 PyObject
* _resultobj
;
2696 PyObject
* _argo0
= 0;
2698 char *_kwnames
[] = { "self","underlined", NULL
};
2701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
2710 _arg1
= (bool ) tempbool1
;
2712 wxPy_BEGIN_ALLOW_THREADS
;
2713 wxFont_SetUnderlined(_arg0
,_arg1
);
2715 wxPy_END_ALLOW_THREADS
;
2716 } Py_INCREF(Py_None
);
2717 _resultobj
= Py_None
;
2721 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2722 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2723 PyObject
* _resultobj
;
2726 PyObject
* _argo0
= 0;
2727 char *_kwnames
[] = { "self","weight", NULL
};
2730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
2733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
2740 wxPy_BEGIN_ALLOW_THREADS
;
2741 wxFont_SetWeight(_arg0
,_arg1
);
2743 wxPy_END_ALLOW_THREADS
;
2744 } Py_INCREF(Py_None
);
2745 _resultobj
= Py_None
;
2749 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2750 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2751 PyObject
* _resultobj
;
2753 wxFontEncoding _arg1
;
2754 PyObject
* _argo0
= 0;
2755 char *_kwnames
[] = { "self","encoding", NULL
};
2758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
2761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
2768 wxPy_BEGIN_ALLOW_THREADS
;
2769 wxFont_SetEncoding(_arg0
,_arg1
);
2771 wxPy_END_ALLOW_THREADS
;
2772 } Py_INCREF(Py_None
);
2773 _resultobj
= Py_None
;
2777 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
2778 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2779 PyObject
* _resultobj
;
2782 PyObject
* _argo0
= 0;
2783 char *_kwnames
[] = { "self", NULL
};
2786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
2789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
2796 wxPy_BEGIN_ALLOW_THREADS
;
2797 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
2799 wxPy_END_ALLOW_THREADS
;
2801 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2809 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
2810 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2811 PyObject
* _resultobj
;
2814 PyObject
* _argo0
= 0;
2815 char *_kwnames
[] = { "self", NULL
};
2818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
2821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
2828 wxPy_BEGIN_ALLOW_THREADS
;
2829 _result
= new wxString (wxFont_GetStyleString(_arg0
));
2831 wxPy_END_ALLOW_THREADS
;
2833 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2841 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
2842 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2843 PyObject
* _resultobj
;
2846 PyObject
* _argo0
= 0;
2847 char *_kwnames
[] = { "self", NULL
};
2850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
2853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
2860 wxPy_BEGIN_ALLOW_THREADS
;
2861 _result
= new wxString (wxFont_GetWeightString(_arg0
));
2863 wxPy_END_ALLOW_THREADS
;
2865 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2873 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
2874 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2878 PyObject
* _argo0
= 0;
2879 PyObject
* _argo1
= 0;
2880 char *_kwnames
[] = { "self","font", NULL
};
2883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
2886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
2888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
2893 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2894 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
2895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
2900 wxPy_BEGIN_ALLOW_THREADS
;
2901 wxFontList_AddFont(_arg0
,_arg1
);
2903 wxPy_END_ALLOW_THREADS
;
2904 } Py_INCREF(Py_None
);
2905 _resultobj
= Py_None
;
2909 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2910 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2911 PyObject
* _resultobj
;
2918 bool _arg5
= (bool ) FALSE
;
2919 char * _arg6
= (char *) NULL
;
2920 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2921 PyObject
* _argo0
= 0;
2922 int tempbool5
= (int) FALSE
;
2923 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
2927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
2930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
2932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
2936 _arg5
= (bool ) tempbool5
;
2938 wxPy_BEGIN_ALLOW_THREADS
;
2939 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
2941 wxPy_END_ALLOW_THREADS
;
2943 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2944 _resultobj
= Py_BuildValue("s",_ptemp
);
2947 _resultobj
= Py_None
;
2952 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
2953 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2954 PyObject
* _resultobj
;
2957 PyObject
* _argo0
= 0;
2958 PyObject
* _argo1
= 0;
2959 char *_kwnames
[] = { "self","font", NULL
};
2962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
2965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
2967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
2972 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2973 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
2974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
2979 wxPy_BEGIN_ALLOW_THREADS
;
2980 wxFontList_RemoveFont(_arg0
,_arg1
);
2982 wxPy_END_ALLOW_THREADS
;
2983 } Py_INCREF(Py_None
);
2984 _resultobj
= Py_None
;
2988 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2989 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2990 PyObject
* _resultobj
;
2992 unsigned char _arg0
= (unsigned char ) 0;
2993 unsigned char _arg1
= (unsigned char ) 0;
2994 unsigned char _arg2
= (unsigned char ) 0;
2995 char *_kwnames
[] = { "red","green","blue", NULL
};
2999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3002 wxPy_BEGIN_ALLOW_THREADS
;
3003 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3005 wxPy_END_ALLOW_THREADS
;
3007 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3008 _resultobj
= Py_BuildValue("s",_ptemp
);
3011 _resultobj
= Py_None
;
3016 #define delete_wxColour(_swigobj) (delete _swigobj)
3017 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3018 PyObject
* _resultobj
;
3021 PyObject
* _obj0
= 0;
3022 char *_kwnames
[] = { "self", NULL
};
3025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3029 if (! wxColour_helper(_obj0
, &_arg0
))
3033 wxPy_BEGIN_ALLOW_THREADS
;
3034 delete_wxColour(_arg0
);
3036 wxPy_END_ALLOW_THREADS
;
3037 } Py_INCREF(Py_None
);
3038 _resultobj
= Py_None
;
3042 #define wxColour_Red(_swigobj) (_swigobj->Red())
3043 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3044 PyObject
* _resultobj
;
3045 unsigned char _result
;
3048 PyObject
* _obj0
= 0;
3049 char *_kwnames
[] = { "self", NULL
};
3052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3056 if (! wxColour_helper(_obj0
, &_arg0
))
3060 wxPy_BEGIN_ALLOW_THREADS
;
3061 _result
= (unsigned char )wxColour_Red(_arg0
);
3063 wxPy_END_ALLOW_THREADS
;
3064 } _resultobj
= Py_BuildValue("b",_result
);
3068 #define wxColour_Green(_swigobj) (_swigobj->Green())
3069 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3070 PyObject
* _resultobj
;
3071 unsigned char _result
;
3074 PyObject
* _obj0
= 0;
3075 char *_kwnames
[] = { "self", NULL
};
3078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3082 if (! wxColour_helper(_obj0
, &_arg0
))
3086 wxPy_BEGIN_ALLOW_THREADS
;
3087 _result
= (unsigned char )wxColour_Green(_arg0
);
3089 wxPy_END_ALLOW_THREADS
;
3090 } _resultobj
= Py_BuildValue("b",_result
);
3094 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3095 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3096 PyObject
* _resultobj
;
3097 unsigned char _result
;
3100 PyObject
* _obj0
= 0;
3101 char *_kwnames
[] = { "self", NULL
};
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3108 if (! wxColour_helper(_obj0
, &_arg0
))
3112 wxPy_BEGIN_ALLOW_THREADS
;
3113 _result
= (unsigned char )wxColour_Blue(_arg0
);
3115 wxPy_END_ALLOW_THREADS
;
3116 } _resultobj
= Py_BuildValue("b",_result
);
3120 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3121 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3122 PyObject
* _resultobj
;
3126 PyObject
* _obj0
= 0;
3127 char *_kwnames
[] = { "self", NULL
};
3130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3134 if (! wxColour_helper(_obj0
, &_arg0
))
3138 wxPy_BEGIN_ALLOW_THREADS
;
3139 _result
= (bool )wxColour_Ok(_arg0
);
3141 wxPy_END_ALLOW_THREADS
;
3142 } _resultobj
= Py_BuildValue("i",_result
);
3146 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3147 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3148 PyObject
* _resultobj
;
3150 unsigned char _arg1
;
3151 unsigned char _arg2
;
3152 unsigned char _arg3
;
3154 PyObject
* _obj0
= 0;
3155 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3162 if (! wxColour_helper(_obj0
, &_arg0
))
3166 wxPy_BEGIN_ALLOW_THREADS
;
3167 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3169 wxPy_END_ALLOW_THREADS
;
3170 } Py_INCREF(Py_None
);
3171 _resultobj
= Py_None
;
3175 static PyObject
* wxColour_Get(wxColour
*self
) {
3176 PyObject
* rv
= PyTuple_New(3);
3177 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3178 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3179 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3182 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3183 PyObject
* _resultobj
;
3187 PyObject
* _obj0
= 0;
3188 char *_kwnames
[] = { "self", NULL
};
3191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3195 if (! wxColour_helper(_obj0
, &_arg0
))
3199 wxPy_BEGIN_ALLOW_THREADS
;
3200 _result
= (PyObject
*)wxColour_Get(_arg0
);
3202 wxPy_END_ALLOW_THREADS
;
3204 _resultobj
= _result
;
3209 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3210 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3211 PyObject
* _resultobj
;
3213 wxColourDatabase
* _arg0
;
3215 PyObject
* _argo0
= 0;
3216 PyObject
* _obj1
= 0;
3217 char *_kwnames
[] = { "self","colour", NULL
};
3221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3231 #if PYTHON_API_VERSION >= 1009
3232 char* tmpPtr
; int tmpSize
;
3233 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3234 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3237 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3239 _arg1
= new wxString(tmpPtr
, tmpSize
);
3241 if (!PyString_Check(_obj1
)) {
3242 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3245 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3249 wxPy_BEGIN_ALLOW_THREADS
;
3250 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3252 wxPy_END_ALLOW_THREADS
;
3254 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3255 _resultobj
= Py_BuildValue("s",_ptemp
);
3258 _resultobj
= Py_None
;
3267 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3268 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3269 PyObject
* _resultobj
;
3271 wxColourDatabase
* _arg0
;
3273 PyObject
* _argo0
= 0;
3275 PyObject
* _obj1
= 0;
3276 char *_kwnames
[] = { "self","colour", NULL
};
3279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3290 if (! wxColour_helper(_obj1
, &_arg1
))
3294 wxPy_BEGIN_ALLOW_THREADS
;
3295 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3297 wxPy_END_ALLOW_THREADS
;
3299 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3307 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3308 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3310 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3311 PyObject
* _resultobj
;
3312 wxColourDatabase
* _arg0
;
3317 PyObject
* _argo0
= 0;
3318 PyObject
* _obj1
= 0;
3319 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3332 #if PYTHON_API_VERSION >= 1009
3333 char* tmpPtr
; int tmpSize
;
3334 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3335 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3338 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3340 _arg1
= new wxString(tmpPtr
, tmpSize
);
3342 if (!PyString_Check(_obj1
)) {
3343 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3346 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3350 wxPy_BEGIN_ALLOW_THREADS
;
3351 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3353 wxPy_END_ALLOW_THREADS
;
3354 } Py_INCREF(Py_None
);
3355 _resultobj
= Py_None
;
3363 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3364 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3365 PyObject
* _resultobj
;
3368 int _arg1
= (int ) 1;
3369 int _arg2
= (int ) wxSOLID
;
3371 PyObject
* _obj0
= 0;
3372 char *_kwnames
[] = { "colour","width","style", NULL
};
3376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3380 if (! wxColour_helper(_obj0
, &_arg0
))
3384 wxPy_BEGIN_ALLOW_THREADS
;
3385 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3387 wxPy_END_ALLOW_THREADS
;
3389 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3390 _resultobj
= Py_BuildValue("s",_ptemp
);
3393 _resultobj
= Py_None
;
3398 #define delete_wxPen(_swigobj) (delete _swigobj)
3399 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3400 PyObject
* _resultobj
;
3402 PyObject
* _argo0
= 0;
3403 char *_kwnames
[] = { "self", NULL
};
3406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3416 wxPy_BEGIN_ALLOW_THREADS
;
3417 delete_wxPen(_arg0
);
3419 wxPy_END_ALLOW_THREADS
;
3420 } Py_INCREF(Py_None
);
3421 _resultobj
= Py_None
;
3425 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3426 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3427 PyObject
* _resultobj
;
3430 PyObject
* _argo0
= 0;
3431 char *_kwnames
[] = { "self", NULL
};
3434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3444 wxPy_BEGIN_ALLOW_THREADS
;
3445 _result
= (int )wxPen_GetCap(_arg0
);
3447 wxPy_END_ALLOW_THREADS
;
3448 } _resultobj
= Py_BuildValue("i",_result
);
3452 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3453 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3454 PyObject
* _resultobj
;
3457 PyObject
* _argo0
= 0;
3458 char *_kwnames
[] = { "self", NULL
};
3462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3472 wxPy_BEGIN_ALLOW_THREADS
;
3473 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
3474 _result
= (wxColour
*) &_result_ref
;
3476 wxPy_END_ALLOW_THREADS
;
3478 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3479 _resultobj
= Py_BuildValue("s",_ptemp
);
3482 _resultobj
= Py_None
;
3487 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3488 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3489 PyObject
* _resultobj
;
3492 PyObject
* _argo0
= 0;
3493 char *_kwnames
[] = { "self", NULL
};
3496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3506 wxPy_BEGIN_ALLOW_THREADS
;
3507 _result
= (int )wxPen_GetJoin(_arg0
);
3509 wxPy_END_ALLOW_THREADS
;
3510 } _resultobj
= Py_BuildValue("i",_result
);
3514 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3515 static PyObject
*_wrap_wxPen_GetStyle(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:wxPen_GetStyle",_kwnames
,&_argo0
))
3526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3533 wxPy_BEGIN_ALLOW_THREADS
;
3534 _result
= (int )wxPen_GetStyle(_arg0
);
3536 wxPy_END_ALLOW_THREADS
;
3537 } _resultobj
= Py_BuildValue("i",_result
);
3541 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3542 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3543 PyObject
* _resultobj
;
3546 PyObject
* _argo0
= 0;
3547 char *_kwnames
[] = { "self", NULL
};
3550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3560 wxPy_BEGIN_ALLOW_THREADS
;
3561 _result
= (int )wxPen_GetWidth(_arg0
);
3563 wxPy_END_ALLOW_THREADS
;
3564 } _resultobj
= Py_BuildValue("i",_result
);
3568 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3569 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3570 PyObject
* _resultobj
;
3573 PyObject
* _argo0
= 0;
3574 char *_kwnames
[] = { "self", NULL
};
3577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3587 wxPy_BEGIN_ALLOW_THREADS
;
3588 _result
= (bool )wxPen_Ok(_arg0
);
3590 wxPy_END_ALLOW_THREADS
;
3591 } _resultobj
= Py_BuildValue("i",_result
);
3595 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3596 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3597 PyObject
* _resultobj
;
3600 PyObject
* _argo0
= 0;
3601 char *_kwnames
[] = { "self","cap_style", NULL
};
3604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3614 wxPy_BEGIN_ALLOW_THREADS
;
3615 wxPen_SetCap(_arg0
,_arg1
);
3617 wxPy_END_ALLOW_THREADS
;
3618 } Py_INCREF(Py_None
);
3619 _resultobj
= Py_None
;
3623 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3624 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3625 PyObject
* _resultobj
;
3628 PyObject
* _argo0
= 0;
3630 PyObject
* _obj1
= 0;
3631 char *_kwnames
[] = { "self","colour", NULL
};
3634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3645 if (! wxColour_helper(_obj1
, &_arg1
))
3649 wxPy_BEGIN_ALLOW_THREADS
;
3650 wxPen_SetColour(_arg0
,*_arg1
);
3652 wxPy_END_ALLOW_THREADS
;
3653 } Py_INCREF(Py_None
);
3654 _resultobj
= Py_None
;
3658 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3659 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3660 PyObject
* _resultobj
;
3663 PyObject
* _argo0
= 0;
3664 char *_kwnames
[] = { "self","join_style", NULL
};
3667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3677 wxPy_BEGIN_ALLOW_THREADS
;
3678 wxPen_SetJoin(_arg0
,_arg1
);
3680 wxPy_END_ALLOW_THREADS
;
3681 } Py_INCREF(Py_None
);
3682 _resultobj
= Py_None
;
3686 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3687 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3688 PyObject
* _resultobj
;
3691 PyObject
* _argo0
= 0;
3692 char *_kwnames
[] = { "self","style", NULL
};
3695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3705 wxPy_BEGIN_ALLOW_THREADS
;
3706 wxPen_SetStyle(_arg0
,_arg1
);
3708 wxPy_END_ALLOW_THREADS
;
3709 } Py_INCREF(Py_None
);
3710 _resultobj
= Py_None
;
3714 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3715 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3716 PyObject
* _resultobj
;
3719 PyObject
* _argo0
= 0;
3720 char *_kwnames
[] = { "self","width", NULL
};
3723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3733 wxPy_BEGIN_ALLOW_THREADS
;
3734 wxPen_SetWidth(_arg0
,_arg1
);
3736 wxPy_END_ALLOW_THREADS
;
3737 } Py_INCREF(Py_None
);
3738 _resultobj
= Py_None
;
3742 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
3743 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3744 PyObject
* _resultobj
;
3748 PyObject
* _argo0
= 0;
3749 PyObject
* _argo1
= 0;
3750 char *_kwnames
[] = { "self","dashes", NULL
};
3753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
3756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3763 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3764 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
3765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
3770 wxPy_BEGIN_ALLOW_THREADS
;
3771 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
3773 wxPy_END_ALLOW_THREADS
;
3774 } _resultobj
= Py_BuildValue("i",_result
);
3778 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3779 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3780 PyObject
* _resultobj
;
3784 PyObject
* _argo0
= 0;
3785 PyObject
* _obj2
= 0;
3786 char *_kwnames
[] = { "self","choices", NULL
};
3789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3800 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3801 if (_arg2
== NULL
) {
3807 _arg1
= PyList_Size(_obj2
);
3814 wxPy_BEGIN_ALLOW_THREADS
;
3815 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
3817 wxPy_END_ALLOW_THREADS
;
3818 } Py_INCREF(Py_None
);
3819 _resultobj
= Py_None
;
3826 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3827 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3828 PyObject
* _resultobj
;
3831 PyObject
* _argo0
= 0;
3832 PyObject
* _argo1
= 0;
3833 char *_kwnames
[] = { "self","pen", NULL
};
3836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
3839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3846 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3847 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3853 wxPy_BEGIN_ALLOW_THREADS
;
3854 wxPenList_AddPen(_arg0
,_arg1
);
3856 wxPy_END_ALLOW_THREADS
;
3857 } Py_INCREF(Py_None
);
3858 _resultobj
= Py_None
;
3862 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3863 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3864 PyObject
* _resultobj
;
3870 PyObject
* _argo0
= 0;
3872 PyObject
* _obj1
= 0;
3873 char *_kwnames
[] = { "self","colour","width","style", NULL
};
3877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
3880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
3888 if (! wxColour_helper(_obj1
, &_arg1
))
3892 wxPy_BEGIN_ALLOW_THREADS
;
3893 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
3895 wxPy_END_ALLOW_THREADS
;
3897 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3898 _resultobj
= Py_BuildValue("s",_ptemp
);
3901 _resultobj
= Py_None
;
3906 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3907 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3908 PyObject
* _resultobj
;
3911 PyObject
* _argo0
= 0;
3912 PyObject
* _argo1
= 0;
3913 char *_kwnames
[] = { "self","pen", NULL
};
3916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
3919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3926 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3927 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3933 wxPy_BEGIN_ALLOW_THREADS
;
3934 wxPenList_RemovePen(_arg0
,_arg1
);
3936 wxPy_END_ALLOW_THREADS
;
3937 } Py_INCREF(Py_None
);
3938 _resultobj
= Py_None
;
3942 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
3943 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3944 PyObject
* _resultobj
;
3947 int _arg1
= (int ) wxSOLID
;
3949 PyObject
* _obj0
= 0;
3950 char *_kwnames
[] = { "colour","style", NULL
};
3954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
3958 if (! wxColour_helper(_obj0
, &_arg0
))
3962 wxPy_BEGIN_ALLOW_THREADS
;
3963 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
3965 wxPy_END_ALLOW_THREADS
;
3967 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
3968 _resultobj
= Py_BuildValue("s",_ptemp
);
3971 _resultobj
= Py_None
;
3976 #define delete_wxBrush(_swigobj) (delete _swigobj)
3977 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3978 PyObject
* _resultobj
;
3980 PyObject
* _argo0
= 0;
3981 char *_kwnames
[] = { "self", NULL
};
3984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
3987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
3994 wxPy_BEGIN_ALLOW_THREADS
;
3995 delete_wxBrush(_arg0
);
3997 wxPy_END_ALLOW_THREADS
;
3998 } Py_INCREF(Py_None
);
3999 _resultobj
= Py_None
;
4003 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4004 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4005 PyObject
* _resultobj
;
4008 PyObject
* _argo0
= 0;
4009 char *_kwnames
[] = { "self", NULL
};
4013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4023 wxPy_BEGIN_ALLOW_THREADS
;
4024 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
4025 _result
= (wxColour
*) &_result_ref
;
4027 wxPy_END_ALLOW_THREADS
;
4029 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4030 _resultobj
= Py_BuildValue("s",_ptemp
);
4033 _resultobj
= Py_None
;
4038 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4039 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4040 PyObject
* _resultobj
;
4043 PyObject
* _argo0
= 0;
4044 char *_kwnames
[] = { "self", NULL
};
4048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4058 wxPy_BEGIN_ALLOW_THREADS
;
4059 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4061 wxPy_END_ALLOW_THREADS
;
4063 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4064 _resultobj
= Py_BuildValue("s",_ptemp
);
4067 _resultobj
= Py_None
;
4072 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4073 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4074 PyObject
* _resultobj
;
4077 PyObject
* _argo0
= 0;
4078 char *_kwnames
[] = { "self", NULL
};
4081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4091 wxPy_BEGIN_ALLOW_THREADS
;
4092 _result
= (int )wxBrush_GetStyle(_arg0
);
4094 wxPy_END_ALLOW_THREADS
;
4095 } _resultobj
= Py_BuildValue("i",_result
);
4099 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4100 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4101 PyObject
* _resultobj
;
4104 PyObject
* _argo0
= 0;
4105 char *_kwnames
[] = { "self", NULL
};
4108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4118 wxPy_BEGIN_ALLOW_THREADS
;
4119 _result
= (bool )wxBrush_Ok(_arg0
);
4121 wxPy_END_ALLOW_THREADS
;
4122 } _resultobj
= Py_BuildValue("i",_result
);
4126 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4127 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4128 PyObject
* _resultobj
;
4131 PyObject
* _argo0
= 0;
4133 PyObject
* _obj1
= 0;
4134 char *_kwnames
[] = { "self","colour", NULL
};
4137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4148 if (! wxColour_helper(_obj1
, &_arg1
))
4152 wxPy_BEGIN_ALLOW_THREADS
;
4153 wxBrush_SetColour(_arg0
,*_arg1
);
4155 wxPy_END_ALLOW_THREADS
;
4156 } Py_INCREF(Py_None
);
4157 _resultobj
= Py_None
;
4161 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4162 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4163 PyObject
* _resultobj
;
4166 PyObject
* _argo0
= 0;
4167 PyObject
* _argo1
= 0;
4168 char *_kwnames
[] = { "self","bitmap", NULL
};
4171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4181 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4182 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4188 wxPy_BEGIN_ALLOW_THREADS
;
4189 wxBrush_SetStipple(_arg0
,*_arg1
);
4191 wxPy_END_ALLOW_THREADS
;
4192 } Py_INCREF(Py_None
);
4193 _resultobj
= Py_None
;
4197 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4198 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4199 PyObject
* _resultobj
;
4202 PyObject
* _argo0
= 0;
4203 char *_kwnames
[] = { "self","style", NULL
};
4206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4216 wxPy_BEGIN_ALLOW_THREADS
;
4217 wxBrush_SetStyle(_arg0
,_arg1
);
4219 wxPy_END_ALLOW_THREADS
;
4220 } Py_INCREF(Py_None
);
4221 _resultobj
= Py_None
;
4225 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4226 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4227 PyObject
* _resultobj
;
4228 wxBrushList
* _arg0
;
4230 PyObject
* _argo0
= 0;
4231 PyObject
* _argo1
= 0;
4232 char *_kwnames
[] = { "self","brush", NULL
};
4235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4245 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4246 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4252 wxPy_BEGIN_ALLOW_THREADS
;
4253 wxBrushList_AddBrush(_arg0
,_arg1
);
4255 wxPy_END_ALLOW_THREADS
;
4256 } Py_INCREF(Py_None
);
4257 _resultobj
= Py_None
;
4261 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4262 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4263 PyObject
* _resultobj
;
4265 wxBrushList
* _arg0
;
4268 PyObject
* _argo0
= 0;
4270 PyObject
* _obj1
= 0;
4271 char *_kwnames
[] = { "self","colour","style", NULL
};
4275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4286 if (! wxColour_helper(_obj1
, &_arg1
))
4290 wxPy_BEGIN_ALLOW_THREADS
;
4291 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4293 wxPy_END_ALLOW_THREADS
;
4295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4296 _resultobj
= Py_BuildValue("s",_ptemp
);
4299 _resultobj
= Py_None
;
4304 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4305 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4306 PyObject
* _resultobj
;
4307 wxBrushList
* _arg0
;
4309 PyObject
* _argo0
= 0;
4310 PyObject
* _argo1
= 0;
4311 char *_kwnames
[] = { "self","brush", NULL
};
4314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4324 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4325 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4331 wxPy_BEGIN_ALLOW_THREADS
;
4332 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4334 wxPy_END_ALLOW_THREADS
;
4335 } Py_INCREF(Py_None
);
4336 _resultobj
= Py_None
;
4340 #define delete_wxDC(_swigobj) (delete _swigobj)
4341 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4342 PyObject
* _resultobj
;
4344 PyObject
* _argo0
= 0;
4345 char *_kwnames
[] = { "self", NULL
};
4348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4358 wxPy_BEGIN_ALLOW_THREADS
;
4361 wxPy_END_ALLOW_THREADS
;
4362 } Py_INCREF(Py_None
);
4363 _resultobj
= Py_None
;
4367 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4368 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4369 PyObject
* _resultobj
;
4371 PyObject
* _argo0
= 0;
4372 char *_kwnames
[] = { "self", NULL
};
4375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4385 wxPy_BEGIN_ALLOW_THREADS
;
4386 wxDC_BeginDrawing(_arg0
);
4388 wxPy_END_ALLOW_THREADS
;
4389 } Py_INCREF(Py_None
);
4390 _resultobj
= Py_None
;
4394 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4395 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4396 PyObject
* _resultobj
;
4406 int _arg8
= (int ) wxCOPY
;
4407 int _arg9
= (int ) FALSE
;
4408 PyObject
* _argo0
= 0;
4409 PyObject
* _argo5
= 0;
4410 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4423 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4424 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4430 wxPy_BEGIN_ALLOW_THREADS
;
4431 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4433 wxPy_END_ALLOW_THREADS
;
4434 } _resultobj
= Py_BuildValue("i",_result
);
4438 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4439 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4440 PyObject
* _resultobj
;
4442 PyObject
* _argo0
= 0;
4443 char *_kwnames
[] = { "self", NULL
};
4446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4456 wxPy_BEGIN_ALLOW_THREADS
;
4459 wxPy_END_ALLOW_THREADS
;
4460 } Py_INCREF(Py_None
);
4461 _resultobj
= Py_None
;
4465 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4466 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4467 PyObject
* _resultobj
;
4471 PyObject
* _argo0
= 0;
4472 char *_kwnames
[] = { "self","x","y", NULL
};
4475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4485 wxPy_BEGIN_ALLOW_THREADS
;
4486 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4488 wxPy_END_ALLOW_THREADS
;
4489 } Py_INCREF(Py_None
);
4490 _resultobj
= Py_None
;
4494 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4495 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4496 PyObject
* _resultobj
;
4498 PyObject
* _argo0
= 0;
4499 char *_kwnames
[] = { "self", NULL
};
4502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4512 wxPy_BEGIN_ALLOW_THREADS
;
4513 wxDC_DestroyClippingRegion(_arg0
);
4515 wxPy_END_ALLOW_THREADS
;
4516 } Py_INCREF(Py_None
);
4517 _resultobj
= Py_None
;
4521 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4522 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4523 PyObject
* _resultobj
;
4527 PyObject
* _argo0
= 0;
4528 char *_kwnames
[] = { "self","x", NULL
};
4531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4541 wxPy_BEGIN_ALLOW_THREADS
;
4542 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4544 wxPy_END_ALLOW_THREADS
;
4545 } _resultobj
= Py_BuildValue("l",_result
);
4549 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4550 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4551 PyObject
* _resultobj
;
4555 PyObject
* _argo0
= 0;
4556 char *_kwnames
[] = { "self","x", NULL
};
4559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4569 wxPy_BEGIN_ALLOW_THREADS
;
4570 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4572 wxPy_END_ALLOW_THREADS
;
4573 } _resultobj
= Py_BuildValue("l",_result
);
4577 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4578 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4579 PyObject
* _resultobj
;
4583 PyObject
* _argo0
= 0;
4584 char *_kwnames
[] = { "self","y", NULL
};
4587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4597 wxPy_BEGIN_ALLOW_THREADS
;
4598 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4600 wxPy_END_ALLOW_THREADS
;
4601 } _resultobj
= Py_BuildValue("l",_result
);
4605 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4606 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4607 PyObject
* _resultobj
;
4611 PyObject
* _argo0
= 0;
4612 char *_kwnames
[] = { "self","y", NULL
};
4615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
4618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4625 wxPy_BEGIN_ALLOW_THREADS
;
4626 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
4628 wxPy_END_ALLOW_THREADS
;
4629 } _resultobj
= Py_BuildValue("l",_result
);
4633 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4634 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4635 PyObject
* _resultobj
;
4643 PyObject
* _argo0
= 0;
4644 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
4647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
4657 wxPy_BEGIN_ALLOW_THREADS
;
4658 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4660 wxPy_END_ALLOW_THREADS
;
4661 } Py_INCREF(Py_None
);
4662 _resultobj
= Py_None
;
4666 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
4667 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4668 PyObject
* _resultobj
;
4673 PyObject
* _argo0
= 0;
4674 char *_kwnames
[] = { "self","x","y","radius", NULL
};
4677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
4680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4687 wxPy_BEGIN_ALLOW_THREADS
;
4688 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
4690 wxPy_END_ALLOW_THREADS
;
4691 } Py_INCREF(Py_None
);
4692 _resultobj
= Py_None
;
4696 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4697 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4698 PyObject
* _resultobj
;
4704 PyObject
* _argo0
= 0;
4705 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4718 wxPy_BEGIN_ALLOW_THREADS
;
4719 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4721 wxPy_END_ALLOW_THREADS
;
4722 } Py_INCREF(Py_None
);
4723 _resultobj
= Py_None
;
4727 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4728 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4729 PyObject
* _resultobj
;
4737 PyObject
* _argo0
= 0;
4738 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
4741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4751 wxPy_BEGIN_ALLOW_THREADS
;
4752 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4754 wxPy_END_ALLOW_THREADS
;
4755 } Py_INCREF(Py_None
);
4756 _resultobj
= Py_None
;
4760 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
4761 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4762 PyObject
* _resultobj
;
4767 PyObject
* _argo0
= 0;
4768 PyObject
* _argo1
= 0;
4769 char *_kwnames
[] = { "self","icon","x","y", NULL
};
4772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
4775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4782 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4783 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
4784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4789 wxPy_BEGIN_ALLOW_THREADS
;
4790 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
4792 wxPy_END_ALLOW_THREADS
;
4793 } Py_INCREF(Py_None
);
4794 _resultobj
= Py_None
;
4798 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4799 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4800 PyObject
* _resultobj
;
4806 PyObject
* _argo0
= 0;
4807 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
4810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
4820 wxPy_BEGIN_ALLOW_THREADS
;
4821 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4823 wxPy_END_ALLOW_THREADS
;
4824 } Py_INCREF(Py_None
);
4825 _resultobj
= Py_None
;
4829 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4830 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4831 PyObject
* _resultobj
;
4835 long _arg3
= (long ) 0;
4836 long _arg4
= (long ) 0;
4837 PyObject
* _argo0
= 0;
4839 PyObject
* _obj2
= 0;
4840 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
4843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
4846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
4854 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
4855 if (_arg2
== NULL
) {
4863 wxPy_BEGIN_ALLOW_THREADS
;
4864 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4866 wxPy_END_ALLOW_THREADS
;
4867 } Py_INCREF(Py_None
);
4868 _resultobj
= Py_None
;
4875 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4876 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4877 PyObject
* _resultobj
;
4881 long _arg3
= (long ) 0;
4882 long _arg4
= (long ) 0;
4883 int _arg5
= (int ) wxODDEVEN_RULE
;
4884 PyObject
* _argo0
= 0;
4886 PyObject
* _obj2
= 0;
4887 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
4890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
4893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
4901 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
4902 if (_arg2
== NULL
) {
4910 wxPy_BEGIN_ALLOW_THREADS
;
4911 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4913 wxPy_END_ALLOW_THREADS
;
4914 } Py_INCREF(Py_None
);
4915 _resultobj
= Py_None
;
4922 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
4923 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4924 PyObject
* _resultobj
;
4928 PyObject
* _argo0
= 0;
4929 char *_kwnames
[] = { "self","x","y", NULL
};
4932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
4942 wxPy_BEGIN_ALLOW_THREADS
;
4943 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
4945 wxPy_END_ALLOW_THREADS
;
4946 } Py_INCREF(Py_None
);
4947 _resultobj
= Py_None
;
4951 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4952 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4953 PyObject
* _resultobj
;
4959 PyObject
* _argo0
= 0;
4960 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
4973 wxPy_BEGIN_ALLOW_THREADS
;
4974 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4976 wxPy_END_ALLOW_THREADS
;
4977 } Py_INCREF(Py_None
);
4978 _resultobj
= Py_None
;
4982 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4983 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4984 PyObject
* _resultobj
;
4990 PyObject
* _argo0
= 0;
4991 PyObject
* _obj1
= 0;
4992 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
4995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5005 #if PYTHON_API_VERSION >= 1009
5006 char* tmpPtr
; int tmpSize
;
5007 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5008 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5011 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5013 _arg1
= new wxString(tmpPtr
, tmpSize
);
5015 if (!PyString_Check(_obj1
)) {
5016 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5019 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5023 wxPy_BEGIN_ALLOW_THREADS
;
5024 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5026 wxPy_END_ALLOW_THREADS
;
5027 } Py_INCREF(Py_None
);
5028 _resultobj
= Py_None
;
5036 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5037 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5044 long _arg5
= (long ) 20;
5045 PyObject
* _argo0
= 0;
5046 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5059 wxPy_BEGIN_ALLOW_THREADS
;
5060 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5062 wxPy_END_ALLOW_THREADS
;
5063 } Py_INCREF(Py_None
);
5064 _resultobj
= Py_None
;
5068 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5069 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5070 PyObject
* _resultobj
;
5074 PyObject
* _argo0
= 0;
5076 PyObject
* _obj2
= 0;
5077 char *_kwnames
[] = { "self","points", NULL
};
5080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5091 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5092 if (_arg2
== NULL
) {
5100 wxPy_BEGIN_ALLOW_THREADS
;
5101 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5103 wxPy_END_ALLOW_THREADS
;
5104 } Py_INCREF(Py_None
);
5105 _resultobj
= Py_None
;
5112 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5113 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5114 PyObject
* _resultobj
;
5119 PyObject
* _argo0
= 0;
5120 PyObject
* _obj1
= 0;
5121 char *_kwnames
[] = { "self","text","x","y", NULL
};
5124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5134 #if PYTHON_API_VERSION >= 1009
5135 char* tmpPtr
; int tmpSize
;
5136 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5137 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5140 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5142 _arg1
= new wxString(tmpPtr
, tmpSize
);
5144 if (!PyString_Check(_obj1
)) {
5145 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5148 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5152 wxPy_BEGIN_ALLOW_THREADS
;
5153 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5155 wxPy_END_ALLOW_THREADS
;
5156 } Py_INCREF(Py_None
);
5157 _resultobj
= Py_None
;
5165 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5166 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5167 PyObject
* _resultobj
;
5169 PyObject
* _argo0
= 0;
5170 char *_kwnames
[] = { "self", NULL
};
5173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5183 wxPy_BEGIN_ALLOW_THREADS
;
5186 wxPy_END_ALLOW_THREADS
;
5187 } Py_INCREF(Py_None
);
5188 _resultobj
= Py_None
;
5192 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5193 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5194 PyObject
* _resultobj
;
5196 PyObject
* _argo0
= 0;
5197 char *_kwnames
[] = { "self", NULL
};
5200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5210 wxPy_BEGIN_ALLOW_THREADS
;
5211 wxDC_EndDrawing(_arg0
);
5213 wxPy_END_ALLOW_THREADS
;
5214 } Py_INCREF(Py_None
);
5215 _resultobj
= Py_None
;
5219 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5220 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5221 PyObject
* _resultobj
;
5223 PyObject
* _argo0
= 0;
5224 char *_kwnames
[] = { "self", NULL
};
5227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5237 wxPy_BEGIN_ALLOW_THREADS
;
5238 wxDC_EndPage(_arg0
);
5240 wxPy_END_ALLOW_THREADS
;
5241 } Py_INCREF(Py_None
);
5242 _resultobj
= Py_None
;
5246 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5247 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5248 PyObject
* _resultobj
;
5253 int _arg4
= (int ) wxFLOOD_SURFACE
;
5254 PyObject
* _argo0
= 0;
5256 PyObject
* _obj3
= 0;
5257 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5271 if (! wxColour_helper(_obj3
, &_arg3
))
5275 wxPy_BEGIN_ALLOW_THREADS
;
5276 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5278 wxPy_END_ALLOW_THREADS
;
5279 } Py_INCREF(Py_None
);
5280 _resultobj
= Py_None
;
5284 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5285 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5286 PyObject
* _resultobj
;
5289 PyObject
* _argo0
= 0;
5290 char *_kwnames
[] = { "self", NULL
};
5294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5304 wxPy_BEGIN_ALLOW_THREADS
;
5305 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
5306 _result
= (wxBrush
*) &_result_ref
;
5308 wxPy_END_ALLOW_THREADS
;
5310 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5311 _resultobj
= Py_BuildValue("s",_ptemp
);
5314 _resultobj
= Py_None
;
5319 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5320 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5321 PyObject
* _resultobj
;
5324 PyObject
* _argo0
= 0;
5325 char *_kwnames
[] = { "self", NULL
};
5329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5339 wxPy_BEGIN_ALLOW_THREADS
;
5340 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
5341 _result
= (wxBrush
*) &_result_ref
;
5343 wxPy_END_ALLOW_THREADS
;
5345 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5346 _resultobj
= Py_BuildValue("s",_ptemp
);
5349 _resultobj
= Py_None
;
5354 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5355 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5356 PyObject
* _resultobj
;
5359 PyObject
* _argo0
= 0;
5360 char *_kwnames
[] = { "self", NULL
};
5363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5373 wxPy_BEGIN_ALLOW_THREADS
;
5374 _result
= (long )wxDC_GetCharHeight(_arg0
);
5376 wxPy_END_ALLOW_THREADS
;
5377 } _resultobj
= Py_BuildValue("l",_result
);
5381 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5382 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5383 PyObject
* _resultobj
;
5386 PyObject
* _argo0
= 0;
5387 char *_kwnames
[] = { "self", NULL
};
5390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
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_GetCharWidth. Expected _wxDC_p.");
5400 wxPy_BEGIN_ALLOW_THREADS
;
5401 _result
= (long )wxDC_GetCharWidth(_arg0
);
5403 wxPy_END_ALLOW_THREADS
;
5404 } _resultobj
= Py_BuildValue("l",_result
);
5408 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5409 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5410 PyObject
* _resultobj
;
5420 PyObject
* _argo0
= 0;
5421 char *_kwnames
[] = { "self", NULL
};
5436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5446 wxPy_BEGIN_ALLOW_THREADS
;
5447 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5449 wxPy_END_ALLOW_THREADS
;
5450 } Py_INCREF(Py_None
);
5451 _resultobj
= Py_None
;
5454 o
= PyInt_FromLong((long) (*_arg1
));
5455 _resultobj
= t_output_helper(_resultobj
, o
);
5459 o
= PyInt_FromLong((long) (*_arg2
));
5460 _resultobj
= t_output_helper(_resultobj
, o
);
5464 o
= PyInt_FromLong((long) (*_arg3
));
5465 _resultobj
= t_output_helper(_resultobj
, o
);
5469 o
= PyInt_FromLong((long) (*_arg4
));
5470 _resultobj
= t_output_helper(_resultobj
, o
);
5475 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5476 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5477 PyObject
* _resultobj
;
5480 PyObject
* _argo0
= 0;
5481 char *_kwnames
[] = { "self", NULL
};
5485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5495 wxPy_BEGIN_ALLOW_THREADS
;
5496 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
5497 _result
= (wxFont
*) &_result_ref
;
5499 wxPy_END_ALLOW_THREADS
;
5501 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5502 _resultobj
= Py_BuildValue("s",_ptemp
);
5505 _resultobj
= Py_None
;
5510 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5511 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5512 PyObject
* _resultobj
;
5515 PyObject
* _argo0
= 0;
5516 char *_kwnames
[] = { "self", NULL
};
5519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5529 wxPy_BEGIN_ALLOW_THREADS
;
5530 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5532 wxPy_END_ALLOW_THREADS
;
5533 } _resultobj
= Py_BuildValue("i",_result
);
5537 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5538 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5539 PyObject
* _resultobj
;
5545 PyObject
* _argo0
= 0;
5546 char *_kwnames
[] = { "self", NULL
};
5555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5565 wxPy_BEGIN_ALLOW_THREADS
;
5566 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5568 wxPy_END_ALLOW_THREADS
;
5569 } Py_INCREF(Py_None
);
5570 _resultobj
= Py_None
;
5573 o
= PyFloat_FromDouble((double) (*_arg1
));
5574 _resultobj
= t_output_helper(_resultobj
, o
);
5578 o
= PyFloat_FromDouble((double) (*_arg2
));
5579 _resultobj
= t_output_helper(_resultobj
, o
);
5584 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5585 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5586 PyObject
* _resultobj
;
5589 PyObject
* _argo0
= 0;
5590 char *_kwnames
[] = { "self", NULL
};
5593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5603 wxPy_BEGIN_ALLOW_THREADS
;
5604 _result
= (int )wxDC_GetMapMode(_arg0
);
5606 wxPy_END_ALLOW_THREADS
;
5607 } _resultobj
= Py_BuildValue("i",_result
);
5611 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5612 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5613 PyObject
* _resultobj
;
5616 PyObject
* _argo0
= 0;
5617 char *_kwnames
[] = { "self", NULL
};
5620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
5623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5630 wxPy_BEGIN_ALLOW_THREADS
;
5631 _result
= (bool )wxDC_GetOptimization(_arg0
);
5633 wxPy_END_ALLOW_THREADS
;
5634 } _resultobj
= Py_BuildValue("i",_result
);
5638 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5639 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5640 PyObject
* _resultobj
;
5643 PyObject
* _argo0
= 0;
5644 char *_kwnames
[] = { "self", NULL
};
5648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
5651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5658 wxPy_BEGIN_ALLOW_THREADS
;
5659 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
5660 _result
= (wxPen
*) &_result_ref
;
5662 wxPy_END_ALLOW_THREADS
;
5664 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5665 _resultobj
= Py_BuildValue("s",_ptemp
);
5668 _resultobj
= Py_None
;
5673 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
5674 wxColour
* wc
= new wxColour();
5675 self
->GetPixel(x
, y
, wc
);
5678 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5679 PyObject
* _resultobj
;
5684 PyObject
* _argo0
= 0;
5685 char *_kwnames
[] = { "self","x","y", NULL
};
5689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5699 wxPy_BEGIN_ALLOW_THREADS
;
5700 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
5702 wxPy_END_ALLOW_THREADS
;
5704 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5705 _resultobj
= Py_BuildValue("s",_ptemp
);
5708 _resultobj
= Py_None
;
5713 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
5714 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5715 PyObject
* _resultobj
;
5721 PyObject
* _argo0
= 0;
5722 char *_kwnames
[] = { "self", NULL
};
5731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
5734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
5741 wxPy_BEGIN_ALLOW_THREADS
;
5742 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
5744 wxPy_END_ALLOW_THREADS
;
5745 } Py_INCREF(Py_None
);
5746 _resultobj
= Py_None
;
5749 o
= PyInt_FromLong((long) (*_arg1
));
5750 _resultobj
= t_output_helper(_resultobj
, o
);
5754 o
= PyInt_FromLong((long) (*_arg2
));
5755 _resultobj
= t_output_helper(_resultobj
, o
);
5760 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
5761 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5762 PyObject
* _resultobj
;
5765 PyObject
* _argo0
= 0;
5766 char *_kwnames
[] = { "self", NULL
};
5770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
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_GetSize. Expected _wxDC_p.");
5780 wxPy_BEGIN_ALLOW_THREADS
;
5781 _result
= new wxSize (wxDC_GetSize(_arg0
));
5783 wxPy_END_ALLOW_THREADS
;
5784 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5785 _resultobj
= Py_BuildValue("s",_ptemp
);
5789 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
5790 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5791 PyObject
* _resultobj
;
5794 PyObject
* _argo0
= 0;
5795 char *_kwnames
[] = { "self", NULL
};
5799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
5802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
5809 wxPy_BEGIN_ALLOW_THREADS
;
5810 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
5812 wxPy_END_ALLOW_THREADS
;
5813 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5814 _resultobj
= Py_BuildValue("s",_ptemp
);
5818 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
5819 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5820 PyObject
* _resultobj
;
5823 PyObject
* _argo0
= 0;
5824 char *_kwnames
[] = { "self", NULL
};
5828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
5831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
5838 wxPy_BEGIN_ALLOW_THREADS
;
5839 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
5840 _result
= (wxColour
*) &_result_ref
;
5842 wxPy_END_ALLOW_THREADS
;
5844 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5845 _resultobj
= Py_BuildValue("s",_ptemp
);
5848 _resultobj
= Py_None
;
5853 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
5854 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5855 PyObject
* _resultobj
;
5862 PyObject
* _argo0
= 0;
5863 PyObject
* _obj1
= 0;
5864 char *_kwnames
[] = { "self","string", NULL
};
5873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
5876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
5883 #if PYTHON_API_VERSION >= 1009
5884 char* tmpPtr
; int tmpSize
;
5885 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5886 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5889 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5891 _arg1
= new wxString(tmpPtr
, tmpSize
);
5893 if (!PyString_Check(_obj1
)) {
5894 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5897 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5901 wxPy_BEGIN_ALLOW_THREADS
;
5902 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
5904 wxPy_END_ALLOW_THREADS
;
5905 } Py_INCREF(Py_None
);
5906 _resultobj
= Py_None
;
5909 o
= PyInt_FromLong((long) (*_arg2
));
5910 _resultobj
= t_output_helper(_resultobj
, o
);
5914 o
= PyInt_FromLong((long) (*_arg3
));
5915 _resultobj
= t_output_helper(_resultobj
, o
);
5924 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5925 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5926 PyObject
* _resultobj
;
5937 wxFont
* _arg6
= (wxFont
*) NULL
;
5938 PyObject
* _argo0
= 0;
5939 PyObject
* _obj1
= 0;
5940 PyObject
* _argo6
= 0;
5941 char *_kwnames
[] = { "self","string","font", NULL
};
5956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
5959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
5966 #if PYTHON_API_VERSION >= 1009
5967 char* tmpPtr
; int tmpSize
;
5968 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5969 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5972 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5974 _arg1
= new wxString(tmpPtr
, tmpSize
);
5976 if (!PyString_Check(_obj1
)) {
5977 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5980 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5984 if (_argo6
== Py_None
) { _arg6
= NULL
; }
5985 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
5986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
5991 wxPy_BEGIN_ALLOW_THREADS
;
5992 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5994 wxPy_END_ALLOW_THREADS
;
5995 } Py_INCREF(Py_None
);
5996 _resultobj
= Py_None
;
5999 o
= PyInt_FromLong((long) (*_arg2
));
6000 _resultobj
= t_output_helper(_resultobj
, o
);
6004 o
= PyInt_FromLong((long) (*_arg3
));
6005 _resultobj
= t_output_helper(_resultobj
, o
);
6009 o
= PyInt_FromLong((long) (*_arg4
));
6010 _resultobj
= t_output_helper(_resultobj
, o
);
6014 o
= PyInt_FromLong((long) (*_arg5
));
6015 _resultobj
= t_output_helper(_resultobj
, o
);
6024 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6025 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6026 PyObject
* _resultobj
;
6029 PyObject
* _argo0
= 0;
6030 char *_kwnames
[] = { "self", NULL
};
6034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6044 wxPy_BEGIN_ALLOW_THREADS
;
6045 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
6046 _result
= (wxColour
*) &_result_ref
;
6048 wxPy_END_ALLOW_THREADS
;
6050 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6051 _resultobj
= Py_BuildValue("s",_ptemp
);
6054 _resultobj
= Py_None
;
6059 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6060 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6061 PyObject
* _resultobj
;
6067 PyObject
* _argo0
= 0;
6068 char *_kwnames
[] = { "self", NULL
};
6077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6087 wxPy_BEGIN_ALLOW_THREADS
;
6088 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6090 wxPy_END_ALLOW_THREADS
;
6091 } Py_INCREF(Py_None
);
6092 _resultobj
= Py_None
;
6095 o
= PyFloat_FromDouble((double) (*_arg1
));
6096 _resultobj
= t_output_helper(_resultobj
, o
);
6100 o
= PyFloat_FromDouble((double) (*_arg2
));
6101 _resultobj
= t_output_helper(_resultobj
, o
);
6106 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6107 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6108 PyObject
* _resultobj
;
6112 PyObject
* _argo0
= 0;
6113 char *_kwnames
[] = { "self","x", NULL
};
6116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6126 wxPy_BEGIN_ALLOW_THREADS
;
6127 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6129 wxPy_END_ALLOW_THREADS
;
6130 } _resultobj
= Py_BuildValue("l",_result
);
6134 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6135 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6136 PyObject
* _resultobj
;
6140 PyObject
* _argo0
= 0;
6141 char *_kwnames
[] = { "self","x", NULL
};
6144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6154 wxPy_BEGIN_ALLOW_THREADS
;
6155 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6157 wxPy_END_ALLOW_THREADS
;
6158 } _resultobj
= Py_BuildValue("l",_result
);
6162 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6163 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6164 PyObject
* _resultobj
;
6168 PyObject
* _argo0
= 0;
6169 char *_kwnames
[] = { "self","y", NULL
};
6172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6182 wxPy_BEGIN_ALLOW_THREADS
;
6183 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6185 wxPy_END_ALLOW_THREADS
;
6186 } _resultobj
= Py_BuildValue("l",_result
);
6190 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6191 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6192 PyObject
* _resultobj
;
6196 PyObject
* _argo0
= 0;
6197 char *_kwnames
[] = { "self","y", NULL
};
6200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6210 wxPy_BEGIN_ALLOW_THREADS
;
6211 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6213 wxPy_END_ALLOW_THREADS
;
6214 } _resultobj
= Py_BuildValue("l",_result
);
6218 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6219 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6220 PyObject
* _resultobj
;
6223 PyObject
* _argo0
= 0;
6224 char *_kwnames
[] = { "self", NULL
};
6227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6237 wxPy_BEGIN_ALLOW_THREADS
;
6238 _result
= (long )wxDC_MaxX(_arg0
);
6240 wxPy_END_ALLOW_THREADS
;
6241 } _resultobj
= Py_BuildValue("l",_result
);
6245 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6246 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6247 PyObject
* _resultobj
;
6250 PyObject
* _argo0
= 0;
6251 char *_kwnames
[] = { "self", NULL
};
6254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6264 wxPy_BEGIN_ALLOW_THREADS
;
6265 _result
= (long )wxDC_MaxY(_arg0
);
6267 wxPy_END_ALLOW_THREADS
;
6268 } _resultobj
= Py_BuildValue("l",_result
);
6272 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6273 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6274 PyObject
* _resultobj
;
6277 PyObject
* _argo0
= 0;
6278 char *_kwnames
[] = { "self", NULL
};
6281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6291 wxPy_BEGIN_ALLOW_THREADS
;
6292 _result
= (long )wxDC_MinX(_arg0
);
6294 wxPy_END_ALLOW_THREADS
;
6295 } _resultobj
= Py_BuildValue("l",_result
);
6299 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6300 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6301 PyObject
* _resultobj
;
6304 PyObject
* _argo0
= 0;
6305 char *_kwnames
[] = { "self", NULL
};
6308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6318 wxPy_BEGIN_ALLOW_THREADS
;
6319 _result
= (long )wxDC_MinY(_arg0
);
6321 wxPy_END_ALLOW_THREADS
;
6322 } _resultobj
= Py_BuildValue("l",_result
);
6326 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6327 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6328 PyObject
* _resultobj
;
6331 PyObject
* _argo0
= 0;
6332 char *_kwnames
[] = { "self", NULL
};
6335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6345 wxPy_BEGIN_ALLOW_THREADS
;
6346 _result
= (bool )wxDC_Ok(_arg0
);
6348 wxPy_END_ALLOW_THREADS
;
6349 } _resultobj
= Py_BuildValue("i",_result
);
6353 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6354 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6355 PyObject
* _resultobj
;
6359 PyObject
* _argo0
= 0;
6360 char *_kwnames
[] = { "self","x","y", NULL
};
6363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6373 wxPy_BEGIN_ALLOW_THREADS
;
6374 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6376 wxPy_END_ALLOW_THREADS
;
6377 } Py_INCREF(Py_None
);
6378 _resultobj
= Py_None
;
6382 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6383 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6384 PyObject
* _resultobj
;
6387 PyObject
* _argo0
= 0;
6388 PyObject
* _argo1
= 0;
6389 char *_kwnames
[] = { "self","brush", NULL
};
6392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6402 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6403 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6409 wxPy_BEGIN_ALLOW_THREADS
;
6410 wxDC_SetBackground(_arg0
,*_arg1
);
6412 wxPy_END_ALLOW_THREADS
;
6413 } Py_INCREF(Py_None
);
6414 _resultobj
= Py_None
;
6418 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6419 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6420 PyObject
* _resultobj
;
6423 PyObject
* _argo0
= 0;
6424 char *_kwnames
[] = { "self","mode", NULL
};
6427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6437 wxPy_BEGIN_ALLOW_THREADS
;
6438 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6440 wxPy_END_ALLOW_THREADS
;
6441 } Py_INCREF(Py_None
);
6442 _resultobj
= Py_None
;
6446 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6447 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6448 PyObject
* _resultobj
;
6454 PyObject
* _argo0
= 0;
6455 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6468 wxPy_BEGIN_ALLOW_THREADS
;
6469 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6471 wxPy_END_ALLOW_THREADS
;
6472 } Py_INCREF(Py_None
);
6473 _resultobj
= Py_None
;
6477 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6478 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6479 PyObject
* _resultobj
;
6482 PyObject
* _argo0
= 0;
6483 PyObject
* _argo1
= 0;
6484 char *_kwnames
[] = { "self","colourMap", NULL
};
6487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6497 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6498 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6504 wxPy_BEGIN_ALLOW_THREADS
;
6505 wxDC_SetPalette(_arg0
,*_arg1
);
6507 wxPy_END_ALLOW_THREADS
;
6508 } Py_INCREF(Py_None
);
6509 _resultobj
= Py_None
;
6513 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6514 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6515 PyObject
* _resultobj
;
6518 PyObject
* _argo0
= 0;
6519 PyObject
* _argo1
= 0;
6520 char *_kwnames
[] = { "self","brush", NULL
};
6523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6533 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6534 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6540 wxPy_BEGIN_ALLOW_THREADS
;
6541 wxDC_SetBrush(_arg0
,*_arg1
);
6543 wxPy_END_ALLOW_THREADS
;
6544 } Py_INCREF(Py_None
);
6545 _resultobj
= Py_None
;
6549 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6550 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6551 PyObject
* _resultobj
;
6554 PyObject
* _argo0
= 0;
6555 PyObject
* _argo1
= 0;
6556 char *_kwnames
[] = { "self","font", NULL
};
6559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6569 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6570 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6576 wxPy_BEGIN_ALLOW_THREADS
;
6577 wxDC_SetFont(_arg0
,*_arg1
);
6579 wxPy_END_ALLOW_THREADS
;
6580 } Py_INCREF(Py_None
);
6581 _resultobj
= Py_None
;
6585 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
6586 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6587 PyObject
* _resultobj
;
6590 PyObject
* _argo0
= 0;
6591 char *_kwnames
[] = { "self","function", NULL
};
6594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
6597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6604 wxPy_BEGIN_ALLOW_THREADS
;
6605 wxDC_SetLogicalFunction(_arg0
,_arg1
);
6607 wxPy_END_ALLOW_THREADS
;
6608 } Py_INCREF(Py_None
);
6609 _resultobj
= Py_None
;
6613 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6614 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6615 PyObject
* _resultobj
;
6619 PyObject
* _argo0
= 0;
6620 char *_kwnames
[] = { "self","x","y", NULL
};
6623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6633 wxPy_BEGIN_ALLOW_THREADS
;
6634 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
6636 wxPy_END_ALLOW_THREADS
;
6637 } Py_INCREF(Py_None
);
6638 _resultobj
= Py_None
;
6642 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
6643 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6644 PyObject
* _resultobj
;
6647 PyObject
* _argo0
= 0;
6648 char *_kwnames
[] = { "self","mode", NULL
};
6651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
6654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6661 wxPy_BEGIN_ALLOW_THREADS
;
6662 wxDC_SetMapMode(_arg0
,_arg1
);
6664 wxPy_END_ALLOW_THREADS
;
6665 } Py_INCREF(Py_None
);
6666 _resultobj
= Py_None
;
6670 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
6671 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6672 PyObject
* _resultobj
;
6675 PyObject
* _argo0
= 0;
6677 char *_kwnames
[] = { "self","optimize", NULL
};
6680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
6683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6689 _arg1
= (bool ) tempbool1
;
6691 wxPy_BEGIN_ALLOW_THREADS
;
6692 wxDC_SetOptimization(_arg0
,_arg1
);
6694 wxPy_END_ALLOW_THREADS
;
6695 } Py_INCREF(Py_None
);
6696 _resultobj
= Py_None
;
6700 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
6701 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6702 PyObject
* _resultobj
;
6705 PyObject
* _argo0
= 0;
6706 PyObject
* _argo1
= 0;
6707 char *_kwnames
[] = { "self","pen", NULL
};
6710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
6713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
6720 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6721 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
6727 wxPy_BEGIN_ALLOW_THREADS
;
6728 wxDC_SetPen(_arg0
,*_arg1
);
6730 wxPy_END_ALLOW_THREADS
;
6731 } Py_INCREF(Py_None
);
6732 _resultobj
= Py_None
;
6736 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
6737 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6738 PyObject
* _resultobj
;
6741 PyObject
* _argo0
= 0;
6743 PyObject
* _obj1
= 0;
6744 char *_kwnames
[] = { "self","colour", NULL
};
6747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
6750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
6758 if (! wxColour_helper(_obj1
, &_arg1
))
6762 wxPy_BEGIN_ALLOW_THREADS
;
6763 wxDC_SetTextBackground(_arg0
,*_arg1
);
6765 wxPy_END_ALLOW_THREADS
;
6766 } Py_INCREF(Py_None
);
6767 _resultobj
= Py_None
;
6771 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
6772 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6773 PyObject
* _resultobj
;
6776 PyObject
* _argo0
= 0;
6778 PyObject
* _obj1
= 0;
6779 char *_kwnames
[] = { "self","colour", NULL
};
6782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
6785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
6793 if (! wxColour_helper(_obj1
, &_arg1
))
6797 wxPy_BEGIN_ALLOW_THREADS
;
6798 wxDC_SetTextForeground(_arg0
,*_arg1
);
6800 wxPy_END_ALLOW_THREADS
;
6801 } Py_INCREF(Py_None
);
6802 _resultobj
= Py_None
;
6806 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
6807 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6808 PyObject
* _resultobj
;
6812 PyObject
* _argo0
= 0;
6813 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
6816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
6826 wxPy_BEGIN_ALLOW_THREADS
;
6827 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
6829 wxPy_END_ALLOW_THREADS
;
6830 } Py_INCREF(Py_None
);
6831 _resultobj
= Py_None
;
6835 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
6836 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6837 PyObject
* _resultobj
;
6841 PyObject
* _argo0
= 0;
6842 PyObject
* _obj1
= 0;
6843 char *_kwnames
[] = { "self","message", NULL
};
6846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
6849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
6856 #if PYTHON_API_VERSION >= 1009
6857 char* tmpPtr
; int tmpSize
;
6858 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6859 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6862 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6864 _arg1
= new wxString(tmpPtr
, tmpSize
);
6866 if (!PyString_Check(_obj1
)) {
6867 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6870 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6874 wxPy_BEGIN_ALLOW_THREADS
;
6875 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
6877 wxPy_END_ALLOW_THREADS
;
6878 } _resultobj
= Py_BuildValue("i",_result
);
6886 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
6887 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6888 PyObject
* _resultobj
;
6890 PyObject
* _argo0
= 0;
6891 char *_kwnames
[] = { "self", NULL
};
6894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
6897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
6904 wxPy_BEGIN_ALLOW_THREADS
;
6905 wxDC_StartPage(_arg0
);
6907 wxPy_END_ALLOW_THREADS
;
6908 } Py_INCREF(Py_None
);
6909 _resultobj
= Py_None
;
6913 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6914 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6915 PyObject
* _resultobj
;
6920 int _arg4
= (int ) FALSE
;
6921 PyObject
* _argo0
= 0;
6922 PyObject
* _argo1
= 0;
6923 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
6926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
6929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
6936 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6937 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
6943 wxPy_BEGIN_ALLOW_THREADS
;
6944 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6946 wxPy_END_ALLOW_THREADS
;
6947 } Py_INCREF(Py_None
);
6948 _resultobj
= Py_None
;
6952 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
6953 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6954 PyObject
* _resultobj
;
6957 PyObject
* _argo0
= 0;
6958 char *_kwnames
[] = { "self", NULL
};
6961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
6964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
6971 wxPy_BEGIN_ALLOW_THREADS
;
6972 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
6974 wxPy_END_ALLOW_THREADS
;
6975 } _resultobj
= Py_BuildValue("i",_result
);
6979 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
6980 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6981 PyObject
* _resultobj
;
6984 PyObject
* _argo0
= 0;
6985 char *_kwnames
[] = { "self", NULL
};
6988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
6991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
6998 wxPy_BEGIN_ALLOW_THREADS
;
6999 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7001 wxPy_END_ALLOW_THREADS
;
7002 } _resultobj
= Py_BuildValue("i",_result
);
7006 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7007 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7008 PyObject
* _resultobj
;
7011 PyObject
* _argo0
= 0;
7012 char *_kwnames
[] = { "self", NULL
};
7015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7025 wxPy_BEGIN_ALLOW_THREADS
;
7026 _result
= (int )wxDC_GetDepth(_arg0
);
7028 wxPy_END_ALLOW_THREADS
;
7029 } _resultobj
= Py_BuildValue("i",_result
);
7033 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7034 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7035 PyObject
* _resultobj
;
7038 PyObject
* _argo0
= 0;
7039 char *_kwnames
[] = { "self", NULL
};
7043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7053 wxPy_BEGIN_ALLOW_THREADS
;
7054 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7056 wxPy_END_ALLOW_THREADS
;
7057 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7058 _resultobj
= Py_BuildValue("s",_ptemp
);
7062 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7063 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7064 PyObject
* _resultobj
;
7070 PyObject
* _argo0
= 0;
7071 char *_kwnames
[] = { "self", NULL
};
7080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7090 wxPy_BEGIN_ALLOW_THREADS
;
7091 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7093 wxPy_END_ALLOW_THREADS
;
7094 } Py_INCREF(Py_None
);
7095 _resultobj
= Py_None
;
7098 o
= PyInt_FromLong((long) (*_arg1
));
7099 _resultobj
= t_output_helper(_resultobj
, o
);
7103 o
= PyInt_FromLong((long) (*_arg2
));
7104 _resultobj
= t_output_helper(_resultobj
, o
);
7109 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7110 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7111 PyObject
* _resultobj
;
7115 PyObject
* _argo0
= 0;
7116 char *_kwnames
[] = { "self","x","y", NULL
};
7119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7129 wxPy_BEGIN_ALLOW_THREADS
;
7130 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7132 wxPy_END_ALLOW_THREADS
;
7133 } Py_INCREF(Py_None
);
7134 _resultobj
= Py_None
;
7138 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7139 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7140 PyObject
* _resultobj
;
7146 PyObject
* _argo0
= 0;
7147 char *_kwnames
[] = { "self", NULL
};
7156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7166 wxPy_BEGIN_ALLOW_THREADS
;
7167 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7169 wxPy_END_ALLOW_THREADS
;
7170 } Py_INCREF(Py_None
);
7171 _resultobj
= Py_None
;
7174 o
= PyInt_FromLong((long) (*_arg1
));
7175 _resultobj
= t_output_helper(_resultobj
, o
);
7179 o
= PyInt_FromLong((long) (*_arg2
));
7180 _resultobj
= t_output_helper(_resultobj
, o
);
7185 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7186 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7187 PyObject
* _resultobj
;
7191 PyObject
* _argo0
= 0;
7194 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7206 _arg1
= (bool ) tempbool1
;
7207 _arg2
= (bool ) tempbool2
;
7209 wxPy_BEGIN_ALLOW_THREADS
;
7210 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7212 wxPy_END_ALLOW_THREADS
;
7213 } Py_INCREF(Py_None
);
7214 _resultobj
= Py_None
;
7218 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7219 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7220 PyObject
* _resultobj
;
7224 PyObject
* _argo0
= 0;
7225 char *_kwnames
[] = { "self","x","y", NULL
};
7228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7238 wxPy_BEGIN_ALLOW_THREADS
;
7239 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7241 wxPy_END_ALLOW_THREADS
;
7242 } Py_INCREF(Py_None
);
7243 _resultobj
= Py_None
;
7247 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7248 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7249 PyObject
* _resultobj
;
7251 PyObject
* _argo0
= 0;
7252 char *_kwnames
[] = { "self", NULL
};
7255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7265 wxPy_BEGIN_ALLOW_THREADS
;
7266 wxDC_ResetBoundingBox(_arg0
);
7268 wxPy_END_ALLOW_THREADS
;
7269 } Py_INCREF(Py_None
);
7270 _resultobj
= Py_None
;
7274 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7277 src
= (wxMemoryDC
*) ptr
;
7278 dest
= (wxDC
*) src
;
7279 return (void *) dest
;
7282 #define new_wxMemoryDC() (new wxMemoryDC())
7283 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7284 PyObject
* _resultobj
;
7285 wxMemoryDC
* _result
;
7286 char *_kwnames
[] = { NULL
};
7290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7293 wxPy_BEGIN_ALLOW_THREADS
;
7294 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7296 wxPy_END_ALLOW_THREADS
;
7298 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7299 _resultobj
= Py_BuildValue("s",_ptemp
);
7302 _resultobj
= Py_None
;
7307 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7308 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7309 PyObject
* _resultobj
;
7312 PyObject
* _argo0
= 0;
7313 PyObject
* _argo1
= 0;
7314 char *_kwnames
[] = { "self","bitmap", NULL
};
7317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7327 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7328 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7334 wxPy_BEGIN_ALLOW_THREADS
;
7335 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7337 wxPy_END_ALLOW_THREADS
;
7338 } Py_INCREF(Py_None
);
7339 _resultobj
= Py_None
;
7343 static void *SwigwxScreenDCTowxDC(void *ptr
) {
7346 src
= (wxScreenDC
*) ptr
;
7347 dest
= (wxDC
*) src
;
7348 return (void *) dest
;
7351 #define new_wxScreenDC() (new wxScreenDC())
7352 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7353 PyObject
* _resultobj
;
7354 wxScreenDC
* _result
;
7355 char *_kwnames
[] = { NULL
};
7359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
7362 wxPy_BEGIN_ALLOW_THREADS
;
7363 _result
= (wxScreenDC
*)new_wxScreenDC();
7365 wxPy_END_ALLOW_THREADS
;
7367 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
7368 _resultobj
= Py_BuildValue("s",_ptemp
);
7371 _resultobj
= Py_None
;
7376 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7377 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7378 PyObject
* _resultobj
;
7382 PyObject
* _argo0
= 0;
7383 PyObject
* _argo1
= 0;
7384 char *_kwnames
[] = { "self","window", NULL
};
7387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
7390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7397 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7398 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7404 wxPy_BEGIN_ALLOW_THREADS
;
7405 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
7407 wxPy_END_ALLOW_THREADS
;
7408 } _resultobj
= Py_BuildValue("i",_result
);
7412 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7413 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7414 PyObject
* _resultobj
;
7417 wxRect
* _arg1
= (wxRect
*) NULL
;
7418 PyObject
* _argo0
= 0;
7420 PyObject
* _obj1
= 0;
7421 char *_kwnames
[] = { "self","rect", NULL
};
7424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
7427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7436 if (! wxRect_helper(_obj1
, &_arg1
))
7440 wxPy_BEGIN_ALLOW_THREADS
;
7441 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
7443 wxPy_END_ALLOW_THREADS
;
7444 } _resultobj
= Py_BuildValue("i",_result
);
7448 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7449 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7450 PyObject
* _resultobj
;
7453 PyObject
* _argo0
= 0;
7454 char *_kwnames
[] = { "self", NULL
};
7457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
7460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7467 wxPy_BEGIN_ALLOW_THREADS
;
7468 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
7470 wxPy_END_ALLOW_THREADS
;
7471 } _resultobj
= Py_BuildValue("i",_result
);
7475 static void *SwigwxClientDCTowxDC(void *ptr
) {
7478 src
= (wxClientDC
*) ptr
;
7479 dest
= (wxDC
*) src
;
7480 return (void *) dest
;
7483 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7484 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7485 PyObject
* _resultobj
;
7486 wxClientDC
* _result
;
7488 PyObject
* _argo0
= 0;
7489 char *_kwnames
[] = { "win", NULL
};
7493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
7496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
7503 wxPy_BEGIN_ALLOW_THREADS
;
7504 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
7506 wxPy_END_ALLOW_THREADS
;
7508 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
7509 _resultobj
= Py_BuildValue("s",_ptemp
);
7512 _resultobj
= Py_None
;
7517 static void *SwigwxPaintDCTowxDC(void *ptr
) {
7520 src
= (wxPaintDC
*) ptr
;
7521 dest
= (wxDC
*) src
;
7522 return (void *) dest
;
7525 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
7526 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7527 PyObject
* _resultobj
;
7528 wxPaintDC
* _result
;
7530 PyObject
* _argo0
= 0;
7531 char *_kwnames
[] = { "win", NULL
};
7535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
7538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
7545 wxPy_BEGIN_ALLOW_THREADS
;
7546 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
7548 wxPy_END_ALLOW_THREADS
;
7550 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
7551 _resultobj
= Py_BuildValue("s",_ptemp
);
7554 _resultobj
= Py_None
;
7559 static void *SwigwxWindowDCTowxDC(void *ptr
) {
7562 src
= (wxWindowDC
*) ptr
;
7563 dest
= (wxDC
*) src
;
7564 return (void *) dest
;
7567 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
7568 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7569 PyObject
* _resultobj
;
7570 wxWindowDC
* _result
;
7572 PyObject
* _argo0
= 0;
7573 char *_kwnames
[] = { "win", NULL
};
7577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
7580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
7587 wxPy_BEGIN_ALLOW_THREADS
;
7588 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
7590 wxPy_END_ALLOW_THREADS
;
7592 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
7593 _resultobj
= Py_BuildValue("s",_ptemp
);
7596 _resultobj
= Py_None
;
7601 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
7602 wxPostScriptDC
*src
;
7604 src
= (wxPostScriptDC
*) ptr
;
7605 dest
= (wxDC
*) src
;
7606 return (void *) dest
;
7609 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
7610 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7611 PyObject
* _resultobj
;
7612 wxPostScriptDC
* _result
;
7614 bool _arg1
= (bool ) TRUE
;
7615 wxWindow
* _arg2
= (wxWindow
*) NULL
;
7616 PyObject
* _obj0
= 0;
7617 int tempbool1
= (int) TRUE
;
7618 PyObject
* _argo2
= 0;
7619 char *_kwnames
[] = { "output","interactive","win", NULL
};
7623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
7626 #if PYTHON_API_VERSION >= 1009
7627 char* tmpPtr
; int tmpSize
;
7628 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
7629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7632 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
7634 _arg0
= new wxString(tmpPtr
, tmpSize
);
7636 if (!PyString_Check(_obj0
)) {
7637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7640 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
7643 _arg1
= (bool ) tempbool1
;
7645 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7646 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
7647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
7652 wxPy_BEGIN_ALLOW_THREADS
;
7653 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
7655 wxPy_END_ALLOW_THREADS
;
7657 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
7658 _resultobj
= Py_BuildValue("s",_ptemp
);
7661 _resultobj
= Py_None
;
7670 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7671 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7672 PyObject
* _resultobj
;
7673 wxPalette
* _result
;
7678 PyObject
* _obj1
= 0;
7679 PyObject
* _obj2
= 0;
7680 PyObject
* _obj3
= 0;
7681 char *_kwnames
[] = { "choices","choices","choices", NULL
};
7685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
7688 _arg1
= byte_LIST_helper(_obj1
);
7689 if (_arg1
== NULL
) {
7694 _arg2
= byte_LIST_helper(_obj2
);
7695 if (_arg2
== NULL
) {
7701 _arg3
= byte_LIST_helper(_obj3
);
7702 if (_arg3
== NULL
) {
7708 _arg0
= PyList_Size(_obj1
);
7715 wxPy_BEGIN_ALLOW_THREADS
;
7716 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
7718 wxPy_END_ALLOW_THREADS
;
7720 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
7721 _resultobj
= Py_BuildValue("s",_ptemp
);
7724 _resultobj
= Py_None
;
7738 #define delete_wxPalette(_swigobj) (delete _swigobj)
7739 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7740 PyObject
* _resultobj
;
7742 PyObject
* _argo0
= 0;
7743 char *_kwnames
[] = { "self", NULL
};
7746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
7749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
7756 wxPy_BEGIN_ALLOW_THREADS
;
7757 delete_wxPalette(_arg0
);
7759 wxPy_END_ALLOW_THREADS
;
7760 } Py_INCREF(Py_None
);
7761 _resultobj
= Py_None
;
7765 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
7766 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7767 PyObject
* _resultobj
;
7773 PyObject
* _argo0
= 0;
7774 char *_kwnames
[] = { "self","red","green","blue", NULL
};
7777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
7780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
7787 wxPy_BEGIN_ALLOW_THREADS
;
7788 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
7790 wxPy_END_ALLOW_THREADS
;
7791 } _resultobj
= Py_BuildValue("i",_result
);
7795 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7796 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7797 PyObject
* _resultobj
;
7804 PyObject
* _argo0
= 0;
7805 PyObject
* _argo2
= 0;
7806 PyObject
* _argo3
= 0;
7807 PyObject
* _argo4
= 0;
7808 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
7811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
7814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
7821 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7822 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
7823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
7828 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7829 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
7830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
7835 if (_argo4
== Py_None
) { _arg4
= NULL
; }
7836 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
7837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
7842 wxPy_BEGIN_ALLOW_THREADS
;
7843 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7845 wxPy_END_ALLOW_THREADS
;
7846 } _resultobj
= Py_BuildValue("i",_result
);
7850 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
7851 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7852 PyObject
* _resultobj
;
7855 PyObject
* _argo0
= 0;
7856 char *_kwnames
[] = { "self", NULL
};
7859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
7862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
7869 wxPy_BEGIN_ALLOW_THREADS
;
7870 _result
= (bool )wxPalette_Ok(_arg0
);
7872 wxPy_END_ALLOW_THREADS
;
7873 } _resultobj
= Py_BuildValue("i",_result
);
7877 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7878 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7879 PyObject
* _resultobj
;
7880 wxImageList
* _result
;
7883 int _arg2
= (int ) TRUE
;
7884 int _arg3
= (int ) 1;
7885 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
7889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
7892 wxPy_BEGIN_ALLOW_THREADS
;
7893 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
7895 wxPy_END_ALLOW_THREADS
;
7897 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
7898 _resultobj
= Py_BuildValue("s",_ptemp
);
7901 _resultobj
= Py_None
;
7906 #define delete_wxImageList(_swigobj) (delete _swigobj)
7907 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7908 PyObject
* _resultobj
;
7909 wxImageList
* _arg0
;
7910 PyObject
* _argo0
= 0;
7911 char *_kwnames
[] = { "self", NULL
};
7914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
7917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
7924 wxPy_BEGIN_ALLOW_THREADS
;
7925 delete_wxImageList(_arg0
);
7927 wxPy_END_ALLOW_THREADS
;
7928 } Py_INCREF(Py_None
);
7929 _resultobj
= Py_None
;
7933 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7934 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7935 PyObject
* _resultobj
;
7937 wxImageList
* _arg0
;
7939 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
7940 PyObject
* _argo0
= 0;
7941 PyObject
* _argo1
= 0;
7942 PyObject
* _argo2
= 0;
7943 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
7946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
7949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
7956 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7957 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
7963 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7964 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
7965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
7970 wxPy_BEGIN_ALLOW_THREADS
;
7971 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
7973 wxPy_END_ALLOW_THREADS
;
7974 } _resultobj
= Py_BuildValue("i",_result
);
7978 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7979 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7980 PyObject
* _resultobj
;
7982 wxImageList
* _arg0
;
7985 PyObject
* _argo0
= 0;
7986 PyObject
* _argo1
= 0;
7988 PyObject
* _obj2
= 0;
7989 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
7992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
7995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8002 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8003 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8010 if (! wxColour_helper(_obj2
, &_arg2
))
8014 wxPy_BEGIN_ALLOW_THREADS
;
8015 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8017 wxPy_END_ALLOW_THREADS
;
8018 } _resultobj
= Py_BuildValue("i",_result
);
8022 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8023 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8024 PyObject
* _resultobj
;
8026 wxImageList
* _arg0
;
8028 PyObject
* _argo0
= 0;
8029 PyObject
* _argo1
= 0;
8030 char *_kwnames
[] = { "self","icon", NULL
};
8033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8043 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8044 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8050 wxPy_BEGIN_ALLOW_THREADS
;
8051 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8053 wxPy_END_ALLOW_THREADS
;
8054 } _resultobj
= Py_BuildValue("i",_result
);
8058 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8059 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8060 PyObject
* _resultobj
;
8062 wxImageList
* _arg0
;
8065 PyObject
* _argo0
= 0;
8066 PyObject
* _argo2
= 0;
8067 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8080 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8081 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8087 wxPy_BEGIN_ALLOW_THREADS
;
8088 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8090 wxPy_END_ALLOW_THREADS
;
8091 } _resultobj
= Py_BuildValue("i",_result
);
8095 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8096 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8097 PyObject
* _resultobj
;
8099 wxImageList
* _arg0
;
8104 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8105 bool _arg6
= (bool ) FALSE
;
8106 PyObject
* _argo0
= 0;
8107 PyObject
* _argo2
= 0;
8108 int tempbool6
= (int) FALSE
;
8109 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8122 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8123 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8128 _arg6
= (bool ) tempbool6
;
8130 wxPy_BEGIN_ALLOW_THREADS
;
8131 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8133 wxPy_END_ALLOW_THREADS
;
8134 } _resultobj
= Py_BuildValue("i",_result
);
8138 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8139 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8140 PyObject
* _resultobj
;
8142 wxImageList
* _arg0
;
8143 PyObject
* _argo0
= 0;
8144 char *_kwnames
[] = { "self", NULL
};
8147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8157 wxPy_BEGIN_ALLOW_THREADS
;
8158 _result
= (int )wxImageList_GetImageCount(_arg0
);
8160 wxPy_END_ALLOW_THREADS
;
8161 } _resultobj
= Py_BuildValue("i",_result
);
8165 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8166 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8167 PyObject
* _resultobj
;
8169 wxImageList
* _arg0
;
8171 PyObject
* _argo0
= 0;
8172 char *_kwnames
[] = { "self","index", NULL
};
8175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8185 wxPy_BEGIN_ALLOW_THREADS
;
8186 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8188 wxPy_END_ALLOW_THREADS
;
8189 } _resultobj
= Py_BuildValue("i",_result
);
8193 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8194 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8195 PyObject
* _resultobj
;
8197 wxImageList
* _arg0
;
8198 PyObject
* _argo0
= 0;
8199 char *_kwnames
[] = { "self", NULL
};
8202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8212 wxPy_BEGIN_ALLOW_THREADS
;
8213 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8215 wxPy_END_ALLOW_THREADS
;
8216 } _resultobj
= Py_BuildValue("i",_result
);
8220 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8221 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8222 PyObject
* _resultobj
;
8223 wxImageList
* _arg0
;
8229 PyObject
* _argo0
= 0;
8230 char *_kwnames
[] = { "self","index", NULL
};
8239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8249 wxPy_BEGIN_ALLOW_THREADS
;
8250 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8252 wxPy_END_ALLOW_THREADS
;
8253 } Py_INCREF(Py_None
);
8254 _resultobj
= Py_None
;
8257 o
= PyInt_FromLong((long) (*_arg2
));
8258 _resultobj
= t_output_helper(_resultobj
, o
);
8262 o
= PyInt_FromLong((long) (*_arg3
));
8263 _resultobj
= t_output_helper(_resultobj
, o
);
8268 static PyMethodDef gdicMethods
[] = {
8269 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
8270 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
8271 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
8272 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
8273 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
8274 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
8275 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
8276 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
8277 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
8278 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
8279 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
8280 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8281 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
8282 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
8283 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
8284 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
8285 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
8286 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
8287 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
8288 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
8289 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
8290 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
8291 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
8292 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
8293 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
8294 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
8295 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
8296 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
8297 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
8298 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8299 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8300 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8301 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
8302 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8303 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8304 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8305 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8306 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
8307 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
8308 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
8309 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
8310 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
8311 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
8312 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
8313 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
8314 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
8315 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
8316 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
8317 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
8318 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
8319 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
8320 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
8321 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
8322 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8323 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8324 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
8325 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
8326 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
8327 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
8328 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
8329 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
8330 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
8331 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
8332 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
8333 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
8334 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8335 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8336 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
8337 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
8338 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
8339 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
8340 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
8341 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
8342 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
8343 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
8344 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
8345 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
8346 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
8347 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
8348 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
8349 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
8350 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
8351 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
8352 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
8353 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
8354 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
8355 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
8356 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
8357 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
8358 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
8359 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
8360 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
8361 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
8362 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
8363 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
8364 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
8365 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
8366 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
8367 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
8368 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
8369 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
8370 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
8371 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
8372 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
8373 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
8374 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
8375 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
8376 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
8377 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
8378 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
8379 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
8380 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
8381 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
8382 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
8383 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8384 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8385 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
8386 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8387 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8388 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8389 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
8390 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
8391 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
8392 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
8393 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
8394 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
8395 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
8396 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
8397 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8398 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8399 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
8400 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
8401 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
8402 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8403 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8404 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8405 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
8406 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
8407 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
8408 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
8409 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
8410 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
8411 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
8412 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
8413 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
8414 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
8415 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8416 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
8417 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
8418 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
8419 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
8420 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
8421 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
8422 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
8423 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
8424 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
8425 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
8426 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
8427 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8428 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
8429 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
8430 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8431 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
8432 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
8433 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
8434 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8435 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
8436 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
8437 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8438 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
8439 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
8440 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
8441 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8442 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
8443 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
8444 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8445 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
8446 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8447 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8448 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8449 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8450 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8451 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8452 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8453 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8454 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
8455 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
8456 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
8457 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
8458 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
8459 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8460 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8461 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8462 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8463 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8464 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8465 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8466 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8467 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
8468 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
8469 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
8470 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
8471 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
8472 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8473 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8474 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
8475 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
8476 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8477 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8478 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
8479 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
8480 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
8481 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
8482 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
8483 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
8484 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8491 * This table is used by the pointer type-checker
8493 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
8494 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
8495 { "_signed_long","_long",0},
8496 { "_wxPrintQuality","_wxCoord",0},
8497 { "_wxPrintQuality","_int",0},
8498 { "_wxPrintQuality","_signed_int",0},
8499 { "_wxPrintQuality","_unsigned_int",0},
8500 { "_wxPrintQuality","_wxWindowID",0},
8501 { "_wxPrintQuality","_uint",0},
8502 { "_wxPrintQuality","_EBool",0},
8503 { "_wxPrintQuality","_size_t",0},
8504 { "_wxPrintQuality","_time_t",0},
8505 { "_class_wxRegionIterator","_wxRegionIterator",0},
8506 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
8507 { "_wxCursor","_class_wxCursor",0},
8508 { "_wxMask","_class_wxMask",0},
8509 { "_wxPen","_class_wxPen",0},
8510 { "_byte","_unsigned_char",0},
8511 { "_wxColourDatabase","_class_wxColourDatabase",0},
8512 { "_long","_unsigned_long",0},
8513 { "_long","_signed_long",0},
8514 { "_wxImageList","_class_wxImageList",0},
8515 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
8516 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8517 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8518 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
8519 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
8520 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
8521 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
8522 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
8523 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
8524 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
8525 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
8526 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8527 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8528 { "_wxDC","_class_wxDC",0},
8529 { "_size_t","_wxCoord",0},
8530 { "_size_t","_wxPrintQuality",0},
8531 { "_size_t","_time_t",0},
8532 { "_size_t","_unsigned_int",0},
8533 { "_size_t","_int",0},
8534 { "_size_t","_wxWindowID",0},
8535 { "_size_t","_uint",0},
8536 { "_class_wxRealPoint","_wxRealPoint",0},
8537 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
8538 { "_class_wxMask","_wxMask",0},
8539 { "_wxColour","_class_wxColour",0},
8540 { "_wxBrush","_class_wxBrush",0},
8541 { "_uint","_wxCoord",0},
8542 { "_uint","_wxPrintQuality",0},
8543 { "_uint","_time_t",0},
8544 { "_uint","_size_t",0},
8545 { "_uint","_unsigned_int",0},
8546 { "_uint","_int",0},
8547 { "_uint","_wxWindowID",0},
8548 { "_wxChar","_char",0},
8549 { "_wxRect","_class_wxRect",0},
8550 { "_wxPoint","_class_wxPoint",0},
8551 { "_char","_wxChar",0},
8552 { "_wxBitmap","_class_wxBitmap",0},
8553 { "_wxPenList","_class_wxPenList",0},
8554 { "_wxWindowDC","_class_wxWindowDC",0},
8555 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
8556 { "_class_wxColourDatabase","_wxColourDatabase",0},
8557 { "_EBool","_wxCoord",0},
8558 { "_EBool","_wxPrintQuality",0},
8559 { "_EBool","_signed_int",0},
8560 { "_EBool","_int",0},
8561 { "_EBool","_wxWindowID",0},
8562 { "_class_wxRegion","_wxRegion",0},
8563 { "_wxFont","_class_wxFont",0},
8564 { "_unsigned_long","_long",0},
8565 { "_class_wxRect","_wxRect",0},
8566 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8567 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8568 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
8569 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
8570 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
8571 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
8572 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
8573 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
8574 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
8575 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
8576 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8577 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8578 { "_class_wxDC","_wxDC",0},
8579 { "_class_wxBrushList","_wxBrushList",0},
8580 { "_class_wxPenList","_wxPenList",0},
8581 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
8582 { "_signed_int","_wxCoord",0},
8583 { "_signed_int","_wxPrintQuality",0},
8584 { "_signed_int","_EBool",0},
8585 { "_signed_int","_wxWindowID",0},
8586 { "_signed_int","_int",0},
8587 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
8588 { "_wxScreenDC","_class_wxScreenDC",0},
8589 { "_WXTYPE","_short",0},
8590 { "_WXTYPE","_signed_short",0},
8591 { "_WXTYPE","_unsigned_short",0},
8592 { "_class_wxBrush","_wxBrush",0},
8593 { "_unsigned_short","_WXTYPE",0},
8594 { "_unsigned_short","_short",0},
8595 { "_class_wxFont","_wxFont",0},
8596 { "_wxBusyInfo","_class_wxBusyInfo",0},
8597 { "_wxFontList","_class_wxFontList",0},
8598 { "_wxClientDC","_class_wxClientDC",0},
8599 { "_class_wxPoint","_wxPoint",0},
8600 { "_wxRealPoint","_class_wxRealPoint",0},
8601 { "_signed_short","_WXTYPE",0},
8602 { "_signed_short","_short",0},
8603 { "_wxMemoryDC","_class_wxMemoryDC",0},
8604 { "_wxPaintDC","_class_wxPaintDC",0},
8605 { "_class_wxWindowDC","_wxWindowDC",0},
8606 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
8607 { "_class_wxCursor","_wxCursor",0},
8608 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
8609 { "_unsigned_char","_byte",0},
8610 { "_unsigned_int","_wxCoord",0},
8611 { "_unsigned_int","_wxPrintQuality",0},
8612 { "_unsigned_int","_time_t",0},
8613 { "_unsigned_int","_size_t",0},
8614 { "_unsigned_int","_uint",0},
8615 { "_unsigned_int","_wxWindowID",0},
8616 { "_unsigned_int","_int",0},
8617 { "_wxIcon","_class_wxIcon",0},
8618 { "_class_wxPen","_wxPen",0},
8619 { "_short","_WXTYPE",0},
8620 { "_short","_unsigned_short",0},
8621 { "_short","_signed_short",0},
8622 { "_class_wxImageList","_wxImageList",0},
8623 { "_wxWindowID","_wxCoord",0},
8624 { "_wxWindowID","_wxPrintQuality",0},
8625 { "_wxWindowID","_time_t",0},
8626 { "_wxWindowID","_size_t",0},
8627 { "_wxWindowID","_EBool",0},
8628 { "_wxWindowID","_uint",0},
8629 { "_wxWindowID","_int",0},
8630 { "_wxWindowID","_signed_int",0},
8631 { "_wxWindowID","_unsigned_int",0},
8632 { "_int","_wxCoord",0},
8633 { "_int","_wxPrintQuality",0},
8634 { "_int","_time_t",0},
8635 { "_int","_size_t",0},
8636 { "_int","_EBool",0},
8637 { "_int","_uint",0},
8638 { "_int","_wxWindowID",0},
8639 { "_int","_unsigned_int",0},
8640 { "_int","_signed_int",0},
8641 { "_time_t","_wxCoord",0},
8642 { "_time_t","_wxPrintQuality",0},
8643 { "_time_t","_unsigned_int",0},
8644 { "_time_t","_int",0},
8645 { "_time_t","_wxWindowID",0},
8646 { "_time_t","_uint",0},
8647 { "_time_t","_size_t",0},
8648 { "_wxSize","_class_wxSize",0},
8649 { "_wxRegionIterator","_class_wxRegionIterator",0},
8650 { "_class_wxPaintDC","_wxPaintDC",0},
8651 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
8652 { "_class_wxIcon","_wxIcon",0},
8653 { "_class_wxColour","_wxColour",0},
8654 { "_class_wxScreenDC","_wxScreenDC",0},
8655 { "_wxPalette","_class_wxPalette",0},
8656 { "_wxCoord","_int",0},
8657 { "_wxCoord","_signed_int",0},
8658 { "_wxCoord","_unsigned_int",0},
8659 { "_wxCoord","_wxWindowID",0},
8660 { "_wxCoord","_uint",0},
8661 { "_wxCoord","_EBool",0},
8662 { "_wxCoord","_size_t",0},
8663 { "_wxCoord","_time_t",0},
8664 { "_wxCoord","_wxPrintQuality",0},
8665 { "_wxRegion","_class_wxRegion",0},
8666 { "_class_wxBusyInfo","_wxBusyInfo",0},
8667 { "_class_wxFontList","_wxFontList",0},
8668 { "_class_wxClientDC","_wxClientDC",0},
8669 { "_wxBrushList","_class_wxBrushList",0},
8670 { "_class_wxSize","_wxSize",0},
8671 { "_class_wxBitmap","_wxBitmap",0},
8672 { "_class_wxMemoryDC","_wxMemoryDC",0},
8673 { "_class_wxPalette","_wxPalette",0},
8676 static PyObject
*SWIG_globals
;
8680 SWIGEXPORT(void) initgdic() {
8682 SWIG_globals
= SWIG_newvarlink();
8683 m
= Py_InitModule("gdic", gdicMethods
);
8684 d
= PyModule_GetDict(m
);
8685 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
8686 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
8687 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
8688 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
8689 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
8690 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
8691 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
8692 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
8693 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
8694 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
8695 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
8696 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
8697 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
8698 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
8699 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
8700 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
8701 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
8702 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
8703 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
8704 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
8705 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
8706 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
8707 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
8708 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
8709 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
8710 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
8711 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
8712 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
8713 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
8714 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
8715 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
8716 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
8717 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
8718 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
8719 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
8720 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
8721 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
8722 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
8723 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
8724 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
8725 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
8726 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
8727 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
8728 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
8729 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
8730 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
8731 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
8732 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
8733 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
8734 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
8735 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
8736 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
8737 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
8738 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
8739 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
8740 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
8741 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
8742 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
8743 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
8744 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
8745 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
8746 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
8747 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
8748 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
8749 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
8750 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
8751 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
8752 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
8753 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
8754 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
8755 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
8756 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
8757 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
8758 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
8759 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
8760 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
8761 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
8762 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
8763 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
8764 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
8765 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
8766 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
8767 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
8770 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
8771 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);