2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/metafile.h>
60 #include <wx/imaglist.h>
65 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyList_Check(target
)) {
75 target
= PyList_New(0);
76 PyList_Append(target
, o2
);
79 PyList_Append(target
,o
);
85 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
91 } else if (target
== Py_None
) {
95 if (!PyTuple_Check(target
)) {
97 target
= PyTuple_New(1);
98 PyTuple_SetItem(target
, 0, o2
);
101 PyTuple_SetItem(o3
, 0, o
);
104 target
= PySequence_Concat(o2
, o3
);
111 static char* wxStringErrorMsg
= "string type is required for parameter";
112 // Alternate 'constructor'
113 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
114 return new wxBitmap(width
, height
, depth
);
118 wxBitmap
* wxBitmapFromData(PyObject
* data
, long type
,
119 int width
, int height
, int depth
= 1) {
120 if (! PyString_Check(data
)) {
121 PyErr_SetString(PyExc_TypeError
, "Expected string object");
125 return new wxBitmap((void*)PyString_AsString(data
), type
, width
, height
, depth
);
129 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
130 return new wxMask(bitmap
, colour
);
132 // Alternate 'constructor'
133 wxCursor
* wxPyStockCursor(int id
) {
134 return new wxCursor(id
);
137 wxFontEncoding
wxFont_GetDefaultEncoding() {
138 return wxFont::GetDefaultEncoding();
141 void wxFont_SetDefaultEncoding(wxFontEncoding encoding
) {
142 wxFont::SetDefaultEncoding(encoding
);
144 // Alternate 'constructor'
145 wxColour
* wxNamedColour(const wxString
& colorName
) {
146 return new wxColour(colorName
);
148 // Alternate 'constructor'
149 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
150 return new wxMemoryDC(oldDC
);
154 extern wxFont
* wxNORMAL_FONT
;
155 extern wxFont
* wxSMALL_FONT
;
156 extern wxFont
* wxITALIC_FONT
;
157 extern wxFont
* wxSWISS_FONT
;
158 extern wxPen
* wxRED_PEN
;
159 extern wxPen
* wxCYAN_PEN
;
160 extern wxPen
* wxGREEN_PEN
;
161 extern wxPen
* wxBLACK_PEN
;
162 extern wxPen
* wxWHITE_PEN
;
163 extern wxPen
* wxTRANSPARENT_PEN
;
164 extern wxPen
* wxBLACK_DASHED_PEN
;
165 extern wxPen
* wxGREY_PEN
;
166 extern wxPen
* wxMEDIUM_GREY_PEN
;
167 extern wxPen
* wxLIGHT_GREY_PEN
;
168 extern wxBrush
* wxBLUE_BRUSH
;
169 extern wxBrush
* wxGREEN_BRUSH
;
170 extern wxBrush
* wxWHITE_BRUSH
;
171 extern wxBrush
* wxBLACK_BRUSH
;
172 extern wxBrush
* wxTRANSPARENT_BRUSH
;
173 extern wxBrush
* wxCYAN_BRUSH
;
174 extern wxBrush
* wxRED_BRUSH
;
175 extern wxBrush
* wxGREY_BRUSH
;
176 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
177 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
178 extern wxColour
* wxBLACK
;
179 extern wxColour
* wxWHITE
;
180 extern wxColour
* wxRED
;
181 extern wxColour
* wxBLUE
;
182 extern wxColour
* wxGREEN
;
183 extern wxColour
* wxCYAN
;
184 extern wxColour
* wxLIGHT_GREY
;
185 extern wxCursor
* wxSTANDARD_CURSOR
;
186 extern wxCursor
* wxHOURGLASS_CURSOR
;
187 extern wxCursor
* wxCROSS_CURSOR
;
188 extern wxBitmap wxNullBitmap
;
189 extern wxIcon wxNullIcon
;
190 extern wxCursor wxNullCursor
;
191 extern wxPen wxNullPen
;
192 extern wxBrush wxNullBrush
;
193 extern wxPalette wxNullPalette
;
194 extern wxFont wxNullFont
;
195 extern wxColour wxNullColour
;
201 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
202 PyObject
* _resultobj
;
206 int _arg2
= (int ) -1;
207 char *_kwnames
[] = { "width","height","depth", NULL
};
211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
214 wxPy_BEGIN_ALLOW_THREADS
;
215 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
217 wxPy_END_ALLOW_THREADS
;
219 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
220 _resultobj
= Py_BuildValue("s",_ptemp
);
223 _resultobj
= Py_None
;
228 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
229 PyObject
* _resultobj
;
233 PyObject
* _argo0
= 0;
235 PyObject
* _obj1
= 0;
236 char *_kwnames
[] = { "bitmap","colour", NULL
};
240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
251 if (! wxColour_helper(_obj1
, &_arg1
))
255 wxPy_BEGIN_ALLOW_THREADS
;
256 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
258 wxPy_END_ALLOW_THREADS
;
260 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
261 _resultobj
= Py_BuildValue("s",_ptemp
);
264 _resultobj
= Py_None
;
269 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
270 PyObject
* _resultobj
;
273 char *_kwnames
[] = { "id", NULL
};
277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
280 wxPy_BEGIN_ALLOW_THREADS
;
281 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
283 wxPy_END_ALLOW_THREADS
;
285 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
286 _resultobj
= Py_BuildValue("s",_ptemp
);
289 _resultobj
= Py_None
;
294 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
295 PyObject
* _resultobj
;
296 wxFontEncoding _result
;
297 char *_kwnames
[] = { NULL
};
300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
303 wxPy_BEGIN_ALLOW_THREADS
;
304 _result
= (wxFontEncoding
)wxFont_GetDefaultEncoding();
306 wxPy_END_ALLOW_THREADS
;
307 } _resultobj
= Py_BuildValue("i",_result
);
311 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
312 PyObject
* _resultobj
;
313 wxFontEncoding _arg0
;
314 char *_kwnames
[] = { "encoding", NULL
};
317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
320 wxPy_BEGIN_ALLOW_THREADS
;
321 wxFont_SetDefaultEncoding(_arg0
);
323 wxPy_END_ALLOW_THREADS
;
324 } Py_INCREF(Py_None
);
325 _resultobj
= Py_None
;
329 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
330 PyObject
* _resultobj
;
333 PyObject
* _obj0
= 0;
334 char *_kwnames
[] = { "colorName", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
341 #if PYTHON_API_VERSION >= 1009
342 char* tmpPtr
; int tmpSize
;
343 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
344 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
347 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
349 _arg0
= new wxString(tmpPtr
, tmpSize
);
351 if (!PyString_Check(_obj0
)) {
352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
355 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
359 wxPy_BEGIN_ALLOW_THREADS
;
360 _result
= (wxColour
*)wxNamedColour(*_arg0
);
362 wxPy_END_ALLOW_THREADS
;
364 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
365 _resultobj
= Py_BuildValue("s",_ptemp
);
368 _resultobj
= Py_None
;
377 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
378 PyObject
* _resultobj
;
379 wxMemoryDC
* _result
;
381 PyObject
* _argo0
= 0;
382 char *_kwnames
[] = { "oldDC", NULL
};
386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
396 wxPy_BEGIN_ALLOW_THREADS
;
397 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
399 wxPy_END_ALLOW_THREADS
;
401 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
402 _resultobj
= Py_BuildValue("s",_ptemp
);
405 _resultobj
= Py_None
;
410 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
412 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
416 static PyObject
*_wrap_wxNORMAL_FONT_get() {
420 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
421 pyobj
= PyString_FromString(ptemp
);
425 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
427 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
431 static PyObject
*_wrap_wxSMALL_FONT_get() {
435 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
436 pyobj
= PyString_FromString(ptemp
);
440 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
442 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
446 static PyObject
*_wrap_wxITALIC_FONT_get() {
450 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
451 pyobj
= PyString_FromString(ptemp
);
455 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
457 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
461 static PyObject
*_wrap_wxSWISS_FONT_get() {
465 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
466 pyobj
= PyString_FromString(ptemp
);
470 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
472 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
476 static PyObject
*_wrap_wxRED_PEN_get() {
480 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
481 pyobj
= PyString_FromString(ptemp
);
485 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
487 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
491 static PyObject
*_wrap_wxCYAN_PEN_get() {
495 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
496 pyobj
= PyString_FromString(ptemp
);
500 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
502 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
506 static PyObject
*_wrap_wxGREEN_PEN_get() {
510 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
511 pyobj
= PyString_FromString(ptemp
);
515 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
517 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
521 static PyObject
*_wrap_wxBLACK_PEN_get() {
525 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
526 pyobj
= PyString_FromString(ptemp
);
530 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
532 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
536 static PyObject
*_wrap_wxWHITE_PEN_get() {
540 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
541 pyobj
= PyString_FromString(ptemp
);
545 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
547 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
551 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
555 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
556 pyobj
= PyString_FromString(ptemp
);
560 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
562 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
566 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
570 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
571 pyobj
= PyString_FromString(ptemp
);
575 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
577 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
581 static PyObject
*_wrap_wxGREY_PEN_get() {
585 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
586 pyobj
= PyString_FromString(ptemp
);
590 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
592 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
596 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
600 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
601 pyobj
= PyString_FromString(ptemp
);
605 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
607 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
611 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
615 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
616 pyobj
= PyString_FromString(ptemp
);
620 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
622 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
626 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
630 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
631 pyobj
= PyString_FromString(ptemp
);
635 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
637 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
641 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
645 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
646 pyobj
= PyString_FromString(ptemp
);
650 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
652 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
656 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
660 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
661 pyobj
= PyString_FromString(ptemp
);
665 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
667 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
671 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
675 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
676 pyobj
= PyString_FromString(ptemp
);
680 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
682 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
686 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
690 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
691 pyobj
= PyString_FromString(ptemp
);
695 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
697 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
701 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
705 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
706 pyobj
= PyString_FromString(ptemp
);
710 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
712 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
716 static PyObject
*_wrap_wxRED_BRUSH_get() {
720 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
721 pyobj
= PyString_FromString(ptemp
);
725 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
727 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
731 static PyObject
*_wrap_wxGREY_BRUSH_get() {
735 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
736 pyobj
= PyString_FromString(ptemp
);
740 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
742 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
746 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
750 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
751 pyobj
= PyString_FromString(ptemp
);
755 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
757 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
761 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
765 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
766 pyobj
= PyString_FromString(ptemp
);
770 static int _wrap_wxBLACK_set(PyObject
*val
) {
772 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
776 static PyObject
*_wrap_wxBLACK_get() {
780 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
781 pyobj
= PyString_FromString(ptemp
);
785 static int _wrap_wxWHITE_set(PyObject
*val
) {
787 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
791 static PyObject
*_wrap_wxWHITE_get() {
795 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
796 pyobj
= PyString_FromString(ptemp
);
800 static int _wrap_wxRED_set(PyObject
*val
) {
802 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
806 static PyObject
*_wrap_wxRED_get() {
810 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
811 pyobj
= PyString_FromString(ptemp
);
815 static int _wrap_wxBLUE_set(PyObject
*val
) {
817 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
821 static PyObject
*_wrap_wxBLUE_get() {
825 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
826 pyobj
= PyString_FromString(ptemp
);
830 static int _wrap_wxGREEN_set(PyObject
*val
) {
832 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
836 static PyObject
*_wrap_wxGREEN_get() {
840 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
841 pyobj
= PyString_FromString(ptemp
);
845 static int _wrap_wxCYAN_set(PyObject
*val
) {
847 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
851 static PyObject
*_wrap_wxCYAN_get() {
855 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
856 pyobj
= PyString_FromString(ptemp
);
860 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
862 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
866 static PyObject
*_wrap_wxLIGHT_GREY_get() {
870 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
871 pyobj
= PyString_FromString(ptemp
);
875 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
877 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
881 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
885 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
886 pyobj
= PyString_FromString(ptemp
);
890 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
892 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
896 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
900 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
901 pyobj
= PyString_FromString(ptemp
);
905 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
907 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
911 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
915 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
916 pyobj
= PyString_FromString(ptemp
);
920 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
922 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
926 static PyObject
*_wrap_wxNullBitmap_get() {
930 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
931 pyobj
= PyString_FromString(ptemp
);
935 static int _wrap_wxNullIcon_set(PyObject
*val
) {
937 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
941 static PyObject
*_wrap_wxNullIcon_get() {
945 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
946 pyobj
= PyString_FromString(ptemp
);
950 static int _wrap_wxNullCursor_set(PyObject
*val
) {
952 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
956 static PyObject
*_wrap_wxNullCursor_get() {
960 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
961 pyobj
= PyString_FromString(ptemp
);
965 static int _wrap_wxNullPen_set(PyObject
*val
) {
967 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
971 static PyObject
*_wrap_wxNullPen_get() {
975 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
976 pyobj
= PyString_FromString(ptemp
);
980 static int _wrap_wxNullBrush_set(PyObject
*val
) {
982 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
986 static PyObject
*_wrap_wxNullBrush_get() {
990 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
991 pyobj
= PyString_FromString(ptemp
);
995 static int _wrap_wxNullPalette_set(PyObject
*val
) {
997 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1001 static PyObject
*_wrap_wxNullPalette_get() {
1005 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1006 pyobj
= PyString_FromString(ptemp
);
1010 static int _wrap_wxNullFont_set(PyObject
*val
) {
1012 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1016 static PyObject
*_wrap_wxNullFont_get() {
1020 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1021 pyobj
= PyString_FromString(ptemp
);
1025 static int _wrap_wxNullColour_set(PyObject
*val
) {
1027 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1031 static PyObject
*_wrap_wxNullColour_get() {
1035 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1036 pyobj
= PyString_FromString(ptemp
);
1040 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1041 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1042 PyObject
* _resultobj
;
1046 PyObject
* _obj0
= 0;
1047 char *_kwnames
[] = { "name","type", NULL
};
1051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1054 #if PYTHON_API_VERSION >= 1009
1055 char* tmpPtr
; int tmpSize
;
1056 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1057 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1060 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1062 _arg0
= new wxString(tmpPtr
, tmpSize
);
1064 if (!PyString_Check(_obj0
)) {
1065 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1068 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1072 wxPy_BEGIN_ALLOW_THREADS
;
1073 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1075 wxPy_END_ALLOW_THREADS
;
1077 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1078 _resultobj
= Py_BuildValue("s",_ptemp
);
1081 _resultobj
= Py_None
;
1090 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1091 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1092 PyObject
* _resultobj
;
1094 PyObject
* _argo0
= 0;
1095 char *_kwnames
[] = { "self", NULL
};
1098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1108 wxPy_BEGIN_ALLOW_THREADS
;
1109 delete_wxBitmap(_arg0
);
1111 wxPy_END_ALLOW_THREADS
;
1112 } Py_INCREF(Py_None
);
1113 _resultobj
= Py_None
;
1117 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1118 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1119 PyObject
* _resultobj
;
1120 wxPalette
* _result
;
1122 PyObject
* _argo0
= 0;
1123 char *_kwnames
[] = { "self", NULL
};
1127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1137 wxPy_BEGIN_ALLOW_THREADS
;
1138 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1140 wxPy_END_ALLOW_THREADS
;
1142 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1143 _resultobj
= Py_BuildValue("s",_ptemp
);
1146 _resultobj
= Py_None
;
1151 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1152 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1153 PyObject
* _resultobj
;
1156 PyObject
* _argo0
= 0;
1157 char *_kwnames
[] = { "self", NULL
};
1161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1171 wxPy_BEGIN_ALLOW_THREADS
;
1172 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1174 wxPy_END_ALLOW_THREADS
;
1176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1177 _resultobj
= Py_BuildValue("s",_ptemp
);
1180 _resultobj
= Py_None
;
1185 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1186 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1187 PyObject
* _resultobj
;
1192 PyObject
* _argo0
= 0;
1193 PyObject
* _obj1
= 0;
1194 char *_kwnames
[] = { "self","name","flags", NULL
};
1197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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 wxBitmap_LoadFile. Expected _wxBitmap_p.");
1207 #if PYTHON_API_VERSION >= 1009
1208 char* tmpPtr
; int tmpSize
;
1209 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1210 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1213 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1215 _arg1
= new wxString(tmpPtr
, tmpSize
);
1217 if (!PyString_Check(_obj1
)) {
1218 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1221 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1225 wxPy_BEGIN_ALLOW_THREADS
;
1226 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1228 wxPy_END_ALLOW_THREADS
;
1229 } _resultobj
= Py_BuildValue("i",_result
);
1237 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1238 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1239 PyObject
* _resultobj
;
1244 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1245 PyObject
* _argo0
= 0;
1246 PyObject
* _obj1
= 0;
1247 PyObject
* _argo3
= 0;
1248 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1261 #if PYTHON_API_VERSION >= 1009
1262 char* tmpPtr
; int tmpSize
;
1263 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1264 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1267 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1269 _arg1
= new wxString(tmpPtr
, tmpSize
);
1271 if (!PyString_Check(_obj1
)) {
1272 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1275 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1279 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1280 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1286 wxPy_BEGIN_ALLOW_THREADS
;
1287 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1289 wxPy_END_ALLOW_THREADS
;
1290 } _resultobj
= Py_BuildValue("i",_result
);
1298 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1299 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1303 PyObject
* _argo0
= 0;
1304 PyObject
* _argo1
= 0;
1305 char *_kwnames
[] = { "self","mask", NULL
};
1308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1318 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1319 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1325 wxPy_BEGIN_ALLOW_THREADS
;
1326 wxBitmap_SetMask(_arg0
,_arg1
);
1328 wxPy_END_ALLOW_THREADS
;
1329 } Py_INCREF(Py_None
);
1330 _resultobj
= Py_None
;
1334 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1335 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
* _resultobj
;
1339 PyObject
* _argo0
= 0;
1340 char *_kwnames
[] = { "self", NULL
};
1343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1353 wxPy_BEGIN_ALLOW_THREADS
;
1354 _result
= (bool )wxBitmap_Ok(_arg0
);
1356 wxPy_END_ALLOW_THREADS
;
1357 } _resultobj
= Py_BuildValue("i",_result
);
1361 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1362 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1363 PyObject
* _resultobj
;
1366 PyObject
* _argo0
= 0;
1367 char *_kwnames
[] = { "self", NULL
};
1370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1380 wxPy_BEGIN_ALLOW_THREADS
;
1381 _result
= (int )wxBitmap_GetWidth(_arg0
);
1383 wxPy_END_ALLOW_THREADS
;
1384 } _resultobj
= Py_BuildValue("i",_result
);
1388 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1389 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1390 PyObject
* _resultobj
;
1393 PyObject
* _argo0
= 0;
1394 char *_kwnames
[] = { "self", NULL
};
1397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1407 wxPy_BEGIN_ALLOW_THREADS
;
1408 _result
= (int )wxBitmap_GetHeight(_arg0
);
1410 wxPy_END_ALLOW_THREADS
;
1411 } _resultobj
= Py_BuildValue("i",_result
);
1415 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1416 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1417 PyObject
* _resultobj
;
1420 PyObject
* _argo0
= 0;
1421 char *_kwnames
[] = { "self", NULL
};
1424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1434 wxPy_BEGIN_ALLOW_THREADS
;
1435 _result
= (int )wxBitmap_GetDepth(_arg0
);
1437 wxPy_END_ALLOW_THREADS
;
1438 } _resultobj
= Py_BuildValue("i",_result
);
1442 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1443 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1444 PyObject
* _resultobj
;
1447 PyObject
* _argo0
= 0;
1448 char *_kwnames
[] = { "self","w", NULL
};
1451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1461 wxPy_BEGIN_ALLOW_THREADS
;
1462 wxBitmap_SetWidth(_arg0
,_arg1
);
1464 wxPy_END_ALLOW_THREADS
;
1465 } Py_INCREF(Py_None
);
1466 _resultobj
= Py_None
;
1470 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1471 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1475 PyObject
* _argo0
= 0;
1476 char *_kwnames
[] = { "self","h", NULL
};
1479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1489 wxPy_BEGIN_ALLOW_THREADS
;
1490 wxBitmap_SetHeight(_arg0
,_arg1
);
1492 wxPy_END_ALLOW_THREADS
;
1493 } Py_INCREF(Py_None
);
1494 _resultobj
= Py_None
;
1498 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1499 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1500 PyObject
* _resultobj
;
1503 PyObject
* _argo0
= 0;
1504 char *_kwnames
[] = { "self","d", NULL
};
1507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1517 wxPy_BEGIN_ALLOW_THREADS
;
1518 wxBitmap_SetDepth(_arg0
,_arg1
);
1520 wxPy_END_ALLOW_THREADS
;
1521 } Py_INCREF(Py_None
);
1522 _resultobj
= Py_None
;
1526 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1527 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1528 PyObject
* _resultobj
;
1532 PyObject
* _argo0
= 0;
1534 PyObject
* _obj1
= 0;
1535 char *_kwnames
[] = { "self","rect", NULL
};
1539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1550 if (! wxRect_helper(_obj1
, &_arg1
))
1554 wxPy_BEGIN_ALLOW_THREADS
;
1555 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1557 wxPy_END_ALLOW_THREADS
;
1558 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1559 _resultobj
= Py_BuildValue("s",_ptemp
);
1563 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
1564 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1565 PyObject
* _resultobj
;
1568 PyObject
* _argo0
= 0;
1569 char *_kwnames
[] = { "bitmap", NULL
};
1573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
1576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
1583 wxPy_BEGIN_ALLOW_THREADS
;
1584 _result
= (wxMask
*)new_wxMask(*_arg0
);
1586 wxPy_END_ALLOW_THREADS
;
1588 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1589 _resultobj
= Py_BuildValue("s",_ptemp
);
1592 _resultobj
= Py_None
;
1597 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1598 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1599 PyObject
* _resultobj
;
1603 int _arg2
= (int ) -1;
1604 int _arg3
= (int ) -1;
1605 PyObject
* _obj0
= 0;
1606 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
1610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
1613 #if PYTHON_API_VERSION >= 1009
1614 char* tmpPtr
; int tmpSize
;
1615 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1616 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1619 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1621 _arg0
= new wxString(tmpPtr
, tmpSize
);
1623 if (!PyString_Check(_obj0
)) {
1624 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1627 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1631 wxPy_BEGIN_ALLOW_THREADS
;
1632 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
1634 wxPy_END_ALLOW_THREADS
;
1636 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
1637 _resultobj
= Py_BuildValue("s",_ptemp
);
1640 _resultobj
= Py_None
;
1649 #define delete_wxIcon(_swigobj) (delete _swigobj)
1650 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1651 PyObject
* _resultobj
;
1653 PyObject
* _argo0
= 0;
1654 char *_kwnames
[] = { "self", NULL
};
1657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
1660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
1667 wxPy_BEGIN_ALLOW_THREADS
;
1668 delete_wxIcon(_arg0
);
1670 wxPy_END_ALLOW_THREADS
;
1671 } Py_INCREF(Py_None
);
1672 _resultobj
= Py_None
;
1676 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1677 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1678 PyObject
* _resultobj
;
1683 PyObject
* _argo0
= 0;
1684 PyObject
* _obj1
= 0;
1685 char *_kwnames
[] = { "self","name","flags", NULL
};
1688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
1698 #if PYTHON_API_VERSION >= 1009
1699 char* tmpPtr
; int tmpSize
;
1700 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1701 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1704 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1706 _arg1
= new wxString(tmpPtr
, tmpSize
);
1708 if (!PyString_Check(_obj1
)) {
1709 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1712 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1716 wxPy_BEGIN_ALLOW_THREADS
;
1717 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
1719 wxPy_END_ALLOW_THREADS
;
1720 } _resultobj
= Py_BuildValue("i",_result
);
1728 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
1729 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1730 PyObject
* _resultobj
;
1733 PyObject
* _argo0
= 0;
1734 char *_kwnames
[] = { "self", NULL
};
1737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
1740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
1747 wxPy_BEGIN_ALLOW_THREADS
;
1748 _result
= (bool )wxIcon_Ok(_arg0
);
1750 wxPy_END_ALLOW_THREADS
;
1751 } _resultobj
= Py_BuildValue("i",_result
);
1755 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
1756 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1757 PyObject
* _resultobj
;
1760 PyObject
* _argo0
= 0;
1761 char *_kwnames
[] = { "self", NULL
};
1764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
1767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
1774 wxPy_BEGIN_ALLOW_THREADS
;
1775 _result
= (int )wxIcon_GetWidth(_arg0
);
1777 wxPy_END_ALLOW_THREADS
;
1778 } _resultobj
= Py_BuildValue("i",_result
);
1782 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
1783 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1784 PyObject
* _resultobj
;
1787 PyObject
* _argo0
= 0;
1788 char *_kwnames
[] = { "self", NULL
};
1791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
1794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
1801 wxPy_BEGIN_ALLOW_THREADS
;
1802 _result
= (int )wxIcon_GetHeight(_arg0
);
1804 wxPy_END_ALLOW_THREADS
;
1805 } _resultobj
= Py_BuildValue("i",_result
);
1809 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
1810 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1811 PyObject
* _resultobj
;
1814 PyObject
* _argo0
= 0;
1815 char *_kwnames
[] = { "self", NULL
};
1818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
1821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
1828 wxPy_BEGIN_ALLOW_THREADS
;
1829 _result
= (int )wxIcon_GetDepth(_arg0
);
1831 wxPy_END_ALLOW_THREADS
;
1832 } _resultobj
= Py_BuildValue("i",_result
);
1836 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1837 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1838 PyObject
* _resultobj
;
1841 PyObject
* _argo0
= 0;
1842 char *_kwnames
[] = { "self","w", NULL
};
1845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
1855 wxPy_BEGIN_ALLOW_THREADS
;
1856 wxIcon_SetWidth(_arg0
,_arg1
);
1858 wxPy_END_ALLOW_THREADS
;
1859 } Py_INCREF(Py_None
);
1860 _resultobj
= Py_None
;
1864 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1865 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1866 PyObject
* _resultobj
;
1869 PyObject
* _argo0
= 0;
1870 char *_kwnames
[] = { "self","h", NULL
};
1873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
1883 wxPy_BEGIN_ALLOW_THREADS
;
1884 wxIcon_SetHeight(_arg0
,_arg1
);
1886 wxPy_END_ALLOW_THREADS
;
1887 } Py_INCREF(Py_None
);
1888 _resultobj
= Py_None
;
1892 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1893 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1894 PyObject
* _resultobj
;
1897 PyObject
* _argo0
= 0;
1898 char *_kwnames
[] = { "self","d", NULL
};
1901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
1906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
1911 wxPy_BEGIN_ALLOW_THREADS
;
1912 wxIcon_SetDepth(_arg0
,_arg1
);
1914 wxPy_END_ALLOW_THREADS
;
1915 } Py_INCREF(Py_None
);
1916 _resultobj
= Py_None
;
1920 #define delete_wxCursor(_swigobj) (delete _swigobj)
1921 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1922 PyObject
* _resultobj
;
1924 PyObject
* _argo0
= 0;
1925 char *_kwnames
[] = { "self", NULL
};
1928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
1931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
1933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
1938 wxPy_BEGIN_ALLOW_THREADS
;
1939 delete_wxCursor(_arg0
);
1941 wxPy_END_ALLOW_THREADS
;
1942 } Py_INCREF(Py_None
);
1943 _resultobj
= Py_None
;
1947 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
1948 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1949 PyObject
* _resultobj
;
1952 PyObject
* _argo0
= 0;
1953 char *_kwnames
[] = { "self", NULL
};
1956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
1959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
1961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
1966 wxPy_BEGIN_ALLOW_THREADS
;
1967 _result
= (bool )wxCursor_Ok(_arg0
);
1969 wxPy_END_ALLOW_THREADS
;
1970 } _resultobj
= Py_BuildValue("i",_result
);
1974 static wxFont
*new_wxFont(int pointSize
,int family
,int style
,int weight
,int underline
,char *faceName
,wxFontEncoding encoding
) {
1976 return wxTheFontList
->FindOrCreateFont(pointSize
, family
, style
, weight
,
1977 underline
, faceName
, encoding
);
1980 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1981 PyObject
* _resultobj
;
1987 int _arg4
= (int ) FALSE
;
1988 char * _arg5
= (char *) "";
1989 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
1990 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
1994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
1997 wxPy_BEGIN_ALLOW_THREADS
;
1998 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2000 wxPy_END_ALLOW_THREADS
;
2002 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
2003 _resultobj
= Py_BuildValue("s",_ptemp
);
2006 _resultobj
= Py_None
;
2011 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
2012 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2013 PyObject
* _resultobj
;
2016 PyObject
* _argo0
= 0;
2017 char *_kwnames
[] = { "self", NULL
};
2020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
2023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
2030 wxPy_BEGIN_ALLOW_THREADS
;
2031 _result
= (bool )wxFont_Ok(_arg0
);
2033 wxPy_END_ALLOW_THREADS
;
2034 } _resultobj
= Py_BuildValue("i",_result
);
2038 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
2039 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2040 PyObject
* _resultobj
;
2043 PyObject
* _argo0
= 0;
2044 char *_kwnames
[] = { "self", NULL
};
2047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
2050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
2057 wxPy_BEGIN_ALLOW_THREADS
;
2058 _result
= new wxString (wxFont_GetFaceName(_arg0
));
2060 wxPy_END_ALLOW_THREADS
;
2062 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2070 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
2071 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2072 PyObject
* _resultobj
;
2075 PyObject
* _argo0
= 0;
2076 char *_kwnames
[] = { "self", NULL
};
2079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
2082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
2089 wxPy_BEGIN_ALLOW_THREADS
;
2090 _result
= (int )wxFont_GetFamily(_arg0
);
2092 wxPy_END_ALLOW_THREADS
;
2093 } _resultobj
= Py_BuildValue("i",_result
);
2097 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
2098 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2099 PyObject
* _resultobj
;
2102 PyObject
* _argo0
= 0;
2103 char *_kwnames
[] = { "self", NULL
};
2106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
2109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
2116 wxPy_BEGIN_ALLOW_THREADS
;
2117 _result
= (int )wxFont_GetPointSize(_arg0
);
2119 wxPy_END_ALLOW_THREADS
;
2120 } _resultobj
= Py_BuildValue("i",_result
);
2124 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
2125 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2126 PyObject
* _resultobj
;
2129 PyObject
* _argo0
= 0;
2130 char *_kwnames
[] = { "self", NULL
};
2133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
2136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
2143 wxPy_BEGIN_ALLOW_THREADS
;
2144 _result
= (int )wxFont_GetStyle(_arg0
);
2146 wxPy_END_ALLOW_THREADS
;
2147 } _resultobj
= Py_BuildValue("i",_result
);
2151 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
2152 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2153 PyObject
* _resultobj
;
2156 PyObject
* _argo0
= 0;
2157 char *_kwnames
[] = { "self", NULL
};
2160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
2163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
2170 wxPy_BEGIN_ALLOW_THREADS
;
2171 _result
= (bool )wxFont_GetUnderlined(_arg0
);
2173 wxPy_END_ALLOW_THREADS
;
2174 } _resultobj
= Py_BuildValue("i",_result
);
2178 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
2179 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2180 PyObject
* _resultobj
;
2183 PyObject
* _argo0
= 0;
2184 char *_kwnames
[] = { "self", NULL
};
2187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
2190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
2197 wxPy_BEGIN_ALLOW_THREADS
;
2198 _result
= (int )wxFont_GetWeight(_arg0
);
2200 wxPy_END_ALLOW_THREADS
;
2201 } _resultobj
= Py_BuildValue("i",_result
);
2205 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
2206 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2207 PyObject
* _resultobj
;
2208 wxFontEncoding _result
;
2210 PyObject
* _argo0
= 0;
2211 char *_kwnames
[] = { "self", NULL
};
2214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
2217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
2224 wxPy_BEGIN_ALLOW_THREADS
;
2225 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
2227 wxPy_END_ALLOW_THREADS
;
2228 } _resultobj
= Py_BuildValue("i",_result
);
2232 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
2233 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2234 PyObject
* _resultobj
;
2237 PyObject
* _argo0
= 0;
2238 PyObject
* _obj1
= 0;
2239 char *_kwnames
[] = { "self","faceName", NULL
};
2242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
2245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
2252 #if PYTHON_API_VERSION >= 1009
2253 char* tmpPtr
; int tmpSize
;
2254 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2255 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
2258 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2260 _arg1
= new wxString(tmpPtr
, tmpSize
);
2262 if (!PyString_Check(_obj1
)) {
2263 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2266 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2270 wxPy_BEGIN_ALLOW_THREADS
;
2271 wxFont_SetFaceName(_arg0
,*_arg1
);
2273 wxPy_END_ALLOW_THREADS
;
2274 } Py_INCREF(Py_None
);
2275 _resultobj
= Py_None
;
2283 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
2284 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2285 PyObject
* _resultobj
;
2288 PyObject
* _argo0
= 0;
2289 char *_kwnames
[] = { "self","family", NULL
};
2292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
2295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
2302 wxPy_BEGIN_ALLOW_THREADS
;
2303 wxFont_SetFamily(_arg0
,_arg1
);
2305 wxPy_END_ALLOW_THREADS
;
2306 } Py_INCREF(Py_None
);
2307 _resultobj
= Py_None
;
2311 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
2312 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2313 PyObject
* _resultobj
;
2316 PyObject
* _argo0
= 0;
2317 char *_kwnames
[] = { "self","pointSize", NULL
};
2320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
2323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
2330 wxPy_BEGIN_ALLOW_THREADS
;
2331 wxFont_SetPointSize(_arg0
,_arg1
);
2333 wxPy_END_ALLOW_THREADS
;
2334 } Py_INCREF(Py_None
);
2335 _resultobj
= Py_None
;
2339 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
2340 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2341 PyObject
* _resultobj
;
2344 PyObject
* _argo0
= 0;
2345 char *_kwnames
[] = { "self","style", NULL
};
2348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
2351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
2358 wxPy_BEGIN_ALLOW_THREADS
;
2359 wxFont_SetStyle(_arg0
,_arg1
);
2361 wxPy_END_ALLOW_THREADS
;
2362 } Py_INCREF(Py_None
);
2363 _resultobj
= Py_None
;
2367 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
2368 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2369 PyObject
* _resultobj
;
2372 PyObject
* _argo0
= 0;
2374 char *_kwnames
[] = { "self","underlined", NULL
};
2377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
2380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
2386 _arg1
= (bool ) tempbool1
;
2388 wxPy_BEGIN_ALLOW_THREADS
;
2389 wxFont_SetUnderlined(_arg0
,_arg1
);
2391 wxPy_END_ALLOW_THREADS
;
2392 } Py_INCREF(Py_None
);
2393 _resultobj
= Py_None
;
2397 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
2398 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2399 PyObject
* _resultobj
;
2402 PyObject
* _argo0
= 0;
2403 char *_kwnames
[] = { "self","weight", NULL
};
2406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
2409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
2416 wxPy_BEGIN_ALLOW_THREADS
;
2417 wxFont_SetWeight(_arg0
,_arg1
);
2419 wxPy_END_ALLOW_THREADS
;
2420 } Py_INCREF(Py_None
);
2421 _resultobj
= Py_None
;
2425 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
2426 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2427 PyObject
* _resultobj
;
2429 wxFontEncoding _arg1
;
2430 PyObject
* _argo0
= 0;
2431 char *_kwnames
[] = { "self","encoding", NULL
};
2434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
2437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
2444 wxPy_BEGIN_ALLOW_THREADS
;
2445 wxFont_SetEncoding(_arg0
,_arg1
);
2447 wxPy_END_ALLOW_THREADS
;
2448 } Py_INCREF(Py_None
);
2449 _resultobj
= Py_None
;
2453 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
2454 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2455 PyObject
* _resultobj
;
2458 PyObject
* _argo0
= 0;
2459 char *_kwnames
[] = { "self", NULL
};
2462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
2465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
2472 wxPy_BEGIN_ALLOW_THREADS
;
2473 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
2475 wxPy_END_ALLOW_THREADS
;
2477 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2485 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
2486 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2487 PyObject
* _resultobj
;
2490 PyObject
* _argo0
= 0;
2491 char *_kwnames
[] = { "self", NULL
};
2494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
2497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
2504 wxPy_BEGIN_ALLOW_THREADS
;
2505 _result
= new wxString (wxFont_GetStyleString(_arg0
));
2507 wxPy_END_ALLOW_THREADS
;
2509 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2517 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
2518 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2519 PyObject
* _resultobj
;
2522 PyObject
* _argo0
= 0;
2523 char *_kwnames
[] = { "self", NULL
};
2526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
2529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
2531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
2536 wxPy_BEGIN_ALLOW_THREADS
;
2537 _result
= new wxString (wxFont_GetWeightString(_arg0
));
2539 wxPy_END_ALLOW_THREADS
;
2541 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2549 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2550 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2551 PyObject
* _resultobj
;
2553 unsigned char _arg0
= (unsigned char ) 0;
2554 unsigned char _arg1
= (unsigned char ) 0;
2555 unsigned char _arg2
= (unsigned char ) 0;
2556 char *_kwnames
[] = { "red","green","blue", NULL
};
2560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
2563 wxPy_BEGIN_ALLOW_THREADS
;
2564 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
2566 wxPy_END_ALLOW_THREADS
;
2568 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
2569 _resultobj
= Py_BuildValue("s",_ptemp
);
2572 _resultobj
= Py_None
;
2577 #define delete_wxColour(_swigobj) (delete _swigobj)
2578 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2579 PyObject
* _resultobj
;
2582 PyObject
* _obj0
= 0;
2583 char *_kwnames
[] = { "self", NULL
};
2586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
2590 if (! wxColour_helper(_obj0
, &_arg0
))
2594 wxPy_BEGIN_ALLOW_THREADS
;
2595 delete_wxColour(_arg0
);
2597 wxPy_END_ALLOW_THREADS
;
2598 } Py_INCREF(Py_None
);
2599 _resultobj
= Py_None
;
2603 #define wxColour_Red(_swigobj) (_swigobj->Red())
2604 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2605 PyObject
* _resultobj
;
2606 unsigned char _result
;
2609 PyObject
* _obj0
= 0;
2610 char *_kwnames
[] = { "self", NULL
};
2613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
2617 if (! wxColour_helper(_obj0
, &_arg0
))
2621 wxPy_BEGIN_ALLOW_THREADS
;
2622 _result
= (unsigned char )wxColour_Red(_arg0
);
2624 wxPy_END_ALLOW_THREADS
;
2625 } _resultobj
= Py_BuildValue("b",_result
);
2629 #define wxColour_Green(_swigobj) (_swigobj->Green())
2630 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2631 PyObject
* _resultobj
;
2632 unsigned char _result
;
2635 PyObject
* _obj0
= 0;
2636 char *_kwnames
[] = { "self", NULL
};
2639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
2643 if (! wxColour_helper(_obj0
, &_arg0
))
2647 wxPy_BEGIN_ALLOW_THREADS
;
2648 _result
= (unsigned char )wxColour_Green(_arg0
);
2650 wxPy_END_ALLOW_THREADS
;
2651 } _resultobj
= Py_BuildValue("b",_result
);
2655 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
2656 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2657 PyObject
* _resultobj
;
2658 unsigned char _result
;
2661 PyObject
* _obj0
= 0;
2662 char *_kwnames
[] = { "self", NULL
};
2665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
2669 if (! wxColour_helper(_obj0
, &_arg0
))
2673 wxPy_BEGIN_ALLOW_THREADS
;
2674 _result
= (unsigned char )wxColour_Blue(_arg0
);
2676 wxPy_END_ALLOW_THREADS
;
2677 } _resultobj
= Py_BuildValue("b",_result
);
2681 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
2682 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2683 PyObject
* _resultobj
;
2687 PyObject
* _obj0
= 0;
2688 char *_kwnames
[] = { "self", NULL
};
2691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
2695 if (! wxColour_helper(_obj0
, &_arg0
))
2699 wxPy_BEGIN_ALLOW_THREADS
;
2700 _result
= (bool )wxColour_Ok(_arg0
);
2702 wxPy_END_ALLOW_THREADS
;
2703 } _resultobj
= Py_BuildValue("i",_result
);
2707 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
2708 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2709 PyObject
* _resultobj
;
2711 unsigned char _arg1
;
2712 unsigned char _arg2
;
2713 unsigned char _arg3
;
2715 PyObject
* _obj0
= 0;
2716 char *_kwnames
[] = { "self","red","green","blue", NULL
};
2719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2723 if (! wxColour_helper(_obj0
, &_arg0
))
2727 wxPy_BEGIN_ALLOW_THREADS
;
2728 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
2730 wxPy_END_ALLOW_THREADS
;
2731 } Py_INCREF(Py_None
);
2732 _resultobj
= Py_None
;
2736 static PyObject
* wxColour_Get(wxColour
*self
) {
2737 PyObject
* rv
= PyTuple_New(3);
2738 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
2739 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
2740 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
2743 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2744 PyObject
* _resultobj
;
2748 PyObject
* _obj0
= 0;
2749 char *_kwnames
[] = { "self", NULL
};
2752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
2756 if (! wxColour_helper(_obj0
, &_arg0
))
2760 wxPy_BEGIN_ALLOW_THREADS
;
2761 _result
= (PyObject
*)wxColour_Get(_arg0
);
2763 wxPy_END_ALLOW_THREADS
;
2765 _resultobj
= _result
;
2770 static wxPen
*new_wxPen(wxColour
*colour
,int width
,int style
) {
2771 return wxThePenList
->FindOrCreatePen(*colour
, width
, style
);
2774 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2775 PyObject
* _resultobj
;
2778 int _arg1
= (int ) 1;
2779 int _arg2
= (int ) wxSOLID
;
2781 PyObject
* _obj0
= 0;
2782 char *_kwnames
[] = { "colour","width","style", NULL
};
2786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
2790 if (! wxColour_helper(_obj0
, &_arg0
))
2794 wxPy_BEGIN_ALLOW_THREADS
;
2795 _result
= (wxPen
*)new_wxPen(_arg0
,_arg1
,_arg2
);
2797 wxPy_END_ALLOW_THREADS
;
2799 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
2800 _resultobj
= Py_BuildValue("s",_ptemp
);
2803 _resultobj
= Py_None
;
2808 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
2809 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2810 PyObject
* _resultobj
;
2813 PyObject
* _argo0
= 0;
2814 char *_kwnames
[] = { "self", NULL
};
2817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
2820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
2827 wxPy_BEGIN_ALLOW_THREADS
;
2828 _result
= (int )wxPen_GetCap(_arg0
);
2830 wxPy_END_ALLOW_THREADS
;
2831 } _resultobj
= Py_BuildValue("i",_result
);
2835 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
2836 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
* _resultobj
;
2840 PyObject
* _argo0
= 0;
2841 char *_kwnames
[] = { "self", NULL
};
2845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
2848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
2855 wxPy_BEGIN_ALLOW_THREADS
;
2856 wxColour
& _result_ref
= wxPen_GetColour(_arg0
);
2857 _result
= (wxColour
*) &_result_ref
;
2859 wxPy_END_ALLOW_THREADS
;
2861 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
2862 _resultobj
= Py_BuildValue("s",_ptemp
);
2865 _resultobj
= Py_None
;
2870 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
2871 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2872 PyObject
* _resultobj
;
2875 PyObject
* _argo0
= 0;
2876 char *_kwnames
[] = { "self", NULL
};
2879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
2882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
2889 wxPy_BEGIN_ALLOW_THREADS
;
2890 _result
= (int )wxPen_GetJoin(_arg0
);
2892 wxPy_END_ALLOW_THREADS
;
2893 } _resultobj
= Py_BuildValue("i",_result
);
2897 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
2898 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2899 PyObject
* _resultobj
;
2902 PyObject
* _argo0
= 0;
2903 char *_kwnames
[] = { "self", NULL
};
2906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
2909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
2916 wxPy_BEGIN_ALLOW_THREADS
;
2917 _result
= (int )wxPen_GetStyle(_arg0
);
2919 wxPy_END_ALLOW_THREADS
;
2920 } _resultobj
= Py_BuildValue("i",_result
);
2924 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
2925 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2926 PyObject
* _resultobj
;
2929 PyObject
* _argo0
= 0;
2930 char *_kwnames
[] = { "self", NULL
};
2933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
2936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
2943 wxPy_BEGIN_ALLOW_THREADS
;
2944 _result
= (int )wxPen_GetWidth(_arg0
);
2946 wxPy_END_ALLOW_THREADS
;
2947 } _resultobj
= Py_BuildValue("i",_result
);
2951 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
2952 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2953 PyObject
* _resultobj
;
2956 PyObject
* _argo0
= 0;
2957 char *_kwnames
[] = { "self", NULL
};
2960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
2963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
2970 wxPy_BEGIN_ALLOW_THREADS
;
2971 _result
= (bool )wxPen_Ok(_arg0
);
2973 wxPy_END_ALLOW_THREADS
;
2974 } _resultobj
= Py_BuildValue("i",_result
);
2978 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
2979 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2980 PyObject
* _resultobj
;
2983 PyObject
* _argo0
= 0;
2984 char *_kwnames
[] = { "self","cap_style", NULL
};
2987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
2990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
2992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
2997 wxPy_BEGIN_ALLOW_THREADS
;
2998 wxPen_SetCap(_arg0
,_arg1
);
3000 wxPy_END_ALLOW_THREADS
;
3001 } Py_INCREF(Py_None
);
3002 _resultobj
= Py_None
;
3006 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3007 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3008 PyObject
* _resultobj
;
3011 PyObject
* _argo0
= 0;
3013 PyObject
* _obj1
= 0;
3014 char *_kwnames
[] = { "self","colour", NULL
};
3017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3028 if (! wxColour_helper(_obj1
, &_arg1
))
3032 wxPy_BEGIN_ALLOW_THREADS
;
3033 wxPen_SetColour(_arg0
,*_arg1
);
3035 wxPy_END_ALLOW_THREADS
;
3036 } Py_INCREF(Py_None
);
3037 _resultobj
= Py_None
;
3041 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3042 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3043 PyObject
* _resultobj
;
3046 PyObject
* _argo0
= 0;
3047 char *_kwnames
[] = { "self","join_style", NULL
};
3050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3060 wxPy_BEGIN_ALLOW_THREADS
;
3061 wxPen_SetJoin(_arg0
,_arg1
);
3063 wxPy_END_ALLOW_THREADS
;
3064 } Py_INCREF(Py_None
);
3065 _resultobj
= Py_None
;
3069 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3070 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3071 PyObject
* _resultobj
;
3074 PyObject
* _argo0
= 0;
3075 char *_kwnames
[] = { "self","style", NULL
};
3078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3088 wxPy_BEGIN_ALLOW_THREADS
;
3089 wxPen_SetStyle(_arg0
,_arg1
);
3091 wxPy_END_ALLOW_THREADS
;
3092 } Py_INCREF(Py_None
);
3093 _resultobj
= Py_None
;
3097 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3098 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3099 PyObject
* _resultobj
;
3102 PyObject
* _argo0
= 0;
3103 char *_kwnames
[] = { "self","width", NULL
};
3106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3116 wxPy_BEGIN_ALLOW_THREADS
;
3117 wxPen_SetWidth(_arg0
,_arg1
);
3119 wxPy_END_ALLOW_THREADS
;
3120 } Py_INCREF(Py_None
);
3121 _resultobj
= Py_None
;
3125 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
3126 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3127 PyObject
* _resultobj
;
3131 PyObject
* _argo0
= 0;
3132 PyObject
* _argo1
= 0;
3133 char *_kwnames
[] = { "self","dashes", NULL
};
3136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_GetDashes",_kwnames
,&_argo0
,&_argo1
))
3139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3146 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3147 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDash_pp")) {
3148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
3153 wxPy_BEGIN_ALLOW_THREADS
;
3154 _result
= (int )wxPen_GetDashes(_arg0
,_arg1
);
3156 wxPy_END_ALLOW_THREADS
;
3157 } _resultobj
= Py_BuildValue("i",_result
);
3161 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3162 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3163 PyObject
* _resultobj
;
3167 PyObject
* _argo0
= 0;
3168 PyObject
* _obj2
= 0;
3169 char *_kwnames
[] = { "self","choices", NULL
};
3172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3183 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3184 if (_arg2
== NULL
) {
3190 _arg1
= PyList_Size(_obj2
);
3197 wxPy_BEGIN_ALLOW_THREADS
;
3198 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
3200 wxPy_END_ALLOW_THREADS
;
3201 } Py_INCREF(Py_None
);
3202 _resultobj
= Py_None
;
3209 static wxBrush
*new_wxBrush(const wxColour
*colour
,int style
) {
3210 return wxTheBrushList
->FindOrCreateBrush(*colour
, style
);
3213 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3214 PyObject
* _resultobj
;
3217 int _arg1
= (int ) wxSOLID
;
3219 PyObject
* _obj0
= 0;
3220 char *_kwnames
[] = { "colour","style", NULL
};
3224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
3228 if (! wxColour_helper(_obj0
, &_arg0
))
3232 wxPy_BEGIN_ALLOW_THREADS
;
3233 _result
= (wxBrush
*)new_wxBrush(_arg0
,_arg1
);
3235 wxPy_END_ALLOW_THREADS
;
3237 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
3238 _resultobj
= Py_BuildValue("s",_ptemp
);
3241 _resultobj
= Py_None
;
3246 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
3247 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3248 PyObject
* _resultobj
;
3251 PyObject
* _argo0
= 0;
3252 char *_kwnames
[] = { "self", NULL
};
3256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
3259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
3266 wxPy_BEGIN_ALLOW_THREADS
;
3267 wxColour
& _result_ref
= wxBrush_GetColour(_arg0
);
3268 _result
= (wxColour
*) &_result_ref
;
3270 wxPy_END_ALLOW_THREADS
;
3272 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3273 _resultobj
= Py_BuildValue("s",_ptemp
);
3276 _resultobj
= Py_None
;
3281 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
3282 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3283 PyObject
* _resultobj
;
3286 PyObject
* _argo0
= 0;
3287 char *_kwnames
[] = { "self", NULL
};
3291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
3294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
3301 wxPy_BEGIN_ALLOW_THREADS
;
3302 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
3304 wxPy_END_ALLOW_THREADS
;
3306 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
3307 _resultobj
= Py_BuildValue("s",_ptemp
);
3310 _resultobj
= Py_None
;
3315 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
3316 static PyObject
*_wrap_wxBrush_GetStyle(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:wxBrush_GetStyle",_kwnames
,&_argo0
))
3327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
3334 wxPy_BEGIN_ALLOW_THREADS
;
3335 _result
= (int )wxBrush_GetStyle(_arg0
);
3337 wxPy_END_ALLOW_THREADS
;
3338 } _resultobj
= Py_BuildValue("i",_result
);
3342 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
3343 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3344 PyObject
* _resultobj
;
3347 PyObject
* _argo0
= 0;
3348 char *_kwnames
[] = { "self", NULL
};
3351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
3354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
3361 wxPy_BEGIN_ALLOW_THREADS
;
3362 _result
= (bool )wxBrush_Ok(_arg0
);
3364 wxPy_END_ALLOW_THREADS
;
3365 } _resultobj
= Py_BuildValue("i",_result
);
3369 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3370 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3371 PyObject
* _resultobj
;
3374 PyObject
* _argo0
= 0;
3376 PyObject
* _obj1
= 0;
3377 char *_kwnames
[] = { "self","colour", NULL
};
3380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
3383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
3391 if (! wxColour_helper(_obj1
, &_arg1
))
3395 wxPy_BEGIN_ALLOW_THREADS
;
3396 wxBrush_SetColour(_arg0
,*_arg1
);
3398 wxPy_END_ALLOW_THREADS
;
3399 } Py_INCREF(Py_None
);
3400 _resultobj
= Py_None
;
3404 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
3405 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3406 PyObject
* _resultobj
;
3409 PyObject
* _argo0
= 0;
3410 PyObject
* _argo1
= 0;
3411 char *_kwnames
[] = { "self","bitmap", NULL
};
3414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
3417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
3424 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3425 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
3426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
3431 wxPy_BEGIN_ALLOW_THREADS
;
3432 wxBrush_SetStipple(_arg0
,*_arg1
);
3434 wxPy_END_ALLOW_THREADS
;
3435 } Py_INCREF(Py_None
);
3436 _resultobj
= Py_None
;
3440 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3441 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3442 PyObject
* _resultobj
;
3445 PyObject
* _argo0
= 0;
3446 char *_kwnames
[] = { "self","style", NULL
};
3449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
3459 wxPy_BEGIN_ALLOW_THREADS
;
3460 wxBrush_SetStyle(_arg0
,_arg1
);
3462 wxPy_END_ALLOW_THREADS
;
3463 } Py_INCREF(Py_None
);
3464 _resultobj
= Py_None
;
3468 #define delete_wxDC(_swigobj) (delete _swigobj)
3469 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3470 PyObject
* _resultobj
;
3472 PyObject
* _argo0
= 0;
3473 char *_kwnames
[] = { "self", NULL
};
3476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
3479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
3486 wxPy_BEGIN_ALLOW_THREADS
;
3489 wxPy_END_ALLOW_THREADS
;
3490 } Py_INCREF(Py_None
);
3491 _resultobj
= Py_None
;
3495 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
3496 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3497 PyObject
* _resultobj
;
3499 PyObject
* _argo0
= 0;
3500 char *_kwnames
[] = { "self", NULL
};
3503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
3506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
3513 wxPy_BEGIN_ALLOW_THREADS
;
3514 wxDC_BeginDrawing(_arg0
);
3516 wxPy_END_ALLOW_THREADS
;
3517 } Py_INCREF(Py_None
);
3518 _resultobj
= Py_None
;
3522 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
3523 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3524 PyObject
* _resultobj
;
3534 int _arg8
= (int ) wxCOPY
;
3535 int _arg9
= (int ) FALSE
;
3536 PyObject
* _argo0
= 0;
3537 PyObject
* _argo5
= 0;
3538 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
3541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
3544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
3551 if (_argo5
== Py_None
) { _arg5
= NULL
; }
3552 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
3553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
3558 wxPy_BEGIN_ALLOW_THREADS
;
3559 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
3561 wxPy_END_ALLOW_THREADS
;
3562 } _resultobj
= Py_BuildValue("i",_result
);
3566 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
3567 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3568 PyObject
* _resultobj
;
3570 PyObject
* _argo0
= 0;
3571 char *_kwnames
[] = { "self", NULL
};
3574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
3577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
3584 wxPy_BEGIN_ALLOW_THREADS
;
3587 wxPy_END_ALLOW_THREADS
;
3588 } Py_INCREF(Py_None
);
3589 _resultobj
= Py_None
;
3593 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
3594 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3595 PyObject
* _resultobj
;
3599 PyObject
* _argo0
= 0;
3600 char *_kwnames
[] = { "self","x","y", NULL
};
3603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
3613 wxPy_BEGIN_ALLOW_THREADS
;
3614 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
3616 wxPy_END_ALLOW_THREADS
;
3617 } Py_INCREF(Py_None
);
3618 _resultobj
= Py_None
;
3622 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
3623 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3624 PyObject
* _resultobj
;
3626 PyObject
* _argo0
= 0;
3627 char *_kwnames
[] = { "self", NULL
};
3630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
3633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
3640 wxPy_BEGIN_ALLOW_THREADS
;
3641 wxDC_DestroyClippingRegion(_arg0
);
3643 wxPy_END_ALLOW_THREADS
;
3644 } Py_INCREF(Py_None
);
3645 _resultobj
= Py_None
;
3649 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
3650 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3651 PyObject
* _resultobj
;
3655 PyObject
* _argo0
= 0;
3656 char *_kwnames
[] = { "self","x", NULL
};
3659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
3662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
3669 wxPy_BEGIN_ALLOW_THREADS
;
3670 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
3672 wxPy_END_ALLOW_THREADS
;
3673 } _resultobj
= Py_BuildValue("l",_result
);
3677 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
3678 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3679 PyObject
* _resultobj
;
3683 PyObject
* _argo0
= 0;
3684 char *_kwnames
[] = { "self","x", NULL
};
3687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
3690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
3697 wxPy_BEGIN_ALLOW_THREADS
;
3698 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
3700 wxPy_END_ALLOW_THREADS
;
3701 } _resultobj
= Py_BuildValue("l",_result
);
3705 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
3706 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3707 PyObject
* _resultobj
;
3711 PyObject
* _argo0
= 0;
3712 char *_kwnames
[] = { "self","y", NULL
};
3715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
3718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
3725 wxPy_BEGIN_ALLOW_THREADS
;
3726 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
3728 wxPy_END_ALLOW_THREADS
;
3729 } _resultobj
= Py_BuildValue("l",_result
);
3733 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
3734 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3735 PyObject
* _resultobj
;
3739 PyObject
* _argo0
= 0;
3740 char *_kwnames
[] = { "self","y", NULL
};
3743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
3746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
3753 wxPy_BEGIN_ALLOW_THREADS
;
3754 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
3756 wxPy_END_ALLOW_THREADS
;
3757 } _resultobj
= Py_BuildValue("l",_result
);
3761 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3762 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3763 PyObject
* _resultobj
;
3771 PyObject
* _argo0
= 0;
3772 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
3775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
3785 wxPy_BEGIN_ALLOW_THREADS
;
3786 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3788 wxPy_END_ALLOW_THREADS
;
3789 } Py_INCREF(Py_None
);
3790 _resultobj
= Py_None
;
3794 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
3795 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3796 PyObject
* _resultobj
;
3801 PyObject
* _argo0
= 0;
3802 char *_kwnames
[] = { "self","x","y","radius", NULL
};
3805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
3815 wxPy_BEGIN_ALLOW_THREADS
;
3816 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
3818 wxPy_END_ALLOW_THREADS
;
3819 } Py_INCREF(Py_None
);
3820 _resultobj
= Py_None
;
3824 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3825 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3826 PyObject
* _resultobj
;
3832 PyObject
* _argo0
= 0;
3833 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
3836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
3839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
3846 wxPy_BEGIN_ALLOW_THREADS
;
3847 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
3849 wxPy_END_ALLOW_THREADS
;
3850 } Py_INCREF(Py_None
);
3851 _resultobj
= Py_None
;
3855 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3856 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3857 PyObject
* _resultobj
;
3865 PyObject
* _argo0
= 0;
3866 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
3869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
3879 wxPy_BEGIN_ALLOW_THREADS
;
3880 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3882 wxPy_END_ALLOW_THREADS
;
3883 } Py_INCREF(Py_None
);
3884 _resultobj
= Py_None
;
3888 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
3889 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3890 PyObject
* _resultobj
;
3895 PyObject
* _argo0
= 0;
3896 PyObject
* _argo1
= 0;
3897 char *_kwnames
[] = { "self","icon","x","y", NULL
};
3900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
3910 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3911 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
3912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
3917 wxPy_BEGIN_ALLOW_THREADS
;
3918 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
3920 wxPy_END_ALLOW_THREADS
;
3921 } Py_INCREF(Py_None
);
3922 _resultobj
= Py_None
;
3926 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3927 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3928 PyObject
* _resultobj
;
3934 PyObject
* _argo0
= 0;
3935 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
3938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
3941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
3948 wxPy_BEGIN_ALLOW_THREADS
;
3949 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
3951 wxPy_END_ALLOW_THREADS
;
3952 } Py_INCREF(Py_None
);
3953 _resultobj
= Py_None
;
3957 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3958 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3959 PyObject
* _resultobj
;
3963 long _arg3
= (long ) 0;
3964 long _arg4
= (long ) 0;
3965 PyObject
* _argo0
= 0;
3966 PyObject
* _obj2
= 0;
3967 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
3970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
3973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
3975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
3981 _arg2
= wxPoint_LIST_helper(_obj2
);
3982 if (_arg2
== NULL
) {
3988 _arg1
= PyList_Size(_obj2
);
3995 wxPy_BEGIN_ALLOW_THREADS
;
3996 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
3998 wxPy_END_ALLOW_THREADS
;
3999 } Py_INCREF(Py_None
);
4000 _resultobj
= Py_None
;
4007 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4008 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4009 PyObject
* _resultobj
;
4013 long _arg3
= (long ) 0;
4014 long _arg4
= (long ) 0;
4015 int _arg5
= (int ) wxODDEVEN_RULE
;
4016 PyObject
* _argo0
= 0;
4017 PyObject
* _obj2
= 0;
4018 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
4021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
4024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
4032 _arg2
= wxPoint_LIST_helper(_obj2
);
4033 if (_arg2
== NULL
) {
4039 _arg1
= PyList_Size(_obj2
);
4046 wxPy_BEGIN_ALLOW_THREADS
;
4047 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4049 wxPy_END_ALLOW_THREADS
;
4050 } Py_INCREF(Py_None
);
4051 _resultobj
= Py_None
;
4058 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
4059 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
* _resultobj
;
4064 PyObject
* _argo0
= 0;
4065 char *_kwnames
[] = { "self","x","y", NULL
};
4068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
4078 wxPy_BEGIN_ALLOW_THREADS
;
4079 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
4081 wxPy_END_ALLOW_THREADS
;
4082 } Py_INCREF(Py_None
);
4083 _resultobj
= Py_None
;
4087 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4088 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4089 PyObject
* _resultobj
;
4095 PyObject
* _argo0
= 0;
4096 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
4109 wxPy_BEGIN_ALLOW_THREADS
;
4110 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4112 wxPy_END_ALLOW_THREADS
;
4113 } Py_INCREF(Py_None
);
4114 _resultobj
= Py_None
;
4118 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4119 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4120 PyObject
* _resultobj
;
4126 PyObject
* _argo0
= 0;
4127 PyObject
* _obj1
= 0;
4128 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
4131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
4141 #if PYTHON_API_VERSION >= 1009
4142 char* tmpPtr
; int tmpSize
;
4143 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4144 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
4147 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4149 _arg1
= new wxString(tmpPtr
, tmpSize
);
4151 if (!PyString_Check(_obj1
)) {
4152 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4155 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4159 wxPy_BEGIN_ALLOW_THREADS
;
4160 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4162 wxPy_END_ALLOW_THREADS
;
4163 } Py_INCREF(Py_None
);
4164 _resultobj
= Py_None
;
4172 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4173 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4174 PyObject
* _resultobj
;
4180 long _arg5
= (long ) 20;
4181 PyObject
* _argo0
= 0;
4182 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
4185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
4195 wxPy_BEGIN_ALLOW_THREADS
;
4196 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4198 wxPy_END_ALLOW_THREADS
;
4199 } Py_INCREF(Py_None
);
4200 _resultobj
= Py_None
;
4204 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
4205 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4206 PyObject
* _resultobj
;
4210 PyObject
* _argo0
= 0;
4211 PyObject
* _obj2
= 0;
4212 char *_kwnames
[] = { "self","points", NULL
};
4215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
4218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
4226 _arg2
= wxPoint_LIST_helper(_obj2
);
4227 if (_arg2
== NULL
) {
4233 _arg1
= PyList_Size(_obj2
);
4240 wxPy_BEGIN_ALLOW_THREADS
;
4241 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
4243 wxPy_END_ALLOW_THREADS
;
4244 } Py_INCREF(Py_None
);
4245 _resultobj
= Py_None
;
4252 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
4253 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4254 PyObject
* _resultobj
;
4259 PyObject
* _argo0
= 0;
4260 PyObject
* _obj1
= 0;
4261 char *_kwnames
[] = { "self","text","x","y", NULL
};
4264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
4274 #if PYTHON_API_VERSION >= 1009
4275 char* tmpPtr
; int tmpSize
;
4276 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4277 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
4280 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4282 _arg1
= new wxString(tmpPtr
, tmpSize
);
4284 if (!PyString_Check(_obj1
)) {
4285 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4288 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4292 wxPy_BEGIN_ALLOW_THREADS
;
4293 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
4295 wxPy_END_ALLOW_THREADS
;
4296 } Py_INCREF(Py_None
);
4297 _resultobj
= Py_None
;
4305 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
4306 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4307 PyObject
* _resultobj
;
4309 PyObject
* _argo0
= 0;
4310 char *_kwnames
[] = { "self", NULL
};
4313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
4316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
4323 wxPy_BEGIN_ALLOW_THREADS
;
4326 wxPy_END_ALLOW_THREADS
;
4327 } Py_INCREF(Py_None
);
4328 _resultobj
= Py_None
;
4332 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
4333 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4334 PyObject
* _resultobj
;
4336 PyObject
* _argo0
= 0;
4337 char *_kwnames
[] = { "self", NULL
};
4340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
4343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
4350 wxPy_BEGIN_ALLOW_THREADS
;
4351 wxDC_EndDrawing(_arg0
);
4353 wxPy_END_ALLOW_THREADS
;
4354 } Py_INCREF(Py_None
);
4355 _resultobj
= Py_None
;
4359 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
4360 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4361 PyObject
* _resultobj
;
4363 PyObject
* _argo0
= 0;
4364 char *_kwnames
[] = { "self", NULL
};
4367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
4370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
4377 wxPy_BEGIN_ALLOW_THREADS
;
4378 wxDC_EndPage(_arg0
);
4380 wxPy_END_ALLOW_THREADS
;
4381 } Py_INCREF(Py_None
);
4382 _resultobj
= Py_None
;
4386 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4387 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4388 PyObject
* _resultobj
;
4393 int _arg4
= (int ) wxFLOOD_SURFACE
;
4394 PyObject
* _argo0
= 0;
4396 PyObject
* _obj3
= 0;
4397 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
4400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
4403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
4411 if (! wxColour_helper(_obj3
, &_arg3
))
4415 wxPy_BEGIN_ALLOW_THREADS
;
4416 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
4418 wxPy_END_ALLOW_THREADS
;
4419 } Py_INCREF(Py_None
);
4420 _resultobj
= Py_None
;
4424 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
4425 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4426 PyObject
* _resultobj
;
4429 PyObject
* _argo0
= 0;
4430 char *_kwnames
[] = { "self", NULL
};
4434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
4437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
4444 wxPy_BEGIN_ALLOW_THREADS
;
4445 wxBrush
& _result_ref
= wxDC_GetBackground(_arg0
);
4446 _result
= (wxBrush
*) &_result_ref
;
4448 wxPy_END_ALLOW_THREADS
;
4450 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4451 _resultobj
= Py_BuildValue("s",_ptemp
);
4454 _resultobj
= Py_None
;
4459 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
4460 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4461 PyObject
* _resultobj
;
4464 PyObject
* _argo0
= 0;
4465 char *_kwnames
[] = { "self", NULL
};
4469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
4472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
4479 wxPy_BEGIN_ALLOW_THREADS
;
4480 wxBrush
& _result_ref
= wxDC_GetBrush(_arg0
);
4481 _result
= (wxBrush
*) &_result_ref
;
4483 wxPy_END_ALLOW_THREADS
;
4485 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4486 _resultobj
= Py_BuildValue("s",_ptemp
);
4489 _resultobj
= Py_None
;
4494 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
4495 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4496 PyObject
* _resultobj
;
4499 PyObject
* _argo0
= 0;
4500 char *_kwnames
[] = { "self", NULL
};
4503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
4506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
4513 wxPy_BEGIN_ALLOW_THREADS
;
4514 _result
= (long )wxDC_GetCharHeight(_arg0
);
4516 wxPy_END_ALLOW_THREADS
;
4517 } _resultobj
= Py_BuildValue("l",_result
);
4521 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
4522 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4523 PyObject
* _resultobj
;
4526 PyObject
* _argo0
= 0;
4527 char *_kwnames
[] = { "self", NULL
};
4530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
4533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
4540 wxPy_BEGIN_ALLOW_THREADS
;
4541 _result
= (long )wxDC_GetCharWidth(_arg0
);
4543 wxPy_END_ALLOW_THREADS
;
4544 } _resultobj
= Py_BuildValue("l",_result
);
4548 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4549 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4550 PyObject
* _resultobj
;
4560 PyObject
* _argo0
= 0;
4561 char *_kwnames
[] = { "self", NULL
};
4576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
4579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
4586 wxPy_BEGIN_ALLOW_THREADS
;
4587 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4589 wxPy_END_ALLOW_THREADS
;
4590 } Py_INCREF(Py_None
);
4591 _resultobj
= Py_None
;
4594 o
= PyInt_FromLong((long) (*_arg1
));
4595 _resultobj
= t_output_helper(_resultobj
, o
);
4599 o
= PyInt_FromLong((long) (*_arg2
));
4600 _resultobj
= t_output_helper(_resultobj
, o
);
4604 o
= PyInt_FromLong((long) (*_arg3
));
4605 _resultobj
= t_output_helper(_resultobj
, o
);
4609 o
= PyInt_FromLong((long) (*_arg4
));
4610 _resultobj
= t_output_helper(_resultobj
, o
);
4615 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
4616 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4617 PyObject
* _resultobj
;
4620 PyObject
* _argo0
= 0;
4621 char *_kwnames
[] = { "self", NULL
};
4625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
4628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
4635 wxPy_BEGIN_ALLOW_THREADS
;
4636 wxFont
& _result_ref
= wxDC_GetFont(_arg0
);
4637 _result
= (wxFont
*) &_result_ref
;
4639 wxPy_END_ALLOW_THREADS
;
4641 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4642 _resultobj
= Py_BuildValue("s",_ptemp
);
4645 _resultobj
= Py_None
;
4650 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
4651 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4652 PyObject
* _resultobj
;
4655 PyObject
* _argo0
= 0;
4656 char *_kwnames
[] = { "self", NULL
};
4659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
4662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
4669 wxPy_BEGIN_ALLOW_THREADS
;
4670 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
4672 wxPy_END_ALLOW_THREADS
;
4673 } _resultobj
= Py_BuildValue("i",_result
);
4677 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
4678 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4679 PyObject
* _resultobj
;
4685 PyObject
* _argo0
= 0;
4686 char *_kwnames
[] = { "self", NULL
};
4695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
4698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
4705 wxPy_BEGIN_ALLOW_THREADS
;
4706 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
4708 wxPy_END_ALLOW_THREADS
;
4709 } Py_INCREF(Py_None
);
4710 _resultobj
= Py_None
;
4713 o
= PyFloat_FromDouble((double) (*_arg1
));
4714 _resultobj
= t_output_helper(_resultobj
, o
);
4718 o
= PyFloat_FromDouble((double) (*_arg2
));
4719 _resultobj
= t_output_helper(_resultobj
, o
);
4724 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
4725 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4726 PyObject
* _resultobj
;
4729 PyObject
* _argo0
= 0;
4730 char *_kwnames
[] = { "self", NULL
};
4733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
4736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
4743 wxPy_BEGIN_ALLOW_THREADS
;
4744 _result
= (int )wxDC_GetMapMode(_arg0
);
4746 wxPy_END_ALLOW_THREADS
;
4747 } _resultobj
= Py_BuildValue("i",_result
);
4751 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
4752 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4753 PyObject
* _resultobj
;
4756 PyObject
* _argo0
= 0;
4757 char *_kwnames
[] = { "self", NULL
};
4760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
4763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
4770 wxPy_BEGIN_ALLOW_THREADS
;
4771 _result
= (bool )wxDC_GetOptimization(_arg0
);
4773 wxPy_END_ALLOW_THREADS
;
4774 } _resultobj
= Py_BuildValue("i",_result
);
4778 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
4779 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4780 PyObject
* _resultobj
;
4783 PyObject
* _argo0
= 0;
4784 char *_kwnames
[] = { "self", NULL
};
4788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
4791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
4798 wxPy_BEGIN_ALLOW_THREADS
;
4799 wxPen
& _result_ref
= wxDC_GetPen(_arg0
);
4800 _result
= (wxPen
*) &_result_ref
;
4802 wxPy_END_ALLOW_THREADS
;
4804 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4805 _resultobj
= Py_BuildValue("s",_ptemp
);
4808 _resultobj
= Py_None
;
4813 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
4814 wxColour
* wc
= new wxColour();
4815 self
->GetPixel(x
, y
, wc
);
4818 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4819 PyObject
* _resultobj
;
4824 PyObject
* _argo0
= 0;
4825 char *_kwnames
[] = { "self","x","y", NULL
};
4829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
4839 wxPy_BEGIN_ALLOW_THREADS
;
4840 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
4842 wxPy_END_ALLOW_THREADS
;
4844 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4845 _resultobj
= Py_BuildValue("s",_ptemp
);
4848 _resultobj
= Py_None
;
4853 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
4854 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4855 PyObject
* _resultobj
;
4861 PyObject
* _argo0
= 0;
4862 char *_kwnames
[] = { "self", NULL
};
4871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
4874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
4881 wxPy_BEGIN_ALLOW_THREADS
;
4882 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
4884 wxPy_END_ALLOW_THREADS
;
4885 } Py_INCREF(Py_None
);
4886 _resultobj
= Py_None
;
4889 o
= PyInt_FromLong((long) (*_arg1
));
4890 _resultobj
= t_output_helper(_resultobj
, o
);
4894 o
= PyInt_FromLong((long) (*_arg2
));
4895 _resultobj
= t_output_helper(_resultobj
, o
);
4900 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
4901 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4902 PyObject
* _resultobj
;
4905 PyObject
* _argo0
= 0;
4906 char *_kwnames
[] = { "self", NULL
};
4910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
4913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
4920 wxPy_BEGIN_ALLOW_THREADS
;
4921 _result
= new wxSize (wxDC_GetSize(_arg0
));
4923 wxPy_END_ALLOW_THREADS
;
4924 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4925 _resultobj
= Py_BuildValue("s",_ptemp
);
4929 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
4930 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4931 PyObject
* _resultobj
;
4934 PyObject
* _argo0
= 0;
4935 char *_kwnames
[] = { "self", NULL
};
4939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
4942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
4949 wxPy_BEGIN_ALLOW_THREADS
;
4950 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
4952 wxPy_END_ALLOW_THREADS
;
4953 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4954 _resultobj
= Py_BuildValue("s",_ptemp
);
4958 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
4959 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4960 PyObject
* _resultobj
;
4963 PyObject
* _argo0
= 0;
4964 char *_kwnames
[] = { "self", NULL
};
4968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
4971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
4978 wxPy_BEGIN_ALLOW_THREADS
;
4979 wxColour
& _result_ref
= wxDC_GetTextBackground(_arg0
);
4980 _result
= (wxColour
*) &_result_ref
;
4982 wxPy_END_ALLOW_THREADS
;
4984 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4985 _resultobj
= Py_BuildValue("s",_ptemp
);
4988 _resultobj
= Py_None
;
4993 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
4994 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4995 PyObject
* _resultobj
;
5002 PyObject
* _argo0
= 0;
5003 PyObject
* _obj1
= 0;
5004 char *_kwnames
[] = { "self","string", NULL
};
5013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
5016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
5023 #if PYTHON_API_VERSION >= 1009
5024 char* tmpPtr
; int tmpSize
;
5025 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5026 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5029 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5031 _arg1
= new wxString(tmpPtr
, tmpSize
);
5033 if (!PyString_Check(_obj1
)) {
5034 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5037 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5041 wxPy_BEGIN_ALLOW_THREADS
;
5042 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
5044 wxPy_END_ALLOW_THREADS
;
5045 } Py_INCREF(Py_None
);
5046 _resultobj
= Py_None
;
5049 o
= PyInt_FromLong((long) (*_arg2
));
5050 _resultobj
= t_output_helper(_resultobj
, o
);
5054 o
= PyInt_FromLong((long) (*_arg3
));
5055 _resultobj
= t_output_helper(_resultobj
, o
);
5064 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5065 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5066 PyObject
* _resultobj
;
5077 wxFont
* _arg6
= (wxFont
*) NULL
;
5078 PyObject
* _argo0
= 0;
5079 PyObject
* _obj1
= 0;
5080 PyObject
* _argo6
= 0;
5081 char *_kwnames
[] = { "self","string","font", NULL
};
5096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
5099 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5100 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
5106 #if PYTHON_API_VERSION >= 1009
5107 char* tmpPtr
; int tmpSize
;
5108 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5109 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
5112 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5114 _arg1
= new wxString(tmpPtr
, tmpSize
);
5116 if (!PyString_Check(_obj1
)) {
5117 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5120 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5124 if (_argo6
== Py_None
) { _arg6
= NULL
; }
5125 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
5126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
5131 wxPy_BEGIN_ALLOW_THREADS
;
5132 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5134 wxPy_END_ALLOW_THREADS
;
5135 } Py_INCREF(Py_None
);
5136 _resultobj
= Py_None
;
5139 o
= PyInt_FromLong((long) (*_arg2
));
5140 _resultobj
= t_output_helper(_resultobj
, o
);
5144 o
= PyInt_FromLong((long) (*_arg3
));
5145 _resultobj
= t_output_helper(_resultobj
, o
);
5149 o
= PyInt_FromLong((long) (*_arg4
));
5150 _resultobj
= t_output_helper(_resultobj
, o
);
5154 o
= PyInt_FromLong((long) (*_arg5
));
5155 _resultobj
= t_output_helper(_resultobj
, o
);
5164 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
5165 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5166 PyObject
* _resultobj
;
5169 PyObject
* _argo0
= 0;
5170 char *_kwnames
[] = { "self", NULL
};
5174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
5177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
5184 wxPy_BEGIN_ALLOW_THREADS
;
5185 wxColour
& _result_ref
= wxDC_GetTextForeground(_arg0
);
5186 _result
= (wxColour
*) &_result_ref
;
5188 wxPy_END_ALLOW_THREADS
;
5190 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5191 _resultobj
= Py_BuildValue("s",_ptemp
);
5194 _resultobj
= Py_None
;
5199 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
5200 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5201 PyObject
* _resultobj
;
5207 PyObject
* _argo0
= 0;
5208 char *_kwnames
[] = { "self", NULL
};
5217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
5220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
5227 wxPy_BEGIN_ALLOW_THREADS
;
5228 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
5230 wxPy_END_ALLOW_THREADS
;
5231 } Py_INCREF(Py_None
);
5232 _resultobj
= Py_None
;
5235 o
= PyFloat_FromDouble((double) (*_arg1
));
5236 _resultobj
= t_output_helper(_resultobj
, o
);
5240 o
= PyFloat_FromDouble((double) (*_arg2
));
5241 _resultobj
= t_output_helper(_resultobj
, o
);
5246 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
5247 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5248 PyObject
* _resultobj
;
5252 PyObject
* _argo0
= 0;
5253 char *_kwnames
[] = { "self","x", NULL
};
5256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
5259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
5266 wxPy_BEGIN_ALLOW_THREADS
;
5267 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
5269 wxPy_END_ALLOW_THREADS
;
5270 } _resultobj
= Py_BuildValue("l",_result
);
5274 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
5275 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5276 PyObject
* _resultobj
;
5280 PyObject
* _argo0
= 0;
5281 char *_kwnames
[] = { "self","x", NULL
};
5284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
5287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
5294 wxPy_BEGIN_ALLOW_THREADS
;
5295 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
5297 wxPy_END_ALLOW_THREADS
;
5298 } _resultobj
= Py_BuildValue("l",_result
);
5302 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
5303 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5304 PyObject
* _resultobj
;
5308 PyObject
* _argo0
= 0;
5309 char *_kwnames
[] = { "self","y", NULL
};
5312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
5315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
5322 wxPy_BEGIN_ALLOW_THREADS
;
5323 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
5325 wxPy_END_ALLOW_THREADS
;
5326 } _resultobj
= Py_BuildValue("l",_result
);
5330 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
5331 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5332 PyObject
* _resultobj
;
5336 PyObject
* _argo0
= 0;
5337 char *_kwnames
[] = { "self","y", NULL
};
5340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
5343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
5350 wxPy_BEGIN_ALLOW_THREADS
;
5351 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
5353 wxPy_END_ALLOW_THREADS
;
5354 } _resultobj
= Py_BuildValue("l",_result
);
5358 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
5359 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5360 PyObject
* _resultobj
;
5363 PyObject
* _argo0
= 0;
5364 char *_kwnames
[] = { "self", NULL
};
5367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
5370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
5377 wxPy_BEGIN_ALLOW_THREADS
;
5378 _result
= (long )wxDC_MaxX(_arg0
);
5380 wxPy_END_ALLOW_THREADS
;
5381 } _resultobj
= Py_BuildValue("l",_result
);
5385 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
5386 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5387 PyObject
* _resultobj
;
5390 PyObject
* _argo0
= 0;
5391 char *_kwnames
[] = { "self", NULL
};
5394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
5397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
5404 wxPy_BEGIN_ALLOW_THREADS
;
5405 _result
= (long )wxDC_MaxY(_arg0
);
5407 wxPy_END_ALLOW_THREADS
;
5408 } _resultobj
= Py_BuildValue("l",_result
);
5412 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
5413 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5414 PyObject
* _resultobj
;
5417 PyObject
* _argo0
= 0;
5418 char *_kwnames
[] = { "self", NULL
};
5421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
5424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
5431 wxPy_BEGIN_ALLOW_THREADS
;
5432 _result
= (long )wxDC_MinX(_arg0
);
5434 wxPy_END_ALLOW_THREADS
;
5435 } _resultobj
= Py_BuildValue("l",_result
);
5439 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
5440 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5441 PyObject
* _resultobj
;
5444 PyObject
* _argo0
= 0;
5445 char *_kwnames
[] = { "self", NULL
};
5448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
5451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
5458 wxPy_BEGIN_ALLOW_THREADS
;
5459 _result
= (long )wxDC_MinY(_arg0
);
5461 wxPy_END_ALLOW_THREADS
;
5462 } _resultobj
= Py_BuildValue("l",_result
);
5466 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
5467 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5468 PyObject
* _resultobj
;
5471 PyObject
* _argo0
= 0;
5472 char *_kwnames
[] = { "self", NULL
};
5475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
5478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
5485 wxPy_BEGIN_ALLOW_THREADS
;
5486 _result
= (bool )wxDC_Ok(_arg0
);
5488 wxPy_END_ALLOW_THREADS
;
5489 } _resultobj
= Py_BuildValue("i",_result
);
5493 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
5494 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5495 PyObject
* _resultobj
;
5499 PyObject
* _argo0
= 0;
5500 char *_kwnames
[] = { "self","x","y", NULL
};
5503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
5513 wxPy_BEGIN_ALLOW_THREADS
;
5514 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
5516 wxPy_END_ALLOW_THREADS
;
5517 } Py_INCREF(Py_None
);
5518 _resultobj
= Py_None
;
5522 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
5523 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5524 PyObject
* _resultobj
;
5527 PyObject
* _argo0
= 0;
5528 PyObject
* _argo1
= 0;
5529 char *_kwnames
[] = { "self","brush", NULL
};
5532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
5535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
5542 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5543 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
5549 wxPy_BEGIN_ALLOW_THREADS
;
5550 wxDC_SetBackground(_arg0
,*_arg1
);
5552 wxPy_END_ALLOW_THREADS
;
5553 } Py_INCREF(Py_None
);
5554 _resultobj
= Py_None
;
5558 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
5559 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5560 PyObject
* _resultobj
;
5563 PyObject
* _argo0
= 0;
5564 char *_kwnames
[] = { "self","mode", NULL
};
5567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
5570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
5577 wxPy_BEGIN_ALLOW_THREADS
;
5578 wxDC_SetBackgroundMode(_arg0
,_arg1
);
5580 wxPy_END_ALLOW_THREADS
;
5581 } Py_INCREF(Py_None
);
5582 _resultobj
= Py_None
;
5586 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5587 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5588 PyObject
* _resultobj
;
5594 PyObject
* _argo0
= 0;
5595 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
5608 wxPy_BEGIN_ALLOW_THREADS
;
5609 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5611 wxPy_END_ALLOW_THREADS
;
5612 } Py_INCREF(Py_None
);
5613 _resultobj
= Py_None
;
5617 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
5618 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5619 PyObject
* _resultobj
;
5622 PyObject
* _argo0
= 0;
5623 PyObject
* _argo1
= 0;
5624 char *_kwnames
[] = { "self","colourMap", NULL
};
5627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
5630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
5637 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5638 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
5639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
5644 wxPy_BEGIN_ALLOW_THREADS
;
5645 wxDC_SetPalette(_arg0
,*_arg1
);
5647 wxPy_END_ALLOW_THREADS
;
5648 } Py_INCREF(Py_None
);
5649 _resultobj
= Py_None
;
5653 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
5654 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5655 PyObject
* _resultobj
;
5658 PyObject
* _argo0
= 0;
5659 PyObject
* _argo1
= 0;
5660 char *_kwnames
[] = { "self","brush", NULL
};
5663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
5666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
5673 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5674 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
5680 wxPy_BEGIN_ALLOW_THREADS
;
5681 wxDC_SetBrush(_arg0
,*_arg1
);
5683 wxPy_END_ALLOW_THREADS
;
5684 } Py_INCREF(Py_None
);
5685 _resultobj
= Py_None
;
5689 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5690 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5691 PyObject
* _resultobj
;
5694 PyObject
* _argo0
= 0;
5695 PyObject
* _argo1
= 0;
5696 char *_kwnames
[] = { "self","font", NULL
};
5699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
5702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
5709 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5710 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
5711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
5716 wxPy_BEGIN_ALLOW_THREADS
;
5717 wxDC_SetFont(_arg0
,*_arg1
);
5719 wxPy_END_ALLOW_THREADS
;
5720 } Py_INCREF(Py_None
);
5721 _resultobj
= Py_None
;
5725 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
5726 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5727 PyObject
* _resultobj
;
5730 PyObject
* _argo0
= 0;
5731 char *_kwnames
[] = { "self","function", NULL
};
5734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
5737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
5744 wxPy_BEGIN_ALLOW_THREADS
;
5745 wxDC_SetLogicalFunction(_arg0
,_arg1
);
5747 wxPy_END_ALLOW_THREADS
;
5748 } Py_INCREF(Py_None
);
5749 _resultobj
= Py_None
;
5753 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
5754 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5755 PyObject
* _resultobj
;
5759 PyObject
* _argo0
= 0;
5760 char *_kwnames
[] = { "self","x","y", NULL
};
5763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
5773 wxPy_BEGIN_ALLOW_THREADS
;
5774 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
5776 wxPy_END_ALLOW_THREADS
;
5777 } Py_INCREF(Py_None
);
5778 _resultobj
= Py_None
;
5782 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
5783 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5784 PyObject
* _resultobj
;
5787 PyObject
* _argo0
= 0;
5788 char *_kwnames
[] = { "self","mode", NULL
};
5791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
5794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
5801 wxPy_BEGIN_ALLOW_THREADS
;
5802 wxDC_SetMapMode(_arg0
,_arg1
);
5804 wxPy_END_ALLOW_THREADS
;
5805 } Py_INCREF(Py_None
);
5806 _resultobj
= Py_None
;
5810 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
5811 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5812 PyObject
* _resultobj
;
5815 PyObject
* _argo0
= 0;
5817 char *_kwnames
[] = { "self","optimize", NULL
};
5820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
5823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
5829 _arg1
= (bool ) tempbool1
;
5831 wxPy_BEGIN_ALLOW_THREADS
;
5832 wxDC_SetOptimization(_arg0
,_arg1
);
5834 wxPy_END_ALLOW_THREADS
;
5835 } Py_INCREF(Py_None
);
5836 _resultobj
= Py_None
;
5840 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
5841 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5842 PyObject
* _resultobj
;
5845 PyObject
* _argo0
= 0;
5846 PyObject
* _argo1
= 0;
5847 char *_kwnames
[] = { "self","pen", NULL
};
5850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
5853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
5860 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5861 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
5867 wxPy_BEGIN_ALLOW_THREADS
;
5868 wxDC_SetPen(_arg0
,*_arg1
);
5870 wxPy_END_ALLOW_THREADS
;
5871 } Py_INCREF(Py_None
);
5872 _resultobj
= Py_None
;
5876 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
5877 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5878 PyObject
* _resultobj
;
5881 PyObject
* _argo0
= 0;
5883 PyObject
* _obj1
= 0;
5884 char *_kwnames
[] = { "self","colour", NULL
};
5887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
5890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
5898 if (! wxColour_helper(_obj1
, &_arg1
))
5902 wxPy_BEGIN_ALLOW_THREADS
;
5903 wxDC_SetTextBackground(_arg0
,*_arg1
);
5905 wxPy_END_ALLOW_THREADS
;
5906 } Py_INCREF(Py_None
);
5907 _resultobj
= Py_None
;
5911 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
5912 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5913 PyObject
* _resultobj
;
5916 PyObject
* _argo0
= 0;
5918 PyObject
* _obj1
= 0;
5919 char *_kwnames
[] = { "self","colour", NULL
};
5922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
5925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
5933 if (! wxColour_helper(_obj1
, &_arg1
))
5937 wxPy_BEGIN_ALLOW_THREADS
;
5938 wxDC_SetTextForeground(_arg0
,*_arg1
);
5940 wxPy_END_ALLOW_THREADS
;
5941 } Py_INCREF(Py_None
);
5942 _resultobj
= Py_None
;
5946 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
5947 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5948 PyObject
* _resultobj
;
5952 PyObject
* _argo0
= 0;
5953 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
5956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
5966 wxPy_BEGIN_ALLOW_THREADS
;
5967 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
5969 wxPy_END_ALLOW_THREADS
;
5970 } Py_INCREF(Py_None
);
5971 _resultobj
= Py_None
;
5975 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
5976 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5977 PyObject
* _resultobj
;
5981 PyObject
* _argo0
= 0;
5982 PyObject
* _obj1
= 0;
5983 char *_kwnames
[] = { "self","message", NULL
};
5986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
5989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
5996 #if PYTHON_API_VERSION >= 1009
5997 char* tmpPtr
; int tmpSize
;
5998 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5999 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6002 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6004 _arg1
= new wxString(tmpPtr
, tmpSize
);
6006 if (!PyString_Check(_obj1
)) {
6007 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6010 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6014 wxPy_BEGIN_ALLOW_THREADS
;
6015 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
6017 wxPy_END_ALLOW_THREADS
;
6018 } _resultobj
= Py_BuildValue("i",_result
);
6026 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
6027 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6028 PyObject
* _resultobj
;
6030 PyObject
* _argo0
= 0;
6031 char *_kwnames
[] = { "self", NULL
};
6034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
6037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
6044 wxPy_BEGIN_ALLOW_THREADS
;
6045 wxDC_StartPage(_arg0
);
6047 wxPy_END_ALLOW_THREADS
;
6048 } Py_INCREF(Py_None
);
6049 _resultobj
= Py_None
;
6053 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6054 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6055 PyObject
* _resultobj
;
6060 int _arg4
= (int ) FALSE
;
6061 PyObject
* _argo0
= 0;
6062 PyObject
* _argo1
= 0;
6063 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
6066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
6069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
6076 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6077 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
6083 wxPy_BEGIN_ALLOW_THREADS
;
6084 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6086 wxPy_END_ALLOW_THREADS
;
6087 } Py_INCREF(Py_None
);
6088 _resultobj
= Py_None
;
6092 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
6093 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6094 PyObject
* _resultobj
;
6097 PyObject
* _argo0
= 0;
6098 char *_kwnames
[] = { "self", NULL
};
6101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
6104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
6111 wxPy_BEGIN_ALLOW_THREADS
;
6112 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
6114 wxPy_END_ALLOW_THREADS
;
6115 } _resultobj
= Py_BuildValue("i",_result
);
6119 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
6120 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6121 PyObject
* _resultobj
;
6124 PyObject
* _argo0
= 0;
6125 char *_kwnames
[] = { "self", NULL
};
6128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
6131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
6138 wxPy_BEGIN_ALLOW_THREADS
;
6139 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
6141 wxPy_END_ALLOW_THREADS
;
6142 } _resultobj
= Py_BuildValue("i",_result
);
6146 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
6147 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6148 PyObject
* _resultobj
;
6151 PyObject
* _argo0
= 0;
6152 char *_kwnames
[] = { "self", NULL
};
6155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
6158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
6165 wxPy_BEGIN_ALLOW_THREADS
;
6166 _result
= (int )wxDC_GetDepth(_arg0
);
6168 wxPy_END_ALLOW_THREADS
;
6169 } _resultobj
= Py_BuildValue("i",_result
);
6173 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
6174 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6175 PyObject
* _resultobj
;
6178 PyObject
* _argo0
= 0;
6179 char *_kwnames
[] = { "self", NULL
};
6183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
6186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
6193 wxPy_BEGIN_ALLOW_THREADS
;
6194 _result
= new wxSize (wxDC_GetPPI(_arg0
));
6196 wxPy_END_ALLOW_THREADS
;
6197 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6198 _resultobj
= Py_BuildValue("s",_ptemp
);
6202 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
6203 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6204 PyObject
* _resultobj
;
6210 PyObject
* _argo0
= 0;
6211 char *_kwnames
[] = { "self", NULL
};
6220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
6223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
6230 wxPy_BEGIN_ALLOW_THREADS
;
6231 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
6233 wxPy_END_ALLOW_THREADS
;
6234 } Py_INCREF(Py_None
);
6235 _resultobj
= Py_None
;
6238 o
= PyInt_FromLong((long) (*_arg1
));
6239 _resultobj
= t_output_helper(_resultobj
, o
);
6243 o
= PyInt_FromLong((long) (*_arg2
));
6244 _resultobj
= t_output_helper(_resultobj
, o
);
6249 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
6250 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6251 PyObject
* _resultobj
;
6255 PyObject
* _argo0
= 0;
6256 char *_kwnames
[] = { "self","x","y", NULL
};
6259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
6269 wxPy_BEGIN_ALLOW_THREADS
;
6270 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
6272 wxPy_END_ALLOW_THREADS
;
6273 } Py_INCREF(Py_None
);
6274 _resultobj
= Py_None
;
6278 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
6279 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6280 PyObject
* _resultobj
;
6286 PyObject
* _argo0
= 0;
6287 char *_kwnames
[] = { "self", NULL
};
6296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
6299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
6306 wxPy_BEGIN_ALLOW_THREADS
;
6307 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6309 wxPy_END_ALLOW_THREADS
;
6310 } Py_INCREF(Py_None
);
6311 _resultobj
= Py_None
;
6314 o
= PyInt_FromLong((long) (*_arg1
));
6315 _resultobj
= t_output_helper(_resultobj
, o
);
6319 o
= PyInt_FromLong((long) (*_arg2
));
6320 _resultobj
= t_output_helper(_resultobj
, o
);
6325 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
6326 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6327 PyObject
* _resultobj
;
6331 PyObject
* _argo0
= 0;
6334 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
6337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
6346 _arg1
= (bool ) tempbool1
;
6347 _arg2
= (bool ) tempbool2
;
6349 wxPy_BEGIN_ALLOW_THREADS
;
6350 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
6352 wxPy_END_ALLOW_THREADS
;
6353 } Py_INCREF(Py_None
);
6354 _resultobj
= Py_None
;
6358 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
6359 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6360 PyObject
* _resultobj
;
6364 PyObject
* _argo0
= 0;
6365 char *_kwnames
[] = { "self","x","y", NULL
};
6368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
6378 wxPy_BEGIN_ALLOW_THREADS
;
6379 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
6381 wxPy_END_ALLOW_THREADS
;
6382 } Py_INCREF(Py_None
);
6383 _resultobj
= Py_None
;
6387 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
6388 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6389 PyObject
* _resultobj
;
6391 PyObject
* _argo0
= 0;
6392 char *_kwnames
[] = { "self", NULL
};
6395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
6398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
6405 wxPy_BEGIN_ALLOW_THREADS
;
6406 wxDC_ResetBoundingBox(_arg0
);
6408 wxPy_END_ALLOW_THREADS
;
6409 } Py_INCREF(Py_None
);
6410 _resultobj
= Py_None
;
6414 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
6417 src
= (wxMemoryDC
*) ptr
;
6418 dest
= (wxDC
*) src
;
6419 return (void *) dest
;
6422 #define new_wxMemoryDC() (new wxMemoryDC())
6423 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6424 PyObject
* _resultobj
;
6425 wxMemoryDC
* _result
;
6426 char *_kwnames
[] = { NULL
};
6430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
6433 wxPy_BEGIN_ALLOW_THREADS
;
6434 _result
= (wxMemoryDC
*)new_wxMemoryDC();
6436 wxPy_END_ALLOW_THREADS
;
6438 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
6439 _resultobj
= Py_BuildValue("s",_ptemp
);
6442 _resultobj
= Py_None
;
6447 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
6448 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6449 PyObject
* _resultobj
;
6452 PyObject
* _argo0
= 0;
6453 PyObject
* _argo1
= 0;
6454 char *_kwnames
[] = { "self","bitmap", NULL
};
6457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
6460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
6462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
6467 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6468 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
6469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
6474 wxPy_BEGIN_ALLOW_THREADS
;
6475 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
6477 wxPy_END_ALLOW_THREADS
;
6478 } Py_INCREF(Py_None
);
6479 _resultobj
= Py_None
;
6483 static void *SwigwxScreenDCTowxDC(void *ptr
) {
6486 src
= (wxScreenDC
*) ptr
;
6487 dest
= (wxDC
*) src
;
6488 return (void *) dest
;
6491 #define new_wxScreenDC() (new wxScreenDC())
6492 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6493 PyObject
* _resultobj
;
6494 wxScreenDC
* _result
;
6495 char *_kwnames
[] = { NULL
};
6499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
6502 wxPy_BEGIN_ALLOW_THREADS
;
6503 _result
= (wxScreenDC
*)new_wxScreenDC();
6505 wxPy_END_ALLOW_THREADS
;
6507 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
6508 _resultobj
= Py_BuildValue("s",_ptemp
);
6511 _resultobj
= Py_None
;
6516 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
6517 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6518 PyObject
* _resultobj
;
6522 PyObject
* _argo0
= 0;
6523 PyObject
* _argo1
= 0;
6524 char *_kwnames
[] = { "self","window", NULL
};
6527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
6530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
6532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
6537 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6538 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
6544 wxPy_BEGIN_ALLOW_THREADS
;
6545 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
6547 wxPy_END_ALLOW_THREADS
;
6548 } _resultobj
= Py_BuildValue("i",_result
);
6552 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
6553 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6554 PyObject
* _resultobj
;
6557 wxRect
* _arg1
= (wxRect
*) NULL
;
6558 PyObject
* _argo0
= 0;
6560 PyObject
* _obj1
= 0;
6561 char *_kwnames
[] = { "self","rect", NULL
};
6564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
6567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
6569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
6576 if (! wxRect_helper(_obj1
, &_arg1
))
6580 wxPy_BEGIN_ALLOW_THREADS
;
6581 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
6583 wxPy_END_ALLOW_THREADS
;
6584 } _resultobj
= Py_BuildValue("i",_result
);
6588 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
6589 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6590 PyObject
* _resultobj
;
6593 PyObject
* _argo0
= 0;
6594 char *_kwnames
[] = { "self", NULL
};
6597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
6600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
6602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
6607 wxPy_BEGIN_ALLOW_THREADS
;
6608 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
6610 wxPy_END_ALLOW_THREADS
;
6611 } _resultobj
= Py_BuildValue("i",_result
);
6615 static void *SwigwxClientDCTowxDC(void *ptr
) {
6618 src
= (wxClientDC
*) ptr
;
6619 dest
= (wxDC
*) src
;
6620 return (void *) dest
;
6623 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
6624 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6625 PyObject
* _resultobj
;
6626 wxClientDC
* _result
;
6628 PyObject
* _argo0
= 0;
6629 char *_kwnames
[] = { "win", NULL
};
6633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
6636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
6643 wxPy_BEGIN_ALLOW_THREADS
;
6644 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
6646 wxPy_END_ALLOW_THREADS
;
6648 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
6649 _resultobj
= Py_BuildValue("s",_ptemp
);
6652 _resultobj
= Py_None
;
6657 static void *SwigwxPaintDCTowxDC(void *ptr
) {
6660 src
= (wxPaintDC
*) ptr
;
6661 dest
= (wxDC
*) src
;
6662 return (void *) dest
;
6665 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
6666 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6667 PyObject
* _resultobj
;
6668 wxPaintDC
* _result
;
6670 PyObject
* _argo0
= 0;
6671 char *_kwnames
[] = { "win", NULL
};
6675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
6678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
6685 wxPy_BEGIN_ALLOW_THREADS
;
6686 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
6688 wxPy_END_ALLOW_THREADS
;
6690 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
6691 _resultobj
= Py_BuildValue("s",_ptemp
);
6694 _resultobj
= Py_None
;
6699 static void *SwigwxWindowDCTowxDC(void *ptr
) {
6702 src
= (wxWindowDC
*) ptr
;
6703 dest
= (wxDC
*) src
;
6704 return (void *) dest
;
6707 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
6708 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6709 PyObject
* _resultobj
;
6710 wxWindowDC
* _result
;
6712 PyObject
* _argo0
= 0;
6713 char *_kwnames
[] = { "win", NULL
};
6717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
6720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
6727 wxPy_BEGIN_ALLOW_THREADS
;
6728 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
6730 wxPy_END_ALLOW_THREADS
;
6732 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
6733 _resultobj
= Py_BuildValue("s",_ptemp
);
6736 _resultobj
= Py_None
;
6741 static void *SwigwxPostScriptDCTowxDC(void *ptr
) {
6742 wxPostScriptDC
*src
;
6744 src
= (wxPostScriptDC
*) ptr
;
6745 dest
= (wxDC
*) src
;
6746 return (void *) dest
;
6749 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
6750 static PyObject
*_wrap_new_wxPostScriptDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6751 PyObject
* _resultobj
;
6752 wxPostScriptDC
* _result
;
6754 bool _arg1
= (bool ) TRUE
;
6755 wxWindow
* _arg2
= (wxWindow
*) NULL
;
6756 PyObject
* _obj0
= 0;
6757 int tempbool1
= (int) TRUE
;
6758 PyObject
* _argo2
= 0;
6759 char *_kwnames
[] = { "output","interactive","win", NULL
};
6763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:new_wxPostScriptDC",_kwnames
,&_obj0
,&tempbool1
,&_argo2
))
6766 #if PYTHON_API_VERSION >= 1009
6767 char* tmpPtr
; int tmpSize
;
6768 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6769 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
6772 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6774 _arg0
= new wxString(tmpPtr
, tmpSize
);
6776 if (!PyString_Check(_obj0
)) {
6777 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6780 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6783 _arg1
= (bool ) tempbool1
;
6785 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6786 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
6787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
6792 wxPy_BEGIN_ALLOW_THREADS
;
6793 _result
= (wxPostScriptDC
*)new_wxPostScriptDC(*_arg0
,_arg1
,_arg2
);
6795 wxPy_END_ALLOW_THREADS
;
6797 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPostScriptDC_p");
6798 _resultobj
= Py_BuildValue("s",_ptemp
);
6801 _resultobj
= Py_None
;
6810 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6811 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6812 PyObject
* _resultobj
;
6813 wxPalette
* _result
;
6818 PyObject
* _obj1
= 0;
6819 PyObject
* _obj2
= 0;
6820 PyObject
* _obj3
= 0;
6821 char *_kwnames
[] = { "choices","choices","choices", NULL
};
6825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
6828 _arg1
= byte_LIST_helper(_obj1
);
6829 if (_arg1
== NULL
) {
6834 _arg2
= byte_LIST_helper(_obj2
);
6835 if (_arg2
== NULL
) {
6841 _arg3
= byte_LIST_helper(_obj3
);
6842 if (_arg3
== NULL
) {
6848 _arg0
= PyList_Size(_obj1
);
6855 wxPy_BEGIN_ALLOW_THREADS
;
6856 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
6858 wxPy_END_ALLOW_THREADS
;
6860 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
6861 _resultobj
= Py_BuildValue("s",_ptemp
);
6864 _resultobj
= Py_None
;
6878 #define delete_wxPalette(_swigobj) (delete _swigobj)
6879 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6880 PyObject
* _resultobj
;
6882 PyObject
* _argo0
= 0;
6883 char *_kwnames
[] = { "self", NULL
};
6886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
6889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
6891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
6896 wxPy_BEGIN_ALLOW_THREADS
;
6897 delete_wxPalette(_arg0
);
6899 wxPy_END_ALLOW_THREADS
;
6900 } Py_INCREF(Py_None
);
6901 _resultobj
= Py_None
;
6905 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
6906 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6907 PyObject
* _resultobj
;
6913 PyObject
* _argo0
= 0;
6914 char *_kwnames
[] = { "self","red","green","blue", NULL
};
6917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
6922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
6927 wxPy_BEGIN_ALLOW_THREADS
;
6928 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
6930 wxPy_END_ALLOW_THREADS
;
6931 } _resultobj
= Py_BuildValue("i",_result
);
6935 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6936 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6937 PyObject
* _resultobj
;
6944 PyObject
* _argo0
= 0;
6945 PyObject
* _argo2
= 0;
6946 PyObject
* _argo3
= 0;
6947 PyObject
* _argo4
= 0;
6948 char *_kwnames
[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL
};
6951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOOO:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_argo4
))
6954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
6956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
6961 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6962 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_byte_p")) {
6963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
6968 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6969 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_byte_p")) {
6970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
6975 if (_argo4
== Py_None
) { _arg4
= NULL
; }
6976 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_byte_p")) {
6977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
6982 wxPy_BEGIN_ALLOW_THREADS
;
6983 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6985 wxPy_END_ALLOW_THREADS
;
6986 } _resultobj
= Py_BuildValue("i",_result
);
6990 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
6991 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6992 PyObject
* _resultobj
;
6995 PyObject
* _argo0
= 0;
6996 char *_kwnames
[] = { "self", NULL
};
6999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
7002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
7004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
7009 wxPy_BEGIN_ALLOW_THREADS
;
7010 _result
= (bool )wxPalette_Ok(_arg0
);
7012 wxPy_END_ALLOW_THREADS
;
7013 } _resultobj
= Py_BuildValue("i",_result
);
7017 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7018 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7019 PyObject
* _resultobj
;
7020 wxImageList
* _result
;
7023 int _arg2
= (int ) TRUE
;
7024 int _arg3
= (int ) 1;
7025 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
7029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
7032 wxPy_BEGIN_ALLOW_THREADS
;
7033 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
7035 wxPy_END_ALLOW_THREADS
;
7037 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
7038 _resultobj
= Py_BuildValue("s",_ptemp
);
7041 _resultobj
= Py_None
;
7046 #define delete_wxImageList(_swigobj) (delete _swigobj)
7047 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7048 PyObject
* _resultobj
;
7049 wxImageList
* _arg0
;
7050 PyObject
* _argo0
= 0;
7051 char *_kwnames
[] = { "self", NULL
};
7054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
7057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
7064 wxPy_BEGIN_ALLOW_THREADS
;
7065 delete_wxImageList(_arg0
);
7067 wxPy_END_ALLOW_THREADS
;
7068 } Py_INCREF(Py_None
);
7069 _resultobj
= Py_None
;
7073 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7074 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7075 PyObject
* _resultobj
;
7077 wxImageList
* _arg0
;
7079 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
7080 PyObject
* _argo0
= 0;
7081 PyObject
* _argo1
= 0;
7082 PyObject
* _argo2
= 0;
7083 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
7086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
7089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
7096 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7097 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
7103 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7104 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
7105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
7110 wxPy_BEGIN_ALLOW_THREADS
;
7111 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
7113 wxPy_END_ALLOW_THREADS
;
7114 } _resultobj
= Py_BuildValue("i",_result
);
7118 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
7119 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7120 PyObject
* _resultobj
;
7122 wxImageList
* _arg0
;
7125 PyObject
* _argo0
= 0;
7126 PyObject
* _argo1
= 0;
7128 PyObject
* _obj2
= 0;
7129 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
7132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
7135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
7142 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7143 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
7150 if (! wxColour_helper(_obj2
, &_arg2
))
7154 wxPy_BEGIN_ALLOW_THREADS
;
7155 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
7157 wxPy_END_ALLOW_THREADS
;
7158 } _resultobj
= Py_BuildValue("i",_result
);
7162 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
7163 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7164 PyObject
* _resultobj
;
7166 wxImageList
* _arg0
;
7168 PyObject
* _argo0
= 0;
7169 PyObject
* _argo1
= 0;
7170 char *_kwnames
[] = { "self","icon", NULL
};
7173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
7176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
7183 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7184 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
7185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
7190 wxPy_BEGIN_ALLOW_THREADS
;
7191 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
7193 wxPy_END_ALLOW_THREADS
;
7194 } _resultobj
= Py_BuildValue("i",_result
);
7198 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
7199 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7200 PyObject
* _resultobj
;
7202 wxImageList
* _arg0
;
7205 PyObject
* _argo0
= 0;
7206 PyObject
* _argo2
= 0;
7207 char *_kwnames
[] = { "self","index","bitmap", NULL
};
7210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
7220 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7221 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
7222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
7227 wxPy_BEGIN_ALLOW_THREADS
;
7228 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
7230 wxPy_END_ALLOW_THREADS
;
7231 } _resultobj
= Py_BuildValue("i",_result
);
7235 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7236 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7237 PyObject
* _resultobj
;
7239 wxImageList
* _arg0
;
7244 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
7245 bool _arg6
= (bool ) FALSE
;
7246 PyObject
* _argo0
= 0;
7247 PyObject
* _argo2
= 0;
7248 int tempbool6
= (int) FALSE
;
7249 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
7252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
7255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
7262 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7263 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
7264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
7268 _arg6
= (bool ) tempbool6
;
7270 wxPy_BEGIN_ALLOW_THREADS
;
7271 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7273 wxPy_END_ALLOW_THREADS
;
7274 } _resultobj
= Py_BuildValue("i",_result
);
7278 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
7279 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7280 PyObject
* _resultobj
;
7282 wxImageList
* _arg0
;
7283 PyObject
* _argo0
= 0;
7284 char *_kwnames
[] = { "self", NULL
};
7287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
7290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
7297 wxPy_BEGIN_ALLOW_THREADS
;
7298 _result
= (int )wxImageList_GetImageCount(_arg0
);
7300 wxPy_END_ALLOW_THREADS
;
7301 } _resultobj
= Py_BuildValue("i",_result
);
7305 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7306 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7307 PyObject
* _resultobj
;
7309 wxImageList
* _arg0
;
7311 PyObject
* _argo0
= 0;
7312 char *_kwnames
[] = { "self","index", NULL
};
7315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
7318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
7325 wxPy_BEGIN_ALLOW_THREADS
;
7326 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
7328 wxPy_END_ALLOW_THREADS
;
7329 } _resultobj
= Py_BuildValue("i",_result
);
7333 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
7334 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7335 PyObject
* _resultobj
;
7337 wxImageList
* _arg0
;
7338 PyObject
* _argo0
= 0;
7339 char *_kwnames
[] = { "self", NULL
};
7342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
7345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
7352 wxPy_BEGIN_ALLOW_THREADS
;
7353 _result
= (bool )wxImageList_RemoveAll(_arg0
);
7355 wxPy_END_ALLOW_THREADS
;
7356 } _resultobj
= Py_BuildValue("i",_result
);
7360 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
7361 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7362 PyObject
* _resultobj
;
7363 wxImageList
* _arg0
;
7369 PyObject
* _argo0
= 0;
7370 char *_kwnames
[] = { "self","index", NULL
};
7379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
7382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
7384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
7389 wxPy_BEGIN_ALLOW_THREADS
;
7390 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
7392 wxPy_END_ALLOW_THREADS
;
7393 } Py_INCREF(Py_None
);
7394 _resultobj
= Py_None
;
7397 o
= PyInt_FromLong((long) (*_arg2
));
7398 _resultobj
= t_output_helper(_resultobj
, o
);
7402 o
= PyInt_FromLong((long) (*_arg3
));
7403 _resultobj
= t_output_helper(_resultobj
, o
);
7408 static PyMethodDef gdicMethods
[] = {
7409 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
7410 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
7411 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
7412 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
7413 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
7414 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
7415 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
7416 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
7417 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
7418 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
7419 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
7420 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7421 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
7422 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
7423 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
7424 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
7425 { "new_wxPostScriptDC", (PyCFunction
) _wrap_new_wxPostScriptDC
, METH_VARARGS
| METH_KEYWORDS
},
7426 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
7427 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
7428 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
7429 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
7430 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
7431 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
7432 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
7433 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
7434 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
7435 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
7436 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
7437 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
7438 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
7439 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
7440 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
7441 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
7442 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
7443 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
7444 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
7445 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
7446 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
7447 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
7448 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
7449 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
7450 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
7451 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
7452 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
7453 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
7454 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
7455 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
7456 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
7457 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
7458 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
7459 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
7460 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
7461 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
7462 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
7463 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7464 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
7465 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
7466 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
7467 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
7468 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
7469 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
7470 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
7471 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
7472 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
7473 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
7474 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
7475 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
7476 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
7477 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
7478 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
7479 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
7480 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
7481 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
7482 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
7483 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
7484 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
7485 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
7486 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
7487 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
7488 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
7489 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
7490 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
7491 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
7492 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
7493 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
7494 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
7495 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
7496 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
7497 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
7498 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
7499 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
7500 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
7501 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
7502 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
7503 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
7504 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
7505 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
7506 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
7507 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
7508 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
7509 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
7510 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
7511 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
7512 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
7513 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
7514 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
7515 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
7516 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
7517 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
7518 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
7519 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
7520 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7521 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
7522 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
7523 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7524 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7525 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
7526 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
7527 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
7528 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
7529 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
7530 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
7531 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7532 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
7533 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
7534 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
7535 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7536 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
7537 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7538 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
7539 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
7540 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
7541 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
7542 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
7543 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
7544 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7545 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
7546 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
7547 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
7548 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
7549 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
7550 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
7551 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
7552 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
7553 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
7554 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
7555 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
7556 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7557 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
7558 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
7559 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
7560 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
7561 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
7562 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
7563 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7564 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
7565 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
7566 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
7567 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7568 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
7569 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7570 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
7571 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
7572 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
7573 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
7574 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
7575 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
7576 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
7577 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7578 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
7579 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
7580 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
7581 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
7582 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
7583 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
7584 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
7585 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
7586 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
7587 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
7588 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
7589 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
7590 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
7591 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
7592 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
7593 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
7594 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
7595 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
7596 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
7597 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
7598 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
7599 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
7600 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
7601 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
7602 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
7603 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
7610 * This table is used by the pointer type-checker
7612 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
7613 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
7614 { "_signed_long","_long",0},
7615 { "_wxPrintQuality","_wxCoord",0},
7616 { "_wxPrintQuality","_int",0},
7617 { "_wxPrintQuality","_signed_int",0},
7618 { "_wxPrintQuality","_unsigned_int",0},
7619 { "_wxPrintQuality","_wxWindowID",0},
7620 { "_wxPrintQuality","_uint",0},
7621 { "_wxPrintQuality","_EBool",0},
7622 { "_wxPrintQuality","_size_t",0},
7623 { "_wxPrintQuality","_time_t",0},
7624 { "_class_wxRegionIterator","_wxRegionIterator",0},
7625 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
7626 { "_wxCursor","_class_wxCursor",0},
7627 { "_wxMask","_class_wxMask",0},
7628 { "_wxPen","_class_wxPen",0},
7629 { "_byte","_unsigned_char",0},
7630 { "_long","_unsigned_long",0},
7631 { "_long","_signed_long",0},
7632 { "_wxImageList","_class_wxImageList",0},
7633 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
7634 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
7635 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
7636 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
7637 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
7638 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
7639 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
7640 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
7641 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
7642 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
7643 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
7644 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
7645 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
7646 { "_wxDC","_class_wxDC",0},
7647 { "_size_t","_wxCoord",0},
7648 { "_size_t","_wxPrintQuality",0},
7649 { "_size_t","_time_t",0},
7650 { "_size_t","_unsigned_int",0},
7651 { "_size_t","_int",0},
7652 { "_size_t","_wxWindowID",0},
7653 { "_size_t","_uint",0},
7654 { "_class_wxRealPoint","_wxRealPoint",0},
7655 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
7656 { "_class_wxMask","_wxMask",0},
7657 { "_wxColour","_class_wxColour",0},
7658 { "_wxBrush","_class_wxBrush",0},
7659 { "_uint","_wxCoord",0},
7660 { "_uint","_wxPrintQuality",0},
7661 { "_uint","_time_t",0},
7662 { "_uint","_size_t",0},
7663 { "_uint","_unsigned_int",0},
7664 { "_uint","_int",0},
7665 { "_uint","_wxWindowID",0},
7666 { "_wxChar","_char",0},
7667 { "_wxRect","_class_wxRect",0},
7668 { "_wxPoint","_class_wxPoint",0},
7669 { "_char","_wxChar",0},
7670 { "_wxBitmap","_class_wxBitmap",0},
7671 { "_wxWindowDC","_class_wxWindowDC",0},
7672 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
7673 { "_EBool","_wxCoord",0},
7674 { "_EBool","_wxPrintQuality",0},
7675 { "_EBool","_signed_int",0},
7676 { "_EBool","_int",0},
7677 { "_EBool","_wxWindowID",0},
7678 { "_class_wxRegion","_wxRegion",0},
7679 { "_wxFont","_class_wxFont",0},
7680 { "_unsigned_long","_long",0},
7681 { "_class_wxRect","_wxRect",0},
7682 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
7683 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC
},
7684 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC
},
7685 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
7686 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC
},
7687 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
7688 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC
},
7689 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
7690 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC
},
7691 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
7692 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC
},
7693 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
7694 { "_class_wxDC","_wxDC",0},
7695 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
7696 { "_signed_int","_wxCoord",0},
7697 { "_signed_int","_wxPrintQuality",0},
7698 { "_signed_int","_EBool",0},
7699 { "_signed_int","_wxWindowID",0},
7700 { "_signed_int","_int",0},
7701 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
7702 { "_wxScreenDC","_class_wxScreenDC",0},
7703 { "_WXTYPE","_short",0},
7704 { "_WXTYPE","_signed_short",0},
7705 { "_WXTYPE","_unsigned_short",0},
7706 { "_class_wxBrush","_wxBrush",0},
7707 { "_unsigned_short","_WXTYPE",0},
7708 { "_unsigned_short","_short",0},
7709 { "_class_wxFont","_wxFont",0},
7710 { "_wxBusyInfo","_class_wxBusyInfo",0},
7711 { "_wxClientDC","_class_wxClientDC",0},
7712 { "_class_wxPoint","_wxPoint",0},
7713 { "_wxRealPoint","_class_wxRealPoint",0},
7714 { "_signed_short","_WXTYPE",0},
7715 { "_signed_short","_short",0},
7716 { "_wxMemoryDC","_class_wxMemoryDC",0},
7717 { "_wxPaintDC","_class_wxPaintDC",0},
7718 { "_class_wxWindowDC","_wxWindowDC",0},
7719 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
7720 { "_class_wxCursor","_wxCursor",0},
7721 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
7722 { "_unsigned_char","_byte",0},
7723 { "_unsigned_int","_wxCoord",0},
7724 { "_unsigned_int","_wxPrintQuality",0},
7725 { "_unsigned_int","_time_t",0},
7726 { "_unsigned_int","_size_t",0},
7727 { "_unsigned_int","_uint",0},
7728 { "_unsigned_int","_wxWindowID",0},
7729 { "_unsigned_int","_int",0},
7730 { "_wxIcon","_class_wxIcon",0},
7731 { "_class_wxPen","_wxPen",0},
7732 { "_short","_WXTYPE",0},
7733 { "_short","_unsigned_short",0},
7734 { "_short","_signed_short",0},
7735 { "_class_wxImageList","_wxImageList",0},
7736 { "_wxWindowID","_wxCoord",0},
7737 { "_wxWindowID","_wxPrintQuality",0},
7738 { "_wxWindowID","_time_t",0},
7739 { "_wxWindowID","_size_t",0},
7740 { "_wxWindowID","_EBool",0},
7741 { "_wxWindowID","_uint",0},
7742 { "_wxWindowID","_int",0},
7743 { "_wxWindowID","_signed_int",0},
7744 { "_wxWindowID","_unsigned_int",0},
7745 { "_int","_wxCoord",0},
7746 { "_int","_wxPrintQuality",0},
7747 { "_int","_time_t",0},
7748 { "_int","_size_t",0},
7749 { "_int","_EBool",0},
7750 { "_int","_uint",0},
7751 { "_int","_wxWindowID",0},
7752 { "_int","_unsigned_int",0},
7753 { "_int","_signed_int",0},
7754 { "_time_t","_wxCoord",0},
7755 { "_time_t","_wxPrintQuality",0},
7756 { "_time_t","_unsigned_int",0},
7757 { "_time_t","_int",0},
7758 { "_time_t","_wxWindowID",0},
7759 { "_time_t","_uint",0},
7760 { "_time_t","_size_t",0},
7761 { "_wxSize","_class_wxSize",0},
7762 { "_wxRegionIterator","_class_wxRegionIterator",0},
7763 { "_class_wxPaintDC","_wxPaintDC",0},
7764 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
7765 { "_class_wxIcon","_wxIcon",0},
7766 { "_class_wxColour","_wxColour",0},
7767 { "_class_wxScreenDC","_wxScreenDC",0},
7768 { "_wxPalette","_class_wxPalette",0},
7769 { "_wxCoord","_int",0},
7770 { "_wxCoord","_signed_int",0},
7771 { "_wxCoord","_unsigned_int",0},
7772 { "_wxCoord","_wxWindowID",0},
7773 { "_wxCoord","_uint",0},
7774 { "_wxCoord","_EBool",0},
7775 { "_wxCoord","_size_t",0},
7776 { "_wxCoord","_time_t",0},
7777 { "_wxCoord","_wxPrintQuality",0},
7778 { "_wxRegion","_class_wxRegion",0},
7779 { "_class_wxBusyInfo","_wxBusyInfo",0},
7780 { "_class_wxClientDC","_wxClientDC",0},
7781 { "_class_wxSize","_wxSize",0},
7782 { "_class_wxBitmap","_wxBitmap",0},
7783 { "_class_wxMemoryDC","_wxMemoryDC",0},
7784 { "_class_wxPalette","_wxPalette",0},
7787 static PyObject
*SWIG_globals
;
7791 SWIGEXPORT(void) initgdic() {
7793 SWIG_globals
= SWIG_newvarlink();
7794 m
= Py_InitModule("gdic", gdicMethods
);
7795 d
= PyModule_GetDict(m
);
7796 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
7797 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
7798 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
7799 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
7800 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
7801 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
7802 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
7803 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
7804 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
7805 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
7806 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
7807 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
7808 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
7809 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
7810 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
7811 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
7812 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
7813 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
7814 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
7815 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
7816 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
7817 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
7818 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
7819 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
7820 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
7821 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
7822 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
7823 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
7824 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
7825 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
7826 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
7827 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
7828 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
7829 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
7830 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
7831 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
7832 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
7833 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
7834 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
7835 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
7836 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
7837 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
7838 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
7839 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
7840 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
7841 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
7842 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
7843 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
7844 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
7845 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
7846 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
7847 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
7848 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
7849 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
7850 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
7851 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
7852 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
7853 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
7854 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
7855 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
7856 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
7857 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
7858 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
7859 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
7860 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
7861 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
7862 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
7863 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
7864 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
7865 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
7866 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
7867 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
7868 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
7869 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
7870 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
7871 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
7872 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
7873 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
7874 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
7877 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
7878 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);