2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
65 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyList_Check(target
)) {
75 target
= PyList_New(0);
76 PyList_Append(target
, o2
);
79 PyList_Append(target
,o
);
85 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
91 } else if (target
== Py_None
) {
95 if (!PyTuple_Check(target
)) {
97 target
= PyTuple_New(1);
98 PyTuple_SetItem(target
, 0, o2
);
101 PyTuple_SetItem(o3
, 0, o
);
104 target
= PySequence_Concat(o2
, o3
);
111 static char* wxStringErrorMsg
= "string type is required for parameter";
113 static wxString
wxPyEmptyStr("");
114 // Alternate 'constructor'
115 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
116 return new wxBitmap(width
, height
, depth
);
120 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
121 int width
, int height
, int depth
= 1) {
122 if (! PyString_Check(data
)) {
123 PyErr_SetString(PyExc_TypeError
, "Expected string object");
127 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
131 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
132 return new wxMask(bitmap
, colour
);
134 // Alternate 'constructor'
135 wxCursor
* wxPyStockCursor(int id
) {
136 return new wxCursor(id
);
139 wxFontEncoding
wxFont_GetDefaultEncoding() {
140 return wxFont::GetDefaultEncoding();
143 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
144 wxFont::SetDefaultEncoding(encoding
);
146 // Alternate 'constructor'
147 wxColour
* wxNamedColour(const wxString
& colorName
) {
148 return new wxColour(colorName
);
150 // Alternate 'constructor'
151 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
152 return new wxMemoryDC(oldDC
);
156 extern wxFont
* wxNORMAL_FONT
;
157 extern wxFont
* wxSMALL_FONT
;
158 extern wxFont
* wxITALIC_FONT
;
159 extern wxFont
* wxSWISS_FONT
;
160 extern wxPen
* wxRED_PEN
;
161 extern wxPen
* wxCYAN_PEN
;
162 extern wxPen
* wxGREEN_PEN
;
163 extern wxPen
* wxBLACK_PEN
;
164 extern wxPen
* wxWHITE_PEN
;
165 extern wxPen
* wxTRANSPARENT_PEN
;
166 extern wxPen
* wxBLACK_DASHED_PEN
;
167 extern wxPen
* wxGREY_PEN
;
168 extern wxPen
* wxMEDIUM_GREY_PEN
;
169 extern wxPen
* wxLIGHT_GREY_PEN
;
170 extern wxBrush
* wxBLUE_BRUSH
;
171 extern wxBrush
* wxGREEN_BRUSH
;
172 extern wxBrush
* wxWHITE_BRUSH
;
173 extern wxBrush
* wxBLACK_BRUSH
;
174 extern wxBrush
* wxTRANSPARENT_BRUSH
;
175 extern wxBrush
* wxCYAN_BRUSH
;
176 extern wxBrush
* wxRED_BRUSH
;
177 extern wxBrush
* wxGREY_BRUSH
;
178 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
179 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
180 extern wxColour
* wxBLACK
;
181 extern wxColour
* wxWHITE
;
182 extern wxColour
* wxRED
;
183 extern wxColour
* wxBLUE
;
184 extern wxColour
* wxGREEN
;
185 extern wxColour
* wxCYAN
;
186 extern wxColour
* wxLIGHT_GREY
;
187 extern wxCursor
* wxSTANDARD_CURSOR
;
188 extern wxCursor
* wxHOURGLASS_CURSOR
;
189 extern wxCursor
* wxCROSS_CURSOR
;
190 extern wxBitmap wxNullBitmap
;
191 extern wxIcon wxNullIcon
;
192 extern wxCursor wxNullCursor
;
193 extern wxPen wxNullPen
;
194 extern wxBrush wxNullBrush
;
195 extern wxPalette wxNullPalette
;
196 extern wxFont wxNullFont
;
197 extern wxColour wxNullColour
;
198 extern wxFontList
* wxTheFontList
;
199 extern wxPenList
* wxThePenList
;
200 extern wxBrushlist
* wxTheBrushList
;
201 extern wxColourDatabase
* wxTheColourDatabase
;
207 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
208 PyObject
* _resultobj
;
212 int _arg2
= (int ) -1;
213 char *_kwnames
[] = { "width","height","depth", NULL
};
217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
220 wxPy_BEGIN_ALLOW_THREADS
;
221 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
223 wxPy_END_ALLOW_THREADS
;
225 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
226 _resultobj
= Py_BuildValue("s",_ptemp
);
229 _resultobj
= Py_None
;
234 static PyObject
*_wrap_wxBitmapFromData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
235 PyObject
* _resultobj
;
241 int _arg4
= (int ) 1;
242 PyObject
* _obj0
= 0;
243 char *_kwnames
[] = { "data","type","width","height","depth", NULL
};
247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olii|i:wxBitmapFromData",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
253 wxPy_BEGIN_ALLOW_THREADS
;
254 _result
= (wxBitmap
*)wxBitmapFromData(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
256 wxPy_END_ALLOW_THREADS
;
258 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
259 _resultobj
= Py_BuildValue("s",_ptemp
);
262 _resultobj
= Py_None
;
267 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
268 PyObject
* _resultobj
;
272 PyObject
* _argo0
= 0;
274 PyObject
* _obj1
= 0;
275 char *_kwnames
[] = { "bitmap","colour", NULL
};
279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
290 if (! wxColour_helper(_obj1
, &_arg1
))
294 wxPy_BEGIN_ALLOW_THREADS
;
295 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
297 wxPy_END_ALLOW_THREADS
;
299 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
300 _resultobj
= Py_BuildValue("s",_ptemp
);
303 _resultobj
= Py_None
;
308 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
309 PyObject
* _resultobj
;
312 char *_kwnames
[] = { "id", NULL
};
316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
319 wxPy_BEGIN_ALLOW_THREADS
;
320 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
322 wxPy_END_ALLOW_THREADS
;
324 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
325 _resultobj
= Py_BuildValue("s",_ptemp
);
328 _resultobj
= Py_None
;
333 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
334 PyObject
* _resultobj
;
335 wxFontEncoding _result
;
336 char *_kwnames
[] = { NULL
};
339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
342 wxPy_BEGIN_ALLOW_THREADS
;
343 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
345 wxPy_END_ALLOW_THREADS
;
346 } _resultobj
= Py_BuildValue("i",_result
);
350 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
351 PyObject
* _resultobj
;
352 wxFontEncoding _arg0
;
353 char *_kwnames
[] = { "encoding", NULL
};
356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
359 wxPy_BEGIN_ALLOW_THREADS
;
360 wxFont_SetDefaultEncoding(_arg0
);
362 wxPy_END_ALLOW_THREADS
;
363 } Py_INCREF(Py_None
);
364 _resultobj
= Py_None
;
368 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
369 PyObject
* _resultobj
;
372 PyObject
* _obj0
= 0;
373 char *_kwnames
[] = { "colorName", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
380 #if PYTHON_API_VERSION >= 1009
381 char* tmpPtr
; int tmpSize
;
382 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
383 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
386 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
388 _arg0
= new wxString(tmpPtr
, tmpSize
);
390 if (!PyString_Check(_obj0
)) {
391 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
394 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
398 wxPy_BEGIN_ALLOW_THREADS
;
399 _result
= (wxColour
*)wxNamedColour(*_arg0
);
401 wxPy_END_ALLOW_THREADS
;
403 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
404 _resultobj
= Py_BuildValue("s",_ptemp
);
407 _resultobj
= Py_None
;
416 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
417 PyObject
* _resultobj
;
418 wxMemoryDC
* _result
;
420 PyObject
* _argo0
= 0;
421 char *_kwnames
[] = { "oldDC", NULL
};
425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
435 wxPy_BEGIN_ALLOW_THREADS
;
436 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
438 wxPy_END_ALLOW_THREADS
;
440 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
441 _resultobj
= Py_BuildValue("s",_ptemp
);
444 _resultobj
= Py_None
;
449 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
451 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
455 static PyObject
*_wrap_wxNORMAL_FONT_get() {
459 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
460 pyobj
= PyString_FromString(ptemp
);
464 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
466 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
470 static PyObject
*_wrap_wxSMALL_FONT_get() {
474 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
475 pyobj
= PyString_FromString(ptemp
);
479 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
481 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
485 static PyObject
*_wrap_wxITALIC_FONT_get() {
489 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
490 pyobj
= PyString_FromString(ptemp
);
494 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
496 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
500 static PyObject
*_wrap_wxSWISS_FONT_get() {
504 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
505 pyobj
= PyString_FromString(ptemp
);
509 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
511 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
515 static PyObject
*_wrap_wxRED_PEN_get() {
519 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
520 pyobj
= PyString_FromString(ptemp
);
524 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
526 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
530 static PyObject
*_wrap_wxCYAN_PEN_get() {
534 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
535 pyobj
= PyString_FromString(ptemp
);
539 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
541 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
545 static PyObject
*_wrap_wxGREEN_PEN_get() {
549 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
550 pyobj
= PyString_FromString(ptemp
);
554 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
556 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
560 static PyObject
*_wrap_wxBLACK_PEN_get() {
564 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
565 pyobj
= PyString_FromString(ptemp
);
569 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
571 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
575 static PyObject
*_wrap_wxWHITE_PEN_get() {
579 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
580 pyobj
= PyString_FromString(ptemp
);
584 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
586 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
590 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
594 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
595 pyobj
= PyString_FromString(ptemp
);
599 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
601 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
605 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
609 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
610 pyobj
= PyString_FromString(ptemp
);
614 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
616 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
620 static PyObject
*_wrap_wxGREY_PEN_get() {
624 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
625 pyobj
= PyString_FromString(ptemp
);
629 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
631 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
635 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
639 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
640 pyobj
= PyString_FromString(ptemp
);
644 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
646 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
650 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
654 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
655 pyobj
= PyString_FromString(ptemp
);
659 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
661 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
665 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
669 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
670 pyobj
= PyString_FromString(ptemp
);
674 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
676 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
680 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
684 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
685 pyobj
= PyString_FromString(ptemp
);
689 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
691 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
695 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
699 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
700 pyobj
= PyString_FromString(ptemp
);
704 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
706 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
710 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
714 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
715 pyobj
= PyString_FromString(ptemp
);
719 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
721 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
725 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
729 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
730 pyobj
= PyString_FromString(ptemp
);
734 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
736 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
740 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
744 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
745 pyobj
= PyString_FromString(ptemp
);
749 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
751 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
755 static PyObject
*_wrap_wxRED_BRUSH_get() {
759 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
760 pyobj
= PyString_FromString(ptemp
);
764 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
766 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
770 static PyObject
*_wrap_wxGREY_BRUSH_get() {
774 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
775 pyobj
= PyString_FromString(ptemp
);
779 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
781 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
785 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
789 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
790 pyobj
= PyString_FromString(ptemp
);
794 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
796 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
800 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
804 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
805 pyobj
= PyString_FromString(ptemp
);
809 static int _wrap_wxBLACK_set(PyObject
*val
) {
811 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
815 static PyObject
*_wrap_wxBLACK_get() {
819 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
820 pyobj
= PyString_FromString(ptemp
);
824 static int _wrap_wxWHITE_set(PyObject
*val
) {
826 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
830 static PyObject
*_wrap_wxWHITE_get() {
834 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
835 pyobj
= PyString_FromString(ptemp
);
839 static int _wrap_wxRED_set(PyObject
*val
) {
841 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
845 static PyObject
*_wrap_wxRED_get() {
849 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
850 pyobj
= PyString_FromString(ptemp
);
854 static int _wrap_wxBLUE_set(PyObject
*val
) {
856 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
860 static PyObject
*_wrap_wxBLUE_get() {
864 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
865 pyobj
= PyString_FromString(ptemp
);
869 static int _wrap_wxGREEN_set(PyObject
*val
) {
871 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
875 static PyObject
*_wrap_wxGREEN_get() {
879 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
880 pyobj
= PyString_FromString(ptemp
);
884 static int _wrap_wxCYAN_set(PyObject
*val
) {
886 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
890 static PyObject
*_wrap_wxCYAN_get() {
894 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
895 pyobj
= PyString_FromString(ptemp
);
899 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
901 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
905 static PyObject
*_wrap_wxLIGHT_GREY_get() {
909 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
910 pyobj
= PyString_FromString(ptemp
);
914 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
916 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
920 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
924 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
925 pyobj
= PyString_FromString(ptemp
);
929 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
931 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
935 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
939 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
940 pyobj
= PyString_FromString(ptemp
);
944 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
946 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
950 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
954 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
955 pyobj
= PyString_FromString(ptemp
);
959 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
961 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
965 static PyObject
*_wrap_wxNullBitmap_get() {
969 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
970 pyobj
= PyString_FromString(ptemp
);
974 static int _wrap_wxNullIcon_set(PyObject
*val
) {
976 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
980 static PyObject
*_wrap_wxNullIcon_get() {
984 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
985 pyobj
= PyString_FromString(ptemp
);
989 static int _wrap_wxNullCursor_set(PyObject
*val
) {
991 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
995 static PyObject
*_wrap_wxNullCursor_get() {
999 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1000 pyobj
= PyString_FromString(ptemp
);
1004 static int _wrap_wxNullPen_set(PyObject
*val
) {
1006 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1010 static PyObject
*_wrap_wxNullPen_get() {
1014 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1015 pyobj
= PyString_FromString(ptemp
);
1019 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1021 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1025 static PyObject
*_wrap_wxNullBrush_get() {
1029 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1030 pyobj
= PyString_FromString(ptemp
);
1034 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1036 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1040 static PyObject
*_wrap_wxNullPalette_get() {
1044 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1045 pyobj
= PyString_FromString(ptemp
);
1049 static int _wrap_wxNullFont_set(PyObject
*val
) {
1051 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1055 static PyObject
*_wrap_wxNullFont_get() {
1059 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1060 pyobj
= PyString_FromString(ptemp
);
1064 static int _wrap_wxNullColour_set(PyObject
*val
) {
1066 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1070 static PyObject
*_wrap_wxNullColour_get() {
1074 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1075 pyobj
= PyString_FromString(ptemp
);
1079 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1081 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1085 static PyObject
*_wrap_wxTheFontList_get() {
1089 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1090 pyobj
= PyString_FromString(ptemp
);
1094 static int _wrap_wxThePenList_set(PyObject
*val
) {
1096 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1100 static PyObject
*_wrap_wxThePenList_get() {
1104 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1105 pyobj
= PyString_FromString(ptemp
);
1109 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1111 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1115 static PyObject
*_wrap_wxTheBrushList_get() {
1119 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushlist_p");
1120 pyobj
= PyString_FromString(ptemp
);
1124 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1126 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1130 static PyObject
*_wrap_wxTheColourDatabase_get() {
1134 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1135 pyobj
= PyString_FromString(ptemp
);
1139 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1140 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1141 PyObject
* _resultobj
;
1145 PyObject
* _obj0
= 0;
1146 char *_kwnames
[] = { "name","type", NULL
};
1150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1153 #if PYTHON_API_VERSION >= 1009
1154 char* tmpPtr
; int tmpSize
;
1155 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1156 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1159 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1161 _arg0
= new wxString(tmpPtr
, tmpSize
);
1163 if (!PyString_Check(_obj0
)) {
1164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1167 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1171 wxPy_BEGIN_ALLOW_THREADS
;
1172 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1174 wxPy_END_ALLOW_THREADS
;
1176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1177 _resultobj
= Py_BuildValue("s",_ptemp
);
1180 _resultobj
= Py_None
;
1189 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1190 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1191 PyObject
* _resultobj
;
1193 PyObject
* _argo0
= 0;
1194 char *_kwnames
[] = { "self", NULL
};
1197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1207 wxPy_BEGIN_ALLOW_THREADS
;
1208 delete_wxBitmap(_arg0
);
1210 wxPy_END_ALLOW_THREADS
;
1211 } Py_INCREF(Py_None
);
1212 _resultobj
= Py_None
;
1216 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1217 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1218 PyObject
* _resultobj
;
1219 wxPalette
* _result
;
1221 PyObject
* _argo0
= 0;
1222 char *_kwnames
[] = { "self", NULL
};
1226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1236 wxPy_BEGIN_ALLOW_THREADS
;
1237 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1239 wxPy_END_ALLOW_THREADS
;
1241 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1242 _resultobj
= Py_BuildValue("s",_ptemp
);
1245 _resultobj
= Py_None
;
1250 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1251 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1252 PyObject
* _resultobj
;
1255 PyObject
* _argo0
= 0;
1256 char *_kwnames
[] = { "self", NULL
};
1260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1270 wxPy_BEGIN_ALLOW_THREADS
;
1271 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1273 wxPy_END_ALLOW_THREADS
;
1275 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1276 _resultobj
= Py_BuildValue("s",_ptemp
);
1279 _resultobj
= Py_None
;
1284 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1285 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1286 PyObject
* _resultobj
;
1291 PyObject
* _argo0
= 0;
1292 PyObject
* _obj1
= 0;
1293 char *_kwnames
[] = { "self","name","flags", NULL
};
1296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1306 #if PYTHON_API_VERSION >= 1009
1307 char* tmpPtr
; int tmpSize
;
1308 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1309 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1312 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1314 _arg1
= new wxString(tmpPtr
, tmpSize
);
1316 if (!PyString_Check(_obj1
)) {
1317 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1320 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1324 wxPy_BEGIN_ALLOW_THREADS
;
1325 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1327 wxPy_END_ALLOW_THREADS
;
1328 } _resultobj
= Py_BuildValue("i",_result
);
1336 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1337 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1338 PyObject
* _resultobj
;
1343 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1344 PyObject
* _argo0
= 0;
1345 PyObject
* _obj1
= 0;
1346 PyObject
* _argo3
= 0;
1347 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1360 #if PYTHON_API_VERSION >= 1009
1361 char* tmpPtr
; int tmpSize
;
1362 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1363 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1366 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1368 _arg1
= new wxString(tmpPtr
, tmpSize
);
1370 if (!PyString_Check(_obj1
)) {
1371 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1374 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1378 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1379 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1385 wxPy_BEGIN_ALLOW_THREADS
;
1386 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1388 wxPy_END_ALLOW_THREADS
;
1389 } _resultobj
= Py_BuildValue("i",_result
);
1397 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1398 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1399 PyObject
* _resultobj
;
1402 PyObject
* _argo0
= 0;
1403 PyObject
* _argo1
= 0;
1404 char *_kwnames
[] = { "self","mask", NULL
};
1407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1417 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1418 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1424 wxPy_BEGIN_ALLOW_THREADS
;
1425 wxBitmap_SetMask(_arg0
,_arg1
);
1427 wxPy_END_ALLOW_THREADS
;
1428 } Py_INCREF(Py_None
);
1429 _resultobj
= Py_None
;
1433 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1434 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1435 PyObject
* _resultobj
;
1438 PyObject
* _argo0
= 0;
1439 PyObject
* _argo1
= 0;
1440 char *_kwnames
[] = { "self","palette", NULL
};
1443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1453 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1454 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1460 wxPy_BEGIN_ALLOW_THREADS
;
1461 wxBitmap_SetPalette(_arg0
,*_arg1
);
1463 wxPy_END_ALLOW_THREADS
;
1464 } Py_INCREF(Py_None
);
1465 _resultobj
= Py_None
;
1469 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1470 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
* _resultobj
;
1474 PyObject
* _argo0
= 0;
1475 char *_kwnames
[] = { "self", NULL
};
1478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1488 wxPy_BEGIN_ALLOW_THREADS
;
1489 _result
= (long )wxBitmap_GetHandle(_arg0
);
1491 wxPy_END_ALLOW_THREADS
;
1492 } _resultobj
= Py_BuildValue("l",_result
);
1496 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1497 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1498 PyObject
* _resultobj
;
1501 PyObject
* _argo0
= 0;
1502 char *_kwnames
[] = { "self","handle", NULL
};
1505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1515 wxPy_BEGIN_ALLOW_THREADS
;
1516 wxBitmap_SetHandle(_arg0
,_arg1
);
1518 wxPy_END_ALLOW_THREADS
;
1519 } Py_INCREF(Py_None
);
1520 _resultobj
= Py_None
;
1524 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1525 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1526 PyObject
* _resultobj
;
1529 PyObject
* _argo0
= 0;
1530 char *_kwnames
[] = { "self", NULL
};
1533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1543 wxPy_BEGIN_ALLOW_THREADS
;
1544 _result
= (bool )wxBitmap_Ok(_arg0
);
1546 wxPy_END_ALLOW_THREADS
;
1547 } _resultobj
= Py_BuildValue("i",_result
);
1551 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1552 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1553 PyObject
* _resultobj
;
1556 PyObject
* _argo0
= 0;
1557 char *_kwnames
[] = { "self", NULL
};
1560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1570 wxPy_BEGIN_ALLOW_THREADS
;
1571 _result
= (int )wxBitmap_GetWidth(_arg0
);
1573 wxPy_END_ALLOW_THREADS
;
1574 } _resultobj
= Py_BuildValue("i",_result
);
1578 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1579 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1580 PyObject
* _resultobj
;
1583 PyObject
* _argo0
= 0;
1584 char *_kwnames
[] = { "self", NULL
};
1587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1597 wxPy_BEGIN_ALLOW_THREADS
;
1598 _result
= (int )wxBitmap_GetHeight(_arg0
);
1600 wxPy_END_ALLOW_THREADS
;
1601 } _resultobj
= Py_BuildValue("i",_result
);
1605 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1606 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1607 PyObject
* _resultobj
;
1610 PyObject
* _argo0
= 0;
1611 char *_kwnames
[] = { "self", NULL
};
1614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1624 wxPy_BEGIN_ALLOW_THREADS
;
1625 _result
= (int )wxBitmap_GetDepth(_arg0
);
1627 wxPy_END_ALLOW_THREADS
;
1628 } _resultobj
= Py_BuildValue("i",_result
);
1632 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1633 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1634 PyObject
* _resultobj
;
1637 PyObject
* _argo0
= 0;
1638 char *_kwnames
[] = { "self","w", NULL
};
1641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1651 wxPy_BEGIN_ALLOW_THREADS
;
1652 wxBitmap_SetWidth(_arg0
,_arg1
);
1654 wxPy_END_ALLOW_THREADS
;
1655 } Py_INCREF(Py_None
);
1656 _resultobj
= Py_None
;
1660 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1661 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1662 PyObject
* _resultobj
;
1665 PyObject
* _argo0
= 0;
1666 char *_kwnames
[] = { "self","h", NULL
};
1669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1679 wxPy_BEGIN_ALLOW_THREADS
;
1680 wxBitmap_SetHeight(_arg0
,_arg1
);
1682 wxPy_END_ALLOW_THREADS
;
1683 } Py_INCREF(Py_None
);
1684 _resultobj
= Py_None
;
1688 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1689 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1690 PyObject
* _resultobj
;
1693 PyObject
* _argo0
= 0;
1694 char *_kwnames
[] = { "self","d", NULL
};
1697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1707 wxPy_BEGIN_ALLOW_THREADS
;
1708 wxBitmap_SetDepth(_arg0
,_arg1
);
1710 wxPy_END_ALLOW_THREADS
;
1711 } Py_INCREF(Py_None
);
1712 _resultobj
= Py_None
;
1716 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
1717 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1718 PyObject
* _resultobj
;
1721 PyObject
* _argo0
= 0;
1723 PyObject
* _obj1
= 0;
1724 char *_kwnames
[] = { "self","size", NULL
};
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
1730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
1738 if (! wxSize_helper(_obj1
, &_arg1
))
1742 wxPy_BEGIN_ALLOW_THREADS
;
1743 wxBitmap_SetSize(_arg0
,*_arg1
);
1745 wxPy_END_ALLOW_THREADS
;
1746 } Py_INCREF(Py_None
);
1747 _resultobj
= Py_None
;
1751 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1752 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1753 PyObject
* _resultobj
;
1757 PyObject
* _argo0
= 0;
1759 PyObject
* _obj1
= 0;
1760 char *_kwnames
[] = { "self","rect", NULL
};
1764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1775 if (! wxRect_helper(_obj1
, &_arg1
))
1779 wxPy_BEGIN_ALLOW_THREADS
;
1780 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1782 wxPy_END_ALLOW_THREADS
;
1783 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1784 _resultobj
= Py_BuildValue("s",_ptemp
);
1788 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1789 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1790 PyObject
* _resultobj
;
1794 PyObject
* _argo0
= 0;
1795 PyObject
* _argo1
= 0;
1796 char *_kwnames
[] = { "self","icon", NULL
};
1799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
1802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
1809 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1810 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
1811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
1816 wxPy_BEGIN_ALLOW_THREADS
;
1817 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
1819 wxPy_END_ALLOW_THREADS
;
1820 } _resultobj
= Py_BuildValue("i",_result
);
1824 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
1825 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1826 PyObject
* _resultobj
;
1830 PyObject
* _argo0
= 0;
1831 PyObject
* _argo1
= 0;
1832 char *_kwnames
[] = { "self","cursor", NULL
};
1835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
1838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
1845 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1846 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
1847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
1852 wxPy_BEGIN_ALLOW_THREADS
;
1853 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
1855 wxPy_END_ALLOW_THREADS
;
1856 } _resultobj
= Py_BuildValue("i",_result
);
1860 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
1861 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1862 PyObject
* _resultobj
;
1865 PyObject
* _argo0
= 0;
1866 char *_kwnames
[] = { "self", NULL
};
1869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
1872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
1879 wxPy_BEGIN_ALLOW_THREADS
;
1880 _result
= (int )wxBitmap_GetQuality(_arg0
);
1882 wxPy_END_ALLOW_THREADS
;
1883 } _resultobj
= Py_BuildValue("i",_result
);
1887 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
1888 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1889 PyObject
* _resultobj
;
1892 PyObject
* _argo0
= 0;
1893 char *_kwnames
[] = { "self","q", NULL
};
1896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
1899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
1906 wxPy_BEGIN_ALLOW_THREADS
;
1907 wxBitmap_SetQuality(_arg0
,_arg1
);
1909 wxPy_END_ALLOW_THREADS
;
1910 } Py_INCREF(Py_None
);
1911 _resultobj
= Py_None
;
1915 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1916 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1917 PyObject
* _resultobj
;
1920 PyObject
* _argo0
= 0;
1921 char *_kwnames
[] = { "bitmap", NULL
};
1925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
1928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1935 wxPy_BEGIN_ALLOW_THREADS
;
1936 _result
= (wxMask
*)new_wxMask(*_arg0
);
1938 wxPy_END_ALLOW_THREADS
;
1940 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1941 _resultobj
= Py_BuildValue("s",_ptemp
);
1944 _resultobj
= Py_None
;
1949 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1950 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1951 PyObject
* _resultobj
;
1955 int _arg2
= (int ) -1;
1956 int _arg3
= (int ) -1;
1957 PyObject
* _obj0
= 0;
1958 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
1962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
1965 #if PYTHON_API_VERSION >= 1009
1966 char* tmpPtr
; int tmpSize
;
1967 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1968 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1971 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1973 _arg0
= new wxString(tmpPtr
, tmpSize
);
1975 if (!PyString_Check(_obj0
)) {
1976 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1979 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1983 wxPy_BEGIN_ALLOW_THREADS
;
1984 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
1986 wxPy_END_ALLOW_THREADS
;
1988 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
1989 _resultobj
= Py_BuildValue("s",_ptemp
);
1992 _resultobj
= Py_None
;
2001 #define delete_wxIcon(_swigobj) (delete _swigobj)
2002 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2003 PyObject
* _resultobj
;
2005 PyObject
* _argo0
= 0;
2006 char *_kwnames
[] = { "self", NULL
};
2009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2019 wxPy_BEGIN_ALLOW_THREADS
;
2020 delete_wxIcon(_arg0
);
2022 wxPy_END_ALLOW_THREADS
;
2023 } Py_INCREF(Py_None
);
2024 _resultobj
= Py_None
;
2028 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2029 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2030 PyObject
* _resultobj
;
2035 PyObject
* _argo0
= 0;
2036 PyObject
* _obj1
= 0;
2037 char *_kwnames
[] = { "self","name","flags", NULL
};
2040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2050 #if PYTHON_API_VERSION >= 1009
2051 char* tmpPtr
; int tmpSize
;
2052 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2053 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2056 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2058 _arg1
= new wxString(tmpPtr
, tmpSize
);
2060 if (!PyString_Check(_obj1
)) {
2061 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2064 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2068 wxPy_BEGIN_ALLOW_THREADS
;
2069 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2071 wxPy_END_ALLOW_THREADS
;
2072 } _resultobj
= Py_BuildValue("i",_result
);
2080 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2081 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2082 PyObject
* _resultobj
;
2085 PyObject
* _argo0
= 0;
2086 char *_kwnames
[] = { "self", NULL
};
2089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2099 wxPy_BEGIN_ALLOW_THREADS
;
2100 _result
= (long )wxIcon_GetHandle(_arg0
);
2102 wxPy_END_ALLOW_THREADS
;
2103 } _resultobj
= Py_BuildValue("l",_result
);
2107 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2108 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2109 PyObject
* _resultobj
;
2112 PyObject
* _argo0
= 0;
2113 char *_kwnames
[] = { "self","handle", NULL
};
2116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2126 wxPy_BEGIN_ALLOW_THREADS
;
2127 wxIcon_SetHandle(_arg0
,_arg1
);
2129 wxPy_END_ALLOW_THREADS
;
2130 } Py_INCREF(Py_None
);
2131 _resultobj
= Py_None
;
2135 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2136 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2137 PyObject
* _resultobj
;
2140 PyObject
* _argo0
= 0;
2141 char *_kwnames
[] = { "self", NULL
};
2144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2154 wxPy_BEGIN_ALLOW_THREADS
;
2155 _result
= (bool )wxIcon_Ok(_arg0
);
2157 wxPy_END_ALLOW_THREADS
;
2158 } _resultobj
= Py_BuildValue("i",_result
);
2162 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2163 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2164 PyObject
* _resultobj
;
2167 PyObject
* _argo0
= 0;
2168 char *_kwnames
[] = { "self", NULL
};
2171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2181 wxPy_BEGIN_ALLOW_THREADS
;
2182 _result
= (int )wxIcon_GetWidth(_arg0
);
2184 wxPy_END_ALLOW_THREADS
;
2185 } _resultobj
= Py_BuildValue("i",_result
);
2189 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2190 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2191 PyObject
* _resultobj
;
2194 PyObject
* _argo0
= 0;
2195 char *_kwnames
[] = { "self", NULL
};
2198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2208 wxPy_BEGIN_ALLOW_THREADS
;
2209 _result
= (int )wxIcon_GetHeight(_arg0
);
2211 wxPy_END_ALLOW_THREADS
;
2212 } _resultobj
= Py_BuildValue("i",_result
);
2216 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2217 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2218 PyObject
* _resultobj
;
2221 PyObject
* _argo0
= 0;
2222 char *_kwnames
[] = { "self", NULL
};
2225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2235 wxPy_BEGIN_ALLOW_THREADS
;
2236 _result
= (int )wxIcon_GetDepth(_arg0
);
2238 wxPy_END_ALLOW_THREADS
;
2239 } _resultobj
= Py_BuildValue("i",_result
);
2243 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2244 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2245 PyObject
* _resultobj
;
2248 PyObject
* _argo0
= 0;
2249 char *_kwnames
[] = { "self","w", NULL
};
2252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2262 wxPy_BEGIN_ALLOW_THREADS
;
2263 wxIcon_SetWidth(_arg0
,_arg1
);
2265 wxPy_END_ALLOW_THREADS
;
2266 } Py_INCREF(Py_None
);
2267 _resultobj
= Py_None
;
2271 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2272 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2273 PyObject
* _resultobj
;
2276 PyObject
* _argo0
= 0;
2277 char *_kwnames
[] = { "self","h", NULL
};
2280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2290 wxPy_BEGIN_ALLOW_THREADS
;
2291 wxIcon_SetHeight(_arg0
,_arg1
);
2293 wxPy_END_ALLOW_THREADS
;
2294 } Py_INCREF(Py_None
);
2295 _resultobj
= Py_None
;
2299 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2300 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2301 PyObject
* _resultobj
;
2304 PyObject
* _argo0
= 0;
2305 char *_kwnames
[] = { "self","d", NULL
};
2308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2318 wxPy_BEGIN_ALLOW_THREADS
;
2319 wxIcon_SetDepth(_arg0
,_arg1
);
2321 wxPy_END_ALLOW_THREADS
;
2322 } Py_INCREF(Py_None
);
2323 _resultobj
= Py_None
;
2327 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2328 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2329 PyObject
* _resultobj
;
2332 PyObject
* _argo0
= 0;
2334 PyObject
* _obj1
= 0;
2335 char *_kwnames
[] = { "self","size", NULL
};
2338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2349 if (! wxSize_helper(_obj1
, &_arg1
))
2353 wxPy_BEGIN_ALLOW_THREADS
;
2354 wxIcon_SetSize(_arg0
,*_arg1
);
2356 wxPy_END_ALLOW_THREADS
;
2357 } Py_INCREF(Py_None
);
2358 _resultobj
= Py_None
;
2362 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2363 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2364 PyObject
* _resultobj
;
2368 int _arg2
= (int ) 0;
2369 int _arg3
= (int ) 0;
2370 PyObject
* _obj0
= 0;
2371 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2378 #if PYTHON_API_VERSION >= 1009
2379 char* tmpPtr
; int tmpSize
;
2380 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2381 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2384 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2386 _arg0
= new wxString(tmpPtr
, tmpSize
);
2388 if (!PyString_Check(_obj0
)) {
2389 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2392 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2396 wxPy_BEGIN_ALLOW_THREADS
;
2397 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
2399 wxPy_END_ALLOW_THREADS
;
2401 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
2402 _resultobj
= Py_BuildValue("s",_ptemp
);
2405 _resultobj
= Py_None
;
2414 #define delete_wxCursor(_swigobj) (delete _swigobj)
2415 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2416 PyObject
* _resultobj
;
2418 PyObject
* _argo0
= 0;
2419 char *_kwnames
[] = { "self", NULL
};
2422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2432 wxPy_BEGIN_ALLOW_THREADS
;
2433 delete_wxCursor(_arg0
);
2435 wxPy_END_ALLOW_THREADS
;
2436 } Py_INCREF(Py_None
);
2437 _resultobj
= Py_None
;
2441 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2442 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2443 PyObject
* _resultobj
;
2446 PyObject
* _argo0
= 0;
2447 char *_kwnames
[] = { "self", NULL
};
2450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
2453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2460 wxPy_BEGIN_ALLOW_THREADS
;
2461 _result
= (long )wxCursor_GetHandle(_arg0
);
2463 wxPy_END_ALLOW_THREADS
;
2464 } _resultobj
= Py_BuildValue("l",_result
);
2468 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2469 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2470 PyObject
* _resultobj
;
2473 PyObject
* _argo0
= 0;
2474 char *_kwnames
[] = { "self","handle", NULL
};
2477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2487 wxPy_BEGIN_ALLOW_THREADS
;
2488 wxCursor_SetHandle(_arg0
,_arg1
);
2490 wxPy_END_ALLOW_THREADS
;
2491 } Py_INCREF(Py_None
);
2492 _resultobj
= Py_None
;
2496 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2497 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2498 PyObject
* _resultobj
;
2501 PyObject
* _argo0
= 0;
2502 char *_kwnames
[] = { "self", NULL
};
2505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2515 wxPy_BEGIN_ALLOW_THREADS
;
2516 _result
= (bool )wxCursor_Ok(_arg0
);
2518 wxPy_END_ALLOW_THREADS
;
2519 } _resultobj
= Py_BuildValue("i",_result
);
2523 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2524 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2525 PyObject
* _resultobj
;
2528 PyObject
* _argo0
= 0;
2529 char *_kwnames
[] = { "self", NULL
};
2532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
2535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2542 wxPy_BEGIN_ALLOW_THREADS
;
2543 _result
= (int )wxCursor_GetWidth(_arg0
);
2545 wxPy_END_ALLOW_THREADS
;
2546 } _resultobj
= Py_BuildValue("i",_result
);
2550 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
2551 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2552 PyObject
* _resultobj
;
2555 PyObject
* _argo0
= 0;
2556 char *_kwnames
[] = { "self", NULL
};
2559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
2562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
2569 wxPy_BEGIN_ALLOW_THREADS
;
2570 _result
= (int )wxCursor_GetHeight(_arg0
);
2572 wxPy_END_ALLOW_THREADS
;
2573 } _resultobj
= Py_BuildValue("i",_result
);
2577 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
2578 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2579 PyObject
* _resultobj
;
2582 PyObject
* _argo0
= 0;
2583 char *_kwnames
[] = { "self", NULL
};
2586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
2589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
2596 wxPy_BEGIN_ALLOW_THREADS
;
2597 _result
= (int )wxCursor_GetDepth(_arg0
);
2599 wxPy_END_ALLOW_THREADS
;
2600 } _resultobj
= Py_BuildValue("i",_result
);
2604 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2605 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2606 PyObject
* _resultobj
;
2609 PyObject
* _argo0
= 0;
2610 char *_kwnames
[] = { "self","w", NULL
};
2613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
2623 wxPy_BEGIN_ALLOW_THREADS
;
2624 wxCursor_SetWidth(_arg0
,_arg1
);
2626 wxPy_END_ALLOW_THREADS
;
2627 } Py_INCREF(Py_None
);
2628 _resultobj
= Py_None
;
2632 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2633 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2634 PyObject
* _resultobj
;
2637 PyObject
* _argo0
= 0;
2638 char *_kwnames
[] = { "self","h", NULL
};
2641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
2651 wxPy_BEGIN_ALLOW_THREADS
;
2652 wxCursor_SetHeight(_arg0
,_arg1
);
2654 wxPy_END_ALLOW_THREADS
;
2655 } Py_INCREF(Py_None
);
2656 _resultobj
= Py_None
;
2660 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2661 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2662 PyObject
* _resultobj
;
2665 PyObject
* _argo0
= 0;
2666 char *_kwnames
[] = { "self","d", NULL
};
2669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
2679 wxPy_BEGIN_ALLOW_THREADS
;
2680 wxCursor_SetDepth(_arg0
,_arg1
);
2682 wxPy_END_ALLOW_THREADS
;
2683 } Py_INCREF(Py_None
);
2684 _resultobj
= Py_None
;
2688 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2689 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2690 PyObject
* _resultobj
;
2693 PyObject
* _argo0
= 0;
2695 PyObject
* _obj1
= 0;
2696 char *_kwnames
[] = { "self","size", NULL
};
2699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
2702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
2710 if (! wxSize_helper(_obj1
, &_arg1
))
2714 wxPy_BEGIN_ALLOW_THREADS
;
2715 wxCursor_SetSize(_arg0
,*_arg1
);
2717 wxPy_END_ALLOW_THREADS
;
2718 } Py_INCREF(Py_None
);
2719 _resultobj
= Py_None
;
2723 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2724 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2725 PyObject
* _resultobj
;
2731 int _arg4
= (int ) FALSE
;
2732 char * _arg5
= (char *) "";
2733 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
2734 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
2738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2741 wxPy_BEGIN_ALLOW_THREADS
;
2742 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2744 wxPy_END_ALLOW_THREADS
;
2746 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2747 _resultobj
= Py_BuildValue("s",_ptemp
);
2750 _resultobj
= Py_None
;
2755 #define delete_wxFont(_swigobj) (delete _swigobj)
2756 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2757 PyObject
* _resultobj
;
2759 PyObject
* _argo0
= 0;
2760 char *_kwnames
[] = { "self", NULL
};
2763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
2766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
2773 wxPy_BEGIN_ALLOW_THREADS
;
2774 delete_wxFont(_arg0
);
2776 wxPy_END_ALLOW_THREADS
;
2777 } Py_INCREF(Py_None
);
2778 _resultobj
= Py_None
;
2782 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2783 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2784 PyObject
* _resultobj
;
2787 PyObject
* _argo0
= 0;
2788 char *_kwnames
[] = { "self", NULL
};
2791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
2794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2801 wxPy_BEGIN_ALLOW_THREADS
;
2802 _result
= (bool )wxFont_Ok(_arg0
);
2804 wxPy_END_ALLOW_THREADS
;
2805 } _resultobj
= Py_BuildValue("i",_result
);
2809 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2810 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2811 PyObject
* _resultobj
;
2814 PyObject
* _argo0
= 0;
2815 char *_kwnames
[] = { "self", NULL
};
2818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
2821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2828 wxPy_BEGIN_ALLOW_THREADS
;
2829 _result
= new wxString (wxFont_GetFaceName(_arg0
));
2831 wxPy_END_ALLOW_THREADS
;
2833 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2841 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2842 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2843 PyObject
* _resultobj
;
2846 PyObject
* _argo0
= 0;
2847 char *_kwnames
[] = { "self", NULL
};
2850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
2853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2860 wxPy_BEGIN_ALLOW_THREADS
;
2861 _result
= (int )wxFont_GetFamily(_arg0
);
2863 wxPy_END_ALLOW_THREADS
;
2864 } _resultobj
= Py_BuildValue("i",_result
);
2868 #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
2869 static PyObject
*_wrap_wxFont_GetFontId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2873 PyObject
* _argo0
= 0;
2874 char *_kwnames
[] = { "self", NULL
};
2877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFontId",_kwnames
,&_argo0
))
2880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
2887 wxPy_BEGIN_ALLOW_THREADS
;
2888 _result
= (int )wxFont_GetFontId(_arg0
);
2890 wxPy_END_ALLOW_THREADS
;
2891 } _resultobj
= Py_BuildValue("i",_result
);
2895 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2896 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2897 PyObject
* _resultobj
;
2900 PyObject
* _argo0
= 0;
2901 char *_kwnames
[] = { "self", NULL
};
2904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
2907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2914 wxPy_BEGIN_ALLOW_THREADS
;
2915 _result
= (int )wxFont_GetPointSize(_arg0
);
2917 wxPy_END_ALLOW_THREADS
;
2918 } _resultobj
= Py_BuildValue("i",_result
);
2922 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2923 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2924 PyObject
* _resultobj
;
2927 PyObject
* _argo0
= 0;
2928 char *_kwnames
[] = { "self", NULL
};
2931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
2934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2941 wxPy_BEGIN_ALLOW_THREADS
;
2942 _result
= (int )wxFont_GetStyle(_arg0
);
2944 wxPy_END_ALLOW_THREADS
;
2945 } _resultobj
= Py_BuildValue("i",_result
);
2949 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2950 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2951 PyObject
* _resultobj
;
2954 PyObject
* _argo0
= 0;
2955 char *_kwnames
[] = { "self", NULL
};
2958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
2961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2968 wxPy_BEGIN_ALLOW_THREADS
;
2969 _result
= (bool )wxFont_GetUnderlined(_arg0
);
2971 wxPy_END_ALLOW_THREADS
;
2972 } _resultobj
= Py_BuildValue("i",_result
);
2976 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2977 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2978 PyObject
* _resultobj
;
2981 PyObject
* _argo0
= 0;
2982 char *_kwnames
[] = { "self", NULL
};
2985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
2988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2995 wxPy_BEGIN_ALLOW_THREADS
;
2996 _result
= (int )wxFont_GetWeight(_arg0
);
2998 wxPy_END_ALLOW_THREADS
;
2999 } _resultobj
= Py_BuildValue("i",_result
);
3003 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3004 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3005 PyObject
* _resultobj
;
3006 wxFontEncoding _result
;
3008 PyObject
* _argo0
= 0;
3009 char *_kwnames
[] = { "self", NULL
};
3012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3022 wxPy_BEGIN_ALLOW_THREADS
;
3023 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3025 wxPy_END_ALLOW_THREADS
;
3026 } _resultobj
= Py_BuildValue("i",_result
);
3030 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3031 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3032 PyObject
* _resultobj
;
3035 PyObject
* _argo0
= 0;
3036 PyObject
* _obj1
= 0;
3037 char *_kwnames
[] = { "self","faceName", NULL
};
3040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
3043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3050 #if PYTHON_API_VERSION >= 1009
3051 char* tmpPtr
; int tmpSize
;
3052 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3053 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3056 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3058 _arg1
= new wxString(tmpPtr
, tmpSize
);
3060 if (!PyString_Check(_obj1
)) {
3061 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3064 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3068 wxPy_BEGIN_ALLOW_THREADS
;
3069 wxFont_SetFaceName(_arg0
,*_arg1
);
3071 wxPy_END_ALLOW_THREADS
;
3072 } Py_INCREF(Py_None
);
3073 _resultobj
= Py_None
;
3081 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3082 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3083 PyObject
* _resultobj
;
3086 PyObject
* _argo0
= 0;
3087 char *_kwnames
[] = { "self","family", NULL
};
3090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
3093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3100 wxPy_BEGIN_ALLOW_THREADS
;
3101 wxFont_SetFamily(_arg0
,_arg1
);
3103 wxPy_END_ALLOW_THREADS
;
3104 } Py_INCREF(Py_None
);
3105 _resultobj
= Py_None
;
3109 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3110 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3111 PyObject
* _resultobj
;
3114 PyObject
* _argo0
= 0;
3115 char *_kwnames
[] = { "self","pointSize", NULL
};
3118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3128 wxPy_BEGIN_ALLOW_THREADS
;
3129 wxFont_SetPointSize(_arg0
,_arg1
);
3131 wxPy_END_ALLOW_THREADS
;
3132 } Py_INCREF(Py_None
);
3133 _resultobj
= Py_None
;
3137 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3138 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3139 PyObject
* _resultobj
;
3142 PyObject
* _argo0
= 0;
3143 char *_kwnames
[] = { "self","style", NULL
};
3146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3156 wxPy_BEGIN_ALLOW_THREADS
;
3157 wxFont_SetStyle(_arg0
,_arg1
);
3159 wxPy_END_ALLOW_THREADS
;
3160 } Py_INCREF(Py_None
);
3161 _resultobj
= Py_None
;
3165 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3166 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3167 PyObject
* _resultobj
;
3170 PyObject
* _argo0
= 0;
3172 char *_kwnames
[] = { "self","underlined", NULL
};
3175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
3178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3184 _arg1
= (bool ) tempbool1
;
3186 wxPy_BEGIN_ALLOW_THREADS
;
3187 wxFont_SetUnderlined(_arg0
,_arg1
);
3189 wxPy_END_ALLOW_THREADS
;
3190 } Py_INCREF(Py_None
);
3191 _resultobj
= Py_None
;
3195 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3196 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3197 PyObject
* _resultobj
;
3200 PyObject
* _argo0
= 0;
3201 char *_kwnames
[] = { "self","weight", NULL
};
3204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
3207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3214 wxPy_BEGIN_ALLOW_THREADS
;
3215 wxFont_SetWeight(_arg0
,_arg1
);
3217 wxPy_END_ALLOW_THREADS
;
3218 } Py_INCREF(Py_None
);
3219 _resultobj
= Py_None
;
3223 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3224 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3225 PyObject
* _resultobj
;
3227 wxFontEncoding _arg1
;
3228 PyObject
* _argo0
= 0;
3229 char *_kwnames
[] = { "self","encoding", NULL
};
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
3235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3242 wxPy_BEGIN_ALLOW_THREADS
;
3243 wxFont_SetEncoding(_arg0
,_arg1
);
3245 wxPy_END_ALLOW_THREADS
;
3246 } Py_INCREF(Py_None
);
3247 _resultobj
= Py_None
;
3251 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3252 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3253 PyObject
* _resultobj
;
3256 PyObject
* _argo0
= 0;
3257 char *_kwnames
[] = { "self", NULL
};
3260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
3263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3270 wxPy_BEGIN_ALLOW_THREADS
;
3271 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
3273 wxPy_END_ALLOW_THREADS
;
3275 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3283 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3284 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3285 PyObject
* _resultobj
;
3288 PyObject
* _argo0
= 0;
3289 char *_kwnames
[] = { "self", NULL
};
3292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
3295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3302 wxPy_BEGIN_ALLOW_THREADS
;
3303 _result
= new wxString (wxFont_GetStyleString(_arg0
));
3305 wxPy_END_ALLOW_THREADS
;
3307 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3315 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3316 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3317 PyObject
* _resultobj
;
3320 PyObject
* _argo0
= 0;
3321 char *_kwnames
[] = { "self", NULL
};
3324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
3327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3334 wxPy_BEGIN_ALLOW_THREADS
;
3335 _result
= new wxString (wxFont_GetWeightString(_arg0
));
3337 wxPy_END_ALLOW_THREADS
;
3339 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3347 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3348 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3349 PyObject
* _resultobj
;
3352 PyObject
* _argo0
= 0;
3353 PyObject
* _argo1
= 0;
3354 char *_kwnames
[] = { "self","font", NULL
};
3357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
3360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3367 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3368 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3374 wxPy_BEGIN_ALLOW_THREADS
;
3375 wxFontList_AddFont(_arg0
,_arg1
);
3377 wxPy_END_ALLOW_THREADS
;
3378 } Py_INCREF(Py_None
);
3379 _resultobj
= Py_None
;
3383 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3384 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3385 PyObject
* _resultobj
;
3392 bool _arg5
= (bool ) FALSE
;
3393 char * _arg6
= (char *) NULL
;
3394 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3395 PyObject
* _argo0
= 0;
3396 int tempbool5
= (int) FALSE
;
3397 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
3401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
3404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3410 _arg5
= (bool ) tempbool5
;
3412 wxPy_BEGIN_ALLOW_THREADS
;
3413 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3415 wxPy_END_ALLOW_THREADS
;
3417 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3418 _resultobj
= Py_BuildValue("s",_ptemp
);
3421 _resultobj
= Py_None
;
3426 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3427 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3428 PyObject
* _resultobj
;
3431 PyObject
* _argo0
= 0;
3432 PyObject
* _argo1
= 0;
3433 char *_kwnames
[] = { "self","font", NULL
};
3436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
3439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
3441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3446 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3447 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3453 wxPy_BEGIN_ALLOW_THREADS
;
3454 wxFontList_RemoveFont(_arg0
,_arg1
);
3456 wxPy_END_ALLOW_THREADS
;
3457 } Py_INCREF(Py_None
);
3458 _resultobj
= Py_None
;
3462 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3463 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3464 PyObject
* _resultobj
;
3466 unsigned char _arg0
= (unsigned char ) 0;
3467 unsigned char _arg1
= (unsigned char ) 0;
3468 unsigned char _arg2
= (unsigned char ) 0;
3469 char *_kwnames
[] = { "red","green","blue", NULL
};
3473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3476 wxPy_BEGIN_ALLOW_THREADS
;
3477 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3479 wxPy_END_ALLOW_THREADS
;
3481 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3482 _resultobj
= Py_BuildValue("s",_ptemp
);
3485 _resultobj
= Py_None
;
3490 #define delete_wxColour(_swigobj) (delete _swigobj)
3491 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3492 PyObject
* _resultobj
;
3495 PyObject
* _obj0
= 0;
3496 char *_kwnames
[] = { "self", NULL
};
3499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3503 if (! wxColour_helper(_obj0
, &_arg0
))
3507 wxPy_BEGIN_ALLOW_THREADS
;
3508 delete_wxColour(_arg0
);
3510 wxPy_END_ALLOW_THREADS
;
3511 } Py_INCREF(Py_None
);
3512 _resultobj
= Py_None
;
3516 #define wxColour_Red(_swigobj) (_swigobj->Red())
3517 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3518 PyObject
* _resultobj
;
3519 unsigned char _result
;
3522 PyObject
* _obj0
= 0;
3523 char *_kwnames
[] = { "self", NULL
};
3526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3530 if (! wxColour_helper(_obj0
, &_arg0
))
3534 wxPy_BEGIN_ALLOW_THREADS
;
3535 _result
= (unsigned char )wxColour_Red(_arg0
);
3537 wxPy_END_ALLOW_THREADS
;
3538 } _resultobj
= Py_BuildValue("b",_result
);
3542 #define wxColour_Green(_swigobj) (_swigobj->Green())
3543 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3544 PyObject
* _resultobj
;
3545 unsigned char _result
;
3548 PyObject
* _obj0
= 0;
3549 char *_kwnames
[] = { "self", NULL
};
3552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3556 if (! wxColour_helper(_obj0
, &_arg0
))
3560 wxPy_BEGIN_ALLOW_THREADS
;
3561 _result
= (unsigned char )wxColour_Green(_arg0
);
3563 wxPy_END_ALLOW_THREADS
;
3564 } _resultobj
= Py_BuildValue("b",_result
);
3568 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3569 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3570 PyObject
* _resultobj
;
3571 unsigned char _result
;
3574 PyObject
* _obj0
= 0;
3575 char *_kwnames
[] = { "self", NULL
};
3578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3582 if (! wxColour_helper(_obj0
, &_arg0
))
3586 wxPy_BEGIN_ALLOW_THREADS
;
3587 _result
= (unsigned char )wxColour_Blue(_arg0
);
3589 wxPy_END_ALLOW_THREADS
;
3590 } _resultobj
= Py_BuildValue("b",_result
);
3594 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3595 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3596 PyObject
* _resultobj
;
3600 PyObject
* _obj0
= 0;
3601 char *_kwnames
[] = { "self", NULL
};
3604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3608 if (! wxColour_helper(_obj0
, &_arg0
))
3612 wxPy_BEGIN_ALLOW_THREADS
;
3613 _result
= (bool )wxColour_Ok(_arg0
);
3615 wxPy_END_ALLOW_THREADS
;
3616 } _resultobj
= Py_BuildValue("i",_result
);
3620 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3621 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3622 PyObject
* _resultobj
;
3624 unsigned char _arg1
;
3625 unsigned char _arg2
;
3626 unsigned char _arg3
;
3628 PyObject
* _obj0
= 0;
3629 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3636 if (! wxColour_helper(_obj0
, &_arg0
))
3640 wxPy_BEGIN_ALLOW_THREADS
;
3641 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3643 wxPy_END_ALLOW_THREADS
;
3644 } Py_INCREF(Py_None
);
3645 _resultobj
= Py_None
;
3649 static PyObject
* wxColour_Get(wxColour
*self
) {
3650 PyObject
* rv
= PyTuple_New(3);
3651 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
3652 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
3653 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
3656 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3657 PyObject
* _resultobj
;
3661 PyObject
* _obj0
= 0;
3662 char *_kwnames
[] = { "self", NULL
};
3665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3669 if (! wxColour_helper(_obj0
, &_arg0
))
3673 wxPy_BEGIN_ALLOW_THREADS
;
3674 _result
= (PyObject
*)wxColour_Get(_arg0
);
3676 wxPy_END_ALLOW_THREADS
;
3678 _resultobj
= _result
;
3683 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3684 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3685 PyObject
* _resultobj
;
3687 wxColourDatabase
* _arg0
;
3689 PyObject
* _argo0
= 0;
3690 PyObject
* _obj1
= 0;
3691 char *_kwnames
[] = { "self","colour", NULL
};
3695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3705 #if PYTHON_API_VERSION >= 1009
3706 char* tmpPtr
; int tmpSize
;
3707 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3708 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3711 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3713 _arg1
= new wxString(tmpPtr
, tmpSize
);
3715 if (!PyString_Check(_obj1
)) {
3716 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3719 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3723 wxPy_BEGIN_ALLOW_THREADS
;
3724 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3726 wxPy_END_ALLOW_THREADS
;
3728 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3729 _resultobj
= Py_BuildValue("s",_ptemp
);
3732 _resultobj
= Py_None
;
3741 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3742 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3743 PyObject
* _resultobj
;
3745 wxColourDatabase
* _arg0
;
3747 PyObject
* _argo0
= 0;
3749 PyObject
* _obj1
= 0;
3750 char *_kwnames
[] = { "self","colour", NULL
};
3753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3764 if (! wxColour_helper(_obj1
, &_arg1
))
3768 wxPy_BEGIN_ALLOW_THREADS
;
3769 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3771 wxPy_END_ALLOW_THREADS
;
3773 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3781 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3782 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3784 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3785 PyObject
* _resultobj
;
3786 wxColourDatabase
* _arg0
;
3791 PyObject
* _argo0
= 0;
3792 PyObject
* _obj1
= 0;
3793 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3806 #if PYTHON_API_VERSION >= 1009
3807 char* tmpPtr
; int tmpSize
;
3808 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3809 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
3812 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3814 _arg1
= new wxString(tmpPtr
, tmpSize
);
3816 if (!PyString_Check(_obj1
)) {
3817 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3820 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3824 wxPy_BEGIN_ALLOW_THREADS
;
3825 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3827 wxPy_END_ALLOW_THREADS
;
3828 } Py_INCREF(Py_None
);
3829 _resultobj
= Py_None
;
3837 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3838 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3839 PyObject
* _resultobj
;
3842 int _arg1
= (int ) 1;
3843 int _arg2
= (int ) wxSOLID
;
3845 PyObject
* _obj0
= 0;
3846 char *_kwnames
[] = { "colour","width","style", NULL
};
3850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3854 if (! wxColour_helper(_obj0
, &_arg0
))
3858 wxPy_BEGIN_ALLOW_THREADS
;
3859 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3861 wxPy_END_ALLOW_THREADS
;
3863 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3864 _resultobj
= Py_BuildValue("s",_ptemp
);
3867 _resultobj
= Py_None
;
3872 #define delete_wxPen(_swigobj) (delete _swigobj)
3873 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3874 PyObject
* _resultobj
;
3876 PyObject
* _argo0
= 0;
3877 char *_kwnames
[] = { "self", NULL
};
3880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3890 wxPy_BEGIN_ALLOW_THREADS
;
3891 delete_wxPen(_arg0
);
3893 wxPy_END_ALLOW_THREADS
;
3894 } Py_INCREF(Py_None
);
3895 _resultobj
= Py_None
;
3899 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3900 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3901 PyObject
* _resultobj
;
3904 PyObject
* _argo0
= 0;
3905 char *_kwnames
[] = { "self", NULL
};
3908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3918 wxPy_BEGIN_ALLOW_THREADS
;
3919 _result
= (int )wxPen_GetCap(_arg0
);
3921 wxPy_END_ALLOW_THREADS
;
3922 } _resultobj
= Py_BuildValue("i",_result
);
3926 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3927 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3928 PyObject
* _resultobj
;
3931 PyObject
* _argo0
= 0;
3932 char *_kwnames
[] = { "self", NULL
};
3936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3946 wxPy_BEGIN_ALLOW_THREADS
;
3947 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
3948 _result
= (wxColour
*) &_result_ref
;
3950 wxPy_END_ALLOW_THREADS
;
3952 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3953 _resultobj
= Py_BuildValue("s",_ptemp
);
3956 _resultobj
= Py_None
;
3961 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3962 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3963 PyObject
* _resultobj
;
3966 PyObject
* _argo0
= 0;
3967 char *_kwnames
[] = { "self", NULL
};
3970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3980 wxPy_BEGIN_ALLOW_THREADS
;
3981 _result
= (int )wxPen_GetJoin(_arg0
);
3983 wxPy_END_ALLOW_THREADS
;
3984 } _resultobj
= Py_BuildValue("i",_result
);
3988 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3989 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3990 PyObject
* _resultobj
;
3993 PyObject
* _argo0
= 0;
3994 char *_kwnames
[] = { "self", NULL
};
3997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4007 wxPy_BEGIN_ALLOW_THREADS
;
4008 _result
= (int )wxPen_GetStyle(_arg0
);
4010 wxPy_END_ALLOW_THREADS
;
4011 } _resultobj
= Py_BuildValue("i",_result
);
4015 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4016 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4017 PyObject
* _resultobj
;
4020 PyObject
* _argo0
= 0;
4021 char *_kwnames
[] = { "self", NULL
};
4024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4034 wxPy_BEGIN_ALLOW_THREADS
;
4035 _result
= (int )wxPen_GetWidth(_arg0
);
4037 wxPy_END_ALLOW_THREADS
;
4038 } _resultobj
= Py_BuildValue("i",_result
);
4042 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4043 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4044 PyObject
* _resultobj
;
4047 PyObject
* _argo0
= 0;
4048 char *_kwnames
[] = { "self", NULL
};
4051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4061 wxPy_BEGIN_ALLOW_THREADS
;
4062 _result
= (bool )wxPen_Ok(_arg0
);
4064 wxPy_END_ALLOW_THREADS
;
4065 } _resultobj
= Py_BuildValue("i",_result
);
4069 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4070 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4071 PyObject
* _resultobj
;
4074 PyObject
* _argo0
= 0;
4075 char *_kwnames
[] = { "self","cap_style", NULL
};
4078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4088 wxPy_BEGIN_ALLOW_THREADS
;
4089 wxPen_SetCap(_arg0
,_arg1
);
4091 wxPy_END_ALLOW_THREADS
;
4092 } Py_INCREF(Py_None
);
4093 _resultobj
= Py_None
;
4097 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4098 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4099 PyObject
* _resultobj
;
4102 PyObject
* _argo0
= 0;
4104 PyObject
* _obj1
= 0;
4105 char *_kwnames
[] = { "self","colour", NULL
};
4108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4119 if (! wxColour_helper(_obj1
, &_arg1
))
4123 wxPy_BEGIN_ALLOW_THREADS
;
4124 wxPen_SetColour(_arg0
,*_arg1
);
4126 wxPy_END_ALLOW_THREADS
;
4127 } Py_INCREF(Py_None
);
4128 _resultobj
= Py_None
;
4132 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4133 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4134 PyObject
* _resultobj
;
4137 PyObject
* _argo0
= 0;
4138 char *_kwnames
[] = { "self","join_style", NULL
};
4141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4151 wxPy_BEGIN_ALLOW_THREADS
;
4152 wxPen_SetJoin(_arg0
,_arg1
);
4154 wxPy_END_ALLOW_THREADS
;
4155 } Py_INCREF(Py_None
);
4156 _resultobj
= Py_None
;
4160 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4161 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4162 PyObject
* _resultobj
;
4165 PyObject
* _argo0
= 0;
4166 char *_kwnames
[] = { "self","style", NULL
};
4169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4179 wxPy_BEGIN_ALLOW_THREADS
;
4180 wxPen_SetStyle(_arg0
,_arg1
);
4182 wxPy_END_ALLOW_THREADS
;
4183 } Py_INCREF(Py_None
);
4184 _resultobj
= Py_None
;
4188 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4189 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4190 PyObject
* _resultobj
;
4193 PyObject
* _argo0
= 0;
4194 char *_kwnames
[] = { "self","width", NULL
};
4197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4207 wxPy_BEGIN_ALLOW_THREADS
;
4208 wxPen_SetWidth(_arg0
,_arg1
);
4210 wxPy_END_ALLOW_THREADS
;
4211 } Py_INCREF(Py_None
);
4212 _resultobj
= Py_None
;
4216 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4217 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4218 PyObject
* _resultobj
;
4222 PyObject
* _argo0
= 0;
4223 PyObject
* _argo1
= 0;
4224 char *_kwnames
[] = { "self","dashes", NULL
};
4227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
4230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
4239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4244 wxPy_BEGIN_ALLOW_THREADS
;
4245 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
4247 wxPy_END_ALLOW_THREADS
;
4248 } _resultobj
= Py_BuildValue("i",_result
);
4252 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4253 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4254 PyObject
* _resultobj
;
4258 PyObject
* _argo0
= 0;
4259 PyObject
* _obj2
= 0;
4260 char *_kwnames
[] = { "self","choices", NULL
};
4263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4274 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4275 if (_arg2
== NULL
) {
4281 _arg1
= PyList_Size(_obj2
);
4288 wxPy_BEGIN_ALLOW_THREADS
;
4289 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4291 wxPy_END_ALLOW_THREADS
;
4292 } Py_INCREF(Py_None
);
4293 _resultobj
= Py_None
;
4300 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4301 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4302 PyObject
* _resultobj
;
4305 PyObject
* _argo0
= 0;
4306 char *_kwnames
[] = { "self", NULL
};
4310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4320 wxPy_BEGIN_ALLOW_THREADS
;
4321 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4323 wxPy_END_ALLOW_THREADS
;
4325 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4326 _resultobj
= Py_BuildValue("s",_ptemp
);
4329 _resultobj
= Py_None
;
4334 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4335 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4336 PyObject
* _resultobj
;
4339 PyObject
* _argo0
= 0;
4340 PyObject
* _argo1
= 0;
4341 char *_kwnames
[] = { "self","stipple", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4354 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4355 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4361 wxPy_BEGIN_ALLOW_THREADS
;
4362 wxPen_SetStipple(_arg0
,*_arg1
);
4364 wxPy_END_ALLOW_THREADS
;
4365 } Py_INCREF(Py_None
);
4366 _resultobj
= Py_None
;
4370 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4371 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4372 PyObject
* _resultobj
;
4375 PyObject
* _argo0
= 0;
4376 PyObject
* _argo1
= 0;
4377 char *_kwnames
[] = { "self","pen", NULL
};
4380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4390 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4391 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4397 wxPy_BEGIN_ALLOW_THREADS
;
4398 wxPenList_AddPen(_arg0
,_arg1
);
4400 wxPy_END_ALLOW_THREADS
;
4401 } Py_INCREF(Py_None
);
4402 _resultobj
= Py_None
;
4406 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4407 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4408 PyObject
* _resultobj
;
4414 PyObject
* _argo0
= 0;
4416 PyObject
* _obj1
= 0;
4417 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4432 if (! wxColour_helper(_obj1
, &_arg1
))
4436 wxPy_BEGIN_ALLOW_THREADS
;
4437 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4439 wxPy_END_ALLOW_THREADS
;
4441 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4442 _resultobj
= Py_BuildValue("s",_ptemp
);
4445 _resultobj
= Py_None
;
4450 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4451 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4452 PyObject
* _resultobj
;
4455 PyObject
* _argo0
= 0;
4456 PyObject
* _argo1
= 0;
4457 char *_kwnames
[] = { "self","pen", NULL
};
4460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4470 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4471 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4477 wxPy_BEGIN_ALLOW_THREADS
;
4478 wxPenList_RemovePen(_arg0
,_arg1
);
4480 wxPy_END_ALLOW_THREADS
;
4481 } Py_INCREF(Py_None
);
4482 _resultobj
= Py_None
;
4486 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4487 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4488 PyObject
* _resultobj
;
4491 int _arg1
= (int ) wxSOLID
;
4493 PyObject
* _obj0
= 0;
4494 char *_kwnames
[] = { "colour","style", NULL
};
4498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4502 if (! wxColour_helper(_obj0
, &_arg0
))
4506 wxPy_BEGIN_ALLOW_THREADS
;
4507 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4509 wxPy_END_ALLOW_THREADS
;
4511 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4512 _resultobj
= Py_BuildValue("s",_ptemp
);
4515 _resultobj
= Py_None
;
4520 #define delete_wxBrush(_swigobj) (delete _swigobj)
4521 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4522 PyObject
* _resultobj
;
4524 PyObject
* _argo0
= 0;
4525 char *_kwnames
[] = { "self", NULL
};
4528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4538 wxPy_BEGIN_ALLOW_THREADS
;
4539 delete_wxBrush(_arg0
);
4541 wxPy_END_ALLOW_THREADS
;
4542 } Py_INCREF(Py_None
);
4543 _resultobj
= Py_None
;
4547 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4548 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4549 PyObject
* _resultobj
;
4552 PyObject
* _argo0
= 0;
4553 char *_kwnames
[] = { "self", NULL
};
4557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4567 wxPy_BEGIN_ALLOW_THREADS
;
4568 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
4569 _result
= (wxColour
*) &_result_ref
;
4571 wxPy_END_ALLOW_THREADS
;
4573 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4574 _resultobj
= Py_BuildValue("s",_ptemp
);
4577 _resultobj
= Py_None
;
4582 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4583 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4584 PyObject
* _resultobj
;
4587 PyObject
* _argo0
= 0;
4588 char *_kwnames
[] = { "self", NULL
};
4592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4602 wxPy_BEGIN_ALLOW_THREADS
;
4603 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4605 wxPy_END_ALLOW_THREADS
;
4607 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4608 _resultobj
= Py_BuildValue("s",_ptemp
);
4611 _resultobj
= Py_None
;
4616 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4617 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4618 PyObject
* _resultobj
;
4621 PyObject
* _argo0
= 0;
4622 char *_kwnames
[] = { "self", NULL
};
4625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4635 wxPy_BEGIN_ALLOW_THREADS
;
4636 _result
= (int )wxBrush_GetStyle(_arg0
);
4638 wxPy_END_ALLOW_THREADS
;
4639 } _resultobj
= Py_BuildValue("i",_result
);
4643 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4644 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4645 PyObject
* _resultobj
;
4648 PyObject
* _argo0
= 0;
4649 char *_kwnames
[] = { "self", NULL
};
4652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4662 wxPy_BEGIN_ALLOW_THREADS
;
4663 _result
= (bool )wxBrush_Ok(_arg0
);
4665 wxPy_END_ALLOW_THREADS
;
4666 } _resultobj
= Py_BuildValue("i",_result
);
4670 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4671 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4672 PyObject
* _resultobj
;
4675 PyObject
* _argo0
= 0;
4677 PyObject
* _obj1
= 0;
4678 char *_kwnames
[] = { "self","colour", NULL
};
4681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4692 if (! wxColour_helper(_obj1
, &_arg1
))
4696 wxPy_BEGIN_ALLOW_THREADS
;
4697 wxBrush_SetColour(_arg0
,*_arg1
);
4699 wxPy_END_ALLOW_THREADS
;
4700 } Py_INCREF(Py_None
);
4701 _resultobj
= Py_None
;
4705 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4706 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4707 PyObject
* _resultobj
;
4710 PyObject
* _argo0
= 0;
4711 PyObject
* _argo1
= 0;
4712 char *_kwnames
[] = { "self","bitmap", NULL
};
4715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4725 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4726 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4732 wxPy_BEGIN_ALLOW_THREADS
;
4733 wxBrush_SetStipple(_arg0
,*_arg1
);
4735 wxPy_END_ALLOW_THREADS
;
4736 } Py_INCREF(Py_None
);
4737 _resultobj
= Py_None
;
4741 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4742 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4743 PyObject
* _resultobj
;
4746 PyObject
* _argo0
= 0;
4747 char *_kwnames
[] = { "self","style", NULL
};
4750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4760 wxPy_BEGIN_ALLOW_THREADS
;
4761 wxBrush_SetStyle(_arg0
,_arg1
);
4763 wxPy_END_ALLOW_THREADS
;
4764 } Py_INCREF(Py_None
);
4765 _resultobj
= Py_None
;
4769 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4770 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4771 PyObject
* _resultobj
;
4772 wxBrushList
* _arg0
;
4774 PyObject
* _argo0
= 0;
4775 PyObject
* _argo1
= 0;
4776 char *_kwnames
[] = { "self","brush", NULL
};
4779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4789 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4790 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4796 wxPy_BEGIN_ALLOW_THREADS
;
4797 wxBrushList_AddBrush(_arg0
,_arg1
);
4799 wxPy_END_ALLOW_THREADS
;
4800 } Py_INCREF(Py_None
);
4801 _resultobj
= Py_None
;
4805 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4806 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4807 PyObject
* _resultobj
;
4809 wxBrushList
* _arg0
;
4812 PyObject
* _argo0
= 0;
4814 PyObject
* _obj1
= 0;
4815 char *_kwnames
[] = { "self","colour","style", NULL
};
4819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4830 if (! wxColour_helper(_obj1
, &_arg1
))
4834 wxPy_BEGIN_ALLOW_THREADS
;
4835 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4837 wxPy_END_ALLOW_THREADS
;
4839 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4840 _resultobj
= Py_BuildValue("s",_ptemp
);
4843 _resultobj
= Py_None
;
4848 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4849 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4850 PyObject
* _resultobj
;
4851 wxBrushList
* _arg0
;
4853 PyObject
* _argo0
= 0;
4854 PyObject
* _argo1
= 0;
4855 char *_kwnames
[] = { "self","brush", NULL
};
4858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4868 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4869 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4875 wxPy_BEGIN_ALLOW_THREADS
;
4876 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4878 wxPy_END_ALLOW_THREADS
;
4879 } Py_INCREF(Py_None
);
4880 _resultobj
= Py_None
;
4884 #define delete_wxDC(_swigobj) (delete _swigobj)
4885 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4886 PyObject
* _resultobj
;
4888 PyObject
* _argo0
= 0;
4889 char *_kwnames
[] = { "self", NULL
};
4892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4902 wxPy_BEGIN_ALLOW_THREADS
;
4905 wxPy_END_ALLOW_THREADS
;
4906 } Py_INCREF(Py_None
);
4907 _resultobj
= Py_None
;
4911 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4912 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4913 PyObject
* _resultobj
;
4915 PyObject
* _argo0
= 0;
4916 char *_kwnames
[] = { "self", NULL
};
4919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4929 wxPy_BEGIN_ALLOW_THREADS
;
4930 wxDC_BeginDrawing(_arg0
);
4932 wxPy_END_ALLOW_THREADS
;
4933 } Py_INCREF(Py_None
);
4934 _resultobj
= Py_None
;
4938 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4939 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4940 PyObject
* _resultobj
;
4950 int _arg8
= (int ) wxCOPY
;
4951 int _arg9
= (int ) FALSE
;
4952 PyObject
* _argo0
= 0;
4953 PyObject
* _argo5
= 0;
4954 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4967 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4968 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4974 wxPy_BEGIN_ALLOW_THREADS
;
4975 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4977 wxPy_END_ALLOW_THREADS
;
4978 } _resultobj
= Py_BuildValue("i",_result
);
4982 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4983 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4984 PyObject
* _resultobj
;
4986 PyObject
* _argo0
= 0;
4987 char *_kwnames
[] = { "self", NULL
};
4990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5000 wxPy_BEGIN_ALLOW_THREADS
;
5003 wxPy_END_ALLOW_THREADS
;
5004 } Py_INCREF(Py_None
);
5005 _resultobj
= Py_None
;
5009 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5010 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5011 PyObject
* _resultobj
;
5015 PyObject
* _argo0
= 0;
5016 char *_kwnames
[] = { "self","x","y", NULL
};
5019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5029 wxPy_BEGIN_ALLOW_THREADS
;
5030 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5032 wxPy_END_ALLOW_THREADS
;
5033 } Py_INCREF(Py_None
);
5034 _resultobj
= Py_None
;
5038 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5039 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5040 PyObject
* _resultobj
;
5042 PyObject
* _argo0
= 0;
5043 char *_kwnames
[] = { "self", NULL
};
5046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5056 wxPy_BEGIN_ALLOW_THREADS
;
5057 wxDC_DestroyClippingRegion(_arg0
);
5059 wxPy_END_ALLOW_THREADS
;
5060 } Py_INCREF(Py_None
);
5061 _resultobj
= Py_None
;
5065 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5066 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5067 PyObject
* _resultobj
;
5071 PyObject
* _argo0
= 0;
5072 char *_kwnames
[] = { "self","x", NULL
};
5075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5085 wxPy_BEGIN_ALLOW_THREADS
;
5086 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5088 wxPy_END_ALLOW_THREADS
;
5089 } _resultobj
= Py_BuildValue("l",_result
);
5093 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5094 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5095 PyObject
* _resultobj
;
5099 PyObject
* _argo0
= 0;
5100 char *_kwnames
[] = { "self","x", NULL
};
5103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5113 wxPy_BEGIN_ALLOW_THREADS
;
5114 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5116 wxPy_END_ALLOW_THREADS
;
5117 } _resultobj
= Py_BuildValue("l",_result
);
5121 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5122 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5123 PyObject
* _resultobj
;
5127 PyObject
* _argo0
= 0;
5128 char *_kwnames
[] = { "self","y", NULL
};
5131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5141 wxPy_BEGIN_ALLOW_THREADS
;
5142 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5144 wxPy_END_ALLOW_THREADS
;
5145 } _resultobj
= Py_BuildValue("l",_result
);
5149 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5150 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5151 PyObject
* _resultobj
;
5155 PyObject
* _argo0
= 0;
5156 char *_kwnames
[] = { "self","y", NULL
};
5159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5169 wxPy_BEGIN_ALLOW_THREADS
;
5170 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5172 wxPy_END_ALLOW_THREADS
;
5173 } _resultobj
= Py_BuildValue("l",_result
);
5177 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5178 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5179 PyObject
* _resultobj
;
5187 PyObject
* _argo0
= 0;
5188 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5201 wxPy_BEGIN_ALLOW_THREADS
;
5202 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5204 wxPy_END_ALLOW_THREADS
;
5205 } Py_INCREF(Py_None
);
5206 _resultobj
= Py_None
;
5210 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5211 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5212 PyObject
* _resultobj
;
5217 PyObject
* _argo0
= 0;
5218 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5231 wxPy_BEGIN_ALLOW_THREADS
;
5232 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5234 wxPy_END_ALLOW_THREADS
;
5235 } Py_INCREF(Py_None
);
5236 _resultobj
= Py_None
;
5240 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5241 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5248 PyObject
* _argo0
= 0;
5249 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5262 wxPy_BEGIN_ALLOW_THREADS
;
5263 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5265 wxPy_END_ALLOW_THREADS
;
5266 } Py_INCREF(Py_None
);
5267 _resultobj
= Py_None
;
5271 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5272 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5273 PyObject
* _resultobj
;
5281 PyObject
* _argo0
= 0;
5282 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5295 wxPy_BEGIN_ALLOW_THREADS
;
5296 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5298 wxPy_END_ALLOW_THREADS
;
5299 } Py_INCREF(Py_None
);
5300 _resultobj
= Py_None
;
5304 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5305 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5306 PyObject
* _resultobj
;
5311 PyObject
* _argo0
= 0;
5312 PyObject
* _argo1
= 0;
5313 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5326 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5327 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5333 wxPy_BEGIN_ALLOW_THREADS
;
5334 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5336 wxPy_END_ALLOW_THREADS
;
5337 } Py_INCREF(Py_None
);
5338 _resultobj
= Py_None
;
5342 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5343 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5344 PyObject
* _resultobj
;
5350 PyObject
* _argo0
= 0;
5351 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5364 wxPy_BEGIN_ALLOW_THREADS
;
5365 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5367 wxPy_END_ALLOW_THREADS
;
5368 } Py_INCREF(Py_None
);
5369 _resultobj
= Py_None
;
5373 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5374 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5375 PyObject
* _resultobj
;
5379 long _arg3
= (long ) 0;
5380 long _arg4
= (long ) 0;
5381 PyObject
* _argo0
= 0;
5383 PyObject
* _obj2
= 0;
5384 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5398 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5399 if (_arg2
== NULL
) {
5407 wxPy_BEGIN_ALLOW_THREADS
;
5408 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5410 wxPy_END_ALLOW_THREADS
;
5411 } Py_INCREF(Py_None
);
5412 _resultobj
= Py_None
;
5419 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5420 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5421 PyObject
* _resultobj
;
5425 long _arg3
= (long ) 0;
5426 long _arg4
= (long ) 0;
5427 int _arg5
= (int ) wxODDEVEN_RULE
;
5428 PyObject
* _argo0
= 0;
5430 PyObject
* _obj2
= 0;
5431 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5445 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5446 if (_arg2
== NULL
) {
5454 wxPy_BEGIN_ALLOW_THREADS
;
5455 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5457 wxPy_END_ALLOW_THREADS
;
5458 } Py_INCREF(Py_None
);
5459 _resultobj
= Py_None
;
5466 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5467 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5468 PyObject
* _resultobj
;
5472 PyObject
* _argo0
= 0;
5473 char *_kwnames
[] = { "self","x","y", NULL
};
5476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5486 wxPy_BEGIN_ALLOW_THREADS
;
5487 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5489 wxPy_END_ALLOW_THREADS
;
5490 } Py_INCREF(Py_None
);
5491 _resultobj
= Py_None
;
5495 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5496 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5497 PyObject
* _resultobj
;
5503 PyObject
* _argo0
= 0;
5504 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5517 wxPy_BEGIN_ALLOW_THREADS
;
5518 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5520 wxPy_END_ALLOW_THREADS
;
5521 } Py_INCREF(Py_None
);
5522 _resultobj
= Py_None
;
5526 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5527 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5528 PyObject
* _resultobj
;
5534 PyObject
* _argo0
= 0;
5535 PyObject
* _obj1
= 0;
5536 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5549 #if PYTHON_API_VERSION >= 1009
5550 char* tmpPtr
; int tmpSize
;
5551 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5552 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5555 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5557 _arg1
= new wxString(tmpPtr
, tmpSize
);
5559 if (!PyString_Check(_obj1
)) {
5560 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5563 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5567 wxPy_BEGIN_ALLOW_THREADS
;
5568 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5570 wxPy_END_ALLOW_THREADS
;
5571 } Py_INCREF(Py_None
);
5572 _resultobj
= Py_None
;
5580 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5581 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5582 PyObject
* _resultobj
;
5588 long _arg5
= (long ) 20;
5589 PyObject
* _argo0
= 0;
5590 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5603 wxPy_BEGIN_ALLOW_THREADS
;
5604 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5606 wxPy_END_ALLOW_THREADS
;
5607 } Py_INCREF(Py_None
);
5608 _resultobj
= Py_None
;
5612 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5613 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5614 PyObject
* _resultobj
;
5618 PyObject
* _argo0
= 0;
5620 PyObject
* _obj2
= 0;
5621 char *_kwnames
[] = { "self","points", NULL
};
5624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5635 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5636 if (_arg2
== NULL
) {
5644 wxPy_BEGIN_ALLOW_THREADS
;
5645 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5647 wxPy_END_ALLOW_THREADS
;
5648 } Py_INCREF(Py_None
);
5649 _resultobj
= Py_None
;
5656 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5657 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5658 PyObject
* _resultobj
;
5663 PyObject
* _argo0
= 0;
5664 PyObject
* _obj1
= 0;
5665 char *_kwnames
[] = { "self","text","x","y", NULL
};
5668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5678 #if PYTHON_API_VERSION >= 1009
5679 char* tmpPtr
; int tmpSize
;
5680 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5681 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5684 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5686 _arg1
= new wxString(tmpPtr
, tmpSize
);
5688 if (!PyString_Check(_obj1
)) {
5689 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5692 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5696 wxPy_BEGIN_ALLOW_THREADS
;
5697 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5699 wxPy_END_ALLOW_THREADS
;
5700 } Py_INCREF(Py_None
);
5701 _resultobj
= Py_None
;
5709 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5710 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5711 PyObject
* _resultobj
;
5713 PyObject
* _argo0
= 0;
5714 char *_kwnames
[] = { "self", NULL
};
5717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5727 wxPy_BEGIN_ALLOW_THREADS
;
5730 wxPy_END_ALLOW_THREADS
;
5731 } Py_INCREF(Py_None
);
5732 _resultobj
= Py_None
;
5736 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5737 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5738 PyObject
* _resultobj
;
5740 PyObject
* _argo0
= 0;
5741 char *_kwnames
[] = { "self", NULL
};
5744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5754 wxPy_BEGIN_ALLOW_THREADS
;
5755 wxDC_EndDrawing(_arg0
);
5757 wxPy_END_ALLOW_THREADS
;
5758 } Py_INCREF(Py_None
);
5759 _resultobj
= Py_None
;
5763 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5764 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5765 PyObject
* _resultobj
;
5767 PyObject
* _argo0
= 0;
5768 char *_kwnames
[] = { "self", NULL
};
5771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5781 wxPy_BEGIN_ALLOW_THREADS
;
5782 wxDC_EndPage(_arg0
);
5784 wxPy_END_ALLOW_THREADS
;
5785 } Py_INCREF(Py_None
);
5786 _resultobj
= Py_None
;
5790 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5791 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5792 PyObject
* _resultobj
;
5797 int _arg4
= (int ) wxFLOOD_SURFACE
;
5798 PyObject
* _argo0
= 0;
5800 PyObject
* _obj3
= 0;
5801 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5815 if (! wxColour_helper(_obj3
, &_arg3
))
5819 wxPy_BEGIN_ALLOW_THREADS
;
5820 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5822 wxPy_END_ALLOW_THREADS
;
5823 } Py_INCREF(Py_None
);
5824 _resultobj
= Py_None
;
5828 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5829 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5830 PyObject
* _resultobj
;
5833 PyObject
* _argo0
= 0;
5834 char *_kwnames
[] = { "self", NULL
};
5838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5848 wxPy_BEGIN_ALLOW_THREADS
;
5849 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
5850 _result
= (wxBrush
*) &_result_ref
;
5852 wxPy_END_ALLOW_THREADS
;
5854 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5855 _resultobj
= Py_BuildValue("s",_ptemp
);
5858 _resultobj
= Py_None
;
5863 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5864 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5865 PyObject
* _resultobj
;
5868 PyObject
* _argo0
= 0;
5869 char *_kwnames
[] = { "self", NULL
};
5873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5883 wxPy_BEGIN_ALLOW_THREADS
;
5884 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
5885 _result
= (wxBrush
*) &_result_ref
;
5887 wxPy_END_ALLOW_THREADS
;
5889 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5890 _resultobj
= Py_BuildValue("s",_ptemp
);
5893 _resultobj
= Py_None
;
5898 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5899 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5900 PyObject
* _resultobj
;
5903 PyObject
* _argo0
= 0;
5904 char *_kwnames
[] = { "self", NULL
};
5907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5917 wxPy_BEGIN_ALLOW_THREADS
;
5918 _result
= (long )wxDC_GetCharHeight(_arg0
);
5920 wxPy_END_ALLOW_THREADS
;
5921 } _resultobj
= Py_BuildValue("l",_result
);
5925 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5926 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5927 PyObject
* _resultobj
;
5930 PyObject
* _argo0
= 0;
5931 char *_kwnames
[] = { "self", NULL
};
5934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5944 wxPy_BEGIN_ALLOW_THREADS
;
5945 _result
= (long )wxDC_GetCharWidth(_arg0
);
5947 wxPy_END_ALLOW_THREADS
;
5948 } _resultobj
= Py_BuildValue("l",_result
);
5952 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5953 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5954 PyObject
* _resultobj
;
5964 PyObject
* _argo0
= 0;
5965 char *_kwnames
[] = { "self", NULL
};
5980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5990 wxPy_BEGIN_ALLOW_THREADS
;
5991 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5993 wxPy_END_ALLOW_THREADS
;
5994 } Py_INCREF(Py_None
);
5995 _resultobj
= Py_None
;
5998 o
= PyInt_FromLong((long) (*_arg1
));
5999 _resultobj
= t_output_helper(_resultobj
, o
);
6003 o
= PyInt_FromLong((long) (*_arg2
));
6004 _resultobj
= t_output_helper(_resultobj
, o
);
6008 o
= PyInt_FromLong((long) (*_arg3
));
6009 _resultobj
= t_output_helper(_resultobj
, o
);
6013 o
= PyInt_FromLong((long) (*_arg4
));
6014 _resultobj
= t_output_helper(_resultobj
, o
);
6019 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6020 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6021 PyObject
* _resultobj
;
6024 PyObject
* _argo0
= 0;
6025 char *_kwnames
[] = { "self", NULL
};
6029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6039 wxPy_BEGIN_ALLOW_THREADS
;
6040 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
6041 _result
= (wxFont
*) &_result_ref
;
6043 wxPy_END_ALLOW_THREADS
;
6045 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
6046 _resultobj
= Py_BuildValue("s",_ptemp
);
6049 _resultobj
= Py_None
;
6054 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6055 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6056 PyObject
* _resultobj
;
6059 PyObject
* _argo0
= 0;
6060 char *_kwnames
[] = { "self", NULL
};
6063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6073 wxPy_BEGIN_ALLOW_THREADS
;
6074 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6076 wxPy_END_ALLOW_THREADS
;
6077 } _resultobj
= Py_BuildValue("i",_result
);
6081 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6082 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6083 PyObject
* _resultobj
;
6089 PyObject
* _argo0
= 0;
6090 char *_kwnames
[] = { "self", NULL
};
6099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6109 wxPy_BEGIN_ALLOW_THREADS
;
6110 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6112 wxPy_END_ALLOW_THREADS
;
6113 } Py_INCREF(Py_None
);
6114 _resultobj
= Py_None
;
6117 o
= PyFloat_FromDouble((double) (*_arg1
));
6118 _resultobj
= t_output_helper(_resultobj
, o
);
6122 o
= PyFloat_FromDouble((double) (*_arg2
));
6123 _resultobj
= t_output_helper(_resultobj
, o
);
6128 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6129 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6130 PyObject
* _resultobj
;
6133 PyObject
* _argo0
= 0;
6134 char *_kwnames
[] = { "self", NULL
};
6137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6147 wxPy_BEGIN_ALLOW_THREADS
;
6148 _result
= (int )wxDC_GetMapMode(_arg0
);
6150 wxPy_END_ALLOW_THREADS
;
6151 } _resultobj
= Py_BuildValue("i",_result
);
6155 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6156 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6157 PyObject
* _resultobj
;
6160 PyObject
* _argo0
= 0;
6161 char *_kwnames
[] = { "self", NULL
};
6164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6174 wxPy_BEGIN_ALLOW_THREADS
;
6175 _result
= (bool )wxDC_GetOptimization(_arg0
);
6177 wxPy_END_ALLOW_THREADS
;
6178 } _resultobj
= Py_BuildValue("i",_result
);
6182 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6183 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6184 PyObject
* _resultobj
;
6187 PyObject
* _argo0
= 0;
6188 char *_kwnames
[] = { "self", NULL
};
6192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6202 wxPy_BEGIN_ALLOW_THREADS
;
6203 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
6204 _result
= (wxPen
*) &_result_ref
;
6206 wxPy_END_ALLOW_THREADS
;
6208 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
6209 _resultobj
= Py_BuildValue("s",_ptemp
);
6212 _resultobj
= Py_None
;
6217 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
6218 wxColour
* wc
= new wxColour();
6219 self
->GetPixel(x
, y
, wc
);
6222 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6223 PyObject
* _resultobj
;
6228 PyObject
* _argo0
= 0;
6229 char *_kwnames
[] = { "self","x","y", NULL
};
6233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6243 wxPy_BEGIN_ALLOW_THREADS
;
6244 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6246 wxPy_END_ALLOW_THREADS
;
6248 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6249 _resultobj
= Py_BuildValue("s",_ptemp
);
6252 _resultobj
= Py_None
;
6257 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6258 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6259 PyObject
* _resultobj
;
6265 PyObject
* _argo0
= 0;
6266 char *_kwnames
[] = { "self", NULL
};
6275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6285 wxPy_BEGIN_ALLOW_THREADS
;
6286 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6288 wxPy_END_ALLOW_THREADS
;
6289 } Py_INCREF(Py_None
);
6290 _resultobj
= Py_None
;
6293 o
= PyInt_FromLong((long) (*_arg1
));
6294 _resultobj
= t_output_helper(_resultobj
, o
);
6298 o
= PyInt_FromLong((long) (*_arg2
));
6299 _resultobj
= t_output_helper(_resultobj
, o
);
6304 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6305 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6306 PyObject
* _resultobj
;
6309 PyObject
* _argo0
= 0;
6310 char *_kwnames
[] = { "self", NULL
};
6314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6324 wxPy_BEGIN_ALLOW_THREADS
;
6325 _result
= new wxSize (wxDC_GetSize(_arg0
));
6327 wxPy_END_ALLOW_THREADS
;
6328 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6329 _resultobj
= Py_BuildValue("s",_ptemp
);
6333 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6334 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6335 PyObject
* _resultobj
;
6338 PyObject
* _argo0
= 0;
6339 char *_kwnames
[] = { "self", NULL
};
6343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6353 wxPy_BEGIN_ALLOW_THREADS
;
6354 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6356 wxPy_END_ALLOW_THREADS
;
6357 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6358 _resultobj
= Py_BuildValue("s",_ptemp
);
6362 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6363 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6364 PyObject
* _resultobj
;
6367 PyObject
* _argo0
= 0;
6368 char *_kwnames
[] = { "self", NULL
};
6372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6382 wxPy_BEGIN_ALLOW_THREADS
;
6383 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
6384 _result
= (wxColour
*) &_result_ref
;
6386 wxPy_END_ALLOW_THREADS
;
6388 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6389 _resultobj
= Py_BuildValue("s",_ptemp
);
6392 _resultobj
= Py_None
;
6397 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6398 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6399 PyObject
* _resultobj
;
6406 PyObject
* _argo0
= 0;
6407 PyObject
* _obj1
= 0;
6408 char *_kwnames
[] = { "self","string", NULL
};
6417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6427 #if PYTHON_API_VERSION >= 1009
6428 char* tmpPtr
; int tmpSize
;
6429 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6430 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6433 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6435 _arg1
= new wxString(tmpPtr
, tmpSize
);
6437 if (!PyString_Check(_obj1
)) {
6438 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6441 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6445 wxPy_BEGIN_ALLOW_THREADS
;
6446 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6448 wxPy_END_ALLOW_THREADS
;
6449 } Py_INCREF(Py_None
);
6450 _resultobj
= Py_None
;
6453 o
= PyInt_FromLong((long) (*_arg2
));
6454 _resultobj
= t_output_helper(_resultobj
, o
);
6458 o
= PyInt_FromLong((long) (*_arg3
));
6459 _resultobj
= t_output_helper(_resultobj
, o
);
6468 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6469 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6470 PyObject
* _resultobj
;
6481 wxFont
* _arg6
= (wxFont
*) NULL
;
6482 PyObject
* _argo0
= 0;
6483 PyObject
* _obj1
= 0;
6484 PyObject
* _argo6
= 0;
6485 char *_kwnames
[] = { "self","string","font", NULL
};
6500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6510 #if PYTHON_API_VERSION >= 1009
6511 char* tmpPtr
; int tmpSize
;
6512 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6513 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6516 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6518 _arg1
= new wxString(tmpPtr
, tmpSize
);
6520 if (!PyString_Check(_obj1
)) {
6521 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6524 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6528 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6529 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6535 wxPy_BEGIN_ALLOW_THREADS
;
6536 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6538 wxPy_END_ALLOW_THREADS
;
6539 } Py_INCREF(Py_None
);
6540 _resultobj
= Py_None
;
6543 o
= PyInt_FromLong((long) (*_arg2
));
6544 _resultobj
= t_output_helper(_resultobj
, o
);
6548 o
= PyInt_FromLong((long) (*_arg3
));
6549 _resultobj
= t_output_helper(_resultobj
, o
);
6553 o
= PyInt_FromLong((long) (*_arg4
));
6554 _resultobj
= t_output_helper(_resultobj
, o
);
6558 o
= PyInt_FromLong((long) (*_arg5
));
6559 _resultobj
= t_output_helper(_resultobj
, o
);
6568 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6569 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6570 PyObject
* _resultobj
;
6573 PyObject
* _argo0
= 0;
6574 char *_kwnames
[] = { "self", NULL
};
6578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6588 wxPy_BEGIN_ALLOW_THREADS
;
6589 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
6590 _result
= (wxColour
*) &_result_ref
;
6592 wxPy_END_ALLOW_THREADS
;
6594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6595 _resultobj
= Py_BuildValue("s",_ptemp
);
6598 _resultobj
= Py_None
;
6603 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6604 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6605 PyObject
* _resultobj
;
6611 PyObject
* _argo0
= 0;
6612 char *_kwnames
[] = { "self", NULL
};
6621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6631 wxPy_BEGIN_ALLOW_THREADS
;
6632 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6634 wxPy_END_ALLOW_THREADS
;
6635 } Py_INCREF(Py_None
);
6636 _resultobj
= Py_None
;
6639 o
= PyFloat_FromDouble((double) (*_arg1
));
6640 _resultobj
= t_output_helper(_resultobj
, o
);
6644 o
= PyFloat_FromDouble((double) (*_arg2
));
6645 _resultobj
= t_output_helper(_resultobj
, o
);
6650 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6651 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6652 PyObject
* _resultobj
;
6656 PyObject
* _argo0
= 0;
6657 char *_kwnames
[] = { "self","x", NULL
};
6660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6670 wxPy_BEGIN_ALLOW_THREADS
;
6671 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6673 wxPy_END_ALLOW_THREADS
;
6674 } _resultobj
= Py_BuildValue("l",_result
);
6678 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6679 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6680 PyObject
* _resultobj
;
6684 PyObject
* _argo0
= 0;
6685 char *_kwnames
[] = { "self","x", NULL
};
6688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6698 wxPy_BEGIN_ALLOW_THREADS
;
6699 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6701 wxPy_END_ALLOW_THREADS
;
6702 } _resultobj
= Py_BuildValue("l",_result
);
6706 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6707 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6708 PyObject
* _resultobj
;
6712 PyObject
* _argo0
= 0;
6713 char *_kwnames
[] = { "self","y", NULL
};
6716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6726 wxPy_BEGIN_ALLOW_THREADS
;
6727 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6729 wxPy_END_ALLOW_THREADS
;
6730 } _resultobj
= Py_BuildValue("l",_result
);
6734 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6735 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6736 PyObject
* _resultobj
;
6740 PyObject
* _argo0
= 0;
6741 char *_kwnames
[] = { "self","y", NULL
};
6744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6754 wxPy_BEGIN_ALLOW_THREADS
;
6755 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6757 wxPy_END_ALLOW_THREADS
;
6758 } _resultobj
= Py_BuildValue("l",_result
);
6762 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6763 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6764 PyObject
* _resultobj
;
6767 PyObject
* _argo0
= 0;
6768 char *_kwnames
[] = { "self", NULL
};
6771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6781 wxPy_BEGIN_ALLOW_THREADS
;
6782 _result
= (long )wxDC_MaxX(_arg0
);
6784 wxPy_END_ALLOW_THREADS
;
6785 } _resultobj
= Py_BuildValue("l",_result
);
6789 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6790 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6791 PyObject
* _resultobj
;
6794 PyObject
* _argo0
= 0;
6795 char *_kwnames
[] = { "self", NULL
};
6798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6808 wxPy_BEGIN_ALLOW_THREADS
;
6809 _result
= (long )wxDC_MaxY(_arg0
);
6811 wxPy_END_ALLOW_THREADS
;
6812 } _resultobj
= Py_BuildValue("l",_result
);
6816 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6817 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6818 PyObject
* _resultobj
;
6821 PyObject
* _argo0
= 0;
6822 char *_kwnames
[] = { "self", NULL
};
6825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6835 wxPy_BEGIN_ALLOW_THREADS
;
6836 _result
= (long )wxDC_MinX(_arg0
);
6838 wxPy_END_ALLOW_THREADS
;
6839 } _resultobj
= Py_BuildValue("l",_result
);
6843 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6844 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6845 PyObject
* _resultobj
;
6848 PyObject
* _argo0
= 0;
6849 char *_kwnames
[] = { "self", NULL
};
6852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6862 wxPy_BEGIN_ALLOW_THREADS
;
6863 _result
= (long )wxDC_MinY(_arg0
);
6865 wxPy_END_ALLOW_THREADS
;
6866 } _resultobj
= Py_BuildValue("l",_result
);
6870 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6871 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6872 PyObject
* _resultobj
;
6875 PyObject
* _argo0
= 0;
6876 char *_kwnames
[] = { "self", NULL
};
6879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6889 wxPy_BEGIN_ALLOW_THREADS
;
6890 _result
= (bool )wxDC_Ok(_arg0
);
6892 wxPy_END_ALLOW_THREADS
;
6893 } _resultobj
= Py_BuildValue("i",_result
);
6897 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6898 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6899 PyObject
* _resultobj
;
6903 PyObject
* _argo0
= 0;
6904 char *_kwnames
[] = { "self","x","y", NULL
};
6907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6917 wxPy_BEGIN_ALLOW_THREADS
;
6918 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6920 wxPy_END_ALLOW_THREADS
;
6921 } Py_INCREF(Py_None
);
6922 _resultobj
= Py_None
;
6926 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6927 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6928 PyObject
* _resultobj
;
6931 PyObject
* _argo0
= 0;
6932 PyObject
* _argo1
= 0;
6933 char *_kwnames
[] = { "self","brush", NULL
};
6936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6946 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6947 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6953 wxPy_BEGIN_ALLOW_THREADS
;
6954 wxDC_SetBackground(_arg0
,*_arg1
);
6956 wxPy_END_ALLOW_THREADS
;
6957 } Py_INCREF(Py_None
);
6958 _resultobj
= Py_None
;
6962 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6963 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6964 PyObject
* _resultobj
;
6967 PyObject
* _argo0
= 0;
6968 char *_kwnames
[] = { "self","mode", NULL
};
6971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6981 wxPy_BEGIN_ALLOW_THREADS
;
6982 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6984 wxPy_END_ALLOW_THREADS
;
6985 } Py_INCREF(Py_None
);
6986 _resultobj
= Py_None
;
6990 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6991 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6992 PyObject
* _resultobj
;
6998 PyObject
* _argo0
= 0;
6999 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7012 wxPy_BEGIN_ALLOW_THREADS
;
7013 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7015 wxPy_END_ALLOW_THREADS
;
7016 } Py_INCREF(Py_None
);
7017 _resultobj
= Py_None
;
7021 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7022 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7023 PyObject
* _resultobj
;
7026 PyObject
* _argo0
= 0;
7027 PyObject
* _argo1
= 0;
7028 char *_kwnames
[] = { "self","colourMap", NULL
};
7031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7041 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7042 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7048 wxPy_BEGIN_ALLOW_THREADS
;
7049 wxDC_SetPalette(_arg0
,*_arg1
);
7051 wxPy_END_ALLOW_THREADS
;
7052 } Py_INCREF(Py_None
);
7053 _resultobj
= Py_None
;
7057 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7058 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7059 PyObject
* _resultobj
;
7062 PyObject
* _argo0
= 0;
7063 PyObject
* _argo1
= 0;
7064 char *_kwnames
[] = { "self","brush", NULL
};
7067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7077 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7078 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7084 wxPy_BEGIN_ALLOW_THREADS
;
7085 wxDC_SetBrush(_arg0
,*_arg1
);
7087 wxPy_END_ALLOW_THREADS
;
7088 } Py_INCREF(Py_None
);
7089 _resultobj
= Py_None
;
7093 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7094 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7095 PyObject
* _resultobj
;
7098 PyObject
* _argo0
= 0;
7099 PyObject
* _argo1
= 0;
7100 char *_kwnames
[] = { "self","font", NULL
};
7103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7113 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7114 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7120 wxPy_BEGIN_ALLOW_THREADS
;
7121 wxDC_SetFont(_arg0
,*_arg1
);
7123 wxPy_END_ALLOW_THREADS
;
7124 } Py_INCREF(Py_None
);
7125 _resultobj
= Py_None
;
7129 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7130 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7131 PyObject
* _resultobj
;
7134 PyObject
* _argo0
= 0;
7135 char *_kwnames
[] = { "self","function", NULL
};
7138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7148 wxPy_BEGIN_ALLOW_THREADS
;
7149 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7151 wxPy_END_ALLOW_THREADS
;
7152 } Py_INCREF(Py_None
);
7153 _resultobj
= Py_None
;
7157 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7158 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7159 PyObject
* _resultobj
;
7163 PyObject
* _argo0
= 0;
7164 char *_kwnames
[] = { "self","x","y", NULL
};
7167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7177 wxPy_BEGIN_ALLOW_THREADS
;
7178 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7180 wxPy_END_ALLOW_THREADS
;
7181 } Py_INCREF(Py_None
);
7182 _resultobj
= Py_None
;
7186 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7187 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7188 PyObject
* _resultobj
;
7191 PyObject
* _argo0
= 0;
7192 char *_kwnames
[] = { "self","mode", NULL
};
7195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7205 wxPy_BEGIN_ALLOW_THREADS
;
7206 wxDC_SetMapMode(_arg0
,_arg1
);
7208 wxPy_END_ALLOW_THREADS
;
7209 } Py_INCREF(Py_None
);
7210 _resultobj
= Py_None
;
7214 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7215 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7216 PyObject
* _resultobj
;
7219 PyObject
* _argo0
= 0;
7221 char *_kwnames
[] = { "self","optimize", NULL
};
7224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
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_SetOptimization. Expected _wxDC_p.");
7233 _arg1
= (bool ) tempbool1
;
7235 wxPy_BEGIN_ALLOW_THREADS
;
7236 wxDC_SetOptimization(_arg0
,_arg1
);
7238 wxPy_END_ALLOW_THREADS
;
7239 } Py_INCREF(Py_None
);
7240 _resultobj
= Py_None
;
7244 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7245 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7246 PyObject
* _resultobj
;
7249 PyObject
* _argo0
= 0;
7250 PyObject
* _argo1
= 0;
7251 char *_kwnames
[] = { "self","pen", NULL
};
7254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7264 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7265 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7271 wxPy_BEGIN_ALLOW_THREADS
;
7272 wxDC_SetPen(_arg0
,*_arg1
);
7274 wxPy_END_ALLOW_THREADS
;
7275 } Py_INCREF(Py_None
);
7276 _resultobj
= Py_None
;
7280 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7281 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7282 PyObject
* _resultobj
;
7285 PyObject
* _argo0
= 0;
7287 PyObject
* _obj1
= 0;
7288 char *_kwnames
[] = { "self","colour", NULL
};
7291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7302 if (! wxColour_helper(_obj1
, &_arg1
))
7306 wxPy_BEGIN_ALLOW_THREADS
;
7307 wxDC_SetTextBackground(_arg0
,*_arg1
);
7309 wxPy_END_ALLOW_THREADS
;
7310 } Py_INCREF(Py_None
);
7311 _resultobj
= Py_None
;
7315 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7316 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7317 PyObject
* _resultobj
;
7320 PyObject
* _argo0
= 0;
7322 PyObject
* _obj1
= 0;
7323 char *_kwnames
[] = { "self","colour", NULL
};
7326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7337 if (! wxColour_helper(_obj1
, &_arg1
))
7341 wxPy_BEGIN_ALLOW_THREADS
;
7342 wxDC_SetTextForeground(_arg0
,*_arg1
);
7344 wxPy_END_ALLOW_THREADS
;
7345 } Py_INCREF(Py_None
);
7346 _resultobj
= Py_None
;
7350 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7351 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7352 PyObject
* _resultobj
;
7356 PyObject
* _argo0
= 0;
7357 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7363 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7364 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7370 wxPy_BEGIN_ALLOW_THREADS
;
7371 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7373 wxPy_END_ALLOW_THREADS
;
7374 } Py_INCREF(Py_None
);
7375 _resultobj
= Py_None
;
7379 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7380 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7381 PyObject
* _resultobj
;
7385 PyObject
* _argo0
= 0;
7386 PyObject
* _obj1
= 0;
7387 char *_kwnames
[] = { "self","message", NULL
};
7390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7400 #if PYTHON_API_VERSION >= 1009
7401 char* tmpPtr
; int tmpSize
;
7402 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7403 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
7406 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7408 _arg1
= new wxString(tmpPtr
, tmpSize
);
7410 if (!PyString_Check(_obj1
)) {
7411 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7414 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7418 wxPy_BEGIN_ALLOW_THREADS
;
7419 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7421 wxPy_END_ALLOW_THREADS
;
7422 } _resultobj
= Py_BuildValue("i",_result
);
7430 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7431 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7432 PyObject
* _resultobj
;
7434 PyObject
* _argo0
= 0;
7435 char *_kwnames
[] = { "self", NULL
};
7438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7448 wxPy_BEGIN_ALLOW_THREADS
;
7449 wxDC_StartPage(_arg0
);
7451 wxPy_END_ALLOW_THREADS
;
7452 } Py_INCREF(Py_None
);
7453 _resultobj
= Py_None
;
7457 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7458 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7459 PyObject
* _resultobj
;
7464 int _arg4
= (int ) FALSE
;
7465 PyObject
* _argo0
= 0;
7466 PyObject
* _argo1
= 0;
7467 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7480 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7481 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7487 wxPy_BEGIN_ALLOW_THREADS
;
7488 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7490 wxPy_END_ALLOW_THREADS
;
7491 } Py_INCREF(Py_None
);
7492 _resultobj
= Py_None
;
7496 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7497 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7498 PyObject
* _resultobj
;
7501 PyObject
* _argo0
= 0;
7502 char *_kwnames
[] = { "self", NULL
};
7505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7515 wxPy_BEGIN_ALLOW_THREADS
;
7516 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7518 wxPy_END_ALLOW_THREADS
;
7519 } _resultobj
= Py_BuildValue("i",_result
);
7523 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7524 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7525 PyObject
* _resultobj
;
7528 PyObject
* _argo0
= 0;
7529 char *_kwnames
[] = { "self", NULL
};
7532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7542 wxPy_BEGIN_ALLOW_THREADS
;
7543 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7545 wxPy_END_ALLOW_THREADS
;
7546 } _resultobj
= Py_BuildValue("i",_result
);
7550 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7551 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7552 PyObject
* _resultobj
;
7555 PyObject
* _argo0
= 0;
7556 char *_kwnames
[] = { "self", NULL
};
7559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7569 wxPy_BEGIN_ALLOW_THREADS
;
7570 _result
= (int )wxDC_GetDepth(_arg0
);
7572 wxPy_END_ALLOW_THREADS
;
7573 } _resultobj
= Py_BuildValue("i",_result
);
7577 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7578 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7579 PyObject
* _resultobj
;
7582 PyObject
* _argo0
= 0;
7583 char *_kwnames
[] = { "self", NULL
};
7587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7597 wxPy_BEGIN_ALLOW_THREADS
;
7598 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7600 wxPy_END_ALLOW_THREADS
;
7601 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7602 _resultobj
= Py_BuildValue("s",_ptemp
);
7606 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7607 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7608 PyObject
* _resultobj
;
7614 PyObject
* _argo0
= 0;
7615 char *_kwnames
[] = { "self", NULL
};
7624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7634 wxPy_BEGIN_ALLOW_THREADS
;
7635 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7637 wxPy_END_ALLOW_THREADS
;
7638 } Py_INCREF(Py_None
);
7639 _resultobj
= Py_None
;
7642 o
= PyInt_FromLong((long) (*_arg1
));
7643 _resultobj
= t_output_helper(_resultobj
, o
);
7647 o
= PyInt_FromLong((long) (*_arg2
));
7648 _resultobj
= t_output_helper(_resultobj
, o
);
7653 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7654 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7655 PyObject
* _resultobj
;
7659 PyObject
* _argo0
= 0;
7660 char *_kwnames
[] = { "self","x","y", NULL
};
7663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7673 wxPy_BEGIN_ALLOW_THREADS
;
7674 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7676 wxPy_END_ALLOW_THREADS
;
7677 } Py_INCREF(Py_None
);
7678 _resultobj
= Py_None
;
7682 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7683 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7684 PyObject
* _resultobj
;
7690 PyObject
* _argo0
= 0;
7691 char *_kwnames
[] = { "self", NULL
};
7700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7710 wxPy_BEGIN_ALLOW_THREADS
;
7711 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7713 wxPy_END_ALLOW_THREADS
;
7714 } Py_INCREF(Py_None
);
7715 _resultobj
= Py_None
;
7718 o
= PyInt_FromLong((long) (*_arg1
));
7719 _resultobj
= t_output_helper(_resultobj
, o
);
7723 o
= PyInt_FromLong((long) (*_arg2
));
7724 _resultobj
= t_output_helper(_resultobj
, o
);
7729 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7730 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7731 PyObject
* _resultobj
;
7735 PyObject
* _argo0
= 0;
7738 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7750 _arg1
= (bool ) tempbool1
;
7751 _arg2
= (bool ) tempbool2
;
7753 wxPy_BEGIN_ALLOW_THREADS
;
7754 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7756 wxPy_END_ALLOW_THREADS
;
7757 } Py_INCREF(Py_None
);
7758 _resultobj
= Py_None
;
7762 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7763 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7764 PyObject
* _resultobj
;
7768 PyObject
* _argo0
= 0;
7769 char *_kwnames
[] = { "self","x","y", NULL
};
7772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7782 wxPy_BEGIN_ALLOW_THREADS
;
7783 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7785 wxPy_END_ALLOW_THREADS
;
7786 } Py_INCREF(Py_None
);
7787 _resultobj
= Py_None
;
7791 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7792 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7793 PyObject
* _resultobj
;
7795 PyObject
* _argo0
= 0;
7796 char *_kwnames
[] = { "self", NULL
};
7799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7809 wxPy_BEGIN_ALLOW_THREADS
;
7810 wxDC_ResetBoundingBox(_arg0
);
7812 wxPy_END_ALLOW_THREADS
;
7813 } Py_INCREF(Py_None
);
7814 _resultobj
= Py_None
;
7818 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7821 src
= (wxMemoryDC
*) ptr
;
7822 dest
= (wxDC
*) src
;
7823 return (void *) dest
;
7826 #define new_wxMemoryDC() (new wxMemoryDC())
7827 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7828 PyObject
* _resultobj
;
7829 wxMemoryDC
* _result
;
7830 char *_kwnames
[] = { NULL
};
7834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7837 wxPy_BEGIN_ALLOW_THREADS
;
7838 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7840 wxPy_END_ALLOW_THREADS
;
7842 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7843 _resultobj
= Py_BuildValue("s",_ptemp
);
7846 _resultobj
= Py_None
;
7851 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7852 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7853 PyObject
* _resultobj
;
7856 PyObject
* _argo0
= 0;
7857 PyObject
* _argo1
= 0;
7858 char *_kwnames
[] = { "self","bitmap", NULL
};
7861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7871 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7872 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7878 wxPy_BEGIN_ALLOW_THREADS
;
7879 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7881 wxPy_END_ALLOW_THREADS
;
7882 } Py_INCREF(Py_None
);
7883 _resultobj
= Py_None
;
7887 static void *SwigwxScreenDCTowxDC(void *ptr
) {
7890 src
= (wxScreenDC
*) ptr
;
7891 dest
= (wxDC
*) src
;
7892 return (void *) dest
;
7895 #define new_wxScreenDC() (new wxScreenDC())
7896 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7897 PyObject
* _resultobj
;
7898 wxScreenDC
* _result
;
7899 char *_kwnames
[] = { NULL
};
7903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
7906 wxPy_BEGIN_ALLOW_THREADS
;
7907 _result
= (wxScreenDC
*)new_wxScreenDC();
7909 wxPy_END_ALLOW_THREADS
;
7911 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
7912 _resultobj
= Py_BuildValue("s",_ptemp
);
7915 _resultobj
= Py_None
;
7920 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7921 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7922 PyObject
* _resultobj
;
7926 PyObject
* _argo0
= 0;
7927 PyObject
* _argo1
= 0;
7928 char *_kwnames
[] = { "self","window", NULL
};
7931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
7934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7941 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7942 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7948 wxPy_BEGIN_ALLOW_THREADS
;
7949 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
7951 wxPy_END_ALLOW_THREADS
;
7952 } _resultobj
= Py_BuildValue("i",_result
);
7956 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7957 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7958 PyObject
* _resultobj
;
7961 wxRect
* _arg1
= (wxRect
*) NULL
;
7962 PyObject
* _argo0
= 0;
7964 PyObject
* _obj1
= 0;
7965 char *_kwnames
[] = { "self","rect", NULL
};
7968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
7971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
7973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7980 if (! wxRect_helper(_obj1
, &_arg1
))
7984 wxPy_BEGIN_ALLOW_THREADS
;
7985 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
7987 wxPy_END_ALLOW_THREADS
;
7988 } _resultobj
= Py_BuildValue("i",_result
);
7992 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7993 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7994 PyObject
* _resultobj
;
7997 PyObject
* _argo0
= 0;
7998 char *_kwnames
[] = { "self", NULL
};
8001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8011 wxPy_BEGIN_ALLOW_THREADS
;
8012 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8014 wxPy_END_ALLOW_THREADS
;
8015 } _resultobj
= Py_BuildValue("i",_result
);
8019 static void *SwigwxClientDCTowxDC(void *ptr
) {
8022 src
= (wxClientDC
*) ptr
;
8023 dest
= (wxDC
*) src
;
8024 return (void *) dest
;
8027 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8028 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8029 PyObject
* _resultobj
;
8030 wxClientDC
* _result
;
8032 PyObject
* _argo0
= 0;
8033 char *_kwnames
[] = { "win", NULL
};
8037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8047 wxPy_BEGIN_ALLOW_THREADS
;
8048 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8050 wxPy_END_ALLOW_THREADS
;
8052 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8053 _resultobj
= Py_BuildValue("s",_ptemp
);
8056 _resultobj
= Py_None
;
8061 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8064 src
= (wxPaintDC
*) ptr
;
8065 dest
= (wxDC
*) src
;
8066 return (void *) dest
;
8069 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8070 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8071 PyObject
* _resultobj
;
8072 wxPaintDC
* _result
;
8074 PyObject
* _argo0
= 0;
8075 char *_kwnames
[] = { "win", NULL
};
8079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8089 wxPy_BEGIN_ALLOW_THREADS
;
8090 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8092 wxPy_END_ALLOW_THREADS
;
8094 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8095 _resultobj
= Py_BuildValue("s",_ptemp
);
8098 _resultobj
= Py_None
;
8103 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8106 src
= (wxWindowDC
*) ptr
;
8107 dest
= (wxDC
*) src
;
8108 return (void *) dest
;
8111 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8112 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8113 PyObject
* _resultobj
;
8114 wxWindowDC
* _result
;
8116 PyObject
* _argo0
= 0;
8117 char *_kwnames
[] = { "win", NULL
};
8121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8131 wxPy_BEGIN_ALLOW_THREADS
;
8132 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8134 wxPy_END_ALLOW_THREADS
;
8136 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8137 _resultobj
= Py_BuildValue("s",_ptemp
);
8140 _resultobj
= Py_None
;
8145 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
8148 src
= (wxMetaFileDC
*) ptr
;
8149 dest
= (wxDC
*) src
;
8150 return (void *) dest
;
8153 #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8154 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8155 PyObject
* _resultobj
;
8156 wxMetaFileDC
* _result
;
8157 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
8158 PyObject
* _obj0
= 0;
8159 char *_kwnames
[] = { "filename", NULL
};
8163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFileDC",_kwnames
,&_obj0
))
8167 #if PYTHON_API_VERSION >= 1009
8168 char* tmpPtr
; int tmpSize
;
8169 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
8170 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
8173 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
8175 _arg0
= new wxString(tmpPtr
, tmpSize
);
8177 if (!PyString_Check(_obj0
)) {
8178 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8181 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
8185 wxPy_BEGIN_ALLOW_THREADS
;
8186 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
);
8188 wxPy_END_ALLOW_THREADS
;
8190 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
8191 _resultobj
= Py_BuildValue("s",_ptemp
);
8194 _resultobj
= Py_None
;
8203 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8204 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8205 PyObject
* _resultobj
;
8206 wxMetaFile
* _result
;
8207 wxMetaFileDC
* _arg0
;
8208 PyObject
* _argo0
= 0;
8209 char *_kwnames
[] = { "self", NULL
};
8213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
8216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
8218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
8223 wxPy_BEGIN_ALLOW_THREADS
;
8224 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
8226 wxPy_END_ALLOW_THREADS
;
8228 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
8229 _resultobj
= Py_BuildValue("s",_ptemp
);
8232 _resultobj
= Py_None
;
8237 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8238 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8239 PyObject
* _resultobj
;
8240 wxPalette
* _result
;
8245 PyObject
* _obj1
= 0;
8246 PyObject
* _obj2
= 0;
8247 PyObject
* _obj3
= 0;
8248 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8255 _arg1
= byte_LIST_helper(_obj1
);
8256 if (_arg1
== NULL
) {
8261 _arg2
= byte_LIST_helper(_obj2
);
8262 if (_arg2
== NULL
) {
8268 _arg3
= byte_LIST_helper(_obj3
);
8269 if (_arg3
== NULL
) {
8275 _arg0
= PyList_Size(_obj1
);
8282 wxPy_BEGIN_ALLOW_THREADS
;
8283 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8285 wxPy_END_ALLOW_THREADS
;
8287 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8288 _resultobj
= Py_BuildValue("s",_ptemp
);
8291 _resultobj
= Py_None
;
8305 #define delete_wxPalette(_swigobj) (delete _swigobj)
8306 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8307 PyObject
* _resultobj
;
8309 PyObject
* _argo0
= 0;
8310 char *_kwnames
[] = { "self", NULL
};
8313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8323 wxPy_BEGIN_ALLOW_THREADS
;
8324 delete_wxPalette(_arg0
);
8326 wxPy_END_ALLOW_THREADS
;
8327 } Py_INCREF(Py_None
);
8328 _resultobj
= Py_None
;
8332 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8333 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8334 PyObject
* _resultobj
;
8340 PyObject
* _argo0
= 0;
8341 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8354 wxPy_BEGIN_ALLOW_THREADS
;
8355 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8357 wxPy_END_ALLOW_THREADS
;
8358 } _resultobj
= Py_BuildValue("i",_result
);
8362 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8363 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8364 PyObject
* _resultobj
;
8371 PyObject
* _argo0
= 0;
8372 PyObject
* _argo2
= 0;
8373 PyObject
* _argo3
= 0;
8374 PyObject
* _argo4
= 0;
8375 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
8378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
8381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8388 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8389 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
8390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8395 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8396 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
8397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8402 if (_argo4
== Py_None
) { _arg4
= NULL
; }
8403 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
8404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8409 wxPy_BEGIN_ALLOW_THREADS
;
8410 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8412 wxPy_END_ALLOW_THREADS
;
8413 } _resultobj
= Py_BuildValue("i",_result
);
8417 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8418 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8419 PyObject
* _resultobj
;
8422 PyObject
* _argo0
= 0;
8423 char *_kwnames
[] = { "self", NULL
};
8426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8436 wxPy_BEGIN_ALLOW_THREADS
;
8437 _result
= (bool )wxPalette_Ok(_arg0
);
8439 wxPy_END_ALLOW_THREADS
;
8440 } _resultobj
= Py_BuildValue("i",_result
);
8444 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8445 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8446 PyObject
* _resultobj
;
8447 wxImageList
* _result
;
8450 int _arg2
= (int ) TRUE
;
8451 int _arg3
= (int ) 1;
8452 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8459 wxPy_BEGIN_ALLOW_THREADS
;
8460 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8462 wxPy_END_ALLOW_THREADS
;
8464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8465 _resultobj
= Py_BuildValue("s",_ptemp
);
8468 _resultobj
= Py_None
;
8473 #define delete_wxImageList(_swigobj) (delete _swigobj)
8474 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8475 PyObject
* _resultobj
;
8476 wxImageList
* _arg0
;
8477 PyObject
* _argo0
= 0;
8478 char *_kwnames
[] = { "self", NULL
};
8481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8491 wxPy_BEGIN_ALLOW_THREADS
;
8492 delete_wxImageList(_arg0
);
8494 wxPy_END_ALLOW_THREADS
;
8495 } Py_INCREF(Py_None
);
8496 _resultobj
= Py_None
;
8500 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8501 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8502 PyObject
* _resultobj
;
8504 wxImageList
* _arg0
;
8506 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8507 PyObject
* _argo0
= 0;
8508 PyObject
* _argo1
= 0;
8509 PyObject
* _argo2
= 0;
8510 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8523 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8524 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8530 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8531 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8537 wxPy_BEGIN_ALLOW_THREADS
;
8538 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8540 wxPy_END_ALLOW_THREADS
;
8541 } _resultobj
= Py_BuildValue("i",_result
);
8545 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8546 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8547 PyObject
* _resultobj
;
8549 wxImageList
* _arg0
;
8552 PyObject
* _argo0
= 0;
8553 PyObject
* _argo1
= 0;
8555 PyObject
* _obj2
= 0;
8556 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8569 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8570 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8577 if (! wxColour_helper(_obj2
, &_arg2
))
8581 wxPy_BEGIN_ALLOW_THREADS
;
8582 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8584 wxPy_END_ALLOW_THREADS
;
8585 } _resultobj
= Py_BuildValue("i",_result
);
8589 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8590 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8591 PyObject
* _resultobj
;
8593 wxImageList
* _arg0
;
8595 PyObject
* _argo0
= 0;
8596 PyObject
* _argo1
= 0;
8597 char *_kwnames
[] = { "self","icon", NULL
};
8600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8610 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8611 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8617 wxPy_BEGIN_ALLOW_THREADS
;
8618 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8620 wxPy_END_ALLOW_THREADS
;
8621 } _resultobj
= Py_BuildValue("i",_result
);
8625 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8626 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8627 PyObject
* _resultobj
;
8629 wxImageList
* _arg0
;
8632 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
8633 PyObject
* _argo0
= 0;
8634 PyObject
* _argo2
= 0;
8635 PyObject
* _argo3
= 0;
8636 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
8639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
8642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8649 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8650 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8656 if (_argo3
== Py_None
) { _arg3
= NULL
; }
8657 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
8658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
8663 wxPy_BEGIN_ALLOW_THREADS
;
8664 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
8666 wxPy_END_ALLOW_THREADS
;
8667 } _resultobj
= Py_BuildValue("i",_result
);
8671 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8672 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8673 PyObject
* _resultobj
;
8675 wxImageList
* _arg0
;
8680 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8681 bool _arg6
= (bool ) FALSE
;
8682 PyObject
* _argo0
= 0;
8683 PyObject
* _argo2
= 0;
8684 int tempbool6
= (int) FALSE
;
8685 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8698 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8699 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8704 _arg6
= (bool ) tempbool6
;
8706 wxPy_BEGIN_ALLOW_THREADS
;
8707 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8709 wxPy_END_ALLOW_THREADS
;
8710 } _resultobj
= Py_BuildValue("i",_result
);
8714 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8715 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8716 PyObject
* _resultobj
;
8718 wxImageList
* _arg0
;
8719 PyObject
* _argo0
= 0;
8720 char *_kwnames
[] = { "self", NULL
};
8723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8733 wxPy_BEGIN_ALLOW_THREADS
;
8734 _result
= (int )wxImageList_GetImageCount(_arg0
);
8736 wxPy_END_ALLOW_THREADS
;
8737 } _resultobj
= Py_BuildValue("i",_result
);
8741 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8742 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8743 PyObject
* _resultobj
;
8745 wxImageList
* _arg0
;
8747 PyObject
* _argo0
= 0;
8748 char *_kwnames
[] = { "self","index", NULL
};
8751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8761 wxPy_BEGIN_ALLOW_THREADS
;
8762 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8764 wxPy_END_ALLOW_THREADS
;
8765 } _resultobj
= Py_BuildValue("i",_result
);
8769 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8770 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8771 PyObject
* _resultobj
;
8773 wxImageList
* _arg0
;
8774 PyObject
* _argo0
= 0;
8775 char *_kwnames
[] = { "self", NULL
};
8778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8788 wxPy_BEGIN_ALLOW_THREADS
;
8789 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8791 wxPy_END_ALLOW_THREADS
;
8792 } _resultobj
= Py_BuildValue("i",_result
);
8796 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8797 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8798 PyObject
* _resultobj
;
8799 wxImageList
* _arg0
;
8805 PyObject
* _argo0
= 0;
8806 char *_kwnames
[] = { "self","index", NULL
};
8815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8825 wxPy_BEGIN_ALLOW_THREADS
;
8826 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8828 wxPy_END_ALLOW_THREADS
;
8829 } Py_INCREF(Py_None
);
8830 _resultobj
= Py_None
;
8833 o
= PyInt_FromLong((long) (*_arg2
));
8834 _resultobj
= t_output_helper(_resultobj
, o
);
8838 o
= PyInt_FromLong((long) (*_arg3
));
8839 _resultobj
= t_output_helper(_resultobj
, o
);
8844 static PyMethodDef gdicMethods
[] = {
8845 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
8846 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
8847 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
8848 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
8849 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
8850 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
8851 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
8852 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
8853 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
8854 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
8855 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
8856 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8857 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
8858 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
8859 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
8860 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
8861 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
8862 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
8863 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
8864 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
8865 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
8866 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
8867 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
8868 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
8869 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
8870 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
8871 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
8872 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
8873 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
8874 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
8875 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8876 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8877 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8878 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
8879 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
8880 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8881 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8882 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
8883 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
8884 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
8885 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
8886 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
8887 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
8888 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
8889 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
8890 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
8891 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
8892 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
8893 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
8894 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
8895 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
8896 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
8897 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
8898 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
8899 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
8900 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8901 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
8902 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
8903 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
8904 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
8905 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
8906 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
8907 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
8908 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
8909 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
8910 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
8911 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8912 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
8913 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
8914 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
8915 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
8916 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
8917 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
8918 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
8919 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
8920 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
8921 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
8922 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
8923 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
8924 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
8925 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
8926 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
8927 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
8928 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
8929 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
8930 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
8931 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
8932 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
8933 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
8934 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
8935 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
8936 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
8937 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
8938 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
8939 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
8940 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
8941 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
8942 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
8943 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
8944 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
8945 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
8946 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
8947 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
8948 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
8949 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
8950 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
8951 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
8952 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
8953 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
8954 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
8955 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
8956 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
8957 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
8958 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
8959 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
8960 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8961 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8962 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
8963 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8964 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8965 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8966 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
8967 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
8968 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
8969 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
8970 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
8971 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
8972 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8973 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
8974 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
8975 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
8976 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8977 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8978 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
8979 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
8980 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
8981 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8982 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
8983 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
8984 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
8985 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
8986 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
8987 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
8988 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
8989 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
8990 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
8991 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
8992 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
8993 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
8994 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
8995 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
8996 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
8997 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
8998 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
8999 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
9000 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
9001 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
9002 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
9003 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
9004 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
9005 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
9006 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9007 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
9008 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
9009 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9010 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
9011 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
9012 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
9013 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9014 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
9015 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
9016 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9017 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
9018 { "wxFont_GetFontId", (PyCFunction
) _wrap_wxFont_GetFontId
, METH_VARARGS
| METH_KEYWORDS
},
9019 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
9020 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
9021 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9022 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
9023 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
9024 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9025 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9026 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9027 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9028 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9029 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9030 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9031 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9032 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9033 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9034 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
9035 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
9036 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9037 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9038 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9039 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9040 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9041 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9042 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9043 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9044 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9045 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9046 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
9047 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
9048 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
9049 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
9050 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
9051 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
9052 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
9053 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
9054 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9055 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9056 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9057 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9058 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9059 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
9060 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
9061 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
9062 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
9063 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9064 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
9065 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9066 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
9067 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
9068 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
9069 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
9070 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
9071 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9072 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9073 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
9074 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
9075 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9076 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
9077 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
9078 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
9079 { "wxBitmapFromData", (PyCFunction
) _wrap_wxBitmapFromData
, METH_VARARGS
| METH_KEYWORDS
},
9080 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
9087 * This table is used by the pointer type-checker
9089 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
9090 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
9091 { "_signed_long","_long",0},
9092 { "_wxPrintQuality","_wxCoord",0},
9093 { "_wxPrintQuality","_int",0},
9094 { "_wxPrintQuality","_signed_int",0},
9095 { "_wxPrintQuality","_unsigned_int",0},
9096 { "_wxPrintQuality","_wxWindowID",0},
9097 { "_wxPrintQuality","_uint",0},
9098 { "_wxPrintQuality","_EBool",0},
9099 { "_wxPrintQuality","_size_t",0},
9100 { "_wxPrintQuality","_time_t",0},
9101 { "_class_wxRegionIterator","_wxRegionIterator",0},
9102 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
9103 { "_wxCursor","_class_wxCursor",0},
9104 { "_wxMask","_class_wxMask",0},
9105 { "_wxPen","_class_wxPen",0},
9106 { "_byte","_unsigned_char",0},
9107 { "_wxColourDatabase","_class_wxColourDatabase",0},
9108 { "_long","_unsigned_long",0},
9109 { "_long","_signed_long",0},
9110 { "_wxImageList","_class_wxImageList",0},
9111 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
9112 { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9113 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9114 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
9115 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
9116 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
9117 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
9118 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
9119 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
9120 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
9121 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
9122 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9123 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9124 { "_wxDC","_class_wxDC",0},
9125 { "_size_t","_wxCoord",0},
9126 { "_size_t","_wxPrintQuality",0},
9127 { "_size_t","_time_t",0},
9128 { "_size_t","_unsigned_int",0},
9129 { "_size_t","_int",0},
9130 { "_size_t","_wxWindowID",0},
9131 { "_size_t","_uint",0},
9132 { "_class_wxRealPoint","_wxRealPoint",0},
9133 { "_class_wxMask","_wxMask",0},
9134 { "_wxColour","_class_wxColour",0},
9135 { "_wxBrush","_class_wxBrush",0},
9136 { "_uint","_wxCoord",0},
9137 { "_uint","_wxPrintQuality",0},
9138 { "_uint","_time_t",0},
9139 { "_uint","_size_t",0},
9140 { "_uint","_unsigned_int",0},
9141 { "_uint","_int",0},
9142 { "_uint","_wxWindowID",0},
9143 { "_wxChar","_char",0},
9144 { "_wxRect","_class_wxRect",0},
9145 { "_wxPoint","_class_wxPoint",0},
9146 { "_char","_wxChar",0},
9147 { "_wxBitmap","_class_wxBitmap",0},
9148 { "_wxPenList","_class_wxPenList",0},
9149 { "_wxWindowDC","_class_wxWindowDC",0},
9150 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
9151 { "_class_wxColourDatabase","_wxColourDatabase",0},
9152 { "_EBool","_wxCoord",0},
9153 { "_EBool","_wxPrintQuality",0},
9154 { "_EBool","_signed_int",0},
9155 { "_EBool","_int",0},
9156 { "_EBool","_wxWindowID",0},
9157 { "_class_wxRegion","_wxRegion",0},
9158 { "_wxFont","_class_wxFont",0},
9159 { "_unsigned_long","_long",0},
9160 { "_class_wxRect","_wxRect",0},
9161 { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9162 { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
9163 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
9164 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
9165 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
9166 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
9167 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
9168 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
9169 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
9170 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
9171 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9172 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
9173 { "_class_wxDC","_wxDC",0},
9174 { "_class_wxBrushList","_wxBrushList",0},
9175 { "_class_wxPenList","_wxPenList",0},
9176 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
9177 { "_signed_int","_wxCoord",0},
9178 { "_signed_int","_wxPrintQuality",0},
9179 { "_signed_int","_EBool",0},
9180 { "_signed_int","_wxWindowID",0},
9181 { "_signed_int","_int",0},
9182 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
9183 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
9184 { "_wxScreenDC","_class_wxScreenDC",0},
9185 { "_WXTYPE","_short",0},
9186 { "_WXTYPE","_signed_short",0},
9187 { "_WXTYPE","_unsigned_short",0},
9188 { "_class_wxBrush","_wxBrush",0},
9189 { "_unsigned_short","_WXTYPE",0},
9190 { "_unsigned_short","_short",0},
9191 { "_class_wxFont","_wxFont",0},
9192 { "_wxBusyInfo","_class_wxBusyInfo",0},
9193 { "_wxFontList","_class_wxFontList",0},
9194 { "_wxClientDC","_class_wxClientDC",0},
9195 { "_class_wxPoint","_wxPoint",0},
9196 { "_wxRealPoint","_class_wxRealPoint",0},
9197 { "_signed_short","_WXTYPE",0},
9198 { "_signed_short","_short",0},
9199 { "_wxMemoryDC","_class_wxMemoryDC",0},
9200 { "_wxPaintDC","_class_wxPaintDC",0},
9201 { "_class_wxWindowDC","_wxWindowDC",0},
9202 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
9203 { "_class_wxCursor","_wxCursor",0},
9204 { "_unsigned_char","_byte",0},
9205 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
9206 { "_unsigned_int","_wxCoord",0},
9207 { "_unsigned_int","_wxPrintQuality",0},
9208 { "_unsigned_int","_time_t",0},
9209 { "_unsigned_int","_size_t",0},
9210 { "_unsigned_int","_uint",0},
9211 { "_unsigned_int","_wxWindowID",0},
9212 { "_unsigned_int","_int",0},
9213 { "_wxIcon","_class_wxIcon",0},
9214 { "_class_wxPen","_wxPen",0},
9215 { "_short","_WXTYPE",0},
9216 { "_short","_unsigned_short",0},
9217 { "_short","_signed_short",0},
9218 { "_class_wxImageList","_wxImageList",0},
9219 { "_wxWindowID","_wxCoord",0},
9220 { "_wxWindowID","_wxPrintQuality",0},
9221 { "_wxWindowID","_time_t",0},
9222 { "_wxWindowID","_size_t",0},
9223 { "_wxWindowID","_EBool",0},
9224 { "_wxWindowID","_uint",0},
9225 { "_wxWindowID","_int",0},
9226 { "_wxWindowID","_signed_int",0},
9227 { "_wxWindowID","_unsigned_int",0},
9228 { "_int","_wxCoord",0},
9229 { "_int","_wxPrintQuality",0},
9230 { "_int","_time_t",0},
9231 { "_int","_size_t",0},
9232 { "_int","_EBool",0},
9233 { "_int","_uint",0},
9234 { "_int","_wxWindowID",0},
9235 { "_int","_unsigned_int",0},
9236 { "_int","_signed_int",0},
9237 { "_time_t","_wxCoord",0},
9238 { "_time_t","_wxPrintQuality",0},
9239 { "_time_t","_unsigned_int",0},
9240 { "_time_t","_int",0},
9241 { "_time_t","_wxWindowID",0},
9242 { "_time_t","_uint",0},
9243 { "_time_t","_size_t",0},
9244 { "_wxSize","_class_wxSize",0},
9245 { "_wxRegionIterator","_class_wxRegionIterator",0},
9246 { "_class_wxPaintDC","_wxPaintDC",0},
9247 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
9248 { "_class_wxIcon","_wxIcon",0},
9249 { "_class_wxColour","_wxColour",0},
9250 { "_class_wxScreenDC","_wxScreenDC",0},
9251 { "_wxPalette","_class_wxPalette",0},
9252 { "_wxCoord","_int",0},
9253 { "_wxCoord","_signed_int",0},
9254 { "_wxCoord","_unsigned_int",0},
9255 { "_wxCoord","_wxWindowID",0},
9256 { "_wxCoord","_uint",0},
9257 { "_wxCoord","_EBool",0},
9258 { "_wxCoord","_size_t",0},
9259 { "_wxCoord","_time_t",0},
9260 { "_wxCoord","_wxPrintQuality",0},
9261 { "_wxRegion","_class_wxRegion",0},
9262 { "_class_wxBusyInfo","_wxBusyInfo",0},
9263 { "_class_wxFontList","_wxFontList",0},
9264 { "_class_wxClientDC","_wxClientDC",0},
9265 { "_wxBrushList","_class_wxBrushList",0},
9266 { "_class_wxSize","_wxSize",0},
9267 { "_class_wxBitmap","_wxBitmap",0},
9268 { "_class_wxMemoryDC","_wxMemoryDC",0},
9269 { "_class_wxPalette","_wxPalette",0},
9272 static PyObject
*SWIG_globals
;
9276 SWIGEXPORT(void) initgdic() {
9278 SWIG_globals
= SWIG_newvarlink();
9279 m
= Py_InitModule("gdic", gdicMethods
);
9280 d
= PyModule_GetDict(m
);
9281 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
9282 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
9283 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
9284 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
9285 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
9286 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
9287 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
9288 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
9289 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
9290 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
9291 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
9292 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
9293 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
9294 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
9295 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
9296 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
9297 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
9298 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
9299 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
9300 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
9301 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
9302 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
9303 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
9304 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
9305 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
9306 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
9307 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
9308 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
9309 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
9310 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
9311 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
9312 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
9313 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
9314 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
9315 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
9316 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
9317 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
9318 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
9319 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
9320 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
9321 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
9322 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
9323 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
9324 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
9325 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
9326 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
9327 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
9328 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
9329 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
9330 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
9331 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
9332 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
9333 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
9334 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
9335 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
9336 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
9337 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
9338 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
9339 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
9340 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
9341 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
9342 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
9343 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
9344 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
9345 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
9346 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
9347 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
9348 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
9349 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
9350 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
9351 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
9352 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
9353 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
9354 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
9355 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
9356 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
9357 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
9358 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
9359 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
9360 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
9361 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
9362 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
9363 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
9366 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
9367 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);