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 static char* wxStringErrorMsg
= "string type is required for parameter";
113 static wxString
wxPyEmptyStr("");
114 // Implementations of some alternate "constructors"
116 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
117 return new wxBitmap(width
, height
, depth
);
120 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
121 char** cArray
= NULL
;
124 if (!PyList_Check(listOfStrings
)) {
125 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
128 count
= PyList_Size(listOfStrings
);
129 cArray
= new char*[count
];
131 for(int x
=0; x
<count
; x
++) {
132 // TODO: Need some validation and error checking here
133 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
138 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
139 char** cArray
= NULL
;
142 cArray
= ConvertListOfStrings(listOfStrings
);
145 bmp
= new wxBitmap(cArray
);
151 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
152 return new wxBitmap(icon
);
158 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
159 int width
, int height
, int depth
= 1) {
160 if (! PyString_Check(data
)) {
161 PyErr_SetString(PyExc_TypeError
, "Expected string object");
165 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
169 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
170 return new wxMask(bitmap
, colour
);
172 // Implementations of some alternate "constructors"
173 wxIcon
* wxEmptyIcon() {
177 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
178 char** cArray
= NULL
;
181 cArray
= ConvertListOfStrings(listOfStrings
);
184 icon
= new wxIcon(cArray
);
188 // Alternate 'constructor'
189 wxCursor
* wxPyStockCursor(int id
) {
190 return new wxCursor(id
);
193 wxFontEncoding
wxFont_GetDefaultEncoding() {
194 return wxFont::GetDefaultEncoding();
197 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
198 wxFont::SetDefaultEncoding(encoding
);
200 // Alternate 'constructor'
201 wxColour
* wxNamedColour(const wxString
& colorName
) {
202 return new wxColour(colorName
);
204 // Alternate 'constructor'
205 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
206 return new wxMemoryDC(oldDC
);
210 extern wxFont
* wxNORMAL_FONT
;
211 extern wxFont
* wxSMALL_FONT
;
212 extern wxFont
* wxITALIC_FONT
;
213 extern wxFont
* wxSWISS_FONT
;
214 extern wxPen
* wxRED_PEN
;
215 extern wxPen
* wxCYAN_PEN
;
216 extern wxPen
* wxGREEN_PEN
;
217 extern wxPen
* wxBLACK_PEN
;
218 extern wxPen
* wxWHITE_PEN
;
219 extern wxPen
* wxTRANSPARENT_PEN
;
220 extern wxPen
* wxBLACK_DASHED_PEN
;
221 extern wxPen
* wxGREY_PEN
;
222 extern wxPen
* wxMEDIUM_GREY_PEN
;
223 extern wxPen
* wxLIGHT_GREY_PEN
;
224 extern wxBrush
* wxBLUE_BRUSH
;
225 extern wxBrush
* wxGREEN_BRUSH
;
226 extern wxBrush
* wxWHITE_BRUSH
;
227 extern wxBrush
* wxBLACK_BRUSH
;
228 extern wxBrush
* wxTRANSPARENT_BRUSH
;
229 extern wxBrush
* wxCYAN_BRUSH
;
230 extern wxBrush
* wxRED_BRUSH
;
231 extern wxBrush
* wxGREY_BRUSH
;
232 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
233 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
234 extern wxColour
* wxBLACK
;
235 extern wxColour
* wxWHITE
;
236 extern wxColour
* wxRED
;
237 extern wxColour
* wxBLUE
;
238 extern wxColour
* wxGREEN
;
239 extern wxColour
* wxCYAN
;
240 extern wxColour
* wxLIGHT_GREY
;
241 extern wxCursor
* wxSTANDARD_CURSOR
;
242 extern wxCursor
* wxHOURGLASS_CURSOR
;
243 extern wxCursor
* wxCROSS_CURSOR
;
244 extern wxBitmap wxNullBitmap
;
245 extern wxIcon wxNullIcon
;
246 extern wxCursor wxNullCursor
;
247 extern wxPen wxNullPen
;
248 extern wxBrush wxNullBrush
;
249 extern wxPalette wxNullPalette
;
250 extern wxFont wxNullFont
;
251 extern wxColour wxNullColour
;
252 extern wxFontList
* wxTheFontList
;
253 extern wxPenList
* wxThePenList
;
254 extern wxBrushlist
* wxTheBrushList
;
255 extern wxColourDatabase
* wxTheColourDatabase
;
261 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
262 PyObject
* _resultobj
;
266 int _arg2
= (int ) -1;
267 char *_kwnames
[] = { "width","height","depth", NULL
};
271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
274 wxPy_BEGIN_ALLOW_THREADS
;
275 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
277 wxPy_END_ALLOW_THREADS
;
279 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
280 _resultobj
= Py_BuildValue("s",_ptemp
);
283 _resultobj
= Py_None
;
288 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
289 PyObject
* _resultobj
;
292 PyObject
* _obj0
= 0;
293 char *_kwnames
[] = { "listOfStrings", NULL
};
297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
303 wxPy_BEGIN_ALLOW_THREADS
;
304 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
306 wxPy_END_ALLOW_THREADS
;
308 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
309 _resultobj
= Py_BuildValue("s",_ptemp
);
312 _resultobj
= Py_None
;
317 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
318 PyObject
* _resultobj
;
321 PyObject
* _argo0
= 0;
322 char *_kwnames
[] = { "icon", NULL
};
326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
336 wxPy_BEGIN_ALLOW_THREADS
;
337 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
339 wxPy_END_ALLOW_THREADS
;
341 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
342 _resultobj
= Py_BuildValue("s",_ptemp
);
345 _resultobj
= Py_None
;
350 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
351 PyObject
* _resultobj
;
355 PyObject
* _argo0
= 0;
357 PyObject
* _obj1
= 0;
358 char *_kwnames
[] = { "bitmap","colour", NULL
};
362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
373 if (! wxColour_helper(_obj1
, &_arg1
))
377 wxPy_BEGIN_ALLOW_THREADS
;
378 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
380 wxPy_END_ALLOW_THREADS
;
382 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
383 _resultobj
= Py_BuildValue("s",_ptemp
);
386 _resultobj
= Py_None
;
391 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
392 PyObject
* _resultobj
;
394 char *_kwnames
[] = { NULL
};
398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
401 wxPy_BEGIN_ALLOW_THREADS
;
402 _result
= (wxIcon
*)wxEmptyIcon();
404 wxPy_END_ALLOW_THREADS
;
406 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
407 _resultobj
= Py_BuildValue("s",_ptemp
);
410 _resultobj
= Py_None
;
415 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
416 PyObject
* _resultobj
;
419 PyObject
* _obj0
= 0;
420 char *_kwnames
[] = { "listOfStrings", NULL
};
424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
430 wxPy_BEGIN_ALLOW_THREADS
;
431 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
433 wxPy_END_ALLOW_THREADS
;
435 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
436 _resultobj
= Py_BuildValue("s",_ptemp
);
439 _resultobj
= Py_None
;
444 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
445 PyObject
* _resultobj
;
448 char *_kwnames
[] = { "id", NULL
};
452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
455 wxPy_BEGIN_ALLOW_THREADS
;
456 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
458 wxPy_END_ALLOW_THREADS
;
460 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
461 _resultobj
= Py_BuildValue("s",_ptemp
);
464 _resultobj
= Py_None
;
469 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
470 PyObject
* _resultobj
;
471 wxFontEncoding _result
;
472 char *_kwnames
[] = { NULL
};
475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
478 wxPy_BEGIN_ALLOW_THREADS
;
479 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
481 wxPy_END_ALLOW_THREADS
;
482 } _resultobj
= Py_BuildValue("i",_result
);
486 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
487 PyObject
* _resultobj
;
488 wxFontEncoding _arg0
;
489 char *_kwnames
[] = { "encoding", NULL
};
492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
495 wxPy_BEGIN_ALLOW_THREADS
;
496 wxFont_SetDefaultEncoding(_arg0
);
498 wxPy_END_ALLOW_THREADS
;
499 } Py_INCREF(Py_None
);
500 _resultobj
= Py_None
;
504 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
505 PyObject
* _resultobj
;
508 PyObject
* _obj0
= 0;
509 char *_kwnames
[] = { "colorName", NULL
};
513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
516 #if PYTHON_API_VERSION >= 1009
517 char* tmpPtr
; int tmpSize
;
518 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
519 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
522 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
524 _arg0
= new wxString(tmpPtr
, tmpSize
);
526 if (!PyString_Check(_obj0
)) {
527 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
530 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
534 wxPy_BEGIN_ALLOW_THREADS
;
535 _result
= (wxColour
*)wxNamedColour(*_arg0
);
537 wxPy_END_ALLOW_THREADS
;
539 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
540 _resultobj
= Py_BuildValue("s",_ptemp
);
543 _resultobj
= Py_None
;
552 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
553 PyObject
* _resultobj
;
554 wxMemoryDC
* _result
;
556 PyObject
* _argo0
= 0;
557 char *_kwnames
[] = { "oldDC", NULL
};
561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
571 wxPy_BEGIN_ALLOW_THREADS
;
572 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
574 wxPy_END_ALLOW_THREADS
;
576 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
577 _resultobj
= Py_BuildValue("s",_ptemp
);
580 _resultobj
= Py_None
;
585 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
587 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
591 static PyObject
*_wrap_wxNORMAL_FONT_get() {
595 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
596 pyobj
= PyString_FromString(ptemp
);
600 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
602 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
606 static PyObject
*_wrap_wxSMALL_FONT_get() {
610 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
611 pyobj
= PyString_FromString(ptemp
);
615 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
617 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
621 static PyObject
*_wrap_wxITALIC_FONT_get() {
625 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
626 pyobj
= PyString_FromString(ptemp
);
630 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
632 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
636 static PyObject
*_wrap_wxSWISS_FONT_get() {
640 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
641 pyobj
= PyString_FromString(ptemp
);
645 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
647 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
651 static PyObject
*_wrap_wxRED_PEN_get() {
655 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
656 pyobj
= PyString_FromString(ptemp
);
660 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
662 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
666 static PyObject
*_wrap_wxCYAN_PEN_get() {
670 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
671 pyobj
= PyString_FromString(ptemp
);
675 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
677 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
681 static PyObject
*_wrap_wxGREEN_PEN_get() {
685 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
686 pyobj
= PyString_FromString(ptemp
);
690 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
692 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
696 static PyObject
*_wrap_wxBLACK_PEN_get() {
700 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
701 pyobj
= PyString_FromString(ptemp
);
705 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
707 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
711 static PyObject
*_wrap_wxWHITE_PEN_get() {
715 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
716 pyobj
= PyString_FromString(ptemp
);
720 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
722 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
726 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
730 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
731 pyobj
= PyString_FromString(ptemp
);
735 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
737 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
741 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
745 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
746 pyobj
= PyString_FromString(ptemp
);
750 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
752 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
756 static PyObject
*_wrap_wxGREY_PEN_get() {
760 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
761 pyobj
= PyString_FromString(ptemp
);
765 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
767 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
771 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
775 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
776 pyobj
= PyString_FromString(ptemp
);
780 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
782 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
786 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
790 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
791 pyobj
= PyString_FromString(ptemp
);
795 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
797 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
801 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
805 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
806 pyobj
= PyString_FromString(ptemp
);
810 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
812 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
816 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
820 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
821 pyobj
= PyString_FromString(ptemp
);
825 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
827 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
831 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
835 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
836 pyobj
= PyString_FromString(ptemp
);
840 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
842 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
846 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
850 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
851 pyobj
= PyString_FromString(ptemp
);
855 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
857 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
861 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
865 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
866 pyobj
= PyString_FromString(ptemp
);
870 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
872 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
876 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
880 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
881 pyobj
= PyString_FromString(ptemp
);
885 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
887 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
891 static PyObject
*_wrap_wxRED_BRUSH_get() {
895 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
896 pyobj
= PyString_FromString(ptemp
);
900 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
902 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
906 static PyObject
*_wrap_wxGREY_BRUSH_get() {
910 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
911 pyobj
= PyString_FromString(ptemp
);
915 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
917 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
921 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
925 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
926 pyobj
= PyString_FromString(ptemp
);
930 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
932 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
936 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
940 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
941 pyobj
= PyString_FromString(ptemp
);
945 static int _wrap_wxBLACK_set(PyObject
*val
) {
947 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
951 static PyObject
*_wrap_wxBLACK_get() {
955 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
956 pyobj
= PyString_FromString(ptemp
);
960 static int _wrap_wxWHITE_set(PyObject
*val
) {
962 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
966 static PyObject
*_wrap_wxWHITE_get() {
970 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
971 pyobj
= PyString_FromString(ptemp
);
975 static int _wrap_wxRED_set(PyObject
*val
) {
977 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
981 static PyObject
*_wrap_wxRED_get() {
985 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
986 pyobj
= PyString_FromString(ptemp
);
990 static int _wrap_wxBLUE_set(PyObject
*val
) {
992 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
996 static PyObject
*_wrap_wxBLUE_get() {
1000 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1001 pyobj
= PyString_FromString(ptemp
);
1005 static int _wrap_wxGREEN_set(PyObject
*val
) {
1007 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1011 static PyObject
*_wrap_wxGREEN_get() {
1015 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1016 pyobj
= PyString_FromString(ptemp
);
1020 static int _wrap_wxCYAN_set(PyObject
*val
) {
1022 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1026 static PyObject
*_wrap_wxCYAN_get() {
1030 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1031 pyobj
= PyString_FromString(ptemp
);
1035 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1037 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1041 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1045 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1046 pyobj
= PyString_FromString(ptemp
);
1050 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1052 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1056 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1060 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1061 pyobj
= PyString_FromString(ptemp
);
1065 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1067 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1071 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1075 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1076 pyobj
= PyString_FromString(ptemp
);
1080 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1082 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1086 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1090 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1091 pyobj
= PyString_FromString(ptemp
);
1095 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1097 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1101 static PyObject
*_wrap_wxNullBitmap_get() {
1105 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1106 pyobj
= PyString_FromString(ptemp
);
1110 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1112 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1116 static PyObject
*_wrap_wxNullIcon_get() {
1120 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1121 pyobj
= PyString_FromString(ptemp
);
1125 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1127 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1131 static PyObject
*_wrap_wxNullCursor_get() {
1135 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1136 pyobj
= PyString_FromString(ptemp
);
1140 static int _wrap_wxNullPen_set(PyObject
*val
) {
1142 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1146 static PyObject
*_wrap_wxNullPen_get() {
1150 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1151 pyobj
= PyString_FromString(ptemp
);
1155 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1157 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1161 static PyObject
*_wrap_wxNullBrush_get() {
1165 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1166 pyobj
= PyString_FromString(ptemp
);
1170 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1172 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1176 static PyObject
*_wrap_wxNullPalette_get() {
1180 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1181 pyobj
= PyString_FromString(ptemp
);
1185 static int _wrap_wxNullFont_set(PyObject
*val
) {
1187 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1191 static PyObject
*_wrap_wxNullFont_get() {
1195 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1196 pyobj
= PyString_FromString(ptemp
);
1200 static int _wrap_wxNullColour_set(PyObject
*val
) {
1202 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1206 static PyObject
*_wrap_wxNullColour_get() {
1210 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1211 pyobj
= PyString_FromString(ptemp
);
1215 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1217 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1221 static PyObject
*_wrap_wxTheFontList_get() {
1225 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1226 pyobj
= PyString_FromString(ptemp
);
1230 static int _wrap_wxThePenList_set(PyObject
*val
) {
1232 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1236 static PyObject
*_wrap_wxThePenList_get() {
1240 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1241 pyobj
= PyString_FromString(ptemp
);
1245 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1247 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1251 static PyObject
*_wrap_wxTheBrushList_get() {
1255 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1256 pyobj
= PyString_FromString(ptemp
);
1260 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1262 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1266 static PyObject
*_wrap_wxTheColourDatabase_get() {
1270 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1271 pyobj
= PyString_FromString(ptemp
);
1275 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1276 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1277 PyObject
* _resultobj
;
1281 PyObject
* _obj0
= 0;
1282 char *_kwnames
[] = { "name","type", NULL
};
1286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1289 #if PYTHON_API_VERSION >= 1009
1290 char* tmpPtr
; int tmpSize
;
1291 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1292 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1295 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1297 _arg0
= new wxString(tmpPtr
, tmpSize
);
1299 if (!PyString_Check(_obj0
)) {
1300 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1303 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1307 wxPy_BEGIN_ALLOW_THREADS
;
1308 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1310 wxPy_END_ALLOW_THREADS
;
1312 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1313 _resultobj
= Py_BuildValue("s",_ptemp
);
1316 _resultobj
= Py_None
;
1325 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1326 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1327 PyObject
* _resultobj
;
1329 PyObject
* _argo0
= 0;
1330 char *_kwnames
[] = { "self", NULL
};
1333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1343 wxPy_BEGIN_ALLOW_THREADS
;
1344 delete_wxBitmap(_arg0
);
1346 wxPy_END_ALLOW_THREADS
;
1347 } Py_INCREF(Py_None
);
1348 _resultobj
= Py_None
;
1352 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1353 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1354 PyObject
* _resultobj
;
1355 wxPalette
* _result
;
1357 PyObject
* _argo0
= 0;
1358 char *_kwnames
[] = { "self", NULL
};
1362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1372 wxPy_BEGIN_ALLOW_THREADS
;
1373 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1375 wxPy_END_ALLOW_THREADS
;
1377 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1378 _resultobj
= Py_BuildValue("s",_ptemp
);
1381 _resultobj
= Py_None
;
1386 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1387 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1388 PyObject
* _resultobj
;
1391 PyObject
* _argo0
= 0;
1392 char *_kwnames
[] = { "self", NULL
};
1396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1406 wxPy_BEGIN_ALLOW_THREADS
;
1407 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1409 wxPy_END_ALLOW_THREADS
;
1411 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1412 _resultobj
= Py_BuildValue("s",_ptemp
);
1415 _resultobj
= Py_None
;
1420 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1421 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1422 PyObject
* _resultobj
;
1427 PyObject
* _argo0
= 0;
1428 PyObject
* _obj1
= 0;
1429 char *_kwnames
[] = { "self","name","flags", NULL
};
1432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1442 #if PYTHON_API_VERSION >= 1009
1443 char* tmpPtr
; int tmpSize
;
1444 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1445 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1448 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1450 _arg1
= new wxString(tmpPtr
, tmpSize
);
1452 if (!PyString_Check(_obj1
)) {
1453 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1456 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1460 wxPy_BEGIN_ALLOW_THREADS
;
1461 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1463 wxPy_END_ALLOW_THREADS
;
1464 } _resultobj
= Py_BuildValue("i",_result
);
1472 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1473 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1474 PyObject
* _resultobj
;
1479 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1480 PyObject
* _argo0
= 0;
1481 PyObject
* _obj1
= 0;
1482 PyObject
* _argo3
= 0;
1483 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1496 #if PYTHON_API_VERSION >= 1009
1497 char* tmpPtr
; int tmpSize
;
1498 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1499 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1502 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1504 _arg1
= new wxString(tmpPtr
, tmpSize
);
1506 if (!PyString_Check(_obj1
)) {
1507 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1510 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1514 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1521 wxPy_BEGIN_ALLOW_THREADS
;
1522 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1524 wxPy_END_ALLOW_THREADS
;
1525 } _resultobj
= Py_BuildValue("i",_result
);
1533 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1534 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1535 PyObject
* _resultobj
;
1538 PyObject
* _argo0
= 0;
1539 PyObject
* _argo1
= 0;
1540 char *_kwnames
[] = { "self","mask", NULL
};
1543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1553 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1554 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1560 wxPy_BEGIN_ALLOW_THREADS
;
1561 wxBitmap_SetMask(_arg0
,_arg1
);
1563 wxPy_END_ALLOW_THREADS
;
1564 } Py_INCREF(Py_None
);
1565 _resultobj
= Py_None
;
1569 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1570 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1571 PyObject
* _resultobj
;
1574 PyObject
* _argo0
= 0;
1575 char *_kwnames
[] = { "self", NULL
};
1578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1588 wxPy_BEGIN_ALLOW_THREADS
;
1589 _result
= (bool )wxBitmap_Ok(_arg0
);
1591 wxPy_END_ALLOW_THREADS
;
1592 } _resultobj
= Py_BuildValue("i",_result
);
1596 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1597 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1598 PyObject
* _resultobj
;
1601 PyObject
* _argo0
= 0;
1602 char *_kwnames
[] = { "self", NULL
};
1605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1615 wxPy_BEGIN_ALLOW_THREADS
;
1616 _result
= (int )wxBitmap_GetWidth(_arg0
);
1618 wxPy_END_ALLOW_THREADS
;
1619 } _resultobj
= Py_BuildValue("i",_result
);
1623 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1624 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1625 PyObject
* _resultobj
;
1628 PyObject
* _argo0
= 0;
1629 char *_kwnames
[] = { "self", NULL
};
1632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1642 wxPy_BEGIN_ALLOW_THREADS
;
1643 _result
= (int )wxBitmap_GetHeight(_arg0
);
1645 wxPy_END_ALLOW_THREADS
;
1646 } _resultobj
= Py_BuildValue("i",_result
);
1650 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1651 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1652 PyObject
* _resultobj
;
1655 PyObject
* _argo0
= 0;
1656 char *_kwnames
[] = { "self", NULL
};
1659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1669 wxPy_BEGIN_ALLOW_THREADS
;
1670 _result
= (int )wxBitmap_GetDepth(_arg0
);
1672 wxPy_END_ALLOW_THREADS
;
1673 } _resultobj
= Py_BuildValue("i",_result
);
1677 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1678 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1679 PyObject
* _resultobj
;
1682 PyObject
* _argo0
= 0;
1683 char *_kwnames
[] = { "self","w", NULL
};
1686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1696 wxPy_BEGIN_ALLOW_THREADS
;
1697 wxBitmap_SetWidth(_arg0
,_arg1
);
1699 wxPy_END_ALLOW_THREADS
;
1700 } Py_INCREF(Py_None
);
1701 _resultobj
= Py_None
;
1705 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1706 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1707 PyObject
* _resultobj
;
1710 PyObject
* _argo0
= 0;
1711 char *_kwnames
[] = { "self","h", NULL
};
1714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1724 wxPy_BEGIN_ALLOW_THREADS
;
1725 wxBitmap_SetHeight(_arg0
,_arg1
);
1727 wxPy_END_ALLOW_THREADS
;
1728 } Py_INCREF(Py_None
);
1729 _resultobj
= Py_None
;
1733 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1734 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1735 PyObject
* _resultobj
;
1738 PyObject
* _argo0
= 0;
1739 char *_kwnames
[] = { "self","d", NULL
};
1742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1752 wxPy_BEGIN_ALLOW_THREADS
;
1753 wxBitmap_SetDepth(_arg0
,_arg1
);
1755 wxPy_END_ALLOW_THREADS
;
1756 } Py_INCREF(Py_None
);
1757 _resultobj
= Py_None
;
1761 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1762 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1763 PyObject
* _resultobj
;
1767 PyObject
* _argo0
= 0;
1769 PyObject
* _obj1
= 0;
1770 char *_kwnames
[] = { "self","rect", NULL
};
1774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1785 if (! wxRect_helper(_obj1
, &_arg1
))
1789 wxPy_BEGIN_ALLOW_THREADS
;
1790 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1792 wxPy_END_ALLOW_THREADS
;
1793 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1794 _resultobj
= Py_BuildValue("s",_ptemp
);
1798 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1799 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1800 PyObject
* _resultobj
;
1803 PyObject
* _argo0
= 0;
1804 char *_kwnames
[] = { "bitmap", NULL
};
1808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
1811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1818 wxPy_BEGIN_ALLOW_THREADS
;
1819 _result
= (wxMask
*)new_wxMask(*_arg0
);
1821 wxPy_END_ALLOW_THREADS
;
1823 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1824 _resultobj
= Py_BuildValue("s",_ptemp
);
1827 _resultobj
= Py_None
;
1832 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
1833 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1834 PyObject
* _resultobj
;
1836 PyObject
* _argo0
= 0;
1837 char *_kwnames
[] = { "self", NULL
};
1840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
1843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
1845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
1850 wxPy_BEGIN_ALLOW_THREADS
;
1851 wxMask_Destroy(_arg0
);
1853 wxPy_END_ALLOW_THREADS
;
1854 } Py_INCREF(Py_None
);
1855 _resultobj
= Py_None
;
1859 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1860 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1861 PyObject
* _resultobj
;
1865 int _arg2
= (int ) -1;
1866 int _arg3
= (int ) -1;
1867 PyObject
* _obj0
= 0;
1868 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
1872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
1875 #if PYTHON_API_VERSION >= 1009
1876 char* tmpPtr
; int tmpSize
;
1877 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1878 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1881 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1883 _arg0
= new wxString(tmpPtr
, tmpSize
);
1885 if (!PyString_Check(_obj0
)) {
1886 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1889 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1893 wxPy_BEGIN_ALLOW_THREADS
;
1894 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
1896 wxPy_END_ALLOW_THREADS
;
1898 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
1899 _resultobj
= Py_BuildValue("s",_ptemp
);
1902 _resultobj
= Py_None
;
1911 #define delete_wxIcon(_swigobj) (delete _swigobj)
1912 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1913 PyObject
* _resultobj
;
1915 PyObject
* _argo0
= 0;
1916 char *_kwnames
[] = { "self", NULL
};
1919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
1922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
1929 wxPy_BEGIN_ALLOW_THREADS
;
1930 delete_wxIcon(_arg0
);
1932 wxPy_END_ALLOW_THREADS
;
1933 } Py_INCREF(Py_None
);
1934 _resultobj
= Py_None
;
1938 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1939 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1940 PyObject
* _resultobj
;
1945 PyObject
* _argo0
= 0;
1946 PyObject
* _obj1
= 0;
1947 char *_kwnames
[] = { "self","name","flags", NULL
};
1950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
1960 #if PYTHON_API_VERSION >= 1009
1961 char* tmpPtr
; int tmpSize
;
1962 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1963 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1966 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1968 _arg1
= new wxString(tmpPtr
, tmpSize
);
1970 if (!PyString_Check(_obj1
)) {
1971 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1974 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1978 wxPy_BEGIN_ALLOW_THREADS
;
1979 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
1981 wxPy_END_ALLOW_THREADS
;
1982 } _resultobj
= Py_BuildValue("i",_result
);
1990 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
1991 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1992 PyObject
* _resultobj
;
1995 PyObject
* _argo0
= 0;
1996 char *_kwnames
[] = { "self", NULL
};
1999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2009 wxPy_BEGIN_ALLOW_THREADS
;
2010 _result
= (bool )wxIcon_Ok(_arg0
);
2012 wxPy_END_ALLOW_THREADS
;
2013 } _resultobj
= Py_BuildValue("i",_result
);
2017 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2018 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2019 PyObject
* _resultobj
;
2022 PyObject
* _argo0
= 0;
2023 char *_kwnames
[] = { "self", NULL
};
2026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2036 wxPy_BEGIN_ALLOW_THREADS
;
2037 _result
= (int )wxIcon_GetWidth(_arg0
);
2039 wxPy_END_ALLOW_THREADS
;
2040 } _resultobj
= Py_BuildValue("i",_result
);
2044 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2045 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2046 PyObject
* _resultobj
;
2049 PyObject
* _argo0
= 0;
2050 char *_kwnames
[] = { "self", NULL
};
2053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2063 wxPy_BEGIN_ALLOW_THREADS
;
2064 _result
= (int )wxIcon_GetHeight(_arg0
);
2066 wxPy_END_ALLOW_THREADS
;
2067 } _resultobj
= Py_BuildValue("i",_result
);
2071 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2072 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2073 PyObject
* _resultobj
;
2076 PyObject
* _argo0
= 0;
2077 char *_kwnames
[] = { "self", NULL
};
2080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2090 wxPy_BEGIN_ALLOW_THREADS
;
2091 _result
= (int )wxIcon_GetDepth(_arg0
);
2093 wxPy_END_ALLOW_THREADS
;
2094 } _resultobj
= Py_BuildValue("i",_result
);
2098 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2099 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2100 PyObject
* _resultobj
;
2103 PyObject
* _argo0
= 0;
2104 char *_kwnames
[] = { "self","w", NULL
};
2107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2117 wxPy_BEGIN_ALLOW_THREADS
;
2118 wxIcon_SetWidth(_arg0
,_arg1
);
2120 wxPy_END_ALLOW_THREADS
;
2121 } Py_INCREF(Py_None
);
2122 _resultobj
= Py_None
;
2126 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2127 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2128 PyObject
* _resultobj
;
2131 PyObject
* _argo0
= 0;
2132 char *_kwnames
[] = { "self","h", NULL
};
2135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2145 wxPy_BEGIN_ALLOW_THREADS
;
2146 wxIcon_SetHeight(_arg0
,_arg1
);
2148 wxPy_END_ALLOW_THREADS
;
2149 } Py_INCREF(Py_None
);
2150 _resultobj
= Py_None
;
2154 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2155 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2156 PyObject
* _resultobj
;
2159 PyObject
* _argo0
= 0;
2160 char *_kwnames
[] = { "self","d", NULL
};
2163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2173 wxPy_BEGIN_ALLOW_THREADS
;
2174 wxIcon_SetDepth(_arg0
,_arg1
);
2176 wxPy_END_ALLOW_THREADS
;
2177 } Py_INCREF(Py_None
);
2178 _resultobj
= Py_None
;
2182 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2183 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2184 PyObject
* _resultobj
;
2187 PyObject
* _argo0
= 0;
2188 PyObject
* _argo1
= 0;
2189 char *_kwnames
[] = { "self","bmp", NULL
};
2192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2202 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2203 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2209 wxPy_BEGIN_ALLOW_THREADS
;
2210 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2212 wxPy_END_ALLOW_THREADS
;
2213 } Py_INCREF(Py_None
);
2214 _resultobj
= Py_None
;
2218 #define delete_wxCursor(_swigobj) (delete _swigobj)
2219 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2220 PyObject
* _resultobj
;
2222 PyObject
* _argo0
= 0;
2223 char *_kwnames
[] = { "self", NULL
};
2226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2236 wxPy_BEGIN_ALLOW_THREADS
;
2237 delete_wxCursor(_arg0
);
2239 wxPy_END_ALLOW_THREADS
;
2240 } Py_INCREF(Py_None
);
2241 _resultobj
= Py_None
;
2245 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2246 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
* _resultobj
;
2250 PyObject
* _argo0
= 0;
2251 char *_kwnames
[] = { "self", NULL
};
2254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2264 wxPy_BEGIN_ALLOW_THREADS
;
2265 _result
= (bool )wxCursor_Ok(_arg0
);
2267 wxPy_END_ALLOW_THREADS
;
2268 } _resultobj
= Py_BuildValue("i",_result
);
2272 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2273 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2274 PyObject
* _resultobj
;
2280 int _arg4
= (int ) FALSE
;
2281 char * _arg5
= (char *) "";
2282 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2283 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2290 wxPy_BEGIN_ALLOW_THREADS
;
2291 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2293 wxPy_END_ALLOW_THREADS
;
2295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2296 _resultobj
= Py_BuildValue("s",_ptemp
);
2299 _resultobj
= Py_None
;
2304 #define delete_wxFont(_swigobj) (delete _swigobj)
2305 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2306 PyObject
* _resultobj
;
2308 PyObject
* _argo0
= 0;
2309 char *_kwnames
[] = { "self", NULL
};
2312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
2315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
2322 wxPy_BEGIN_ALLOW_THREADS
;
2323 delete_wxFont(_arg0
);
2325 wxPy_END_ALLOW_THREADS
;
2326 } Py_INCREF(Py_None
);
2327 _resultobj
= Py_None
;
2331 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2332 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2333 PyObject
* _resultobj
;
2336 PyObject
* _argo0
= 0;
2337 char *_kwnames
[] = { "self", NULL
};
2340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
2343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2350 wxPy_BEGIN_ALLOW_THREADS
;
2351 _result
= (bool )wxFont_Ok(_arg0
);
2353 wxPy_END_ALLOW_THREADS
;
2354 } _resultobj
= Py_BuildValue("i",_result
);
2358 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2359 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2360 PyObject
* _resultobj
;
2363 PyObject
* _argo0
= 0;
2364 char *_kwnames
[] = { "self", NULL
};
2367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
2370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2377 wxPy_BEGIN_ALLOW_THREADS
;
2378 _result
= new wxString (wxFont_GetFaceName(_arg0
));
2380 wxPy_END_ALLOW_THREADS
;
2382 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2390 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2391 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2392 PyObject
* _resultobj
;
2395 PyObject
* _argo0
= 0;
2396 char *_kwnames
[] = { "self", NULL
};
2399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
2402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2409 wxPy_BEGIN_ALLOW_THREADS
;
2410 _result
= (int )wxFont_GetFamily(_arg0
);
2412 wxPy_END_ALLOW_THREADS
;
2413 } _resultobj
= Py_BuildValue("i",_result
);
2417 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2418 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2419 PyObject
* _resultobj
;
2422 PyObject
* _argo0
= 0;
2423 char *_kwnames
[] = { "self", NULL
};
2426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
2429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2436 wxPy_BEGIN_ALLOW_THREADS
;
2437 _result
= (int )wxFont_GetPointSize(_arg0
);
2439 wxPy_END_ALLOW_THREADS
;
2440 } _resultobj
= Py_BuildValue("i",_result
);
2444 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2445 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2446 PyObject
* _resultobj
;
2449 PyObject
* _argo0
= 0;
2450 char *_kwnames
[] = { "self", NULL
};
2453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
2456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2463 wxPy_BEGIN_ALLOW_THREADS
;
2464 _result
= (int )wxFont_GetStyle(_arg0
);
2466 wxPy_END_ALLOW_THREADS
;
2467 } _resultobj
= Py_BuildValue("i",_result
);
2471 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2472 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2473 PyObject
* _resultobj
;
2476 PyObject
* _argo0
= 0;
2477 char *_kwnames
[] = { "self", NULL
};
2480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
2483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2490 wxPy_BEGIN_ALLOW_THREADS
;
2491 _result
= (bool )wxFont_GetUnderlined(_arg0
);
2493 wxPy_END_ALLOW_THREADS
;
2494 } _resultobj
= Py_BuildValue("i",_result
);
2498 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2499 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2500 PyObject
* _resultobj
;
2503 PyObject
* _argo0
= 0;
2504 char *_kwnames
[] = { "self", NULL
};
2507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
2510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2517 wxPy_BEGIN_ALLOW_THREADS
;
2518 _result
= (int )wxFont_GetWeight(_arg0
);
2520 wxPy_END_ALLOW_THREADS
;
2521 } _resultobj
= Py_BuildValue("i",_result
);
2525 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2526 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2527 PyObject
* _resultobj
;
2528 wxFontEncoding _result
;
2530 PyObject
* _argo0
= 0;
2531 char *_kwnames
[] = { "self", NULL
};
2534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
2537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
2544 wxPy_BEGIN_ALLOW_THREADS
;
2545 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
2547 wxPy_END_ALLOW_THREADS
;
2548 } _resultobj
= Py_BuildValue("i",_result
);
2552 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2553 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2557 PyObject
* _argo0
= 0;
2558 PyObject
* _obj1
= 0;
2559 char *_kwnames
[] = { "self","faceName", NULL
};
2562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2572 #if PYTHON_API_VERSION >= 1009
2573 char* tmpPtr
; int tmpSize
;
2574 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2575 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2578 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2580 _arg1
= new wxString(tmpPtr
, tmpSize
);
2582 if (!PyString_Check(_obj1
)) {
2583 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2586 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2590 wxPy_BEGIN_ALLOW_THREADS
;
2591 wxFont_SetFaceName(_arg0
,*_arg1
);
2593 wxPy_END_ALLOW_THREADS
;
2594 } Py_INCREF(Py_None
);
2595 _resultobj
= Py_None
;
2603 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2604 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2605 PyObject
* _resultobj
;
2608 PyObject
* _argo0
= 0;
2609 char *_kwnames
[] = { "self","family", NULL
};
2612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2622 wxPy_BEGIN_ALLOW_THREADS
;
2623 wxFont_SetFamily(_arg0
,_arg1
);
2625 wxPy_END_ALLOW_THREADS
;
2626 } Py_INCREF(Py_None
);
2627 _resultobj
= Py_None
;
2631 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2632 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2633 PyObject
* _resultobj
;
2636 PyObject
* _argo0
= 0;
2637 char *_kwnames
[] = { "self","pointSize", NULL
};
2640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2650 wxPy_BEGIN_ALLOW_THREADS
;
2651 wxFont_SetPointSize(_arg0
,_arg1
);
2653 wxPy_END_ALLOW_THREADS
;
2654 } Py_INCREF(Py_None
);
2655 _resultobj
= Py_None
;
2659 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2660 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2661 PyObject
* _resultobj
;
2664 PyObject
* _argo0
= 0;
2665 char *_kwnames
[] = { "self","style", NULL
};
2668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2678 wxPy_BEGIN_ALLOW_THREADS
;
2679 wxFont_SetStyle(_arg0
,_arg1
);
2681 wxPy_END_ALLOW_THREADS
;
2682 } Py_INCREF(Py_None
);
2683 _resultobj
= Py_None
;
2687 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2688 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2689 PyObject
* _resultobj
;
2692 PyObject
* _argo0
= 0;
2694 char *_kwnames
[] = { "self","underlined", NULL
};
2697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
2706 _arg1
= (bool ) tempbool1
;
2708 wxPy_BEGIN_ALLOW_THREADS
;
2709 wxFont_SetUnderlined(_arg0
,_arg1
);
2711 wxPy_END_ALLOW_THREADS
;
2712 } Py_INCREF(Py_None
);
2713 _resultobj
= Py_None
;
2717 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2718 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2719 PyObject
* _resultobj
;
2722 PyObject
* _argo0
= 0;
2723 char *_kwnames
[] = { "self","weight", NULL
};
2726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
2729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
2736 wxPy_BEGIN_ALLOW_THREADS
;
2737 wxFont_SetWeight(_arg0
,_arg1
);
2739 wxPy_END_ALLOW_THREADS
;
2740 } Py_INCREF(Py_None
);
2741 _resultobj
= Py_None
;
2745 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2746 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2747 PyObject
* _resultobj
;
2749 wxFontEncoding _arg1
;
2750 PyObject
* _argo0
= 0;
2751 char *_kwnames
[] = { "self","encoding", NULL
};
2754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
2757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
2764 wxPy_BEGIN_ALLOW_THREADS
;
2765 wxFont_SetEncoding(_arg0
,_arg1
);
2767 wxPy_END_ALLOW_THREADS
;
2768 } Py_INCREF(Py_None
);
2769 _resultobj
= Py_None
;
2773 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
2774 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2775 PyObject
* _resultobj
;
2778 PyObject
* _argo0
= 0;
2779 char *_kwnames
[] = { "self", NULL
};
2782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
2785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
2792 wxPy_BEGIN_ALLOW_THREADS
;
2793 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
2795 wxPy_END_ALLOW_THREADS
;
2797 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2805 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
2806 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2807 PyObject
* _resultobj
;
2810 PyObject
* _argo0
= 0;
2811 char *_kwnames
[] = { "self", NULL
};
2814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
2817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
2824 wxPy_BEGIN_ALLOW_THREADS
;
2825 _result
= new wxString (wxFont_GetStyleString(_arg0
));
2827 wxPy_END_ALLOW_THREADS
;
2829 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2837 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
2838 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
* _resultobj
;
2842 PyObject
* _argo0
= 0;
2843 char *_kwnames
[] = { "self", NULL
};
2846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
2849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
2856 wxPy_BEGIN_ALLOW_THREADS
;
2857 _result
= new wxString (wxFont_GetWeightString(_arg0
));
2859 wxPy_END_ALLOW_THREADS
;
2861 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2869 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
2870 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2871 PyObject
* _resultobj
;
2874 PyObject
* _argo0
= 0;
2875 PyObject
* _argo1
= 0;
2876 char *_kwnames
[] = { "self","font", NULL
};
2879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
2882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
2884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
2889 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2890 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
2891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
2896 wxPy_BEGIN_ALLOW_THREADS
;
2897 wxFontList_AddFont(_arg0
,_arg1
);
2899 wxPy_END_ALLOW_THREADS
;
2900 } Py_INCREF(Py_None
);
2901 _resultobj
= Py_None
;
2905 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2906 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2907 PyObject
* _resultobj
;
2914 bool _arg5
= (bool ) FALSE
;
2915 char * _arg6
= (char *) NULL
;
2916 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2917 PyObject
* _argo0
= 0;
2918 int tempbool5
= (int) FALSE
;
2919 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
2923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
2926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
2928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
2932 _arg5
= (bool ) tempbool5
;
2934 wxPy_BEGIN_ALLOW_THREADS
;
2935 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
2937 wxPy_END_ALLOW_THREADS
;
2939 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2940 _resultobj
= Py_BuildValue("s",_ptemp
);
2943 _resultobj
= Py_None
;
2948 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
2949 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2950 PyObject
* _resultobj
;
2953 PyObject
* _argo0
= 0;
2954 PyObject
* _argo1
= 0;
2955 char *_kwnames
[] = { "self","font", NULL
};
2958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
2961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
2963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
2968 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2969 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
2970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
2975 wxPy_BEGIN_ALLOW_THREADS
;
2976 wxFontList_RemoveFont(_arg0
,_arg1
);
2978 wxPy_END_ALLOW_THREADS
;
2979 } Py_INCREF(Py_None
);
2980 _resultobj
= Py_None
;
2984 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2985 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2986 PyObject
* _resultobj
;
2988 unsigned char _arg0
= (unsigned char ) 0;
2989 unsigned char _arg1
= (unsigned char ) 0;
2990 unsigned char _arg2
= (unsigned char ) 0;
2991 char *_kwnames
[] = { "red","green","blue", NULL
};
2995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
2998 wxPy_BEGIN_ALLOW_THREADS
;
2999 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3001 wxPy_END_ALLOW_THREADS
;
3003 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3004 _resultobj
= Py_BuildValue("s",_ptemp
);
3007 _resultobj
= Py_None
;
3012 #define delete_wxColour(_swigobj) (delete _swigobj)
3013 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3014 PyObject
* _resultobj
;
3017 PyObject
* _obj0
= 0;
3018 char *_kwnames
[] = { "self", NULL
};
3021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3025 if (! wxColour_helper(_obj0
, &_arg0
))
3029 wxPy_BEGIN_ALLOW_THREADS
;
3030 delete_wxColour(_arg0
);
3032 wxPy_END_ALLOW_THREADS
;
3033 } Py_INCREF(Py_None
);
3034 _resultobj
= Py_None
;
3038 #define wxColour_Red(_swigobj) (_swigobj->Red())
3039 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3040 PyObject
* _resultobj
;
3041 unsigned char _result
;
3044 PyObject
* _obj0
= 0;
3045 char *_kwnames
[] = { "self", NULL
};
3048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3052 if (! wxColour_helper(_obj0
, &_arg0
))
3056 wxPy_BEGIN_ALLOW_THREADS
;
3057 _result
= (unsigned char )wxColour_Red(_arg0
);
3059 wxPy_END_ALLOW_THREADS
;
3060 } _resultobj
= Py_BuildValue("b",_result
);
3064 #define wxColour_Green(_swigobj) (_swigobj->Green())
3065 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3066 PyObject
* _resultobj
;
3067 unsigned char _result
;
3070 PyObject
* _obj0
= 0;
3071 char *_kwnames
[] = { "self", NULL
};
3074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3078 if (! wxColour_helper(_obj0
, &_arg0
))
3082 wxPy_BEGIN_ALLOW_THREADS
;
3083 _result
= (unsigned char )wxColour_Green(_arg0
);
3085 wxPy_END_ALLOW_THREADS
;
3086 } _resultobj
= Py_BuildValue("b",_result
);
3090 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3091 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3092 PyObject
* _resultobj
;
3093 unsigned char _result
;
3096 PyObject
* _obj0
= 0;
3097 char *_kwnames
[] = { "self", NULL
};
3100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3104 if (! wxColour_helper(_obj0
, &_arg0
))
3108 wxPy_BEGIN_ALLOW_THREADS
;
3109 _result
= (unsigned char )wxColour_Blue(_arg0
);
3111 wxPy_END_ALLOW_THREADS
;
3112 } _resultobj
= Py_BuildValue("b",_result
);
3116 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3117 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3118 PyObject
* _resultobj
;
3122 PyObject
* _obj0
= 0;
3123 char *_kwnames
[] = { "self", NULL
};
3126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3130 if (! wxColour_helper(_obj0
, &_arg0
))
3134 wxPy_BEGIN_ALLOW_THREADS
;
3135 _result
= (bool )wxColour_Ok(_arg0
);
3137 wxPy_END_ALLOW_THREADS
;
3138 } _resultobj
= Py_BuildValue("i",_result
);
3142 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3143 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3144 PyObject
* _resultobj
;
3146 unsigned char _arg1
;
3147 unsigned char _arg2
;
3148 unsigned char _arg3
;
3150 PyObject
* _obj0
= 0;
3151 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3158 if (! wxColour_helper(_obj0
, &_arg0
))
3162 wxPy_BEGIN_ALLOW_THREADS
;
3163 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3165 wxPy_END_ALLOW_THREADS
;
3166 } Py_INCREF(Py_None
);
3167 _resultobj
= Py_None
;
3171 static PyObject
* wxColour_Get(wxColour
*self
) {
3172 PyObject
* rv
= PyTuple_New(3);
3173 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3174 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3175 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3178 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3179 PyObject
* _resultobj
;
3183 PyObject
* _obj0
= 0;
3184 char *_kwnames
[] = { "self", NULL
};
3187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3191 if (! wxColour_helper(_obj0
, &_arg0
))
3195 wxPy_BEGIN_ALLOW_THREADS
;
3196 _result
= (PyObject
*)wxColour_Get(_arg0
);
3198 wxPy_END_ALLOW_THREADS
;
3200 _resultobj
= _result
;
3205 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3206 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3207 PyObject
* _resultobj
;
3209 wxColourDatabase
* _arg0
;
3211 PyObject
* _argo0
= 0;
3212 PyObject
* _obj1
= 0;
3213 char *_kwnames
[] = { "self","colour", NULL
};
3217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3227 #if PYTHON_API_VERSION >= 1009
3228 char* tmpPtr
; int tmpSize
;
3229 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3230 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3233 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3235 _arg1
= new wxString(tmpPtr
, tmpSize
);
3237 if (!PyString_Check(_obj1
)) {
3238 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3241 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3245 wxPy_BEGIN_ALLOW_THREADS
;
3246 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3248 wxPy_END_ALLOW_THREADS
;
3250 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3251 _resultobj
= Py_BuildValue("s",_ptemp
);
3254 _resultobj
= Py_None
;
3263 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3264 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3265 PyObject
* _resultobj
;
3267 wxColourDatabase
* _arg0
;
3269 PyObject
* _argo0
= 0;
3271 PyObject
* _obj1
= 0;
3272 char *_kwnames
[] = { "self","colour", NULL
};
3275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3286 if (! wxColour_helper(_obj1
, &_arg1
))
3290 wxPy_BEGIN_ALLOW_THREADS
;
3291 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3293 wxPy_END_ALLOW_THREADS
;
3295 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3303 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3304 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3306 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3307 PyObject
* _resultobj
;
3308 wxColourDatabase
* _arg0
;
3313 PyObject
* _argo0
= 0;
3314 PyObject
* _obj1
= 0;
3315 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3328 #if PYTHON_API_VERSION >= 1009
3329 char* tmpPtr
; int tmpSize
;
3330 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3331 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3334 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3336 _arg1
= new wxString(tmpPtr
, tmpSize
);
3338 if (!PyString_Check(_obj1
)) {
3339 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3342 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3346 wxPy_BEGIN_ALLOW_THREADS
;
3347 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3349 wxPy_END_ALLOW_THREADS
;
3350 } Py_INCREF(Py_None
);
3351 _resultobj
= Py_None
;
3359 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3360 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3361 PyObject
* _resultobj
;
3364 int _arg1
= (int ) 1;
3365 int _arg2
= (int ) wxSOLID
;
3367 PyObject
* _obj0
= 0;
3368 char *_kwnames
[] = { "colour","width","style", NULL
};
3372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3376 if (! wxColour_helper(_obj0
, &_arg0
))
3380 wxPy_BEGIN_ALLOW_THREADS
;
3381 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3383 wxPy_END_ALLOW_THREADS
;
3385 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3386 _resultobj
= Py_BuildValue("s",_ptemp
);
3389 _resultobj
= Py_None
;
3394 #define delete_wxPen(_swigobj) (delete _swigobj)
3395 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3398 PyObject
* _argo0
= 0;
3399 char *_kwnames
[] = { "self", NULL
};
3402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3412 wxPy_BEGIN_ALLOW_THREADS
;
3413 delete_wxPen(_arg0
);
3415 wxPy_END_ALLOW_THREADS
;
3416 } Py_INCREF(Py_None
);
3417 _resultobj
= Py_None
;
3421 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3422 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3423 PyObject
* _resultobj
;
3426 PyObject
* _argo0
= 0;
3427 char *_kwnames
[] = { "self", NULL
};
3430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3440 wxPy_BEGIN_ALLOW_THREADS
;
3441 _result
= (int )wxPen_GetCap(_arg0
);
3443 wxPy_END_ALLOW_THREADS
;
3444 } _resultobj
= Py_BuildValue("i",_result
);
3448 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3449 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3450 PyObject
* _resultobj
;
3453 PyObject
* _argo0
= 0;
3454 char *_kwnames
[] = { "self", NULL
};
3458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3468 wxPy_BEGIN_ALLOW_THREADS
;
3469 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
3470 _result
= (wxColour
*) &_result_ref
;
3472 wxPy_END_ALLOW_THREADS
;
3474 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3475 _resultobj
= Py_BuildValue("s",_ptemp
);
3478 _resultobj
= Py_None
;
3483 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3484 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3485 PyObject
* _resultobj
;
3488 PyObject
* _argo0
= 0;
3489 char *_kwnames
[] = { "self", NULL
};
3492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3502 wxPy_BEGIN_ALLOW_THREADS
;
3503 _result
= (int )wxPen_GetJoin(_arg0
);
3505 wxPy_END_ALLOW_THREADS
;
3506 } _resultobj
= Py_BuildValue("i",_result
);
3510 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3511 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3512 PyObject
* _resultobj
;
3515 PyObject
* _argo0
= 0;
3516 char *_kwnames
[] = { "self", NULL
};
3519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3529 wxPy_BEGIN_ALLOW_THREADS
;
3530 _result
= (int )wxPen_GetStyle(_arg0
);
3532 wxPy_END_ALLOW_THREADS
;
3533 } _resultobj
= Py_BuildValue("i",_result
);
3537 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3538 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3539 PyObject
* _resultobj
;
3542 PyObject
* _argo0
= 0;
3543 char *_kwnames
[] = { "self", NULL
};
3546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3556 wxPy_BEGIN_ALLOW_THREADS
;
3557 _result
= (int )wxPen_GetWidth(_arg0
);
3559 wxPy_END_ALLOW_THREADS
;
3560 } _resultobj
= Py_BuildValue("i",_result
);
3564 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3565 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3566 PyObject
* _resultobj
;
3569 PyObject
* _argo0
= 0;
3570 char *_kwnames
[] = { "self", NULL
};
3573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3583 wxPy_BEGIN_ALLOW_THREADS
;
3584 _result
= (bool )wxPen_Ok(_arg0
);
3586 wxPy_END_ALLOW_THREADS
;
3587 } _resultobj
= Py_BuildValue("i",_result
);
3591 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3592 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3593 PyObject
* _resultobj
;
3596 PyObject
* _argo0
= 0;
3597 char *_kwnames
[] = { "self","cap_style", NULL
};
3600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3610 wxPy_BEGIN_ALLOW_THREADS
;
3611 wxPen_SetCap(_arg0
,_arg1
);
3613 wxPy_END_ALLOW_THREADS
;
3614 } Py_INCREF(Py_None
);
3615 _resultobj
= Py_None
;
3619 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3620 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3621 PyObject
* _resultobj
;
3624 PyObject
* _argo0
= 0;
3626 PyObject
* _obj1
= 0;
3627 char *_kwnames
[] = { "self","colour", NULL
};
3630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3641 if (! wxColour_helper(_obj1
, &_arg1
))
3645 wxPy_BEGIN_ALLOW_THREADS
;
3646 wxPen_SetColour(_arg0
,*_arg1
);
3648 wxPy_END_ALLOW_THREADS
;
3649 } Py_INCREF(Py_None
);
3650 _resultobj
= Py_None
;
3654 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3655 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3656 PyObject
* _resultobj
;
3659 PyObject
* _argo0
= 0;
3660 char *_kwnames
[] = { "self","join_style", NULL
};
3663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3673 wxPy_BEGIN_ALLOW_THREADS
;
3674 wxPen_SetJoin(_arg0
,_arg1
);
3676 wxPy_END_ALLOW_THREADS
;
3677 } Py_INCREF(Py_None
);
3678 _resultobj
= Py_None
;
3682 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3683 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3684 PyObject
* _resultobj
;
3687 PyObject
* _argo0
= 0;
3688 char *_kwnames
[] = { "self","style", NULL
};
3691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3701 wxPy_BEGIN_ALLOW_THREADS
;
3702 wxPen_SetStyle(_arg0
,_arg1
);
3704 wxPy_END_ALLOW_THREADS
;
3705 } Py_INCREF(Py_None
);
3706 _resultobj
= Py_None
;
3710 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3711 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3712 PyObject
* _resultobj
;
3715 PyObject
* _argo0
= 0;
3716 char *_kwnames
[] = { "self","width", NULL
};
3719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3729 wxPy_BEGIN_ALLOW_THREADS
;
3730 wxPen_SetWidth(_arg0
,_arg1
);
3732 wxPy_END_ALLOW_THREADS
;
3733 } Py_INCREF(Py_None
);
3734 _resultobj
= Py_None
;
3738 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
3739 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3740 PyObject
* _resultobj
;
3744 PyObject
* _argo0
= 0;
3745 PyObject
* _argo1
= 0;
3746 char *_kwnames
[] = { "self","dashes", NULL
};
3749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
3752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3759 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3760 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
3761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
3766 wxPy_BEGIN_ALLOW_THREADS
;
3767 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
3769 wxPy_END_ALLOW_THREADS
;
3770 } _resultobj
= Py_BuildValue("i",_result
);
3774 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3775 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3776 PyObject
* _resultobj
;
3780 PyObject
* _argo0
= 0;
3781 PyObject
* _obj2
= 0;
3782 char *_kwnames
[] = { "self","choices", NULL
};
3785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3796 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3797 if (_arg2
== NULL
) {
3803 _arg1
= PyList_Size(_obj2
);
3810 wxPy_BEGIN_ALLOW_THREADS
;
3811 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
3813 wxPy_END_ALLOW_THREADS
;
3814 } Py_INCREF(Py_None
);
3815 _resultobj
= Py_None
;
3822 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3823 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3824 PyObject
* _resultobj
;
3827 PyObject
* _argo0
= 0;
3828 PyObject
* _argo1
= 0;
3829 char *_kwnames
[] = { "self","pen", NULL
};
3832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
3835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3842 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3843 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3849 wxPy_BEGIN_ALLOW_THREADS
;
3850 wxPenList_AddPen(_arg0
,_arg1
);
3852 wxPy_END_ALLOW_THREADS
;
3853 } Py_INCREF(Py_None
);
3854 _resultobj
= Py_None
;
3858 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3859 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3860 PyObject
* _resultobj
;
3866 PyObject
* _argo0
= 0;
3868 PyObject
* _obj1
= 0;
3869 char *_kwnames
[] = { "self","colour","width","style", NULL
};
3873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
3876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
3884 if (! wxColour_helper(_obj1
, &_arg1
))
3888 wxPy_BEGIN_ALLOW_THREADS
;
3889 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
3891 wxPy_END_ALLOW_THREADS
;
3893 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3894 _resultobj
= Py_BuildValue("s",_ptemp
);
3897 _resultobj
= Py_None
;
3902 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3903 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3904 PyObject
* _resultobj
;
3907 PyObject
* _argo0
= 0;
3908 PyObject
* _argo1
= 0;
3909 char *_kwnames
[] = { "self","pen", NULL
};
3912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
3915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3922 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3923 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3929 wxPy_BEGIN_ALLOW_THREADS
;
3930 wxPenList_RemovePen(_arg0
,_arg1
);
3932 wxPy_END_ALLOW_THREADS
;
3933 } Py_INCREF(Py_None
);
3934 _resultobj
= Py_None
;
3938 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
3939 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3940 PyObject
* _resultobj
;
3943 int _arg1
= (int ) wxSOLID
;
3945 PyObject
* _obj0
= 0;
3946 char *_kwnames
[] = { "colour","style", NULL
};
3950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
3954 if (! wxColour_helper(_obj0
, &_arg0
))
3958 wxPy_BEGIN_ALLOW_THREADS
;
3959 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
3961 wxPy_END_ALLOW_THREADS
;
3963 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
3964 _resultobj
= Py_BuildValue("s",_ptemp
);
3967 _resultobj
= Py_None
;
3972 #define delete_wxBrush(_swigobj) (delete _swigobj)
3973 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3974 PyObject
* _resultobj
;
3976 PyObject
* _argo0
= 0;
3977 char *_kwnames
[] = { "self", NULL
};
3980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
3983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
3990 wxPy_BEGIN_ALLOW_THREADS
;
3991 delete_wxBrush(_arg0
);
3993 wxPy_END_ALLOW_THREADS
;
3994 } Py_INCREF(Py_None
);
3995 _resultobj
= Py_None
;
3999 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4000 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4001 PyObject
* _resultobj
;
4004 PyObject
* _argo0
= 0;
4005 char *_kwnames
[] = { "self", NULL
};
4009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4019 wxPy_BEGIN_ALLOW_THREADS
;
4020 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
4021 _result
= (wxColour
*) &_result_ref
;
4023 wxPy_END_ALLOW_THREADS
;
4025 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4026 _resultobj
= Py_BuildValue("s",_ptemp
);
4029 _resultobj
= Py_None
;
4034 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4035 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4036 PyObject
* _resultobj
;
4039 PyObject
* _argo0
= 0;
4040 char *_kwnames
[] = { "self", NULL
};
4044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4054 wxPy_BEGIN_ALLOW_THREADS
;
4055 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4057 wxPy_END_ALLOW_THREADS
;
4059 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4060 _resultobj
= Py_BuildValue("s",_ptemp
);
4063 _resultobj
= Py_None
;
4068 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4069 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4070 PyObject
* _resultobj
;
4073 PyObject
* _argo0
= 0;
4074 char *_kwnames
[] = { "self", NULL
};
4077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4087 wxPy_BEGIN_ALLOW_THREADS
;
4088 _result
= (int )wxBrush_GetStyle(_arg0
);
4090 wxPy_END_ALLOW_THREADS
;
4091 } _resultobj
= Py_BuildValue("i",_result
);
4095 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4096 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4097 PyObject
* _resultobj
;
4100 PyObject
* _argo0
= 0;
4101 char *_kwnames
[] = { "self", NULL
};
4104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4114 wxPy_BEGIN_ALLOW_THREADS
;
4115 _result
= (bool )wxBrush_Ok(_arg0
);
4117 wxPy_END_ALLOW_THREADS
;
4118 } _resultobj
= Py_BuildValue("i",_result
);
4122 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4123 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4124 PyObject
* _resultobj
;
4127 PyObject
* _argo0
= 0;
4129 PyObject
* _obj1
= 0;
4130 char *_kwnames
[] = { "self","colour", NULL
};
4133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4144 if (! wxColour_helper(_obj1
, &_arg1
))
4148 wxPy_BEGIN_ALLOW_THREADS
;
4149 wxBrush_SetColour(_arg0
,*_arg1
);
4151 wxPy_END_ALLOW_THREADS
;
4152 } Py_INCREF(Py_None
);
4153 _resultobj
= Py_None
;
4157 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4158 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4159 PyObject
* _resultobj
;
4162 PyObject
* _argo0
= 0;
4163 PyObject
* _argo1
= 0;
4164 char *_kwnames
[] = { "self","bitmap", NULL
};
4167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4177 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4178 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4184 wxPy_BEGIN_ALLOW_THREADS
;
4185 wxBrush_SetStipple(_arg0
,*_arg1
);
4187 wxPy_END_ALLOW_THREADS
;
4188 } Py_INCREF(Py_None
);
4189 _resultobj
= Py_None
;
4193 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4194 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4195 PyObject
* _resultobj
;
4198 PyObject
* _argo0
= 0;
4199 char *_kwnames
[] = { "self","style", NULL
};
4202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4212 wxPy_BEGIN_ALLOW_THREADS
;
4213 wxBrush_SetStyle(_arg0
,_arg1
);
4215 wxPy_END_ALLOW_THREADS
;
4216 } Py_INCREF(Py_None
);
4217 _resultobj
= Py_None
;
4221 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4222 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4223 PyObject
* _resultobj
;
4224 wxBrushList
* _arg0
;
4226 PyObject
* _argo0
= 0;
4227 PyObject
* _argo1
= 0;
4228 char *_kwnames
[] = { "self","brush", NULL
};
4231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4241 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4242 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4248 wxPy_BEGIN_ALLOW_THREADS
;
4249 wxBrushList_AddBrush(_arg0
,_arg1
);
4251 wxPy_END_ALLOW_THREADS
;
4252 } Py_INCREF(Py_None
);
4253 _resultobj
= Py_None
;
4257 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4258 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4259 PyObject
* _resultobj
;
4261 wxBrushList
* _arg0
;
4264 PyObject
* _argo0
= 0;
4266 PyObject
* _obj1
= 0;
4267 char *_kwnames
[] = { "self","colour","style", NULL
};
4271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4282 if (! wxColour_helper(_obj1
, &_arg1
))
4286 wxPy_BEGIN_ALLOW_THREADS
;
4287 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4289 wxPy_END_ALLOW_THREADS
;
4291 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4292 _resultobj
= Py_BuildValue("s",_ptemp
);
4295 _resultobj
= Py_None
;
4300 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4301 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4302 PyObject
* _resultobj
;
4303 wxBrushList
* _arg0
;
4305 PyObject
* _argo0
= 0;
4306 PyObject
* _argo1
= 0;
4307 char *_kwnames
[] = { "self","brush", NULL
};
4310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4320 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4321 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4327 wxPy_BEGIN_ALLOW_THREADS
;
4328 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4330 wxPy_END_ALLOW_THREADS
;
4331 } Py_INCREF(Py_None
);
4332 _resultobj
= Py_None
;
4336 #define delete_wxDC(_swigobj) (delete _swigobj)
4337 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4338 PyObject
* _resultobj
;
4340 PyObject
* _argo0
= 0;
4341 char *_kwnames
[] = { "self", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4354 wxPy_BEGIN_ALLOW_THREADS
;
4357 wxPy_END_ALLOW_THREADS
;
4358 } Py_INCREF(Py_None
);
4359 _resultobj
= Py_None
;
4363 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4364 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4365 PyObject
* _resultobj
;
4367 PyObject
* _argo0
= 0;
4368 char *_kwnames
[] = { "self", NULL
};
4371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4381 wxPy_BEGIN_ALLOW_THREADS
;
4382 wxDC_BeginDrawing(_arg0
);
4384 wxPy_END_ALLOW_THREADS
;
4385 } Py_INCREF(Py_None
);
4386 _resultobj
= Py_None
;
4390 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4391 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4392 PyObject
* _resultobj
;
4402 int _arg8
= (int ) wxCOPY
;
4403 int _arg9
= (int ) FALSE
;
4404 PyObject
* _argo0
= 0;
4405 PyObject
* _argo5
= 0;
4406 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4419 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4420 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4426 wxPy_BEGIN_ALLOW_THREADS
;
4427 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4429 wxPy_END_ALLOW_THREADS
;
4430 } _resultobj
= Py_BuildValue("i",_result
);
4434 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4435 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4436 PyObject
* _resultobj
;
4438 PyObject
* _argo0
= 0;
4439 char *_kwnames
[] = { "self", NULL
};
4442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4452 wxPy_BEGIN_ALLOW_THREADS
;
4455 wxPy_END_ALLOW_THREADS
;
4456 } Py_INCREF(Py_None
);
4457 _resultobj
= Py_None
;
4461 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4462 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4463 PyObject
* _resultobj
;
4467 PyObject
* _argo0
= 0;
4468 char *_kwnames
[] = { "self","x","y", NULL
};
4471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4481 wxPy_BEGIN_ALLOW_THREADS
;
4482 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4484 wxPy_END_ALLOW_THREADS
;
4485 } Py_INCREF(Py_None
);
4486 _resultobj
= Py_None
;
4490 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4491 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4492 PyObject
* _resultobj
;
4494 PyObject
* _argo0
= 0;
4495 char *_kwnames
[] = { "self", NULL
};
4498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4508 wxPy_BEGIN_ALLOW_THREADS
;
4509 wxDC_DestroyClippingRegion(_arg0
);
4511 wxPy_END_ALLOW_THREADS
;
4512 } Py_INCREF(Py_None
);
4513 _resultobj
= Py_None
;
4517 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4518 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4519 PyObject
* _resultobj
;
4523 PyObject
* _argo0
= 0;
4524 char *_kwnames
[] = { "self","x", NULL
};
4527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4537 wxPy_BEGIN_ALLOW_THREADS
;
4538 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4540 wxPy_END_ALLOW_THREADS
;
4541 } _resultobj
= Py_BuildValue("l",_result
);
4545 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4546 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4547 PyObject
* _resultobj
;
4551 PyObject
* _argo0
= 0;
4552 char *_kwnames
[] = { "self","x", NULL
};
4555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4565 wxPy_BEGIN_ALLOW_THREADS
;
4566 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4568 wxPy_END_ALLOW_THREADS
;
4569 } _resultobj
= Py_BuildValue("l",_result
);
4573 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4574 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4575 PyObject
* _resultobj
;
4579 PyObject
* _argo0
= 0;
4580 char *_kwnames
[] = { "self","y", NULL
};
4583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4593 wxPy_BEGIN_ALLOW_THREADS
;
4594 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4596 wxPy_END_ALLOW_THREADS
;
4597 } _resultobj
= Py_BuildValue("l",_result
);
4601 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4602 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4603 PyObject
* _resultobj
;
4607 PyObject
* _argo0
= 0;
4608 char *_kwnames
[] = { "self","y", NULL
};
4611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
4614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4621 wxPy_BEGIN_ALLOW_THREADS
;
4622 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
4624 wxPy_END_ALLOW_THREADS
;
4625 } _resultobj
= Py_BuildValue("l",_result
);
4629 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4630 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4631 PyObject
* _resultobj
;
4639 PyObject
* _argo0
= 0;
4640 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
4643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
4653 wxPy_BEGIN_ALLOW_THREADS
;
4654 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4656 wxPy_END_ALLOW_THREADS
;
4657 } Py_INCREF(Py_None
);
4658 _resultobj
= Py_None
;
4662 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
4663 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4664 PyObject
* _resultobj
;
4669 PyObject
* _argo0
= 0;
4670 char *_kwnames
[] = { "self","x","y","radius", NULL
};
4673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
4676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4683 wxPy_BEGIN_ALLOW_THREADS
;
4684 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
4686 wxPy_END_ALLOW_THREADS
;
4687 } Py_INCREF(Py_None
);
4688 _resultobj
= Py_None
;
4692 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4693 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4694 PyObject
* _resultobj
;
4700 PyObject
* _argo0
= 0;
4701 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4714 wxPy_BEGIN_ALLOW_THREADS
;
4715 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4717 wxPy_END_ALLOW_THREADS
;
4718 } Py_INCREF(Py_None
);
4719 _resultobj
= Py_None
;
4723 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4724 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4725 PyObject
* _resultobj
;
4733 PyObject
* _argo0
= 0;
4734 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
4737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4747 wxPy_BEGIN_ALLOW_THREADS
;
4748 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4750 wxPy_END_ALLOW_THREADS
;
4751 } Py_INCREF(Py_None
);
4752 _resultobj
= Py_None
;
4756 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
4757 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4758 PyObject
* _resultobj
;
4763 PyObject
* _argo0
= 0;
4764 PyObject
* _argo1
= 0;
4765 char *_kwnames
[] = { "self","icon","x","y", NULL
};
4768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
4771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
4780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4785 wxPy_BEGIN_ALLOW_THREADS
;
4786 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
4788 wxPy_END_ALLOW_THREADS
;
4789 } Py_INCREF(Py_None
);
4790 _resultobj
= Py_None
;
4794 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4795 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4796 PyObject
* _resultobj
;
4802 PyObject
* _argo0
= 0;
4803 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
4806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
4816 wxPy_BEGIN_ALLOW_THREADS
;
4817 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4819 wxPy_END_ALLOW_THREADS
;
4820 } Py_INCREF(Py_None
);
4821 _resultobj
= Py_None
;
4825 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4826 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4827 PyObject
* _resultobj
;
4831 long _arg3
= (long ) 0;
4832 long _arg4
= (long ) 0;
4833 PyObject
* _argo0
= 0;
4835 PyObject
* _obj2
= 0;
4836 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
4839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
4842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
4850 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
4851 if (_arg2
== NULL
) {
4859 wxPy_BEGIN_ALLOW_THREADS
;
4860 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4862 wxPy_END_ALLOW_THREADS
;
4863 } Py_INCREF(Py_None
);
4864 _resultobj
= Py_None
;
4871 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4872 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4873 PyObject
* _resultobj
;
4877 long _arg3
= (long ) 0;
4878 long _arg4
= (long ) 0;
4879 int _arg5
= (int ) wxODDEVEN_RULE
;
4880 PyObject
* _argo0
= 0;
4882 PyObject
* _obj2
= 0;
4883 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
4886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
4889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
4897 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
4898 if (_arg2
== NULL
) {
4906 wxPy_BEGIN_ALLOW_THREADS
;
4907 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4909 wxPy_END_ALLOW_THREADS
;
4910 } Py_INCREF(Py_None
);
4911 _resultobj
= Py_None
;
4918 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
4919 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4920 PyObject
* _resultobj
;
4924 PyObject
* _argo0
= 0;
4925 char *_kwnames
[] = { "self","x","y", NULL
};
4928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
4938 wxPy_BEGIN_ALLOW_THREADS
;
4939 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
4941 wxPy_END_ALLOW_THREADS
;
4942 } Py_INCREF(Py_None
);
4943 _resultobj
= Py_None
;
4947 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4948 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4949 PyObject
* _resultobj
;
4955 PyObject
* _argo0
= 0;
4956 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
4969 wxPy_BEGIN_ALLOW_THREADS
;
4970 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4972 wxPy_END_ALLOW_THREADS
;
4973 } Py_INCREF(Py_None
);
4974 _resultobj
= Py_None
;
4978 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4979 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4980 PyObject
* _resultobj
;
4986 PyObject
* _argo0
= 0;
4987 PyObject
* _obj1
= 0;
4988 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
4991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5001 #if PYTHON_API_VERSION >= 1009
5002 char* tmpPtr
; int tmpSize
;
5003 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5004 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5007 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5009 _arg1
= new wxString(tmpPtr
, tmpSize
);
5011 if (!PyString_Check(_obj1
)) {
5012 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5015 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5019 wxPy_BEGIN_ALLOW_THREADS
;
5020 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5022 wxPy_END_ALLOW_THREADS
;
5023 } Py_INCREF(Py_None
);
5024 _resultobj
= Py_None
;
5032 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5033 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5034 PyObject
* _resultobj
;
5040 long _arg5
= (long ) 20;
5041 PyObject
* _argo0
= 0;
5042 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5055 wxPy_BEGIN_ALLOW_THREADS
;
5056 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5058 wxPy_END_ALLOW_THREADS
;
5059 } Py_INCREF(Py_None
);
5060 _resultobj
= Py_None
;
5064 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5065 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5066 PyObject
* _resultobj
;
5070 PyObject
* _argo0
= 0;
5072 PyObject
* _obj2
= 0;
5073 char *_kwnames
[] = { "self","points", NULL
};
5076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5087 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5088 if (_arg2
== NULL
) {
5096 wxPy_BEGIN_ALLOW_THREADS
;
5097 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5099 wxPy_END_ALLOW_THREADS
;
5100 } Py_INCREF(Py_None
);
5101 _resultobj
= Py_None
;
5108 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5109 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5110 PyObject
* _resultobj
;
5115 PyObject
* _argo0
= 0;
5116 PyObject
* _obj1
= 0;
5117 char *_kwnames
[] = { "self","text","x","y", NULL
};
5120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5130 #if PYTHON_API_VERSION >= 1009
5131 char* tmpPtr
; int tmpSize
;
5132 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5133 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5136 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5138 _arg1
= new wxString(tmpPtr
, tmpSize
);
5140 if (!PyString_Check(_obj1
)) {
5141 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5144 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5148 wxPy_BEGIN_ALLOW_THREADS
;
5149 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5151 wxPy_END_ALLOW_THREADS
;
5152 } Py_INCREF(Py_None
);
5153 _resultobj
= Py_None
;
5161 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5162 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5163 PyObject
* _resultobj
;
5165 PyObject
* _argo0
= 0;
5166 char *_kwnames
[] = { "self", NULL
};
5169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5179 wxPy_BEGIN_ALLOW_THREADS
;
5182 wxPy_END_ALLOW_THREADS
;
5183 } Py_INCREF(Py_None
);
5184 _resultobj
= Py_None
;
5188 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5189 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5190 PyObject
* _resultobj
;
5192 PyObject
* _argo0
= 0;
5193 char *_kwnames
[] = { "self", NULL
};
5196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5206 wxPy_BEGIN_ALLOW_THREADS
;
5207 wxDC_EndDrawing(_arg0
);
5209 wxPy_END_ALLOW_THREADS
;
5210 } Py_INCREF(Py_None
);
5211 _resultobj
= Py_None
;
5215 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5216 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5217 PyObject
* _resultobj
;
5219 PyObject
* _argo0
= 0;
5220 char *_kwnames
[] = { "self", NULL
};
5223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5233 wxPy_BEGIN_ALLOW_THREADS
;
5234 wxDC_EndPage(_arg0
);
5236 wxPy_END_ALLOW_THREADS
;
5237 } Py_INCREF(Py_None
);
5238 _resultobj
= Py_None
;
5242 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5243 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5244 PyObject
* _resultobj
;
5249 int _arg4
= (int ) wxFLOOD_SURFACE
;
5250 PyObject
* _argo0
= 0;
5252 PyObject
* _obj3
= 0;
5253 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5267 if (! wxColour_helper(_obj3
, &_arg3
))
5271 wxPy_BEGIN_ALLOW_THREADS
;
5272 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5274 wxPy_END_ALLOW_THREADS
;
5275 } Py_INCREF(Py_None
);
5276 _resultobj
= Py_None
;
5280 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5281 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5282 PyObject
* _resultobj
;
5285 PyObject
* _argo0
= 0;
5286 char *_kwnames
[] = { "self", NULL
};
5290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5300 wxPy_BEGIN_ALLOW_THREADS
;
5301 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
5302 _result
= (wxBrush
*) &_result_ref
;
5304 wxPy_END_ALLOW_THREADS
;
5306 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5307 _resultobj
= Py_BuildValue("s",_ptemp
);
5310 _resultobj
= Py_None
;
5315 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5316 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5317 PyObject
* _resultobj
;
5320 PyObject
* _argo0
= 0;
5321 char *_kwnames
[] = { "self", NULL
};
5325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5335 wxPy_BEGIN_ALLOW_THREADS
;
5336 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
5337 _result
= (wxBrush
*) &_result_ref
;
5339 wxPy_END_ALLOW_THREADS
;
5341 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5342 _resultobj
= Py_BuildValue("s",_ptemp
);
5345 _resultobj
= Py_None
;
5350 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5351 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5352 PyObject
* _resultobj
;
5355 PyObject
* _argo0
= 0;
5356 char *_kwnames
[] = { "self", NULL
};
5359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5369 wxPy_BEGIN_ALLOW_THREADS
;
5370 _result
= (long )wxDC_GetCharHeight(_arg0
);
5372 wxPy_END_ALLOW_THREADS
;
5373 } _resultobj
= Py_BuildValue("l",_result
);
5377 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5378 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5379 PyObject
* _resultobj
;
5382 PyObject
* _argo0
= 0;
5383 char *_kwnames
[] = { "self", NULL
};
5386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5396 wxPy_BEGIN_ALLOW_THREADS
;
5397 _result
= (long )wxDC_GetCharWidth(_arg0
);
5399 wxPy_END_ALLOW_THREADS
;
5400 } _resultobj
= Py_BuildValue("l",_result
);
5404 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5405 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5406 PyObject
* _resultobj
;
5416 PyObject
* _argo0
= 0;
5417 char *_kwnames
[] = { "self", NULL
};
5432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5442 wxPy_BEGIN_ALLOW_THREADS
;
5443 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5445 wxPy_END_ALLOW_THREADS
;
5446 } Py_INCREF(Py_None
);
5447 _resultobj
= Py_None
;
5450 o
= PyInt_FromLong((long) (*_arg1
));
5451 _resultobj
= t_output_helper(_resultobj
, o
);
5455 o
= PyInt_FromLong((long) (*_arg2
));
5456 _resultobj
= t_output_helper(_resultobj
, o
);
5460 o
= PyInt_FromLong((long) (*_arg3
));
5461 _resultobj
= t_output_helper(_resultobj
, o
);
5465 o
= PyInt_FromLong((long) (*_arg4
));
5466 _resultobj
= t_output_helper(_resultobj
, o
);
5471 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5472 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5473 PyObject
* _resultobj
;
5476 PyObject
* _argo0
= 0;
5477 char *_kwnames
[] = { "self", NULL
};
5481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5491 wxPy_BEGIN_ALLOW_THREADS
;
5492 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
5493 _result
= (wxFont
*) &_result_ref
;
5495 wxPy_END_ALLOW_THREADS
;
5497 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
5498 _resultobj
= Py_BuildValue("s",_ptemp
);
5501 _resultobj
= Py_None
;
5506 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5507 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5508 PyObject
* _resultobj
;
5511 PyObject
* _argo0
= 0;
5512 char *_kwnames
[] = { "self", NULL
};
5515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5525 wxPy_BEGIN_ALLOW_THREADS
;
5526 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5528 wxPy_END_ALLOW_THREADS
;
5529 } _resultobj
= Py_BuildValue("i",_result
);
5533 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5534 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5535 PyObject
* _resultobj
;
5541 PyObject
* _argo0
= 0;
5542 char *_kwnames
[] = { "self", NULL
};
5551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5561 wxPy_BEGIN_ALLOW_THREADS
;
5562 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5564 wxPy_END_ALLOW_THREADS
;
5565 } Py_INCREF(Py_None
);
5566 _resultobj
= Py_None
;
5569 o
= PyFloat_FromDouble((double) (*_arg1
));
5570 _resultobj
= t_output_helper(_resultobj
, o
);
5574 o
= PyFloat_FromDouble((double) (*_arg2
));
5575 _resultobj
= t_output_helper(_resultobj
, o
);
5580 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5581 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5582 PyObject
* _resultobj
;
5585 PyObject
* _argo0
= 0;
5586 char *_kwnames
[] = { "self", NULL
};
5589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5599 wxPy_BEGIN_ALLOW_THREADS
;
5600 _result
= (int )wxDC_GetMapMode(_arg0
);
5602 wxPy_END_ALLOW_THREADS
;
5603 } _resultobj
= Py_BuildValue("i",_result
);
5607 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5608 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5609 PyObject
* _resultobj
;
5612 PyObject
* _argo0
= 0;
5613 char *_kwnames
[] = { "self", NULL
};
5616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
5619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5626 wxPy_BEGIN_ALLOW_THREADS
;
5627 _result
= (bool )wxDC_GetOptimization(_arg0
);
5629 wxPy_END_ALLOW_THREADS
;
5630 } _resultobj
= Py_BuildValue("i",_result
);
5634 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5635 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5636 PyObject
* _resultobj
;
5639 PyObject
* _argo0
= 0;
5640 char *_kwnames
[] = { "self", NULL
};
5644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
5647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5654 wxPy_BEGIN_ALLOW_THREADS
;
5655 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
5656 _result
= (wxPen
*) &_result_ref
;
5658 wxPy_END_ALLOW_THREADS
;
5660 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5661 _resultobj
= Py_BuildValue("s",_ptemp
);
5664 _resultobj
= Py_None
;
5669 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
5670 wxColour
* wc
= new wxColour();
5671 self
->GetPixel(x
, y
, wc
);
5674 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5675 PyObject
* _resultobj
;
5680 PyObject
* _argo0
= 0;
5681 char *_kwnames
[] = { "self","x","y", NULL
};
5685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5695 wxPy_BEGIN_ALLOW_THREADS
;
5696 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
5698 wxPy_END_ALLOW_THREADS
;
5700 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5701 _resultobj
= Py_BuildValue("s",_ptemp
);
5704 _resultobj
= Py_None
;
5709 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
5710 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5711 PyObject
* _resultobj
;
5717 PyObject
* _argo0
= 0;
5718 char *_kwnames
[] = { "self", NULL
};
5727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
5730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
5737 wxPy_BEGIN_ALLOW_THREADS
;
5738 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
5740 wxPy_END_ALLOW_THREADS
;
5741 } Py_INCREF(Py_None
);
5742 _resultobj
= Py_None
;
5745 o
= PyInt_FromLong((long) (*_arg1
));
5746 _resultobj
= t_output_helper(_resultobj
, o
);
5750 o
= PyInt_FromLong((long) (*_arg2
));
5751 _resultobj
= t_output_helper(_resultobj
, o
);
5756 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
5757 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5758 PyObject
* _resultobj
;
5761 PyObject
* _argo0
= 0;
5762 char *_kwnames
[] = { "self", NULL
};
5766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
5769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
5776 wxPy_BEGIN_ALLOW_THREADS
;
5777 _result
= new wxSize (wxDC_GetSize(_arg0
));
5779 wxPy_END_ALLOW_THREADS
;
5780 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5781 _resultobj
= Py_BuildValue("s",_ptemp
);
5785 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
5786 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5787 PyObject
* _resultobj
;
5790 PyObject
* _argo0
= 0;
5791 char *_kwnames
[] = { "self", NULL
};
5795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
5798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
5805 wxPy_BEGIN_ALLOW_THREADS
;
5806 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
5808 wxPy_END_ALLOW_THREADS
;
5809 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5810 _resultobj
= Py_BuildValue("s",_ptemp
);
5814 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
5815 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5816 PyObject
* _resultobj
;
5819 PyObject
* _argo0
= 0;
5820 char *_kwnames
[] = { "self", NULL
};
5824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
5827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
5834 wxPy_BEGIN_ALLOW_THREADS
;
5835 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
5836 _result
= (wxColour
*) &_result_ref
;
5838 wxPy_END_ALLOW_THREADS
;
5840 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5841 _resultobj
= Py_BuildValue("s",_ptemp
);
5844 _resultobj
= Py_None
;
5849 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
5850 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5851 PyObject
* _resultobj
;
5858 PyObject
* _argo0
= 0;
5859 PyObject
* _obj1
= 0;
5860 char *_kwnames
[] = { "self","string", NULL
};
5869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
5872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
5879 #if PYTHON_API_VERSION >= 1009
5880 char* tmpPtr
; int tmpSize
;
5881 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5882 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5885 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5887 _arg1
= new wxString(tmpPtr
, tmpSize
);
5889 if (!PyString_Check(_obj1
)) {
5890 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5893 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5897 wxPy_BEGIN_ALLOW_THREADS
;
5898 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
5900 wxPy_END_ALLOW_THREADS
;
5901 } Py_INCREF(Py_None
);
5902 _resultobj
= Py_None
;
5905 o
= PyInt_FromLong((long) (*_arg2
));
5906 _resultobj
= t_output_helper(_resultobj
, o
);
5910 o
= PyInt_FromLong((long) (*_arg3
));
5911 _resultobj
= t_output_helper(_resultobj
, o
);
5920 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5921 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5922 PyObject
* _resultobj
;
5933 wxFont
* _arg6
= (wxFont
*) NULL
;
5934 PyObject
* _argo0
= 0;
5935 PyObject
* _obj1
= 0;
5936 PyObject
* _argo6
= 0;
5937 char *_kwnames
[] = { "self","string","font", NULL
};
5952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
5955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
5962 #if PYTHON_API_VERSION >= 1009
5963 char* tmpPtr
; int tmpSize
;
5964 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5965 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5968 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5970 _arg1
= new wxString(tmpPtr
, tmpSize
);
5972 if (!PyString_Check(_obj1
)) {
5973 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5976 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5980 if (_argo6
== Py_None
) { _arg6
= NULL
; }
5981 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
5982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
5987 wxPy_BEGIN_ALLOW_THREADS
;
5988 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5990 wxPy_END_ALLOW_THREADS
;
5991 } Py_INCREF(Py_None
);
5992 _resultobj
= Py_None
;
5995 o
= PyInt_FromLong((long) (*_arg2
));
5996 _resultobj
= t_output_helper(_resultobj
, o
);
6000 o
= PyInt_FromLong((long) (*_arg3
));
6001 _resultobj
= t_output_helper(_resultobj
, o
);
6005 o
= PyInt_FromLong((long) (*_arg4
));
6006 _resultobj
= t_output_helper(_resultobj
, o
);
6010 o
= PyInt_FromLong((long) (*_arg5
));
6011 _resultobj
= t_output_helper(_resultobj
, o
);
6020 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6021 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6022 PyObject
* _resultobj
;
6025 PyObject
* _argo0
= 0;
6026 char *_kwnames
[] = { "self", NULL
};
6030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6040 wxPy_BEGIN_ALLOW_THREADS
;
6041 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
6042 _result
= (wxColour
*) &_result_ref
;
6044 wxPy_END_ALLOW_THREADS
;
6046 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6047 _resultobj
= Py_BuildValue("s",_ptemp
);
6050 _resultobj
= Py_None
;
6055 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6056 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6057 PyObject
* _resultobj
;
6063 PyObject
* _argo0
= 0;
6064 char *_kwnames
[] = { "self", NULL
};
6073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6083 wxPy_BEGIN_ALLOW_THREADS
;
6084 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6086 wxPy_END_ALLOW_THREADS
;
6087 } Py_INCREF(Py_None
);
6088 _resultobj
= Py_None
;
6091 o
= PyFloat_FromDouble((double) (*_arg1
));
6092 _resultobj
= t_output_helper(_resultobj
, o
);
6096 o
= PyFloat_FromDouble((double) (*_arg2
));
6097 _resultobj
= t_output_helper(_resultobj
, o
);
6102 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6103 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6104 PyObject
* _resultobj
;
6108 PyObject
* _argo0
= 0;
6109 char *_kwnames
[] = { "self","x", NULL
};
6112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6122 wxPy_BEGIN_ALLOW_THREADS
;
6123 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6125 wxPy_END_ALLOW_THREADS
;
6126 } _resultobj
= Py_BuildValue("l",_result
);
6130 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6131 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6132 PyObject
* _resultobj
;
6136 PyObject
* _argo0
= 0;
6137 char *_kwnames
[] = { "self","x", NULL
};
6140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6150 wxPy_BEGIN_ALLOW_THREADS
;
6151 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6153 wxPy_END_ALLOW_THREADS
;
6154 } _resultobj
= Py_BuildValue("l",_result
);
6158 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6159 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6160 PyObject
* _resultobj
;
6164 PyObject
* _argo0
= 0;
6165 char *_kwnames
[] = { "self","y", NULL
};
6168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6178 wxPy_BEGIN_ALLOW_THREADS
;
6179 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6181 wxPy_END_ALLOW_THREADS
;
6182 } _resultobj
= Py_BuildValue("l",_result
);
6186 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6187 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6188 PyObject
* _resultobj
;
6192 PyObject
* _argo0
= 0;
6193 char *_kwnames
[] = { "self","y", NULL
};
6196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6206 wxPy_BEGIN_ALLOW_THREADS
;
6207 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6209 wxPy_END_ALLOW_THREADS
;
6210 } _resultobj
= Py_BuildValue("l",_result
);
6214 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6215 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6216 PyObject
* _resultobj
;
6219 PyObject
* _argo0
= 0;
6220 char *_kwnames
[] = { "self", NULL
};
6223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6233 wxPy_BEGIN_ALLOW_THREADS
;
6234 _result
= (long )wxDC_MaxX(_arg0
);
6236 wxPy_END_ALLOW_THREADS
;
6237 } _resultobj
= Py_BuildValue("l",_result
);
6241 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6242 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6243 PyObject
* _resultobj
;
6246 PyObject
* _argo0
= 0;
6247 char *_kwnames
[] = { "self", NULL
};
6250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6260 wxPy_BEGIN_ALLOW_THREADS
;
6261 _result
= (long )wxDC_MaxY(_arg0
);
6263 wxPy_END_ALLOW_THREADS
;
6264 } _resultobj
= Py_BuildValue("l",_result
);
6268 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6269 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6270 PyObject
* _resultobj
;
6273 PyObject
* _argo0
= 0;
6274 char *_kwnames
[] = { "self", NULL
};
6277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6287 wxPy_BEGIN_ALLOW_THREADS
;
6288 _result
= (long )wxDC_MinX(_arg0
);
6290 wxPy_END_ALLOW_THREADS
;
6291 } _resultobj
= Py_BuildValue("l",_result
);
6295 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6296 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6297 PyObject
* _resultobj
;
6300 PyObject
* _argo0
= 0;
6301 char *_kwnames
[] = { "self", NULL
};
6304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6307 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6308 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6314 wxPy_BEGIN_ALLOW_THREADS
;
6315 _result
= (long )wxDC_MinY(_arg0
);
6317 wxPy_END_ALLOW_THREADS
;
6318 } _resultobj
= Py_BuildValue("l",_result
);
6322 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6323 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6324 PyObject
* _resultobj
;
6327 PyObject
* _argo0
= 0;
6328 char *_kwnames
[] = { "self", NULL
};
6331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6341 wxPy_BEGIN_ALLOW_THREADS
;
6342 _result
= (bool )wxDC_Ok(_arg0
);
6344 wxPy_END_ALLOW_THREADS
;
6345 } _resultobj
= Py_BuildValue("i",_result
);
6349 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6350 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6351 PyObject
* _resultobj
;
6355 PyObject
* _argo0
= 0;
6356 char *_kwnames
[] = { "self","x","y", NULL
};
6359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6369 wxPy_BEGIN_ALLOW_THREADS
;
6370 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6372 wxPy_END_ALLOW_THREADS
;
6373 } Py_INCREF(Py_None
);
6374 _resultobj
= Py_None
;
6378 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6379 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6380 PyObject
* _resultobj
;
6383 PyObject
* _argo0
= 0;
6384 PyObject
* _argo1
= 0;
6385 char *_kwnames
[] = { "self","brush", NULL
};
6388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6398 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6399 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6405 wxPy_BEGIN_ALLOW_THREADS
;
6406 wxDC_SetBackground(_arg0
,*_arg1
);
6408 wxPy_END_ALLOW_THREADS
;
6409 } Py_INCREF(Py_None
);
6410 _resultobj
= Py_None
;
6414 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6415 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6416 PyObject
* _resultobj
;
6419 PyObject
* _argo0
= 0;
6420 char *_kwnames
[] = { "self","mode", NULL
};
6423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6433 wxPy_BEGIN_ALLOW_THREADS
;
6434 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6436 wxPy_END_ALLOW_THREADS
;
6437 } Py_INCREF(Py_None
);
6438 _resultobj
= Py_None
;
6442 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6443 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6444 PyObject
* _resultobj
;
6450 PyObject
* _argo0
= 0;
6451 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6464 wxPy_BEGIN_ALLOW_THREADS
;
6465 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6467 wxPy_END_ALLOW_THREADS
;
6468 } Py_INCREF(Py_None
);
6469 _resultobj
= Py_None
;
6473 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6474 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6475 PyObject
* _resultobj
;
6478 PyObject
* _argo0
= 0;
6479 PyObject
* _argo1
= 0;
6480 char *_kwnames
[] = { "self","colourMap", NULL
};
6483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6493 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6494 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6500 wxPy_BEGIN_ALLOW_THREADS
;
6501 wxDC_SetPalette(_arg0
,*_arg1
);
6503 wxPy_END_ALLOW_THREADS
;
6504 } Py_INCREF(Py_None
);
6505 _resultobj
= Py_None
;
6509 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6510 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6511 PyObject
* _resultobj
;
6514 PyObject
* _argo0
= 0;
6515 PyObject
* _argo1
= 0;
6516 char *_kwnames
[] = { "self","brush", NULL
};
6519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6529 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6530 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6536 wxPy_BEGIN_ALLOW_THREADS
;
6537 wxDC_SetBrush(_arg0
,*_arg1
);
6539 wxPy_END_ALLOW_THREADS
;
6540 } Py_INCREF(Py_None
);
6541 _resultobj
= Py_None
;
6545 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6546 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6547 PyObject
* _resultobj
;
6550 PyObject
* _argo0
= 0;
6551 PyObject
* _argo1
= 0;
6552 char *_kwnames
[] = { "self","font", NULL
};
6555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6565 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6566 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6572 wxPy_BEGIN_ALLOW_THREADS
;
6573 wxDC_SetFont(_arg0
,*_arg1
);
6575 wxPy_END_ALLOW_THREADS
;
6576 } Py_INCREF(Py_None
);
6577 _resultobj
= Py_None
;
6581 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
6582 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6583 PyObject
* _resultobj
;
6586 PyObject
* _argo0
= 0;
6587 char *_kwnames
[] = { "self","function", NULL
};
6590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
6593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6600 wxPy_BEGIN_ALLOW_THREADS
;
6601 wxDC_SetLogicalFunction(_arg0
,_arg1
);
6603 wxPy_END_ALLOW_THREADS
;
6604 } Py_INCREF(Py_None
);
6605 _resultobj
= Py_None
;
6609 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6610 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6611 PyObject
* _resultobj
;
6615 PyObject
* _argo0
= 0;
6616 char *_kwnames
[] = { "self","x","y", NULL
};
6619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6629 wxPy_BEGIN_ALLOW_THREADS
;
6630 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
6632 wxPy_END_ALLOW_THREADS
;
6633 } Py_INCREF(Py_None
);
6634 _resultobj
= Py_None
;
6638 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
6639 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6640 PyObject
* _resultobj
;
6643 PyObject
* _argo0
= 0;
6644 char *_kwnames
[] = { "self","mode", NULL
};
6647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
6650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6657 wxPy_BEGIN_ALLOW_THREADS
;
6658 wxDC_SetMapMode(_arg0
,_arg1
);
6660 wxPy_END_ALLOW_THREADS
;
6661 } Py_INCREF(Py_None
);
6662 _resultobj
= Py_None
;
6666 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
6667 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6668 PyObject
* _resultobj
;
6671 PyObject
* _argo0
= 0;
6673 char *_kwnames
[] = { "self","optimize", NULL
};
6676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
6679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6685 _arg1
= (bool ) tempbool1
;
6687 wxPy_BEGIN_ALLOW_THREADS
;
6688 wxDC_SetOptimization(_arg0
,_arg1
);
6690 wxPy_END_ALLOW_THREADS
;
6691 } Py_INCREF(Py_None
);
6692 _resultobj
= Py_None
;
6696 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
6697 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6698 PyObject
* _resultobj
;
6701 PyObject
* _argo0
= 0;
6702 PyObject
* _argo1
= 0;
6703 char *_kwnames
[] = { "self","pen", NULL
};
6706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
6709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
6716 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6717 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
6723 wxPy_BEGIN_ALLOW_THREADS
;
6724 wxDC_SetPen(_arg0
,*_arg1
);
6726 wxPy_END_ALLOW_THREADS
;
6727 } Py_INCREF(Py_None
);
6728 _resultobj
= Py_None
;
6732 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
6733 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6734 PyObject
* _resultobj
;
6737 PyObject
* _argo0
= 0;
6739 PyObject
* _obj1
= 0;
6740 char *_kwnames
[] = { "self","colour", NULL
};
6743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
6746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
6754 if (! wxColour_helper(_obj1
, &_arg1
))
6758 wxPy_BEGIN_ALLOW_THREADS
;
6759 wxDC_SetTextBackground(_arg0
,*_arg1
);
6761 wxPy_END_ALLOW_THREADS
;
6762 } Py_INCREF(Py_None
);
6763 _resultobj
= Py_None
;
6767 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
6768 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6769 PyObject
* _resultobj
;
6772 PyObject
* _argo0
= 0;
6774 PyObject
* _obj1
= 0;
6775 char *_kwnames
[] = { "self","colour", NULL
};
6778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
6781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
6789 if (! wxColour_helper(_obj1
, &_arg1
))
6793 wxPy_BEGIN_ALLOW_THREADS
;
6794 wxDC_SetTextForeground(_arg0
,*_arg1
);
6796 wxPy_END_ALLOW_THREADS
;
6797 } Py_INCREF(Py_None
);
6798 _resultobj
= Py_None
;
6802 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
6803 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6804 PyObject
* _resultobj
;
6808 PyObject
* _argo0
= 0;
6809 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
6812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
6822 wxPy_BEGIN_ALLOW_THREADS
;
6823 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
6825 wxPy_END_ALLOW_THREADS
;
6826 } Py_INCREF(Py_None
);
6827 _resultobj
= Py_None
;
6831 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
6832 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6833 PyObject
* _resultobj
;
6837 PyObject
* _argo0
= 0;
6838 PyObject
* _obj1
= 0;
6839 char *_kwnames
[] = { "self","message", NULL
};
6842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
6845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
6852 #if PYTHON_API_VERSION >= 1009
6853 char* tmpPtr
; int tmpSize
;
6854 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6855 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6858 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6860 _arg1
= new wxString(tmpPtr
, tmpSize
);
6862 if (!PyString_Check(_obj1
)) {
6863 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6866 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6870 wxPy_BEGIN_ALLOW_THREADS
;
6871 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
6873 wxPy_END_ALLOW_THREADS
;
6874 } _resultobj
= Py_BuildValue("i",_result
);
6882 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
6883 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6884 PyObject
* _resultobj
;
6886 PyObject
* _argo0
= 0;
6887 char *_kwnames
[] = { "self", NULL
};
6890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
6893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
6900 wxPy_BEGIN_ALLOW_THREADS
;
6901 wxDC_StartPage(_arg0
);
6903 wxPy_END_ALLOW_THREADS
;
6904 } Py_INCREF(Py_None
);
6905 _resultobj
= Py_None
;
6909 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6910 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6911 PyObject
* _resultobj
;
6916 int _arg4
= (int ) FALSE
;
6917 PyObject
* _argo0
= 0;
6918 PyObject
* _argo1
= 0;
6919 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
6922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
6925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
6932 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6933 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
6939 wxPy_BEGIN_ALLOW_THREADS
;
6940 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6942 wxPy_END_ALLOW_THREADS
;
6943 } Py_INCREF(Py_None
);
6944 _resultobj
= Py_None
;
6948 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
6949 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6950 PyObject
* _resultobj
;
6953 PyObject
* _argo0
= 0;
6954 char *_kwnames
[] = { "self", NULL
};
6957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
6960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
6967 wxPy_BEGIN_ALLOW_THREADS
;
6968 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
6970 wxPy_END_ALLOW_THREADS
;
6971 } _resultobj
= Py_BuildValue("i",_result
);
6975 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
6976 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6977 PyObject
* _resultobj
;
6980 PyObject
* _argo0
= 0;
6981 char *_kwnames
[] = { "self", NULL
};
6984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
6987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
6994 wxPy_BEGIN_ALLOW_THREADS
;
6995 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
6997 wxPy_END_ALLOW_THREADS
;
6998 } _resultobj
= Py_BuildValue("i",_result
);
7002 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7003 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7004 PyObject
* _resultobj
;
7007 PyObject
* _argo0
= 0;
7008 char *_kwnames
[] = { "self", NULL
};
7011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7021 wxPy_BEGIN_ALLOW_THREADS
;
7022 _result
= (int )wxDC_GetDepth(_arg0
);
7024 wxPy_END_ALLOW_THREADS
;
7025 } _resultobj
= Py_BuildValue("i",_result
);
7029 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7030 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7031 PyObject
* _resultobj
;
7034 PyObject
* _argo0
= 0;
7035 char *_kwnames
[] = { "self", NULL
};
7039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7049 wxPy_BEGIN_ALLOW_THREADS
;
7050 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7052 wxPy_END_ALLOW_THREADS
;
7053 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7054 _resultobj
= Py_BuildValue("s",_ptemp
);
7058 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7059 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7060 PyObject
* _resultobj
;
7066 PyObject
* _argo0
= 0;
7067 char *_kwnames
[] = { "self", NULL
};
7076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7086 wxPy_BEGIN_ALLOW_THREADS
;
7087 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7089 wxPy_END_ALLOW_THREADS
;
7090 } Py_INCREF(Py_None
);
7091 _resultobj
= Py_None
;
7094 o
= PyInt_FromLong((long) (*_arg1
));
7095 _resultobj
= t_output_helper(_resultobj
, o
);
7099 o
= PyInt_FromLong((long) (*_arg2
));
7100 _resultobj
= t_output_helper(_resultobj
, o
);
7105 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7106 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7107 PyObject
* _resultobj
;
7111 PyObject
* _argo0
= 0;
7112 char *_kwnames
[] = { "self","x","y", NULL
};
7115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7125 wxPy_BEGIN_ALLOW_THREADS
;
7126 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7128 wxPy_END_ALLOW_THREADS
;
7129 } Py_INCREF(Py_None
);
7130 _resultobj
= Py_None
;
7134 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7135 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7136 PyObject
* _resultobj
;
7142 PyObject
* _argo0
= 0;
7143 char *_kwnames
[] = { "self", NULL
};
7152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7162 wxPy_BEGIN_ALLOW_THREADS
;
7163 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7165 wxPy_END_ALLOW_THREADS
;
7166 } Py_INCREF(Py_None
);
7167 _resultobj
= Py_None
;
7170 o
= PyInt_FromLong((long) (*_arg1
));
7171 _resultobj
= t_output_helper(_resultobj
, o
);
7175 o
= PyInt_FromLong((long) (*_arg2
));
7176 _resultobj
= t_output_helper(_resultobj
, o
);
7181 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7182 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7183 PyObject
* _resultobj
;
7187 PyObject
* _argo0
= 0;
7190 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7202 _arg1
= (bool ) tempbool1
;
7203 _arg2
= (bool ) tempbool2
;
7205 wxPy_BEGIN_ALLOW_THREADS
;
7206 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7208 wxPy_END_ALLOW_THREADS
;
7209 } Py_INCREF(Py_None
);
7210 _resultobj
= Py_None
;
7214 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7215 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7216 PyObject
* _resultobj
;
7220 PyObject
* _argo0
= 0;
7221 char *_kwnames
[] = { "self","x","y", NULL
};
7224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7234 wxPy_BEGIN_ALLOW_THREADS
;
7235 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7237 wxPy_END_ALLOW_THREADS
;
7238 } Py_INCREF(Py_None
);
7239 _resultobj
= Py_None
;
7243 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7244 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7245 PyObject
* _resultobj
;
7247 PyObject
* _argo0
= 0;
7248 char *_kwnames
[] = { "self", NULL
};
7251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7261 wxPy_BEGIN_ALLOW_THREADS
;
7262 wxDC_ResetBoundingBox(_arg0
);
7264 wxPy_END_ALLOW_THREADS
;
7265 } Py_INCREF(Py_None
);
7266 _resultobj
= Py_None
;
7270 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7273 src
= (wxMemoryDC
*) ptr
;
7274 dest
= (wxDC
*) src
;
7275 return (void *) dest
;
7278 #define new_wxMemoryDC() (new wxMemoryDC())
7279 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7280 PyObject
* _resultobj
;
7281 wxMemoryDC
* _result
;
7282 char *_kwnames
[] = { NULL
};
7286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7289 wxPy_BEGIN_ALLOW_THREADS
;
7290 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7292 wxPy_END_ALLOW_THREADS
;
7294 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7295 _resultobj
= Py_BuildValue("s",_ptemp
);
7298 _resultobj
= Py_None
;
7303 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7304 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7305 PyObject
* _resultobj
;
7308 PyObject
* _argo0
= 0;
7309 PyObject
* _argo1
= 0;
7310 char *_kwnames
[] = { "self","bitmap", NULL
};
7313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7323 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7324 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7330 wxPy_BEGIN_ALLOW_THREADS
;
7331 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7333 wxPy_END_ALLOW_THREADS
;
7334 } Py_INCREF(Py_None
);
7335 _resultobj
= Py_None
;
7339 static void *SwigwxScreenDCTowxDC(void *ptr
) {
7342 src
= (wxScreenDC
*) ptr
;
7343 dest
= (wxDC
*) src
;
7344 return (void *) dest
;
7347 #define new_wxScreenDC() (new wxScreenDC())
7348 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7349 PyObject
* _resultobj
;
7350 wxScreenDC
* _result
;
7351 char *_kwnames
[] = { NULL
};
7355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
7358 wxPy_BEGIN_ALLOW_THREADS
;
7359 _result
= (wxScreenDC
*)new_wxScreenDC();
7361 wxPy_END_ALLOW_THREADS
;
7363 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
7364 _resultobj
= Py_BuildValue("s",_ptemp
);
7367 _resultobj
= Py_None
;
7372 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7373 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7374 PyObject
* _resultobj
;
7378 PyObject
* _argo0
= 0;
7379 PyObject
* _argo1
= 0;
7380 char *_kwnames
[] = { "self","window", NULL
};
7383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
7386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7393 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7394 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7400 wxPy_BEGIN_ALLOW_THREADS
;
7401 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
7403 wxPy_END_ALLOW_THREADS
;
7404 } _resultobj
= Py_BuildValue("i",_result
);
7408 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7409 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7410 PyObject
* _resultobj
;
7413 wxRect
* _arg1
= (wxRect
*) NULL
;
7414 PyObject
* _argo0
= 0;
7416 PyObject
* _obj1
= 0;
7417 char *_kwnames
[] = { "self","rect", NULL
};
7420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
7423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7432 if (! wxRect_helper(_obj1
, &_arg1
))
7436 wxPy_BEGIN_ALLOW_THREADS
;
7437 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
7439 wxPy_END_ALLOW_THREADS
;
7440 } _resultobj
= Py_BuildValue("i",_result
);
7444 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7445 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7446 PyObject
* _resultobj
;
7449 PyObject
* _argo0
= 0;
7450 char *_kwnames
[] = { "self", NULL
};
7453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
7456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7463 wxPy_BEGIN_ALLOW_THREADS
;
7464 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
7466 wxPy_END_ALLOW_THREADS
;
7467 } _resultobj
= Py_BuildValue("i",_result
);
7471 static void *SwigwxClientDCTowxDC(void *ptr
) {
7474 src
= (wxClientDC
*) ptr
;
7475 dest
= (wxDC
*) src
;
7476 return (void *) dest
;
7479 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7480 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7481 PyObject
* _resultobj
;
7482 wxClientDC
* _result
;
7484 PyObject
* _argo0
= 0;
7485 char *_kwnames
[] = { "win", NULL
};
7489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
7492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
7499 wxPy_BEGIN_ALLOW_THREADS
;
7500 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
7502 wxPy_END_ALLOW_THREADS
;
7504 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
7505 _resultobj
= Py_BuildValue("s",_ptemp
);
7508 _resultobj
= Py_None
;
7513 static void *SwigwxPaintDCTowxDC(void *ptr
) {
7516 src
= (wxPaintDC
*) ptr
;
7517 dest
= (wxDC
*) src
;
7518 return (void *) dest
;
7521 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
7522 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7523 PyObject
* _resultobj
;
7524 wxPaintDC
* _result
;
7526 PyObject
* _argo0
= 0;
7527 char *_kwnames
[] = { "win", NULL
};
7531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
7534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
7541 wxPy_BEGIN_ALLOW_THREADS
;
7542 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
7544 wxPy_END_ALLOW_THREADS
;
7546 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
7547 _resultobj
= Py_BuildValue("s",_ptemp
);
7550 _resultobj
= Py_None
;
7555 static void *SwigwxWindowDCTowxDC(void *ptr
) {
7558 src
= (wxWindowDC
*) ptr
;
7559 dest
= (wxDC
*) src
;
7560 return (void *) dest
;
7563 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
7564 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7565 PyObject
* _resultobj
;
7566 wxWindowDC
* _result
;
7568 PyObject
* _argo0
= 0;
7569 char *_kwnames
[] = { "win", NULL
};
7573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
7576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
7583 wxPy_BEGIN_ALLOW_THREADS
;
7584 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
7586 wxPy_END_ALLOW_THREADS
;
7588 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
7589 _resultobj
= Py_BuildValue("s",_ptemp
);
7592 _resultobj
= Py_None
;
7597 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
7598 wxPostScriptDC
*src
;
7600 src
= (wxPostScriptDC
*) ptr
;
7601 dest
= (wxDC
*) src
;
7602 return (void *) dest
;
7605 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
7606 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7607 PyObject
* _resultobj
;
7608 wxPostScriptDC
* _result
;
7610 bool _arg1
= (bool ) TRUE
;
7611 wxWindow
* _arg2
= (wxWindow
*) NULL
;
7612 PyObject
* _obj0
= 0;
7613 int tempbool1
= (int) TRUE
;
7614 PyObject
* _argo2
= 0;
7615 char *_kwnames
[] = { "output","interactive","win", NULL
};
7619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
7622 #if PYTHON_API_VERSION >= 1009
7623 char* tmpPtr
; int tmpSize
;
7624 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
7625 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
7628 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
7630 _arg0
= new wxString(tmpPtr
, tmpSize
);
7632 if (!PyString_Check(_obj0
)) {
7633 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7636 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
7639 _arg1
= (bool ) tempbool1
;
7641 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7642 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
7643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
7648 wxPy_BEGIN_ALLOW_THREADS
;
7649 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
7651 wxPy_END_ALLOW_THREADS
;
7653 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
7654 _resultobj
= Py_BuildValue("s",_ptemp
);
7657 _resultobj
= Py_None
;
7666 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7667 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7668 PyObject
* _resultobj
;
7669 wxPalette
* _result
;
7674 PyObject
* _obj1
= 0;
7675 PyObject
* _obj2
= 0;
7676 PyObject
* _obj3
= 0;
7677 char *_kwnames
[] = { "choices","choices","choices", NULL
};
7681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
7684 _arg1
= byte_LIST_helper(_obj1
);
7685 if (_arg1
== NULL
) {
7690 _arg2
= byte_LIST_helper(_obj2
);
7691 if (_arg2
== NULL
) {
7697 _arg3
= byte_LIST_helper(_obj3
);
7698 if (_arg3
== NULL
) {
7704 _arg0
= PyList_Size(_obj1
);
7711 wxPy_BEGIN_ALLOW_THREADS
;
7712 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
7714 wxPy_END_ALLOW_THREADS
;
7716 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
7717 _resultobj
= Py_BuildValue("s",_ptemp
);
7720 _resultobj
= Py_None
;
7734 #define delete_wxPalette(_swigobj) (delete _swigobj)
7735 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7736 PyObject
* _resultobj
;
7738 PyObject
* _argo0
= 0;
7739 char *_kwnames
[] = { "self", NULL
};
7742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
7745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
7752 wxPy_BEGIN_ALLOW_THREADS
;
7753 delete_wxPalette(_arg0
);
7755 wxPy_END_ALLOW_THREADS
;
7756 } Py_INCREF(Py_None
);
7757 _resultobj
= Py_None
;
7761 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
7762 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7763 PyObject
* _resultobj
;
7769 PyObject
* _argo0
= 0;
7770 char *_kwnames
[] = { "self","red","green","blue", NULL
};
7773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
7776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
7783 wxPy_BEGIN_ALLOW_THREADS
;
7784 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
7786 wxPy_END_ALLOW_THREADS
;
7787 } _resultobj
= Py_BuildValue("i",_result
);
7791 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7792 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7793 PyObject
* _resultobj
;
7800 PyObject
* _argo0
= 0;
7801 PyObject
* _argo2
= 0;
7802 PyObject
* _argo3
= 0;
7803 PyObject
* _argo4
= 0;
7804 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
7807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
7810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
7817 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7818 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
7819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
7824 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7825 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
7826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
7831 if (_argo4
== Py_None
) { _arg4
= NULL
; }
7832 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
7833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
7838 wxPy_BEGIN_ALLOW_THREADS
;
7839 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7841 wxPy_END_ALLOW_THREADS
;
7842 } _resultobj
= Py_BuildValue("i",_result
);
7846 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
7847 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7848 PyObject
* _resultobj
;
7851 PyObject
* _argo0
= 0;
7852 char *_kwnames
[] = { "self", NULL
};
7855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
7858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
7865 wxPy_BEGIN_ALLOW_THREADS
;
7866 _result
= (bool )wxPalette_Ok(_arg0
);
7868 wxPy_END_ALLOW_THREADS
;
7869 } _resultobj
= Py_BuildValue("i",_result
);
7873 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7874 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7875 PyObject
* _resultobj
;
7876 wxImageList
* _result
;
7879 int _arg2
= (int ) TRUE
;
7880 int _arg3
= (int ) 1;
7881 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
7885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
7888 wxPy_BEGIN_ALLOW_THREADS
;
7889 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
7891 wxPy_END_ALLOW_THREADS
;
7893 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
7894 _resultobj
= Py_BuildValue("s",_ptemp
);
7897 _resultobj
= Py_None
;
7902 #define delete_wxImageList(_swigobj) (delete _swigobj)
7903 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7904 PyObject
* _resultobj
;
7905 wxImageList
* _arg0
;
7906 PyObject
* _argo0
= 0;
7907 char *_kwnames
[] = { "self", NULL
};
7910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
7913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
7920 wxPy_BEGIN_ALLOW_THREADS
;
7921 delete_wxImageList(_arg0
);
7923 wxPy_END_ALLOW_THREADS
;
7924 } Py_INCREF(Py_None
);
7925 _resultobj
= Py_None
;
7929 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7930 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7931 PyObject
* _resultobj
;
7933 wxImageList
* _arg0
;
7935 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
7936 PyObject
* _argo0
= 0;
7937 PyObject
* _argo1
= 0;
7938 PyObject
* _argo2
= 0;
7939 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
7942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
7945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
7952 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7953 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
7959 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7960 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
7961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
7966 wxPy_BEGIN_ALLOW_THREADS
;
7967 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
7969 wxPy_END_ALLOW_THREADS
;
7970 } _resultobj
= Py_BuildValue("i",_result
);
7974 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7975 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7976 PyObject
* _resultobj
;
7978 wxImageList
* _arg0
;
7981 PyObject
* _argo0
= 0;
7982 PyObject
* _argo1
= 0;
7984 PyObject
* _obj2
= 0;
7985 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
7988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
7991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
7998 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7999 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8006 if (! wxColour_helper(_obj2
, &_arg2
))
8010 wxPy_BEGIN_ALLOW_THREADS
;
8011 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8013 wxPy_END_ALLOW_THREADS
;
8014 } _resultobj
= Py_BuildValue("i",_result
);
8018 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8019 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8020 PyObject
* _resultobj
;
8022 wxImageList
* _arg0
;
8024 PyObject
* _argo0
= 0;
8025 PyObject
* _argo1
= 0;
8026 char *_kwnames
[] = { "self","icon", NULL
};
8029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8039 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8040 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8046 wxPy_BEGIN_ALLOW_THREADS
;
8047 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8049 wxPy_END_ALLOW_THREADS
;
8050 } _resultobj
= Py_BuildValue("i",_result
);
8054 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8055 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8056 PyObject
* _resultobj
;
8058 wxImageList
* _arg0
;
8061 PyObject
* _argo0
= 0;
8062 PyObject
* _argo2
= 0;
8063 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8076 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8077 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8083 wxPy_BEGIN_ALLOW_THREADS
;
8084 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8086 wxPy_END_ALLOW_THREADS
;
8087 } _resultobj
= Py_BuildValue("i",_result
);
8091 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8092 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8093 PyObject
* _resultobj
;
8095 wxImageList
* _arg0
;
8100 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8101 bool _arg6
= (bool ) FALSE
;
8102 PyObject
* _argo0
= 0;
8103 PyObject
* _argo2
= 0;
8104 int tempbool6
= (int) FALSE
;
8105 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8118 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8119 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8124 _arg6
= (bool ) tempbool6
;
8126 wxPy_BEGIN_ALLOW_THREADS
;
8127 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8129 wxPy_END_ALLOW_THREADS
;
8130 } _resultobj
= Py_BuildValue("i",_result
);
8134 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8135 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8136 PyObject
* _resultobj
;
8138 wxImageList
* _arg0
;
8139 PyObject
* _argo0
= 0;
8140 char *_kwnames
[] = { "self", NULL
};
8143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8153 wxPy_BEGIN_ALLOW_THREADS
;
8154 _result
= (int )wxImageList_GetImageCount(_arg0
);
8156 wxPy_END_ALLOW_THREADS
;
8157 } _resultobj
= Py_BuildValue("i",_result
);
8161 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8162 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8163 PyObject
* _resultobj
;
8165 wxImageList
* _arg0
;
8167 PyObject
* _argo0
= 0;
8168 char *_kwnames
[] = { "self","index", NULL
};
8171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8181 wxPy_BEGIN_ALLOW_THREADS
;
8182 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8184 wxPy_END_ALLOW_THREADS
;
8185 } _resultobj
= Py_BuildValue("i",_result
);
8189 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8190 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8191 PyObject
* _resultobj
;
8193 wxImageList
* _arg0
;
8194 PyObject
* _argo0
= 0;
8195 char *_kwnames
[] = { "self", NULL
};
8198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8208 wxPy_BEGIN_ALLOW_THREADS
;
8209 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8211 wxPy_END_ALLOW_THREADS
;
8212 } _resultobj
= Py_BuildValue("i",_result
);
8216 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8217 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8218 PyObject
* _resultobj
;
8219 wxImageList
* _arg0
;
8225 PyObject
* _argo0
= 0;
8226 char *_kwnames
[] = { "self","index", NULL
};
8235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8245 wxPy_BEGIN_ALLOW_THREADS
;
8246 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8248 wxPy_END_ALLOW_THREADS
;
8249 } Py_INCREF(Py_None
);
8250 _resultobj
= Py_None
;
8253 o
= PyInt_FromLong((long) (*_arg2
));
8254 _resultobj
= t_output_helper(_resultobj
, o
);
8258 o
= PyInt_FromLong((long) (*_arg3
));
8259 _resultobj
= t_output_helper(_resultobj
, o
);
8264 static PyMethodDef gdicMethods
[] = {
8265 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
8266 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
8267 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
8268 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
8269 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
8270 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
8271 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
8272 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
8273 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
8274 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
8275 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
8276 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8277 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
8278 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
8279 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
8280 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
8281 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
8282 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
8283 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
8284 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
8285 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
8286 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
8287 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
8288 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
8289 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
8290 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
8291 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
8292 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
8293 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
8294 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8295 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8296 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8297 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
8298 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8299 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8300 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8301 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8302 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
8303 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
8304 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
8305 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
8306 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
8307 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
8308 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
8309 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
8310 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
8311 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
8312 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
8313 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
8314 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
8315 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
8316 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
8317 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
8318 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8319 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8320 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
8321 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
8322 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
8323 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
8324 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
8325 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
8326 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
8327 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
8328 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
8329 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
8330 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8331 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8332 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
8333 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
8334 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
8335 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
8336 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
8337 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
8338 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
8339 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
8340 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
8341 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
8342 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
8343 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
8344 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
8345 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
8346 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
8347 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
8348 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
8349 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
8350 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
8351 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
8352 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
8353 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
8354 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
8355 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
8356 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
8357 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
8358 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
8359 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
8360 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
8361 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
8362 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
8363 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
8364 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
8365 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
8366 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
8367 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
8368 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
8369 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
8370 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
8371 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
8372 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
8373 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
8374 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
8375 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
8376 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
8377 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
8378 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
8379 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8380 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8381 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
8382 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8383 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8384 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8385 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
8386 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
8387 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
8388 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
8389 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
8390 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
8391 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
8392 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
8393 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8394 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8395 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
8396 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
8397 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
8398 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8399 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8400 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8401 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
8402 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
8403 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
8404 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
8405 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
8406 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
8407 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
8408 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
8409 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
8410 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
8411 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8412 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
8413 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
8414 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
8415 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
8416 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
8417 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
8418 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
8419 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
8420 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
8421 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
8422 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
8423 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8424 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
8425 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
8426 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8427 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
8428 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
8429 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
8430 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8431 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
8432 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
8433 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8434 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
8435 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
8436 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
8437 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8438 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
8439 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
8440 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8441 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
8442 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8443 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8444 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8445 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8446 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8447 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8448 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8449 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8450 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
8451 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
8452 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
8453 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
8454 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
8455 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8456 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8457 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8458 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8459 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8460 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
8461 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8462 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8463 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
8464 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
8465 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
8466 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
8467 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
8468 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8469 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8470 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
8471 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
8472 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8473 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
8474 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
8475 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
8476 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
8477 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
8478 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
8479 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
8480 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8487 * This table is used by the pointer type-checker
8489 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
8490 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
8491 { "_signed_long","_long",0},
8492 { "_wxPrintQuality","_wxCoord",0},
8493 { "_wxPrintQuality","_int",0},
8494 { "_wxPrintQuality","_signed_int",0},
8495 { "_wxPrintQuality","_unsigned_int",0},
8496 { "_wxPrintQuality","_wxWindowID",0},
8497 { "_wxPrintQuality","_uint",0},
8498 { "_wxPrintQuality","_EBool",0},
8499 { "_wxPrintQuality","_size_t",0},
8500 { "_wxPrintQuality","_time_t",0},
8501 { "_class_wxRegionIterator","_wxRegionIterator",0},
8502 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
8503 { "_wxCursor","_class_wxCursor",0},
8504 { "_wxMask","_class_wxMask",0},
8505 { "_wxPen","_class_wxPen",0},
8506 { "_byte","_unsigned_char",0},
8507 { "_wxColourDatabase","_class_wxColourDatabase",0},
8508 { "_long","_unsigned_long",0},
8509 { "_long","_signed_long",0},
8510 { "_wxImageList","_class_wxImageList",0},
8511 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
8512 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8513 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8514 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
8515 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
8516 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
8517 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
8518 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
8519 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
8520 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
8521 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
8522 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8523 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8524 { "_wxDC","_class_wxDC",0},
8525 { "_size_t","_wxCoord",0},
8526 { "_size_t","_wxPrintQuality",0},
8527 { "_size_t","_time_t",0},
8528 { "_size_t","_unsigned_int",0},
8529 { "_size_t","_int",0},
8530 { "_size_t","_wxWindowID",0},
8531 { "_size_t","_uint",0},
8532 { "_class_wxRealPoint","_wxRealPoint",0},
8533 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
8534 { "_class_wxMask","_wxMask",0},
8535 { "_wxColour","_class_wxColour",0},
8536 { "_wxBrush","_class_wxBrush",0},
8537 { "_uint","_wxCoord",0},
8538 { "_uint","_wxPrintQuality",0},
8539 { "_uint","_time_t",0},
8540 { "_uint","_size_t",0},
8541 { "_uint","_unsigned_int",0},
8542 { "_uint","_int",0},
8543 { "_uint","_wxWindowID",0},
8544 { "_wxChar","_char",0},
8545 { "_wxRect","_class_wxRect",0},
8546 { "_wxPoint","_class_wxPoint",0},
8547 { "_char","_wxChar",0},
8548 { "_wxBitmap","_class_wxBitmap",0},
8549 { "_wxPenList","_class_wxPenList",0},
8550 { "_wxWindowDC","_class_wxWindowDC",0},
8551 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
8552 { "_class_wxColourDatabase","_wxColourDatabase",0},
8553 { "_EBool","_wxCoord",0},
8554 { "_EBool","_wxPrintQuality",0},
8555 { "_EBool","_signed_int",0},
8556 { "_EBool","_int",0},
8557 { "_EBool","_wxWindowID",0},
8558 { "_class_wxRegion","_wxRegion",0},
8559 { "_wxFont","_class_wxFont",0},
8560 { "_unsigned_long","_long",0},
8561 { "_class_wxRect","_wxRect",0},
8562 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8563 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
8564 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
8565 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
8566 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
8567 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
8568 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
8569 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
8570 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
8571 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
8572 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8573 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
8574 { "_class_wxDC","_wxDC",0},
8575 { "_class_wxBrushList","_wxBrushList",0},
8576 { "_class_wxPenList","_wxPenList",0},
8577 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
8578 { "_signed_int","_wxCoord",0},
8579 { "_signed_int","_wxPrintQuality",0},
8580 { "_signed_int","_EBool",0},
8581 { "_signed_int","_wxWindowID",0},
8582 { "_signed_int","_int",0},
8583 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
8584 { "_wxScreenDC","_class_wxScreenDC",0},
8585 { "_WXTYPE","_short",0},
8586 { "_WXTYPE","_signed_short",0},
8587 { "_WXTYPE","_unsigned_short",0},
8588 { "_class_wxBrush","_wxBrush",0},
8589 { "_unsigned_short","_WXTYPE",0},
8590 { "_unsigned_short","_short",0},
8591 { "_class_wxFont","_wxFont",0},
8592 { "_wxBusyInfo","_class_wxBusyInfo",0},
8593 { "_wxFontList","_class_wxFontList",0},
8594 { "_wxClientDC","_class_wxClientDC",0},
8595 { "_class_wxPoint","_wxPoint",0},
8596 { "_wxRealPoint","_class_wxRealPoint",0},
8597 { "_signed_short","_WXTYPE",0},
8598 { "_signed_short","_short",0},
8599 { "_wxMemoryDC","_class_wxMemoryDC",0},
8600 { "_wxPaintDC","_class_wxPaintDC",0},
8601 { "_class_wxWindowDC","_wxWindowDC",0},
8602 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
8603 { "_class_wxCursor","_wxCursor",0},
8604 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
8605 { "_unsigned_char","_byte",0},
8606 { "_unsigned_int","_wxCoord",0},
8607 { "_unsigned_int","_wxPrintQuality",0},
8608 { "_unsigned_int","_time_t",0},
8609 { "_unsigned_int","_size_t",0},
8610 { "_unsigned_int","_uint",0},
8611 { "_unsigned_int","_wxWindowID",0},
8612 { "_unsigned_int","_int",0},
8613 { "_wxIcon","_class_wxIcon",0},
8614 { "_class_wxPen","_wxPen",0},
8615 { "_short","_WXTYPE",0},
8616 { "_short","_unsigned_short",0},
8617 { "_short","_signed_short",0},
8618 { "_class_wxImageList","_wxImageList",0},
8619 { "_wxWindowID","_wxCoord",0},
8620 { "_wxWindowID","_wxPrintQuality",0},
8621 { "_wxWindowID","_time_t",0},
8622 { "_wxWindowID","_size_t",0},
8623 { "_wxWindowID","_EBool",0},
8624 { "_wxWindowID","_uint",0},
8625 { "_wxWindowID","_int",0},
8626 { "_wxWindowID","_signed_int",0},
8627 { "_wxWindowID","_unsigned_int",0},
8628 { "_int","_wxCoord",0},
8629 { "_int","_wxPrintQuality",0},
8630 { "_int","_time_t",0},
8631 { "_int","_size_t",0},
8632 { "_int","_EBool",0},
8633 { "_int","_uint",0},
8634 { "_int","_wxWindowID",0},
8635 { "_int","_unsigned_int",0},
8636 { "_int","_signed_int",0},
8637 { "_time_t","_wxCoord",0},
8638 { "_time_t","_wxPrintQuality",0},
8639 { "_time_t","_unsigned_int",0},
8640 { "_time_t","_int",0},
8641 { "_time_t","_wxWindowID",0},
8642 { "_time_t","_uint",0},
8643 { "_time_t","_size_t",0},
8644 { "_wxSize","_class_wxSize",0},
8645 { "_wxRegionIterator","_class_wxRegionIterator",0},
8646 { "_class_wxPaintDC","_wxPaintDC",0},
8647 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
8648 { "_class_wxIcon","_wxIcon",0},
8649 { "_class_wxColour","_wxColour",0},
8650 { "_class_wxScreenDC","_wxScreenDC",0},
8651 { "_wxPalette","_class_wxPalette",0},
8652 { "_wxCoord","_int",0},
8653 { "_wxCoord","_signed_int",0},
8654 { "_wxCoord","_unsigned_int",0},
8655 { "_wxCoord","_wxWindowID",0},
8656 { "_wxCoord","_uint",0},
8657 { "_wxCoord","_EBool",0},
8658 { "_wxCoord","_size_t",0},
8659 { "_wxCoord","_time_t",0},
8660 { "_wxCoord","_wxPrintQuality",0},
8661 { "_wxRegion","_class_wxRegion",0},
8662 { "_class_wxBusyInfo","_wxBusyInfo",0},
8663 { "_class_wxFontList","_wxFontList",0},
8664 { "_class_wxClientDC","_wxClientDC",0},
8665 { "_wxBrushList","_class_wxBrushList",0},
8666 { "_class_wxSize","_wxSize",0},
8667 { "_class_wxBitmap","_wxBitmap",0},
8668 { "_class_wxMemoryDC","_wxMemoryDC",0},
8669 { "_class_wxPalette","_wxPalette",0},
8672 static PyObject
*SWIG_globals
;
8676 SWIGEXPORT(void) initgdic() {
8678 SWIG_globals
= SWIG_newvarlink();
8679 m
= Py_InitModule("gdic", gdicMethods
);
8680 d
= PyModule_GetDict(m
);
8681 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
8682 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
8683 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
8684 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
8685 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
8686 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
8687 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
8688 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
8689 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
8690 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
8691 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
8692 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
8693 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
8694 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
8695 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
8696 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
8697 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
8698 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
8699 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
8700 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
8701 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
8702 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
8703 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
8704 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
8705 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
8706 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
8707 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
8708 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
8709 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
8710 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
8711 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
8712 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
8713 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
8714 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
8715 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
8716 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
8717 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
8718 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
8719 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
8720 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
8721 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
8722 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
8723 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
8724 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
8725 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
8726 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
8727 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
8728 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
8729 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
8730 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
8731 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
8732 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
8733 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
8734 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
8735 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
8736 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
8737 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
8738 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
8739 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
8740 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
8741 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
8742 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
8743 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
8744 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
8745 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
8746 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
8747 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
8748 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
8749 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
8750 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
8751 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
8752 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
8753 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
8754 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
8755 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
8756 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
8757 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
8758 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
8759 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
8760 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
8761 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
8762 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
8763 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
8766 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
8767 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);