2 * FILE : src/mac/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/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64 #include <wx/dcbuffer.h>
65 #include <wx/iconbndl.h>
68 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
74 } else if (target
== Py_None
) {
78 if (!PyTuple_Check(target
)) {
80 target
= PyTuple_New(1);
81 PyTuple_SetItem(target
, 0, o2
);
84 PyTuple_SetItem(o3
, 0, o
);
87 target
= PySequence_Concat(o2
, o3
);
94 // Put some wx default wxChar* values into wxStrings.
95 static const wxString
wxPyEmptyString(wxT(""));
96 // Implementations of some alternate "constructors"
98 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
99 return new wxBitmap(width
, height
, depth
);
102 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
103 char** cArray
= NULL
;
106 if (!PyList_Check(listOfStrings
)) {
107 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
110 count
= PyList_Size(listOfStrings
);
111 cArray
= new char*[count
];
113 for(int x
=0; x
<count
; x
++) {
114 // TODO: Need some validation and error checking here
115 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
121 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
122 char** cArray
= NULL
;
125 cArray
= ConvertListOfStrings(listOfStrings
);
128 bmp
= new wxBitmap(cArray
);
134 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
135 return new wxBitmap(icon
);
139 wxBitmap
* wxBitmapFromBits(PyObject
* bits
, int width
, int height
, int depth
= 1 ) {
142 PyString_AsStringAndSize(bits
, &buf
, &length
);
143 return new wxBitmap(buf
, width
, height
, depth
);
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
158 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
159 return new wxMask(bitmap
, colour
);
161 // Implementations of some alternate "constructors"
162 wxIcon
* wxEmptyIcon() {
166 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
167 char** cArray
= NULL
;
170 cArray
= ConvertListOfStrings(listOfStrings
);
173 icon
= new wxIcon(cArray
);
178 wxIcon
* wxIconFromBitmap(const wxBitmap
& bmp
) {
179 wxIcon
* icon
= new wxIcon();
180 icon
->CopyFromBitmap(bmp
);
183 // Alternate 'constructor'
184 wxCursor
* wxPyStockCursor(int id
) {
185 return new wxCursor(id
);
187 // Alternate 'constructor'
188 wxColour
* wxNamedColour(const wxString
& colorName
) {
189 return new wxColour(colorName
);
192 class wxPyPen
: public wxPen
{
194 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
195 : wxPen(colour
, width
, style
)
202 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
205 m_dash
= new wxDash
[nb_dashes
];
206 for (int i
=0; i
<nb_dashes
; i
++) {
209 wxPen::SetDashes(nb_dashes
, m_dash
);
216 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
222 // Alternate 'constructor'
223 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
224 return new wxMemoryDC(oldDC
);
228 extern wxFont
* wxNORMAL_FONT
;
229 extern wxFont
* wxSMALL_FONT
;
230 extern wxFont
* wxITALIC_FONT
;
231 extern wxFont
* wxSWISS_FONT
;
232 extern wxPen
* wxRED_PEN
;
233 extern wxPen
* wxCYAN_PEN
;
234 extern wxPen
* wxGREEN_PEN
;
235 extern wxPen
* wxBLACK_PEN
;
236 extern wxPen
* wxWHITE_PEN
;
237 extern wxPen
* wxTRANSPARENT_PEN
;
238 extern wxPen
* wxBLACK_DASHED_PEN
;
239 extern wxPen
* wxGREY_PEN
;
240 extern wxPen
* wxMEDIUM_GREY_PEN
;
241 extern wxPen
* wxLIGHT_GREY_PEN
;
242 extern wxBrush
* wxBLUE_BRUSH
;
243 extern wxBrush
* wxGREEN_BRUSH
;
244 extern wxBrush
* wxWHITE_BRUSH
;
245 extern wxBrush
* wxBLACK_BRUSH
;
246 extern wxBrush
* wxTRANSPARENT_BRUSH
;
247 extern wxBrush
* wxCYAN_BRUSH
;
248 extern wxBrush
* wxRED_BRUSH
;
249 extern wxBrush
* wxGREY_BRUSH
;
250 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
251 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
252 extern wxColour
* wxBLACK
;
253 extern wxColour
* wxWHITE
;
254 extern wxColour
* wxRED
;
255 extern wxColour
* wxBLUE
;
256 extern wxColour
* wxGREEN
;
257 extern wxColour
* wxCYAN
;
258 extern wxColour
* wxLIGHT_GREY
;
259 extern wxCursor
* wxSTANDARD_CURSOR
;
260 extern wxCursor
* wxHOURGLASS_CURSOR
;
261 extern wxCursor
* wxCROSS_CURSOR
;
262 extern wxBitmap wxNullBitmap
;
263 extern wxIcon wxNullIcon
;
264 extern wxCursor wxNullCursor
;
265 extern wxPen wxNullPen
;
266 extern wxBrush wxNullBrush
;
267 extern wxPalette wxNullPalette
;
268 extern wxFont wxNullFont
;
269 extern wxColour wxNullColour
;
270 extern wxFontList
* wxTheFontList
;
271 extern wxPenList
* wxThePenList
;
272 extern wxBrushList
* wxTheBrushList
;
273 extern wxColourDatabase
* wxTheColourDatabase
;
279 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
280 PyObject
* _resultobj
;
284 int _arg2
= (int ) -1;
285 char *_kwnames
[] = { "width","height","depth", NULL
};
289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
293 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
295 wxPyEndAllowThreads(__tstate
);
296 if (PyErr_Occurred()) return NULL
;
298 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
299 _resultobj
= Py_BuildValue("s",_ptemp
);
302 _resultobj
= Py_None
;
307 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
308 PyObject
* _resultobj
;
311 PyObject
* _obj0
= 0;
312 char *_kwnames
[] = { "listOfStrings", NULL
};
316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
323 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
325 wxPyEndAllowThreads(__tstate
);
326 if (PyErr_Occurred()) return NULL
;
328 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
329 _resultobj
= Py_BuildValue("s",_ptemp
);
332 _resultobj
= Py_None
;
337 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
338 PyObject
* _resultobj
;
341 PyObject
* _argo0
= 0;
342 char *_kwnames
[] = { "icon", NULL
};
346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
357 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
359 wxPyEndAllowThreads(__tstate
);
360 if (PyErr_Occurred()) return NULL
;
362 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
363 _resultobj
= Py_BuildValue("s",_ptemp
);
366 _resultobj
= Py_None
;
371 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
377 int _arg3
= (int ) 1;
378 PyObject
* _obj0
= 0;
379 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxBitmapFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
390 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
392 wxPyEndAllowThreads(__tstate
);
393 if (PyErr_Occurred()) return NULL
;
395 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
396 _resultobj
= Py_BuildValue("s",_ptemp
);
399 _resultobj
= Py_None
;
404 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
405 PyObject
* _resultobj
;
409 PyObject
* _argo0
= 0;
411 PyObject
* _obj1
= 0;
412 char *_kwnames
[] = { "bitmap","colour", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
427 if (! wxColour_helper(_obj1
, &_arg1
))
431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
432 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
434 wxPyEndAllowThreads(__tstate
);
435 if (PyErr_Occurred()) return NULL
;
437 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
438 _resultobj
= Py_BuildValue("s",_ptemp
);
441 _resultobj
= Py_None
;
446 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
447 PyObject
* _resultobj
;
449 char *_kwnames
[] = { NULL
};
453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
457 _result
= (wxIcon
*)wxEmptyIcon();
459 wxPyEndAllowThreads(__tstate
);
460 if (PyErr_Occurred()) return NULL
;
462 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
463 _resultobj
= Py_BuildValue("s",_ptemp
);
466 _resultobj
= Py_None
;
471 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
472 PyObject
* _resultobj
;
475 PyObject
* _obj0
= 0;
476 char *_kwnames
[] = { "listOfStrings", NULL
};
480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
487 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
489 wxPyEndAllowThreads(__tstate
);
490 if (PyErr_Occurred()) return NULL
;
492 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
493 _resultobj
= Py_BuildValue("s",_ptemp
);
496 _resultobj
= Py_None
;
501 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
502 PyObject
* _resultobj
;
505 PyObject
* _argo0
= 0;
506 char *_kwnames
[] = { "bmp", NULL
};
510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
521 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
523 wxPyEndAllowThreads(__tstate
);
524 if (PyErr_Occurred()) return NULL
;
526 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
527 _resultobj
= Py_BuildValue("s",_ptemp
);
530 _resultobj
= Py_None
;
535 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
536 PyObject
* _resultobj
;
539 char *_kwnames
[] = { "id", NULL
};
543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
546 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
547 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
549 wxPyEndAllowThreads(__tstate
);
550 if (PyErr_Occurred()) return NULL
;
552 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
553 _resultobj
= Py_BuildValue("s",_ptemp
);
556 _resultobj
= Py_None
;
561 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
562 PyObject
* _resultobj
;
565 PyObject
* _obj0
= 0;
566 char *_kwnames
[] = { "colorName", NULL
};
570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
573 _arg0
= wxString_in_helper(_obj0
);
578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
579 _result
= (wxColour
*)wxNamedColour(*_arg0
);
581 wxPyEndAllowThreads(__tstate
);
582 if (PyErr_Occurred()) return NULL
;
584 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
585 _resultobj
= Py_BuildValue("s",_ptemp
);
588 _resultobj
= Py_None
;
597 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
598 PyObject
* _resultobj
;
599 wxMemoryDC
* _result
;
601 PyObject
* _argo0
= 0;
602 char *_kwnames
[] = { "oldDC", NULL
};
606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
617 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
619 wxPyEndAllowThreads(__tstate
);
620 if (PyErr_Occurred()) return NULL
;
622 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
623 _resultobj
= Py_BuildValue("s",_ptemp
);
626 _resultobj
= Py_None
;
631 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
633 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
637 static PyObject
*_wrap_wxNORMAL_FONT_get() {
641 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
642 pyobj
= PyString_FromString(ptemp
);
646 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
648 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
652 static PyObject
*_wrap_wxSMALL_FONT_get() {
656 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
657 pyobj
= PyString_FromString(ptemp
);
661 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
663 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
667 static PyObject
*_wrap_wxITALIC_FONT_get() {
671 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
672 pyobj
= PyString_FromString(ptemp
);
676 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
678 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
682 static PyObject
*_wrap_wxSWISS_FONT_get() {
686 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
687 pyobj
= PyString_FromString(ptemp
);
691 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
693 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
697 static PyObject
*_wrap_wxRED_PEN_get() {
701 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
702 pyobj
= PyString_FromString(ptemp
);
706 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
708 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
712 static PyObject
*_wrap_wxCYAN_PEN_get() {
716 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
717 pyobj
= PyString_FromString(ptemp
);
721 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
723 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
727 static PyObject
*_wrap_wxGREEN_PEN_get() {
731 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
732 pyobj
= PyString_FromString(ptemp
);
736 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
738 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
742 static PyObject
*_wrap_wxBLACK_PEN_get() {
746 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
747 pyobj
= PyString_FromString(ptemp
);
751 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
753 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
757 static PyObject
*_wrap_wxWHITE_PEN_get() {
761 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
762 pyobj
= PyString_FromString(ptemp
);
766 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
768 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
772 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
776 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
777 pyobj
= PyString_FromString(ptemp
);
781 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
783 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
787 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
791 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
792 pyobj
= PyString_FromString(ptemp
);
796 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
798 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
802 static PyObject
*_wrap_wxGREY_PEN_get() {
806 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
807 pyobj
= PyString_FromString(ptemp
);
811 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
813 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
817 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
821 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
822 pyobj
= PyString_FromString(ptemp
);
826 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
828 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
832 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
836 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
837 pyobj
= PyString_FromString(ptemp
);
841 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
843 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
847 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
851 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
852 pyobj
= PyString_FromString(ptemp
);
856 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
858 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
862 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
866 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
867 pyobj
= PyString_FromString(ptemp
);
871 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
873 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
877 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
881 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
882 pyobj
= PyString_FromString(ptemp
);
886 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
888 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
892 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
896 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
897 pyobj
= PyString_FromString(ptemp
);
901 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
903 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
907 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
911 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
912 pyobj
= PyString_FromString(ptemp
);
916 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
918 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
922 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
926 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
927 pyobj
= PyString_FromString(ptemp
);
931 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
933 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
937 static PyObject
*_wrap_wxRED_BRUSH_get() {
941 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
942 pyobj
= PyString_FromString(ptemp
);
946 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
948 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
952 static PyObject
*_wrap_wxGREY_BRUSH_get() {
956 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
957 pyobj
= PyString_FromString(ptemp
);
961 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
963 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
967 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
971 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
972 pyobj
= PyString_FromString(ptemp
);
976 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
978 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
982 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
986 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
987 pyobj
= PyString_FromString(ptemp
);
991 static int _wrap_wxBLACK_set(PyObject
*val
) {
993 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
997 static PyObject
*_wrap_wxBLACK_get() {
1001 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1002 pyobj
= PyString_FromString(ptemp
);
1006 static int _wrap_wxWHITE_set(PyObject
*val
) {
1008 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1012 static PyObject
*_wrap_wxWHITE_get() {
1016 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1017 pyobj
= PyString_FromString(ptemp
);
1021 static int _wrap_wxRED_set(PyObject
*val
) {
1023 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1027 static PyObject
*_wrap_wxRED_get() {
1031 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1032 pyobj
= PyString_FromString(ptemp
);
1036 static int _wrap_wxBLUE_set(PyObject
*val
) {
1038 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1042 static PyObject
*_wrap_wxBLUE_get() {
1046 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1047 pyobj
= PyString_FromString(ptemp
);
1051 static int _wrap_wxGREEN_set(PyObject
*val
) {
1053 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1057 static PyObject
*_wrap_wxGREEN_get() {
1061 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1062 pyobj
= PyString_FromString(ptemp
);
1066 static int _wrap_wxCYAN_set(PyObject
*val
) {
1068 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1072 static PyObject
*_wrap_wxCYAN_get() {
1076 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1077 pyobj
= PyString_FromString(ptemp
);
1081 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1083 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1087 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1091 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1092 pyobj
= PyString_FromString(ptemp
);
1096 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1098 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1102 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1106 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1107 pyobj
= PyString_FromString(ptemp
);
1111 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1113 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1117 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1121 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1122 pyobj
= PyString_FromString(ptemp
);
1126 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1128 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1132 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1136 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1137 pyobj
= PyString_FromString(ptemp
);
1141 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1143 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1147 static PyObject
*_wrap_wxNullBitmap_get() {
1151 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1152 pyobj
= PyString_FromString(ptemp
);
1156 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1158 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1162 static PyObject
*_wrap_wxNullIcon_get() {
1166 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1167 pyobj
= PyString_FromString(ptemp
);
1171 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1173 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1177 static PyObject
*_wrap_wxNullCursor_get() {
1181 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1182 pyobj
= PyString_FromString(ptemp
);
1186 static int _wrap_wxNullPen_set(PyObject
*val
) {
1188 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1192 static PyObject
*_wrap_wxNullPen_get() {
1196 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1197 pyobj
= PyString_FromString(ptemp
);
1201 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1203 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1207 static PyObject
*_wrap_wxNullBrush_get() {
1211 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1212 pyobj
= PyString_FromString(ptemp
);
1216 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1218 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1222 static PyObject
*_wrap_wxNullPalette_get() {
1226 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1227 pyobj
= PyString_FromString(ptemp
);
1231 static int _wrap_wxNullFont_set(PyObject
*val
) {
1233 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1237 static PyObject
*_wrap_wxNullFont_get() {
1241 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1242 pyobj
= PyString_FromString(ptemp
);
1246 static int _wrap_wxNullColour_set(PyObject
*val
) {
1248 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1252 static PyObject
*_wrap_wxNullColour_get() {
1256 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1257 pyobj
= PyString_FromString(ptemp
);
1261 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1263 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1267 static PyObject
*_wrap_wxTheFontList_get() {
1271 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1272 pyobj
= PyString_FromString(ptemp
);
1276 static int _wrap_wxThePenList_set(PyObject
*val
) {
1278 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1282 static PyObject
*_wrap_wxThePenList_get() {
1286 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1287 pyobj
= PyString_FromString(ptemp
);
1291 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1293 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1297 static PyObject
*_wrap_wxTheBrushList_get() {
1301 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1302 pyobj
= PyString_FromString(ptemp
);
1306 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1308 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1312 static PyObject
*_wrap_wxTheColourDatabase_get() {
1316 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1317 pyobj
= PyString_FromString(ptemp
);
1321 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1324 src
= (wxGDIObject
*) ptr
;
1325 dest
= (wxObject
*) src
;
1326 return (void *) dest
;
1329 #define new_wxGDIObject() (new wxGDIObject())
1330 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1331 PyObject
* _resultobj
;
1332 wxGDIObject
* _result
;
1333 char *_kwnames
[] = { NULL
};
1337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1341 _result
= (wxGDIObject
*)new_wxGDIObject();
1343 wxPyEndAllowThreads(__tstate
);
1344 if (PyErr_Occurred()) return NULL
;
1346 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1347 _resultobj
= Py_BuildValue("s",_ptemp
);
1350 _resultobj
= Py_None
;
1355 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1356 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1358 wxGDIObject
* _arg0
;
1359 PyObject
* _argo0
= 0;
1360 char *_kwnames
[] = { "self", NULL
};
1363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1374 delete_wxGDIObject(_arg0
);
1376 wxPyEndAllowThreads(__tstate
);
1377 if (PyErr_Occurred()) return NULL
;
1378 } Py_INCREF(Py_None
);
1379 _resultobj
= Py_None
;
1383 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1384 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
* _resultobj
;
1387 wxGDIObject
* _arg0
;
1388 PyObject
* _argo0
= 0;
1389 char *_kwnames
[] = { "self", NULL
};
1392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1403 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1405 wxPyEndAllowThreads(__tstate
);
1406 if (PyErr_Occurred()) return NULL
;
1407 } _resultobj
= Py_BuildValue("i",_result
);
1411 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1412 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1414 wxGDIObject
* _arg0
;
1416 PyObject
* _argo0
= 0;
1418 char *_kwnames
[] = { "self","visible", NULL
};
1421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1430 _arg1
= (bool ) tempbool1
;
1432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1433 wxGDIObject_SetVisible(_arg0
,_arg1
);
1435 wxPyEndAllowThreads(__tstate
);
1436 if (PyErr_Occurred()) return NULL
;
1437 } Py_INCREF(Py_None
);
1438 _resultobj
= Py_None
;
1442 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1443 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1444 PyObject
* _resultobj
;
1446 wxGDIObject
* _arg0
;
1447 PyObject
* _argo0
= 0;
1448 char *_kwnames
[] = { "self", NULL
};
1451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1462 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1464 wxPyEndAllowThreads(__tstate
);
1465 if (PyErr_Occurred()) return NULL
;
1466 } _resultobj
= Py_BuildValue("i",_result
);
1470 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1473 src
= (wxBitmap
*) ptr
;
1474 dest
= (wxGDIObject
*) src
;
1475 return (void *) dest
;
1478 static void *SwigwxBitmapTowxObject(void *ptr
) {
1481 src
= (wxBitmap
*) ptr
;
1482 dest
= (wxObject
*) src
;
1483 return (void *) dest
;
1486 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1487 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1488 PyObject
* _resultobj
;
1491 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1492 PyObject
* _obj0
= 0;
1493 char *_kwnames
[] = { "name","type", NULL
};
1497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1500 _arg0
= wxString_in_helper(_obj0
);
1505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1506 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1508 wxPyEndAllowThreads(__tstate
);
1509 if (PyErr_Occurred()) return NULL
;
1511 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1512 _resultobj
= Py_BuildValue("s",_ptemp
);
1515 _resultobj
= Py_None
;
1524 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1525 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1526 PyObject
* _resultobj
;
1528 PyObject
* _argo0
= 0;
1529 char *_kwnames
[] = { "self", NULL
};
1532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1543 delete_wxBitmap(_arg0
);
1545 wxPyEndAllowThreads(__tstate
);
1546 if (PyErr_Occurred()) return NULL
;
1547 } Py_INCREF(Py_None
);
1548 _resultobj
= Py_None
;
1552 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1553 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1554 PyObject
* _resultobj
;
1555 wxPalette
* _result
;
1557 PyObject
* _argo0
= 0;
1558 char *_kwnames
[] = { "self", NULL
};
1562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1573 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1575 wxPyEndAllowThreads(__tstate
);
1576 if (PyErr_Occurred()) return NULL
;
1578 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1579 _resultobj
= Py_BuildValue("s",_ptemp
);
1582 _resultobj
= Py_None
;
1587 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1588 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1589 PyObject
* _resultobj
;
1592 PyObject
* _argo0
= 0;
1593 char *_kwnames
[] = { "self", NULL
};
1597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1608 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1610 wxPyEndAllowThreads(__tstate
);
1611 if (PyErr_Occurred()) return NULL
;
1613 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1614 _resultobj
= Py_BuildValue("s",_ptemp
);
1617 _resultobj
= Py_None
;
1622 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1623 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1624 PyObject
* _resultobj
;
1628 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1629 PyObject
* _argo0
= 0;
1630 PyObject
* _obj1
= 0;
1631 char *_kwnames
[] = { "self","name","type", NULL
};
1634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1644 _arg1
= wxString_in_helper(_obj1
);
1649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1650 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1652 wxPyEndAllowThreads(__tstate
);
1653 if (PyErr_Occurred()) return NULL
;
1654 } _resultobj
= Py_BuildValue("i",_result
);
1662 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1663 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1664 PyObject
* _resultobj
;
1669 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1670 PyObject
* _argo0
= 0;
1671 PyObject
* _obj1
= 0;
1672 PyObject
* _argo3
= 0;
1673 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1686 _arg1
= wxString_in_helper(_obj1
);
1691 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1692 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1699 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1701 wxPyEndAllowThreads(__tstate
);
1702 if (PyErr_Occurred()) return NULL
;
1703 } _resultobj
= Py_BuildValue("i",_result
);
1711 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1712 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1713 PyObject
* _resultobj
;
1716 PyObject
* _argo0
= 0;
1717 PyObject
* _argo1
= 0;
1718 char *_kwnames
[] = { "self","mask", NULL
};
1721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1731 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1732 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1739 wxBitmap_SetMask(_arg0
,_arg1
);
1741 wxPyEndAllowThreads(__tstate
);
1742 if (PyErr_Occurred()) return NULL
;
1743 } Py_INCREF(Py_None
);
1744 _resultobj
= Py_None
;
1748 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1749 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1750 PyObject
* _resultobj
;
1753 PyObject
* _argo0
= 0;
1754 char *_kwnames
[] = { "self", NULL
};
1757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1768 _result
= (bool )wxBitmap_Ok(_arg0
);
1770 wxPyEndAllowThreads(__tstate
);
1771 if (PyErr_Occurred()) return NULL
;
1772 } _resultobj
= Py_BuildValue("i",_result
);
1776 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1777 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1778 PyObject
* _resultobj
;
1781 PyObject
* _argo0
= 0;
1782 char *_kwnames
[] = { "self", NULL
};
1785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1795 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1796 _result
= (int )wxBitmap_GetWidth(_arg0
);
1798 wxPyEndAllowThreads(__tstate
);
1799 if (PyErr_Occurred()) return NULL
;
1800 } _resultobj
= Py_BuildValue("i",_result
);
1804 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1805 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1806 PyObject
* _resultobj
;
1809 PyObject
* _argo0
= 0;
1810 char *_kwnames
[] = { "self", NULL
};
1813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1824 _result
= (int )wxBitmap_GetHeight(_arg0
);
1826 wxPyEndAllowThreads(__tstate
);
1827 if (PyErr_Occurred()) return NULL
;
1828 } _resultobj
= Py_BuildValue("i",_result
);
1832 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1833 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1834 PyObject
* _resultobj
;
1837 PyObject
* _argo0
= 0;
1838 char *_kwnames
[] = { "self", NULL
};
1841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1851 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1852 _result
= (int )wxBitmap_GetDepth(_arg0
);
1854 wxPyEndAllowThreads(__tstate
);
1855 if (PyErr_Occurred()) return NULL
;
1856 } _resultobj
= Py_BuildValue("i",_result
);
1860 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1861 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1862 PyObject
* _resultobj
;
1865 PyObject
* _argo0
= 0;
1866 char *_kwnames
[] = { "self","w", NULL
};
1869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1880 wxBitmap_SetWidth(_arg0
,_arg1
);
1882 wxPyEndAllowThreads(__tstate
);
1883 if (PyErr_Occurred()) return NULL
;
1884 } Py_INCREF(Py_None
);
1885 _resultobj
= Py_None
;
1889 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1890 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1891 PyObject
* _resultobj
;
1894 PyObject
* _argo0
= 0;
1895 char *_kwnames
[] = { "self","h", NULL
};
1898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1909 wxBitmap_SetHeight(_arg0
,_arg1
);
1911 wxPyEndAllowThreads(__tstate
);
1912 if (PyErr_Occurred()) return NULL
;
1913 } Py_INCREF(Py_None
);
1914 _resultobj
= Py_None
;
1918 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1919 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1920 PyObject
* _resultobj
;
1923 PyObject
* _argo0
= 0;
1924 char *_kwnames
[] = { "self","d", NULL
};
1927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1938 wxBitmap_SetDepth(_arg0
,_arg1
);
1940 wxPyEndAllowThreads(__tstate
);
1941 if (PyErr_Occurred()) return NULL
;
1942 } Py_INCREF(Py_None
);
1943 _resultobj
= Py_None
;
1947 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1948 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1949 PyObject
* _resultobj
;
1953 PyObject
* _argo0
= 0;
1955 PyObject
* _obj1
= 0;
1956 char *_kwnames
[] = { "self","rect", NULL
};
1960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
1963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1971 if (! wxRect_helper(_obj1
, &_arg1
))
1975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1976 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
1978 wxPyEndAllowThreads(__tstate
);
1979 if (PyErr_Occurred()) return NULL
;
1980 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1981 _resultobj
= Py_BuildValue("s",_ptemp
);
1985 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1986 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1987 PyObject
* _resultobj
;
1991 PyObject
* _argo0
= 0;
1992 PyObject
* _argo1
= 0;
1993 char *_kwnames
[] = { "self","icon", NULL
};
1996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
1999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2006 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2007 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2014 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2016 wxPyEndAllowThreads(__tstate
);
2017 if (PyErr_Occurred()) return NULL
;
2018 } _resultobj
= Py_BuildValue("i",_result
);
2022 static void *SwigwxMaskTowxObject(void *ptr
) {
2025 src
= (wxMask
*) ptr
;
2026 dest
= (wxObject
*) src
;
2027 return (void *) dest
;
2030 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2031 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2032 PyObject
* _resultobj
;
2035 PyObject
* _argo0
= 0;
2036 char *_kwnames
[] = { "bitmap", NULL
};
2040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2051 _result
= (wxMask
*)new_wxMask(*_arg0
);
2053 wxPyEndAllowThreads(__tstate
);
2054 if (PyErr_Occurred()) return NULL
;
2056 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2057 _resultobj
= Py_BuildValue("s",_ptemp
);
2060 _resultobj
= Py_None
;
2065 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2066 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2067 PyObject
* _resultobj
;
2069 PyObject
* _argo0
= 0;
2070 char *_kwnames
[] = { "self", NULL
};
2073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2084 wxMask_Destroy(_arg0
);
2086 wxPyEndAllowThreads(__tstate
);
2087 if (PyErr_Occurred()) return NULL
;
2088 } Py_INCREF(Py_None
);
2089 _resultobj
= Py_None
;
2093 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2096 src
= (wxIcon
*) ptr
;
2097 dest
= (wxGDIObject
*) src
;
2098 return (void *) dest
;
2101 static void *SwigwxIconTowxObject(void *ptr
) {
2104 src
= (wxIcon
*) ptr
;
2105 dest
= (wxObject
*) src
;
2106 return (void *) dest
;
2109 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2110 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2111 PyObject
* _resultobj
;
2115 int _arg2
= (int ) -1;
2116 int _arg3
= (int ) -1;
2117 PyObject
* _obj0
= 0;
2118 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2125 _arg0
= wxString_in_helper(_obj0
);
2130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2131 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2133 wxPyEndAllowThreads(__tstate
);
2134 if (PyErr_Occurred()) return NULL
;
2136 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2137 _resultobj
= Py_BuildValue("s",_ptemp
);
2140 _resultobj
= Py_None
;
2149 #define delete_wxIcon(_swigobj) (delete _swigobj)
2150 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2151 PyObject
* _resultobj
;
2153 PyObject
* _argo0
= 0;
2154 char *_kwnames
[] = { "self", NULL
};
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2168 delete_wxIcon(_arg0
);
2170 wxPyEndAllowThreads(__tstate
);
2171 if (PyErr_Occurred()) return NULL
;
2172 } Py_INCREF(Py_None
);
2173 _resultobj
= Py_None
;
2177 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2178 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2179 PyObject
* _resultobj
;
2182 PyObject
* _argo0
= 0;
2183 char *_kwnames
[] = { "self", NULL
};
2186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2197 _result
= (bool )wxIcon_Ok(_arg0
);
2199 wxPyEndAllowThreads(__tstate
);
2200 if (PyErr_Occurred()) return NULL
;
2201 } _resultobj
= Py_BuildValue("i",_result
);
2205 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2206 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2207 PyObject
* _resultobj
;
2210 PyObject
* _argo0
= 0;
2211 char *_kwnames
[] = { "self", NULL
};
2214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2225 _result
= (int )wxIcon_GetWidth(_arg0
);
2227 wxPyEndAllowThreads(__tstate
);
2228 if (PyErr_Occurred()) return NULL
;
2229 } _resultobj
= Py_BuildValue("i",_result
);
2233 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2234 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2235 PyObject
* _resultobj
;
2238 PyObject
* _argo0
= 0;
2239 char *_kwnames
[] = { "self", NULL
};
2242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2253 _result
= (int )wxIcon_GetHeight(_arg0
);
2255 wxPyEndAllowThreads(__tstate
);
2256 if (PyErr_Occurred()) return NULL
;
2257 } _resultobj
= Py_BuildValue("i",_result
);
2261 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2262 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2263 PyObject
* _resultobj
;
2266 PyObject
* _argo0
= 0;
2267 char *_kwnames
[] = { "self", NULL
};
2270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2281 _result
= (int )wxIcon_GetDepth(_arg0
);
2283 wxPyEndAllowThreads(__tstate
);
2284 if (PyErr_Occurred()) return NULL
;
2285 } _resultobj
= Py_BuildValue("i",_result
);
2289 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2290 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2291 PyObject
* _resultobj
;
2294 PyObject
* _argo0
= 0;
2295 char *_kwnames
[] = { "self","w", NULL
};
2298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2309 wxIcon_SetWidth(_arg0
,_arg1
);
2311 wxPyEndAllowThreads(__tstate
);
2312 if (PyErr_Occurred()) return NULL
;
2313 } Py_INCREF(Py_None
);
2314 _resultobj
= Py_None
;
2318 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2319 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2320 PyObject
* _resultobj
;
2323 PyObject
* _argo0
= 0;
2324 char *_kwnames
[] = { "self","h", NULL
};
2327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2338 wxIcon_SetHeight(_arg0
,_arg1
);
2340 wxPyEndAllowThreads(__tstate
);
2341 if (PyErr_Occurred()) return NULL
;
2342 } Py_INCREF(Py_None
);
2343 _resultobj
= Py_None
;
2347 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2348 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2349 PyObject
* _resultobj
;
2352 PyObject
* _argo0
= 0;
2353 char *_kwnames
[] = { "self","d", NULL
};
2356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2367 wxIcon_SetDepth(_arg0
,_arg1
);
2369 wxPyEndAllowThreads(__tstate
);
2370 if (PyErr_Occurred()) return NULL
;
2371 } Py_INCREF(Py_None
);
2372 _resultobj
= Py_None
;
2376 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2377 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2378 PyObject
* _resultobj
;
2381 PyObject
* _argo0
= 0;
2382 PyObject
* _argo1
= 0;
2383 char *_kwnames
[] = { "self","bmp", NULL
};
2386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2396 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2397 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2404 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2406 wxPyEndAllowThreads(__tstate
);
2407 if (PyErr_Occurred()) return NULL
;
2408 } Py_INCREF(Py_None
);
2409 _resultobj
= Py_None
;
2413 #define new_wxIconBundle() (new wxIconBundle())
2414 static PyObject
*_wrap_new_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2415 PyObject
* _resultobj
;
2416 wxIconBundle
* _result
;
2417 char *_kwnames
[] = { NULL
};
2421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxIconBundle",_kwnames
))
2424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2425 _result
= (wxIconBundle
*)new_wxIconBundle();
2427 wxPyEndAllowThreads(__tstate
);
2428 if (PyErr_Occurred()) return NULL
;
2430 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2431 _resultobj
= Py_BuildValue("s",_ptemp
);
2434 _resultobj
= Py_None
;
2439 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2440 static PyObject
*_wrap_new_wxIconBundleFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2441 PyObject
* _resultobj
;
2442 wxIconBundle
* _result
;
2445 PyObject
* _obj0
= 0;
2446 char *_kwnames
[] = { "file","type", NULL
};
2450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxIconBundleFromFile",_kwnames
,&_obj0
,&_arg1
))
2453 _arg0
= wxString_in_helper(_obj0
);
2458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2459 _result
= (wxIconBundle
*)new_wxIconBundleFromFile(*_arg0
,_arg1
);
2461 wxPyEndAllowThreads(__tstate
);
2462 if (PyErr_Occurred()) return NULL
;
2464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2465 _resultobj
= Py_BuildValue("s",_ptemp
);
2468 _resultobj
= Py_None
;
2477 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2478 static PyObject
*_wrap_new_wxIconBundleFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2479 PyObject
* _resultobj
;
2480 wxIconBundle
* _result
;
2482 PyObject
* _argo0
= 0;
2483 char *_kwnames
[] = { "icon", NULL
};
2487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxIconBundleFromIcon",_kwnames
,&_argo0
))
2490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
2497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2498 _result
= (wxIconBundle
*)new_wxIconBundleFromIcon(*_arg0
);
2500 wxPyEndAllowThreads(__tstate
);
2501 if (PyErr_Occurred()) return NULL
;
2503 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2504 _resultobj
= Py_BuildValue("s",_ptemp
);
2507 _resultobj
= Py_None
;
2512 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
2513 static PyObject
*_wrap_delete_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2514 PyObject
* _resultobj
;
2515 wxIconBundle
* _arg0
;
2516 PyObject
* _argo0
= 0;
2517 char *_kwnames
[] = { "self", NULL
};
2520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconBundle",_kwnames
,&_argo0
))
2523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
2530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2531 delete_wxIconBundle(_arg0
);
2533 wxPyEndAllowThreads(__tstate
);
2534 if (PyErr_Occurred()) return NULL
;
2535 } Py_INCREF(Py_None
);
2536 _resultobj
= Py_None
;
2540 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2541 static PyObject
*_wrap_wxIconBundle_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2542 PyObject
* _resultobj
;
2543 wxIconBundle
* _arg0
;
2545 PyObject
* _argo0
= 0;
2546 PyObject
* _argo1
= 0;
2547 char *_kwnames
[] = { "self","icon", NULL
};
2550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_AddIcon",_kwnames
,&_argo0
,&_argo1
))
2553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
2560 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2561 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
2567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2568 wxIconBundle_AddIcon(_arg0
,*_arg1
);
2570 wxPyEndAllowThreads(__tstate
);
2571 if (PyErr_Occurred()) return NULL
;
2572 } Py_INCREF(Py_None
);
2573 _resultobj
= Py_None
;
2577 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2578 static PyObject
*_wrap_wxIconBundle_AddIconFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2579 PyObject
* _resultobj
;
2580 wxIconBundle
* _arg0
;
2583 PyObject
* _argo0
= 0;
2584 PyObject
* _obj1
= 0;
2585 char *_kwnames
[] = { "self","file","type", NULL
};
2588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIconBundle_AddIconFromFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
2598 _arg1
= wxString_in_helper(_obj1
);
2603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2604 wxIconBundle_AddIconFromFile(_arg0
,*_arg1
,_arg2
);
2606 wxPyEndAllowThreads(__tstate
);
2607 if (PyErr_Occurred()) return NULL
;
2608 } Py_INCREF(Py_None
);
2609 _resultobj
= Py_None
;
2617 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
2618 static PyObject
*_wrap_wxIconBundle_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
* _resultobj
;
2621 wxIconBundle
* _arg0
;
2623 PyObject
* _argo0
= 0;
2625 PyObject
* _obj1
= 0;
2626 char *_kwnames
[] = { "self","size", NULL
};
2630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_GetIcon",_kwnames
,&_argo0
,&_obj1
))
2633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
2641 if (! wxSize_helper(_obj1
, &_arg1
))
2645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2646 const wxIcon
& _result_ref
= wxIconBundle_GetIcon(_arg0
,*_arg1
);
2647 _result
= (wxIcon
*) &_result_ref
;
2649 wxPyEndAllowThreads(__tstate
);
2650 if (PyErr_Occurred()) return NULL
;
2652 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2653 _resultobj
= Py_BuildValue("s",_ptemp
);
2656 _resultobj
= Py_None
;
2661 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2664 src
= (wxCursor
*) ptr
;
2665 dest
= (wxGDIObject
*) src
;
2666 return (void *) dest
;
2669 static void *SwigwxCursorTowxObject(void *ptr
) {
2672 src
= (wxCursor
*) ptr
;
2673 dest
= (wxObject
*) src
;
2674 return (void *) dest
;
2677 #define delete_wxCursor(_swigobj) (delete _swigobj)
2678 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2681 PyObject
* _argo0
= 0;
2682 char *_kwnames
[] = { "self", NULL
};
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2696 delete_wxCursor(_arg0
);
2698 wxPyEndAllowThreads(__tstate
);
2699 if (PyErr_Occurred()) return NULL
;
2700 } Py_INCREF(Py_None
);
2701 _resultobj
= Py_None
;
2705 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2706 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2707 PyObject
* _resultobj
;
2710 PyObject
* _argo0
= 0;
2711 char *_kwnames
[] = { "self", NULL
};
2714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2725 _result
= (bool )wxCursor_Ok(_arg0
);
2727 wxPyEndAllowThreads(__tstate
);
2728 if (PyErr_Occurred()) return NULL
;
2729 } _resultobj
= Py_BuildValue("i",_result
);
2733 static void *SwigwxColourTowxObject(void *ptr
) {
2736 src
= (wxColour
*) ptr
;
2737 dest
= (wxObject
*) src
;
2738 return (void *) dest
;
2741 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2742 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2743 PyObject
* _resultobj
;
2745 unsigned char _arg0
= (unsigned char ) 0;
2746 unsigned char _arg1
= (unsigned char ) 0;
2747 unsigned char _arg2
= (unsigned char ) 0;
2748 char *_kwnames
[] = { "red","green","blue", NULL
};
2752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
2755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2756 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
2758 wxPyEndAllowThreads(__tstate
);
2759 if (PyErr_Occurred()) return NULL
;
2761 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
2762 _resultobj
= Py_BuildValue("s",_ptemp
);
2765 _resultobj
= Py_None
;
2770 #define delete_wxColour(_swigobj) (delete _swigobj)
2771 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2772 PyObject
* _resultobj
;
2775 PyObject
* _obj0
= 0;
2776 char *_kwnames
[] = { "self", NULL
};
2779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
2783 if (! wxColour_helper(_obj0
, &_arg0
))
2787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2788 delete_wxColour(_arg0
);
2790 wxPyEndAllowThreads(__tstate
);
2791 if (PyErr_Occurred()) return NULL
;
2792 } Py_INCREF(Py_None
);
2793 _resultobj
= Py_None
;
2797 #define wxColour_Red(_swigobj) (_swigobj->Red())
2798 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2799 PyObject
* _resultobj
;
2800 unsigned char _result
;
2803 PyObject
* _obj0
= 0;
2804 char *_kwnames
[] = { "self", NULL
};
2807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
2811 if (! wxColour_helper(_obj0
, &_arg0
))
2815 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2816 _result
= (unsigned char )wxColour_Red(_arg0
);
2818 wxPyEndAllowThreads(__tstate
);
2819 if (PyErr_Occurred()) return NULL
;
2820 } _resultobj
= Py_BuildValue("b",_result
);
2824 #define wxColour_Green(_swigobj) (_swigobj->Green())
2825 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2826 PyObject
* _resultobj
;
2827 unsigned char _result
;
2830 PyObject
* _obj0
= 0;
2831 char *_kwnames
[] = { "self", NULL
};
2834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
2838 if (! wxColour_helper(_obj0
, &_arg0
))
2842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2843 _result
= (unsigned char )wxColour_Green(_arg0
);
2845 wxPyEndAllowThreads(__tstate
);
2846 if (PyErr_Occurred()) return NULL
;
2847 } _resultobj
= Py_BuildValue("b",_result
);
2851 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
2852 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2853 PyObject
* _resultobj
;
2854 unsigned char _result
;
2857 PyObject
* _obj0
= 0;
2858 char *_kwnames
[] = { "self", NULL
};
2861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
2865 if (! wxColour_helper(_obj0
, &_arg0
))
2869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2870 _result
= (unsigned char )wxColour_Blue(_arg0
);
2872 wxPyEndAllowThreads(__tstate
);
2873 if (PyErr_Occurred()) return NULL
;
2874 } _resultobj
= Py_BuildValue("b",_result
);
2878 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
2879 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2880 PyObject
* _resultobj
;
2884 PyObject
* _obj0
= 0;
2885 char *_kwnames
[] = { "self", NULL
};
2888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
2892 if (! wxColour_helper(_obj0
, &_arg0
))
2896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2897 _result
= (bool )wxColour_Ok(_arg0
);
2899 wxPyEndAllowThreads(__tstate
);
2900 if (PyErr_Occurred()) return NULL
;
2901 } _resultobj
= Py_BuildValue("i",_result
);
2905 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
2906 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2907 PyObject
* _resultobj
;
2909 unsigned char _arg1
;
2910 unsigned char _arg2
;
2911 unsigned char _arg3
;
2913 PyObject
* _obj0
= 0;
2914 char *_kwnames
[] = { "self","red","green","blue", NULL
};
2917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2921 if (! wxColour_helper(_obj0
, &_arg0
))
2925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2926 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
2928 wxPyEndAllowThreads(__tstate
);
2929 if (PyErr_Occurred()) return NULL
;
2930 } Py_INCREF(Py_None
);
2931 _resultobj
= Py_None
;
2935 static PyObject
* wxColour_Get(wxColour
*self
) {
2936 PyObject
* rv
= PyTuple_New(3);
2937 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
2938 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
2939 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
2942 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2943 PyObject
* _resultobj
;
2947 PyObject
* _obj0
= 0;
2948 char *_kwnames
[] = { "self", NULL
};
2951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
2955 if (! wxColour_helper(_obj0
, &_arg0
))
2959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2960 _result
= (PyObject
*)wxColour_Get(_arg0
);
2962 wxPyEndAllowThreads(__tstate
);
2963 if (PyErr_Occurred()) return NULL
;
2965 _resultobj
= _result
;
2970 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
2971 wxColourDatabase
*src
;
2973 src
= (wxColourDatabase
*) ptr
;
2974 dest
= (wxObject
*) src
;
2975 return (void *) dest
;
2978 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
2979 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2980 PyObject
* _resultobj
;
2982 wxColourDatabase
* _arg0
;
2984 PyObject
* _argo0
= 0;
2985 PyObject
* _obj1
= 0;
2986 char *_kwnames
[] = { "self","colour", NULL
};
2990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
2993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
2995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3000 _arg1
= wxString_in_helper(_obj1
);
3005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3006 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3008 wxPyEndAllowThreads(__tstate
);
3009 if (PyErr_Occurred()) return NULL
;
3011 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3012 _resultobj
= Py_BuildValue("s",_ptemp
);
3015 _resultobj
= Py_None
;
3024 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3025 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3026 PyObject
* _resultobj
;
3028 wxColourDatabase
* _arg0
;
3030 PyObject
* _argo0
= 0;
3032 PyObject
* _obj1
= 0;
3033 char *_kwnames
[] = { "self","colour", NULL
};
3036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3047 if (! wxColour_helper(_obj1
, &_arg1
))
3051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3052 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3054 wxPyEndAllowThreads(__tstate
);
3055 if (PyErr_Occurred()) return NULL
;
3058 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3060 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3069 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3070 // first see if the name is already there
3071 wxString cName
= name
;
3073 wxString cName2
= cName
;
3074 if ( !cName2
.Replace(wxT("GRAY"), wxT("GREY")) )
3077 wxNode
*node
= self
->First();
3079 const wxChar
*key
= node
->GetKeyString();
3080 if ( cName
== key
|| cName2
== key
) {
3081 wxColour
* c
= (wxColour
*)node
->Data();
3082 c
->Set(red
, green
, blue
);
3085 node
= node
->Next();
3088 // otherwise append the new colour
3089 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3091 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3092 PyObject
* _resultobj
;
3093 wxColourDatabase
* _arg0
;
3098 PyObject
* _argo0
= 0;
3099 PyObject
* _obj1
= 0;
3100 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3113 _arg1
= wxString_in_helper(_obj1
);
3118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3119 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3121 wxPyEndAllowThreads(__tstate
);
3122 if (PyErr_Occurred()) return NULL
;
3123 } Py_INCREF(Py_None
);
3124 _resultobj
= Py_None
;
3132 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3135 src
= (wxPen
*) ptr
;
3136 dest
= (wxGDIObject
*) src
;
3137 return (void *) dest
;
3140 static void *SwigwxPenTowxObject(void *ptr
) {
3143 src
= (wxPen
*) ptr
;
3144 dest
= (wxObject
*) src
;
3145 return (void *) dest
;
3148 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3149 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3150 PyObject
* _resultobj
;
3153 int _arg1
= (int ) 1;
3154 int _arg2
= (int ) wxSOLID
;
3156 PyObject
* _obj0
= 0;
3157 char *_kwnames
[] = { "colour","width","style", NULL
};
3161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3165 if (! wxColour_helper(_obj0
, &_arg0
))
3169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3170 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3172 wxPyEndAllowThreads(__tstate
);
3173 if (PyErr_Occurred()) return NULL
;
3175 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3176 _resultobj
= Py_BuildValue("s",_ptemp
);
3179 _resultobj
= Py_None
;
3184 #define delete_wxPen(_swigobj) (delete _swigobj)
3185 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3186 PyObject
* _resultobj
;
3188 PyObject
* _argo0
= 0;
3189 char *_kwnames
[] = { "self", NULL
};
3192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3203 delete_wxPen(_arg0
);
3205 wxPyEndAllowThreads(__tstate
);
3206 if (PyErr_Occurred()) return NULL
;
3207 } Py_INCREF(Py_None
);
3208 _resultobj
= Py_None
;
3212 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3213 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3214 PyObject
* _resultobj
;
3217 PyObject
* _argo0
= 0;
3218 char *_kwnames
[] = { "self", NULL
};
3221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3232 _result
= (int )wxPen_GetCap(_arg0
);
3234 wxPyEndAllowThreads(__tstate
);
3235 if (PyErr_Occurred()) return NULL
;
3236 } _resultobj
= Py_BuildValue("i",_result
);
3240 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3241 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3242 PyObject
* _resultobj
;
3245 PyObject
* _argo0
= 0;
3246 char *_kwnames
[] = { "self", NULL
};
3250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3261 _result
= new wxColour (wxPen_GetColour(_arg0
));
3263 wxPyEndAllowThreads(__tstate
);
3264 if (PyErr_Occurred()) return NULL
;
3265 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
3266 _resultobj
= Py_BuildValue("s",_ptemp
);
3270 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3271 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3272 PyObject
* _resultobj
;
3275 PyObject
* _argo0
= 0;
3276 char *_kwnames
[] = { "self", NULL
};
3279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3290 _result
= (int )wxPen_GetJoin(_arg0
);
3292 wxPyEndAllowThreads(__tstate
);
3293 if (PyErr_Occurred()) return NULL
;
3294 } _resultobj
= Py_BuildValue("i",_result
);
3298 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3299 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3300 PyObject
* _resultobj
;
3303 PyObject
* _argo0
= 0;
3304 char *_kwnames
[] = { "self", NULL
};
3307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3318 _result
= (int )wxPen_GetStyle(_arg0
);
3320 wxPyEndAllowThreads(__tstate
);
3321 if (PyErr_Occurred()) return NULL
;
3322 } _resultobj
= Py_BuildValue("i",_result
);
3326 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3327 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3328 PyObject
* _resultobj
;
3331 PyObject
* _argo0
= 0;
3332 char *_kwnames
[] = { "self", NULL
};
3335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3346 _result
= (int )wxPen_GetWidth(_arg0
);
3348 wxPyEndAllowThreads(__tstate
);
3349 if (PyErr_Occurred()) return NULL
;
3350 } _resultobj
= Py_BuildValue("i",_result
);
3354 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3355 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3356 PyObject
* _resultobj
;
3359 PyObject
* _argo0
= 0;
3360 char *_kwnames
[] = { "self", NULL
};
3363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3374 _result
= (bool )wxPen_Ok(_arg0
);
3376 wxPyEndAllowThreads(__tstate
);
3377 if (PyErr_Occurred()) return NULL
;
3378 } _resultobj
= Py_BuildValue("i",_result
);
3382 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3383 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3384 PyObject
* _resultobj
;
3387 PyObject
* _argo0
= 0;
3388 char *_kwnames
[] = { "self","cap_style", NULL
};
3391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3402 wxPen_SetCap(_arg0
,_arg1
);
3404 wxPyEndAllowThreads(__tstate
);
3405 if (PyErr_Occurred()) return NULL
;
3406 } Py_INCREF(Py_None
);
3407 _resultobj
= Py_None
;
3411 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3412 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3413 PyObject
* _resultobj
;
3416 PyObject
* _argo0
= 0;
3418 PyObject
* _obj1
= 0;
3419 char *_kwnames
[] = { "self","colour", NULL
};
3422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3433 if (! wxColour_helper(_obj1
, &_arg1
))
3437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3438 wxPen_SetColour(_arg0
,*_arg1
);
3440 wxPyEndAllowThreads(__tstate
);
3441 if (PyErr_Occurred()) return NULL
;
3442 } Py_INCREF(Py_None
);
3443 _resultobj
= Py_None
;
3447 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3448 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3449 PyObject
* _resultobj
;
3452 PyObject
* _argo0
= 0;
3453 char *_kwnames
[] = { "self","join_style", NULL
};
3456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3467 wxPen_SetJoin(_arg0
,_arg1
);
3469 wxPyEndAllowThreads(__tstate
);
3470 if (PyErr_Occurred()) return NULL
;
3471 } Py_INCREF(Py_None
);
3472 _resultobj
= Py_None
;
3476 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3477 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3478 PyObject
* _resultobj
;
3481 PyObject
* _argo0
= 0;
3482 char *_kwnames
[] = { "self","style", NULL
};
3485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3496 wxPen_SetStyle(_arg0
,_arg1
);
3498 wxPyEndAllowThreads(__tstate
);
3499 if (PyErr_Occurred()) return NULL
;
3500 } Py_INCREF(Py_None
);
3501 _resultobj
= Py_None
;
3505 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3506 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3507 PyObject
* _resultobj
;
3510 PyObject
* _argo0
= 0;
3511 char *_kwnames
[] = { "self","width", NULL
};
3514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3525 wxPen_SetWidth(_arg0
,_arg1
);
3527 wxPyEndAllowThreads(__tstate
);
3528 if (PyErr_Occurred()) return NULL
;
3529 } Py_INCREF(Py_None
);
3530 _resultobj
= Py_None
;
3534 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3535 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3536 PyObject
* _resultobj
;
3540 PyObject
* _argo0
= 0;
3541 PyObject
* _obj2
= 0;
3542 char *_kwnames
[] = { "self","choices", NULL
};
3545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3556 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3557 if (_arg2
== NULL
) {
3563 _arg1
= PyList_Size(_obj2
);
3570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3571 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
3573 wxPyEndAllowThreads(__tstate
);
3574 if (PyErr_Occurred()) return NULL
;
3575 } Py_INCREF(Py_None
);
3576 _resultobj
= Py_None
;
3583 static PyObject
* wxPen_GetDashes(wxPen
*self
) {
3585 int count
= self
->GetDashes(&dashes
);
3586 wxPyBeginBlockThreads();
3587 PyObject
* retval
= PyList_New(0);
3588 for (int x
=0; x
<count
; x
++)
3589 PyList_Append(retval
, PyInt_FromLong(dashes
[x
]));
3590 wxPyEndBlockThreads();
3593 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3594 PyObject
* _resultobj
;
3597 PyObject
* _argo0
= 0;
3598 char *_kwnames
[] = { "self", NULL
};
3601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetDashes",_kwnames
,&_argo0
))
3604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3612 _result
= (PyObject
*)wxPen_GetDashes(_arg0
);
3614 wxPyEndAllowThreads(__tstate
);
3615 if (PyErr_Occurred()) return NULL
;
3617 _resultobj
= _result
;
3622 static void *SwigwxPyPenTowxPen(void *ptr
) {
3625 src
= (wxPyPen
*) ptr
;
3626 dest
= (wxPen
*) src
;
3627 return (void *) dest
;
3630 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
3633 src
= (wxPyPen
*) ptr
;
3634 dest
= (wxGDIObject
*) src
;
3635 return (void *) dest
;
3638 static void *SwigwxPyPenTowxObject(void *ptr
) {
3641 src
= (wxPyPen
*) ptr
;
3642 dest
= (wxObject
*) src
;
3643 return (void *) dest
;
3646 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
3647 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3648 PyObject
* _resultobj
;
3651 int _arg1
= (int ) 1;
3652 int _arg2
= (int ) wxSOLID
;
3654 PyObject
* _obj0
= 0;
3655 char *_kwnames
[] = { "colour","width","style", NULL
};
3659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3663 if (! wxColour_helper(_obj0
, &_arg0
))
3667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3668 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
3670 wxPyEndAllowThreads(__tstate
);
3671 if (PyErr_Occurred()) return NULL
;
3673 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
3674 _resultobj
= Py_BuildValue("s",_ptemp
);
3677 _resultobj
= Py_None
;
3682 #define delete_wxPyPen(_swigobj) (delete _swigobj)
3683 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3684 PyObject
* _resultobj
;
3686 PyObject
* _argo0
= 0;
3687 char *_kwnames
[] = { "self", NULL
};
3690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
3693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
3695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
3700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3701 delete_wxPyPen(_arg0
);
3703 wxPyEndAllowThreads(__tstate
);
3704 if (PyErr_Occurred()) return NULL
;
3705 } Py_INCREF(Py_None
);
3706 _resultobj
= Py_None
;
3710 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3711 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3712 PyObject
* _resultobj
;
3716 PyObject
* _argo0
= 0;
3717 PyObject
* _obj2
= 0;
3718 char *_kwnames
[] = { "self","choices", NULL
};
3721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
3726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
3732 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3733 if (_arg2
== NULL
) {
3739 _arg1
= PyList_Size(_obj2
);
3746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3747 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
3749 wxPyEndAllowThreads(__tstate
);
3750 if (PyErr_Occurred()) return NULL
;
3751 } Py_INCREF(Py_None
);
3752 _resultobj
= Py_None
;
3759 static void *SwigwxPenListTowxObject(void *ptr
) {
3762 src
= (wxPenList
*) ptr
;
3763 dest
= (wxObject
*) src
;
3764 return (void *) dest
;
3767 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3768 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3769 PyObject
* _resultobj
;
3772 PyObject
* _argo0
= 0;
3773 PyObject
* _argo1
= 0;
3774 char *_kwnames
[] = { "self","pen", NULL
};
3777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
3780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3787 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3788 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3795 wxPenList_AddPen(_arg0
,_arg1
);
3797 wxPyEndAllowThreads(__tstate
);
3798 if (PyErr_Occurred()) return NULL
;
3799 } Py_INCREF(Py_None
);
3800 _resultobj
= Py_None
;
3804 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3805 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3806 PyObject
* _resultobj
;
3812 PyObject
* _argo0
= 0;
3814 PyObject
* _obj1
= 0;
3815 char *_kwnames
[] = { "self","colour","width","style", NULL
};
3819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
3822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
3830 if (! wxColour_helper(_obj1
, &_arg1
))
3834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3835 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
3837 wxPyEndAllowThreads(__tstate
);
3838 if (PyErr_Occurred()) return NULL
;
3840 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3841 _resultobj
= Py_BuildValue("s",_ptemp
);
3844 _resultobj
= Py_None
;
3849 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3850 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3851 PyObject
* _resultobj
;
3854 PyObject
* _argo0
= 0;
3855 PyObject
* _argo1
= 0;
3856 char *_kwnames
[] = { "self","pen", NULL
};
3859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
3862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3869 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3870 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3876 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3877 wxPenList_RemovePen(_arg0
,_arg1
);
3879 wxPyEndAllowThreads(__tstate
);
3880 if (PyErr_Occurred()) return NULL
;
3881 } Py_INCREF(Py_None
);
3882 _resultobj
= Py_None
;
3886 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
3887 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3888 PyObject
* _resultobj
;
3891 PyObject
* _argo0
= 0;
3892 char *_kwnames
[] = { "self", NULL
};
3895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
3898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
3905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3906 _result
= (int )wxPenList_GetCount(_arg0
);
3908 wxPyEndAllowThreads(__tstate
);
3909 if (PyErr_Occurred()) return NULL
;
3910 } _resultobj
= Py_BuildValue("i",_result
);
3914 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
3917 src
= (wxBrush
*) ptr
;
3918 dest
= (wxGDIObject
*) src
;
3919 return (void *) dest
;
3922 static void *SwigwxBrushTowxObject(void *ptr
) {
3925 src
= (wxBrush
*) ptr
;
3926 dest
= (wxObject
*) src
;
3927 return (void *) dest
;
3930 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
3931 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3932 PyObject
* _resultobj
;
3935 int _arg1
= (int ) wxSOLID
;
3937 PyObject
* _obj0
= 0;
3938 char *_kwnames
[] = { "colour","style", NULL
};
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
3946 if (! wxColour_helper(_obj0
, &_arg0
))
3950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3951 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
3953 wxPyEndAllowThreads(__tstate
);
3954 if (PyErr_Occurred()) return NULL
;
3956 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
3957 _resultobj
= Py_BuildValue("s",_ptemp
);
3960 _resultobj
= Py_None
;
3965 #define delete_wxBrush(_swigobj) (delete _swigobj)
3966 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3967 PyObject
* _resultobj
;
3969 PyObject
* _argo0
= 0;
3970 char *_kwnames
[] = { "self", NULL
};
3973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
3976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
3978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
3983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3984 delete_wxBrush(_arg0
);
3986 wxPyEndAllowThreads(__tstate
);
3987 if (PyErr_Occurred()) return NULL
;
3988 } Py_INCREF(Py_None
);
3989 _resultobj
= Py_None
;
3993 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
3994 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3995 PyObject
* _resultobj
;
3998 PyObject
* _argo0
= 0;
3999 char *_kwnames
[] = { "self", NULL
};
4003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4014 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4016 wxPyEndAllowThreads(__tstate
);
4017 if (PyErr_Occurred()) return NULL
;
4018 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4019 _resultobj
= Py_BuildValue("s",_ptemp
);
4023 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4024 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4025 PyObject
* _resultobj
;
4028 PyObject
* _argo0
= 0;
4029 char *_kwnames
[] = { "self", NULL
};
4033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4044 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4046 wxPyEndAllowThreads(__tstate
);
4047 if (PyErr_Occurred()) return NULL
;
4049 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4050 _resultobj
= Py_BuildValue("s",_ptemp
);
4053 _resultobj
= Py_None
;
4058 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4059 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
* _resultobj
;
4063 PyObject
* _argo0
= 0;
4064 char *_kwnames
[] = { "self", NULL
};
4067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4078 _result
= (int )wxBrush_GetStyle(_arg0
);
4080 wxPyEndAllowThreads(__tstate
);
4081 if (PyErr_Occurred()) return NULL
;
4082 } _resultobj
= Py_BuildValue("i",_result
);
4086 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4087 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4088 PyObject
* _resultobj
;
4091 PyObject
* _argo0
= 0;
4092 char *_kwnames
[] = { "self", NULL
};
4095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4106 _result
= (bool )wxBrush_Ok(_arg0
);
4108 wxPyEndAllowThreads(__tstate
);
4109 if (PyErr_Occurred()) return NULL
;
4110 } _resultobj
= Py_BuildValue("i",_result
);
4114 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4115 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4116 PyObject
* _resultobj
;
4119 PyObject
* _argo0
= 0;
4121 PyObject
* _obj1
= 0;
4122 char *_kwnames
[] = { "self","colour", NULL
};
4125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4136 if (! wxColour_helper(_obj1
, &_arg1
))
4140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4141 wxBrush_SetColour(_arg0
,*_arg1
);
4143 wxPyEndAllowThreads(__tstate
);
4144 if (PyErr_Occurred()) return NULL
;
4145 } Py_INCREF(Py_None
);
4146 _resultobj
= Py_None
;
4150 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4151 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4152 PyObject
* _resultobj
;
4155 PyObject
* _argo0
= 0;
4156 PyObject
* _argo1
= 0;
4157 char *_kwnames
[] = { "self","bitmap", NULL
};
4160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4170 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4171 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4178 wxBrush_SetStipple(_arg0
,*_arg1
);
4180 wxPyEndAllowThreads(__tstate
);
4181 if (PyErr_Occurred()) return NULL
;
4182 } Py_INCREF(Py_None
);
4183 _resultobj
= Py_None
;
4187 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4188 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4189 PyObject
* _resultobj
;
4192 PyObject
* _argo0
= 0;
4193 char *_kwnames
[] = { "self","style", NULL
};
4196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4207 wxBrush_SetStyle(_arg0
,_arg1
);
4209 wxPyEndAllowThreads(__tstate
);
4210 if (PyErr_Occurred()) return NULL
;
4211 } Py_INCREF(Py_None
);
4212 _resultobj
= Py_None
;
4216 static void *SwigwxBrushListTowxObject(void *ptr
) {
4219 src
= (wxBrushList
*) ptr
;
4220 dest
= (wxObject
*) src
;
4221 return (void *) dest
;
4224 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4225 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4226 PyObject
* _resultobj
;
4227 wxBrushList
* _arg0
;
4229 PyObject
* _argo0
= 0;
4230 PyObject
* _argo1
= 0;
4231 char *_kwnames
[] = { "self","brush", NULL
};
4234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4244 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4245 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4252 wxBrushList_AddBrush(_arg0
,_arg1
);
4254 wxPyEndAllowThreads(__tstate
);
4255 if (PyErr_Occurred()) return NULL
;
4256 } Py_INCREF(Py_None
);
4257 _resultobj
= Py_None
;
4261 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4262 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4263 PyObject
* _resultobj
;
4265 wxBrushList
* _arg0
;
4268 PyObject
* _argo0
= 0;
4270 PyObject
* _obj1
= 0;
4271 char *_kwnames
[] = { "self","colour","style", NULL
};
4275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4286 if (! wxColour_helper(_obj1
, &_arg1
))
4290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4291 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4293 wxPyEndAllowThreads(__tstate
);
4294 if (PyErr_Occurred()) return NULL
;
4296 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4297 _resultobj
= Py_BuildValue("s",_ptemp
);
4300 _resultobj
= Py_None
;
4305 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4306 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4307 PyObject
* _resultobj
;
4308 wxBrushList
* _arg0
;
4310 PyObject
* _argo0
= 0;
4311 PyObject
* _argo1
= 0;
4312 char *_kwnames
[] = { "self","brush", NULL
};
4315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4325 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4326 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4333 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4335 wxPyEndAllowThreads(__tstate
);
4336 if (PyErr_Occurred()) return NULL
;
4337 } Py_INCREF(Py_None
);
4338 _resultobj
= Py_None
;
4342 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
4343 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4344 PyObject
* _resultobj
;
4346 wxBrushList
* _arg0
;
4347 PyObject
* _argo0
= 0;
4348 char *_kwnames
[] = { "self", NULL
};
4351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
4354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
4361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4362 _result
= (int )wxBrushList_GetCount(_arg0
);
4364 wxPyEndAllowThreads(__tstate
);
4365 if (PyErr_Occurred()) return NULL
;
4366 } _resultobj
= Py_BuildValue("i",_result
);
4370 static void *SwigwxDCTowxObject(void *ptr
) {
4374 dest
= (wxObject
*) src
;
4375 return (void *) dest
;
4378 #define delete_wxDC(_swigobj) (delete _swigobj)
4379 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4380 PyObject
* _resultobj
;
4382 PyObject
* _argo0
= 0;
4383 char *_kwnames
[] = { "self", NULL
};
4386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4399 wxPyEndAllowThreads(__tstate
);
4400 if (PyErr_Occurred()) return NULL
;
4401 } Py_INCREF(Py_None
);
4402 _resultobj
= Py_None
;
4406 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4407 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4408 PyObject
* _resultobj
;
4410 PyObject
* _argo0
= 0;
4411 char *_kwnames
[] = { "self", NULL
};
4414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4425 wxDC_BeginDrawing(_arg0
);
4427 wxPyEndAllowThreads(__tstate
);
4428 if (PyErr_Occurred()) return NULL
;
4429 } Py_INCREF(Py_None
);
4430 _resultobj
= Py_None
;
4434 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4435 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4436 PyObject
* _resultobj
;
4446 int _arg8
= (int ) wxCOPY
;
4447 int _arg9
= (int ) FALSE
;
4448 PyObject
* _argo0
= 0;
4449 PyObject
* _argo5
= 0;
4450 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4463 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4464 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4471 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4473 wxPyEndAllowThreads(__tstate
);
4474 if (PyErr_Occurred()) return NULL
;
4475 } _resultobj
= Py_BuildValue("i",_result
);
4479 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4480 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4481 PyObject
* _resultobj
;
4483 PyObject
* _argo0
= 0;
4484 char *_kwnames
[] = { "self", NULL
};
4487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4500 wxPyEndAllowThreads(__tstate
);
4501 if (PyErr_Occurred()) return NULL
;
4502 } Py_INCREF(Py_None
);
4503 _resultobj
= Py_None
;
4507 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4508 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4509 PyObject
* _resultobj
;
4513 PyObject
* _argo0
= 0;
4514 char *_kwnames
[] = { "self","x","y", NULL
};
4517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4528 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4530 wxPyEndAllowThreads(__tstate
);
4531 if (PyErr_Occurred()) return NULL
;
4532 } Py_INCREF(Py_None
);
4533 _resultobj
= Py_None
;
4537 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4538 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4539 PyObject
* _resultobj
;
4541 PyObject
* _argo0
= 0;
4542 char *_kwnames
[] = { "self", NULL
};
4545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4556 wxDC_DestroyClippingRegion(_arg0
);
4558 wxPyEndAllowThreads(__tstate
);
4559 if (PyErr_Occurred()) return NULL
;
4560 } Py_INCREF(Py_None
);
4561 _resultobj
= Py_None
;
4565 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4566 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4567 PyObject
* _resultobj
;
4571 PyObject
* _argo0
= 0;
4572 char *_kwnames
[] = { "self","x", NULL
};
4575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4586 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4588 wxPyEndAllowThreads(__tstate
);
4589 if (PyErr_Occurred()) return NULL
;
4590 } _resultobj
= Py_BuildValue("l",_result
);
4594 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4595 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4596 PyObject
* _resultobj
;
4600 PyObject
* _argo0
= 0;
4601 char *_kwnames
[] = { "self","x", NULL
};
4604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4615 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4617 wxPyEndAllowThreads(__tstate
);
4618 if (PyErr_Occurred()) return NULL
;
4619 } _resultobj
= Py_BuildValue("l",_result
);
4623 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4624 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4625 PyObject
* _resultobj
;
4629 PyObject
* _argo0
= 0;
4630 char *_kwnames
[] = { "self","y", NULL
};
4633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4644 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4646 wxPyEndAllowThreads(__tstate
);
4647 if (PyErr_Occurred()) return NULL
;
4648 } _resultobj
= Py_BuildValue("l",_result
);
4652 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4653 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4654 PyObject
* _resultobj
;
4658 PyObject
* _argo0
= 0;
4659 char *_kwnames
[] = { "self","y", NULL
};
4662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
4665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4673 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
4675 wxPyEndAllowThreads(__tstate
);
4676 if (PyErr_Occurred()) return NULL
;
4677 } _resultobj
= Py_BuildValue("l",_result
);
4681 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4682 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4683 PyObject
* _resultobj
;
4691 PyObject
* _argo0
= 0;
4692 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
4695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
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_DrawArc. Expected _wxDC_p.");
4705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4706 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4708 wxPyEndAllowThreads(__tstate
);
4709 if (PyErr_Occurred()) return NULL
;
4710 } Py_INCREF(Py_None
);
4711 _resultobj
= Py_None
;
4715 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
4716 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4717 PyObject
* _resultobj
;
4722 PyObject
* _argo0
= 0;
4723 char *_kwnames
[] = { "self","x","y","radius", NULL
};
4726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
4729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4737 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
4739 wxPyEndAllowThreads(__tstate
);
4740 if (PyErr_Occurred()) return NULL
;
4741 } Py_INCREF(Py_None
);
4742 _resultobj
= Py_None
;
4746 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4747 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4748 PyObject
* _resultobj
;
4754 PyObject
* _argo0
= 0;
4755 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4769 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4771 wxPyEndAllowThreads(__tstate
);
4772 if (PyErr_Occurred()) return NULL
;
4773 } Py_INCREF(Py_None
);
4774 _resultobj
= Py_None
;
4778 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4779 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4780 PyObject
* _resultobj
;
4788 PyObject
* _argo0
= 0;
4789 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
4792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4803 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4805 wxPyEndAllowThreads(__tstate
);
4806 if (PyErr_Occurred()) return NULL
;
4807 } Py_INCREF(Py_None
);
4808 _resultobj
= Py_None
;
4812 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
4813 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4814 PyObject
* _resultobj
;
4819 PyObject
* _argo0
= 0;
4820 PyObject
* _argo1
= 0;
4821 char *_kwnames
[] = { "self","icon","x","y", NULL
};
4824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
4827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4834 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4835 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
4836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4842 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
4844 wxPyEndAllowThreads(__tstate
);
4845 if (PyErr_Occurred()) return NULL
;
4846 } Py_INCREF(Py_None
);
4847 _resultobj
= Py_None
;
4851 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4852 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4853 PyObject
* _resultobj
;
4857 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
4858 int _arg4
= (int ) -1;
4859 PyObject
* _argo0
= 0;
4860 PyObject
* _obj1
= 0;
4862 PyObject
* _obj2
= 0;
4863 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
4866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
4869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
4876 _arg1
= wxString_in_helper(_obj1
);
4882 if (! wxRect_helper(_obj2
, &_arg2
))
4886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4887 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
4889 wxPyEndAllowThreads(__tstate
);
4890 if (PyErr_Occurred()) return NULL
;
4891 } Py_INCREF(Py_None
);
4892 _resultobj
= Py_None
;
4900 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
4902 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
4905 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4906 PyObject
* _resultobj
;
4912 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
4913 int _arg5
= (int ) -1;
4914 PyObject
* _argo0
= 0;
4915 PyObject
* _obj1
= 0;
4916 PyObject
* _argo2
= 0;
4918 PyObject
* _obj3
= 0;
4919 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
4923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
4926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
4933 _arg1
= wxString_in_helper(_obj1
);
4938 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4939 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
4940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
4946 if (! wxRect_helper(_obj3
, &_arg3
))
4950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4951 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
4953 wxPyEndAllowThreads(__tstate
);
4954 if (PyErr_Occurred()) return NULL
;
4955 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
4956 _resultobj
= Py_BuildValue("s",_ptemp
);
4964 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4965 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4966 PyObject
* _resultobj
;
4972 PyObject
* _argo0
= 0;
4973 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
4976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
4986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4987 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4989 wxPyEndAllowThreads(__tstate
);
4990 if (PyErr_Occurred()) return NULL
;
4991 } Py_INCREF(Py_None
);
4992 _resultobj
= Py_None
;
4996 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4997 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4998 PyObject
* _resultobj
;
5002 long _arg3
= (long ) 0;
5003 long _arg4
= (long ) 0;
5004 PyObject
* _argo0
= 0;
5006 PyObject
* _obj2
= 0;
5007 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5021 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5022 if (_arg2
== NULL
) {
5030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5031 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5033 wxPyEndAllowThreads(__tstate
);
5034 if (PyErr_Occurred()) return NULL
;
5035 } Py_INCREF(Py_None
);
5036 _resultobj
= Py_None
;
5043 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5044 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5045 PyObject
* _resultobj
;
5049 long _arg3
= (long ) 0;
5050 long _arg4
= (long ) 0;
5051 int _arg5
= (int ) wxODDEVEN_RULE
;
5052 PyObject
* _argo0
= 0;
5054 PyObject
* _obj2
= 0;
5055 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5069 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5070 if (_arg2
== NULL
) {
5078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5079 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5081 wxPyEndAllowThreads(__tstate
);
5082 if (PyErr_Occurred()) return NULL
;
5083 } Py_INCREF(Py_None
);
5084 _resultobj
= Py_None
;
5091 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5092 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5093 PyObject
* _resultobj
;
5097 PyObject
* _argo0
= 0;
5098 char *_kwnames
[] = { "self","x","y", NULL
};
5101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5112 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5114 wxPyEndAllowThreads(__tstate
);
5115 if (PyErr_Occurred()) return NULL
;
5116 } Py_INCREF(Py_None
);
5117 _resultobj
= Py_None
;
5121 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5122 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5123 PyObject
* _resultobj
;
5129 PyObject
* _argo0
= 0;
5130 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5144 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5146 wxPyEndAllowThreads(__tstate
);
5147 if (PyErr_Occurred()) return NULL
;
5148 } Py_INCREF(Py_None
);
5149 _resultobj
= Py_None
;
5153 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5154 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5155 PyObject
* _resultobj
;
5161 PyObject
* _argo0
= 0;
5162 PyObject
* _obj1
= 0;
5163 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5176 _arg1
= wxString_in_helper(_obj1
);
5181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5182 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5184 wxPyEndAllowThreads(__tstate
);
5185 if (PyErr_Occurred()) return NULL
;
5186 } Py_INCREF(Py_None
);
5187 _resultobj
= Py_None
;
5195 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5196 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5197 PyObject
* _resultobj
;
5203 long _arg5
= (long ) 20;
5204 PyObject
* _argo0
= 0;
5205 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5219 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5221 wxPyEndAllowThreads(__tstate
);
5222 if (PyErr_Occurred()) return NULL
;
5223 } Py_INCREF(Py_None
);
5224 _resultobj
= Py_None
;
5228 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5229 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5230 PyObject
* _resultobj
;
5234 PyObject
* _argo0
= 0;
5236 PyObject
* _obj2
= 0;
5237 char *_kwnames
[] = { "self","points", NULL
};
5240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5251 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5252 if (_arg2
== NULL
) {
5260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5261 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5263 wxPyEndAllowThreads(__tstate
);
5264 if (PyErr_Occurred()) return NULL
;
5265 } Py_INCREF(Py_None
);
5266 _resultobj
= Py_None
;
5273 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5274 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5275 PyObject
* _resultobj
;
5280 PyObject
* _argo0
= 0;
5281 PyObject
* _obj1
= 0;
5282 char *_kwnames
[] = { "self","text","x","y", NULL
};
5285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5295 _arg1
= wxString_in_helper(_obj1
);
5300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5301 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5303 wxPyEndAllowThreads(__tstate
);
5304 if (PyErr_Occurred()) return NULL
;
5305 } Py_INCREF(Py_None
);
5306 _resultobj
= Py_None
;
5314 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5315 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5316 PyObject
* _resultobj
;
5318 PyObject
* _argo0
= 0;
5319 char *_kwnames
[] = { "self", NULL
};
5322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5335 wxPyEndAllowThreads(__tstate
);
5336 if (PyErr_Occurred()) return NULL
;
5337 } Py_INCREF(Py_None
);
5338 _resultobj
= Py_None
;
5342 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5343 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5344 PyObject
* _resultobj
;
5346 PyObject
* _argo0
= 0;
5347 char *_kwnames
[] = { "self", NULL
};
5350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5361 wxDC_EndDrawing(_arg0
);
5363 wxPyEndAllowThreads(__tstate
);
5364 if (PyErr_Occurred()) return NULL
;
5365 } Py_INCREF(Py_None
);
5366 _resultobj
= Py_None
;
5370 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5371 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5372 PyObject
* _resultobj
;
5374 PyObject
* _argo0
= 0;
5375 char *_kwnames
[] = { "self", NULL
};
5378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5389 wxDC_EndPage(_arg0
);
5391 wxPyEndAllowThreads(__tstate
);
5392 if (PyErr_Occurred()) return NULL
;
5393 } Py_INCREF(Py_None
);
5394 _resultobj
= Py_None
;
5398 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5399 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5400 PyObject
* _resultobj
;
5406 int _arg4
= (int ) wxFLOOD_SURFACE
;
5407 PyObject
* _argo0
= 0;
5409 PyObject
* _obj3
= 0;
5410 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5424 if (! wxColour_helper(_obj3
, &_arg3
))
5428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5429 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5431 wxPyEndAllowThreads(__tstate
);
5432 if (PyErr_Occurred()) return NULL
;
5433 } _resultobj
= Py_BuildValue("i",_result
);
5437 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5438 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5439 PyObject
* _resultobj
;
5442 PyObject
* _argo0
= 0;
5443 char *_kwnames
[] = { "self", NULL
};
5447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5457 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5458 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
5460 wxPyEndAllowThreads(__tstate
);
5461 if (PyErr_Occurred()) return NULL
;
5462 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5463 _resultobj
= Py_BuildValue("s",_ptemp
);
5467 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5468 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5469 PyObject
* _resultobj
;
5472 PyObject
* _argo0
= 0;
5473 char *_kwnames
[] = { "self", NULL
};
5477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5488 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
5490 wxPyEndAllowThreads(__tstate
);
5491 if (PyErr_Occurred()) return NULL
;
5492 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5493 _resultobj
= Py_BuildValue("s",_ptemp
);
5497 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5498 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5499 PyObject
* _resultobj
;
5502 PyObject
* _argo0
= 0;
5503 char *_kwnames
[] = { "self", NULL
};
5506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5517 _result
= (long )wxDC_GetCharHeight(_arg0
);
5519 wxPyEndAllowThreads(__tstate
);
5520 if (PyErr_Occurred()) return NULL
;
5521 } _resultobj
= Py_BuildValue("l",_result
);
5525 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5526 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5527 PyObject
* _resultobj
;
5530 PyObject
* _argo0
= 0;
5531 char *_kwnames
[] = { "self", NULL
};
5534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5545 _result
= (long )wxDC_GetCharWidth(_arg0
);
5547 wxPyEndAllowThreads(__tstate
);
5548 if (PyErr_Occurred()) return NULL
;
5549 } _resultobj
= Py_BuildValue("l",_result
);
5553 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5554 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5555 PyObject
* _resultobj
;
5565 PyObject
* _argo0
= 0;
5566 char *_kwnames
[] = { "self", NULL
};
5581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5592 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5594 wxPyEndAllowThreads(__tstate
);
5595 if (PyErr_Occurred()) return NULL
;
5596 } Py_INCREF(Py_None
);
5597 _resultobj
= Py_None
;
5600 o
= PyInt_FromLong((long) (*_arg1
));
5601 _resultobj
= t_output_helper(_resultobj
, o
);
5605 o
= PyInt_FromLong((long) (*_arg2
));
5606 _resultobj
= t_output_helper(_resultobj
, o
);
5610 o
= PyInt_FromLong((long) (*_arg3
));
5611 _resultobj
= t_output_helper(_resultobj
, o
);
5615 o
= PyInt_FromLong((long) (*_arg4
));
5616 _resultobj
= t_output_helper(_resultobj
, o
);
5621 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5622 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5623 PyObject
* _resultobj
;
5626 PyObject
* _argo0
= 0;
5627 char *_kwnames
[] = { "self", NULL
};
5631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5641 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5642 _result
= new wxFont (wxDC_GetFont(_arg0
));
5644 wxPyEndAllowThreads(__tstate
);
5645 if (PyErr_Occurred()) return NULL
;
5646 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
5647 _resultobj
= Py_BuildValue("s",_ptemp
);
5651 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5652 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5653 PyObject
* _resultobj
;
5656 PyObject
* _argo0
= 0;
5657 char *_kwnames
[] = { "self", NULL
};
5660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5671 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5673 wxPyEndAllowThreads(__tstate
);
5674 if (PyErr_Occurred()) return NULL
;
5675 } _resultobj
= Py_BuildValue("i",_result
);
5679 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5680 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5681 PyObject
* _resultobj
;
5687 PyObject
* _argo0
= 0;
5688 char *_kwnames
[] = { "self", NULL
};
5697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5708 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5710 wxPyEndAllowThreads(__tstate
);
5711 if (PyErr_Occurred()) return NULL
;
5712 } Py_INCREF(Py_None
);
5713 _resultobj
= Py_None
;
5716 o
= PyFloat_FromDouble((double) (*_arg1
));
5717 _resultobj
= t_output_helper(_resultobj
, o
);
5721 o
= PyFloat_FromDouble((double) (*_arg2
));
5722 _resultobj
= t_output_helper(_resultobj
, o
);
5727 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5728 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5729 PyObject
* _resultobj
;
5732 PyObject
* _argo0
= 0;
5733 char *_kwnames
[] = { "self", NULL
};
5736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5747 _result
= (int )wxDC_GetMapMode(_arg0
);
5749 wxPyEndAllowThreads(__tstate
);
5750 if (PyErr_Occurred()) return NULL
;
5751 } _resultobj
= Py_BuildValue("i",_result
);
5755 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5756 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5757 PyObject
* _resultobj
;
5760 PyObject
* _argo0
= 0;
5761 char *_kwnames
[] = { "self", NULL
};
5764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
5767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5775 _result
= (bool )wxDC_GetOptimization(_arg0
);
5777 wxPyEndAllowThreads(__tstate
);
5778 if (PyErr_Occurred()) return NULL
;
5779 } _resultobj
= Py_BuildValue("i",_result
);
5783 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5784 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5785 PyObject
* _resultobj
;
5788 PyObject
* _argo0
= 0;
5789 char *_kwnames
[] = { "self", NULL
};
5793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
5796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5804 _result
= new wxPen (wxDC_GetPen(_arg0
));
5806 wxPyEndAllowThreads(__tstate
);
5807 if (PyErr_Occurred()) return NULL
;
5808 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
5809 _resultobj
= Py_BuildValue("s",_ptemp
);
5813 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
5814 wxColour
* wc
= new wxColour();
5815 self
->GetPixel(x
, y
, wc
);
5818 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5819 PyObject
* _resultobj
;
5824 PyObject
* _argo0
= 0;
5825 char *_kwnames
[] = { "self","x","y", NULL
};
5829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5840 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
5842 wxPyEndAllowThreads(__tstate
);
5843 if (PyErr_Occurred()) return NULL
;
5845 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5846 _resultobj
= Py_BuildValue("s",_ptemp
);
5849 _resultobj
= Py_None
;
5854 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
5855 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5856 PyObject
* _resultobj
;
5862 PyObject
* _argo0
= 0;
5863 char *_kwnames
[] = { "self", NULL
};
5872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
5875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
5882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5883 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
5885 wxPyEndAllowThreads(__tstate
);
5886 if (PyErr_Occurred()) return NULL
;
5887 } Py_INCREF(Py_None
);
5888 _resultobj
= Py_None
;
5891 o
= PyInt_FromLong((long) (*_arg1
));
5892 _resultobj
= t_output_helper(_resultobj
, o
);
5896 o
= PyInt_FromLong((long) (*_arg2
));
5897 _resultobj
= t_output_helper(_resultobj
, o
);
5902 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
5903 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5904 PyObject
* _resultobj
;
5907 PyObject
* _argo0
= 0;
5908 char *_kwnames
[] = { "self", NULL
};
5912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
5915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
5922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5923 _result
= new wxSize (wxDC_GetSize(_arg0
));
5925 wxPyEndAllowThreads(__tstate
);
5926 if (PyErr_Occurred()) return NULL
;
5927 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5928 _resultobj
= Py_BuildValue("s",_ptemp
);
5932 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
5933 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5934 PyObject
* _resultobj
;
5937 PyObject
* _argo0
= 0;
5938 char *_kwnames
[] = { "self", NULL
};
5942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
5945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
5952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5953 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
5955 wxPyEndAllowThreads(__tstate
);
5956 if (PyErr_Occurred()) return NULL
;
5957 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5958 _resultobj
= Py_BuildValue("s",_ptemp
);
5962 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
5963 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5964 PyObject
* _resultobj
;
5967 PyObject
* _argo0
= 0;
5968 char *_kwnames
[] = { "self", NULL
};
5972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
5975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
5982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5983 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
5985 wxPyEndAllowThreads(__tstate
);
5986 if (PyErr_Occurred()) return NULL
;
5987 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5988 _resultobj
= Py_BuildValue("s",_ptemp
);
5992 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
5993 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5994 PyObject
* _resultobj
;
6001 PyObject
* _argo0
= 0;
6002 PyObject
* _obj1
= 0;
6003 char *_kwnames
[] = { "self","string", NULL
};
6012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6022 _arg1
= wxString_in_helper(_obj1
);
6027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6028 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6030 wxPyEndAllowThreads(__tstate
);
6031 if (PyErr_Occurred()) return NULL
;
6032 } Py_INCREF(Py_None
);
6033 _resultobj
= Py_None
;
6036 o
= PyInt_FromLong((long) (*_arg2
));
6037 _resultobj
= t_output_helper(_resultobj
, o
);
6041 o
= PyInt_FromLong((long) (*_arg3
));
6042 _resultobj
= t_output_helper(_resultobj
, o
);
6051 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6052 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6053 PyObject
* _resultobj
;
6064 wxFont
* _arg6
= (wxFont
*) NULL
;
6065 PyObject
* _argo0
= 0;
6066 PyObject
* _obj1
= 0;
6067 PyObject
* _argo6
= 0;
6068 char *_kwnames
[] = { "self","string","font", NULL
};
6083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6093 _arg1
= wxString_in_helper(_obj1
);
6098 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6099 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6106 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6108 wxPyEndAllowThreads(__tstate
);
6109 if (PyErr_Occurred()) return NULL
;
6110 } Py_INCREF(Py_None
);
6111 _resultobj
= Py_None
;
6114 o
= PyInt_FromLong((long) (*_arg2
));
6115 _resultobj
= t_output_helper(_resultobj
, o
);
6119 o
= PyInt_FromLong((long) (*_arg3
));
6120 _resultobj
= t_output_helper(_resultobj
, o
);
6124 o
= PyInt_FromLong((long) (*_arg4
));
6125 _resultobj
= t_output_helper(_resultobj
, o
);
6129 o
= PyInt_FromLong((long) (*_arg5
));
6130 _resultobj
= t_output_helper(_resultobj
, o
);
6139 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6140 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6141 PyObject
* _resultobj
;
6144 PyObject
* _argo0
= 0;
6145 char *_kwnames
[] = { "self", NULL
};
6149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6160 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6162 wxPyEndAllowThreads(__tstate
);
6163 if (PyErr_Occurred()) return NULL
;
6164 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6165 _resultobj
= Py_BuildValue("s",_ptemp
);
6169 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6170 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6171 PyObject
* _resultobj
;
6177 PyObject
* _argo0
= 0;
6178 char *_kwnames
[] = { "self", NULL
};
6187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6198 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6200 wxPyEndAllowThreads(__tstate
);
6201 if (PyErr_Occurred()) return NULL
;
6202 } Py_INCREF(Py_None
);
6203 _resultobj
= Py_None
;
6206 o
= PyFloat_FromDouble((double) (*_arg1
));
6207 _resultobj
= t_output_helper(_resultobj
, o
);
6211 o
= PyFloat_FromDouble((double) (*_arg2
));
6212 _resultobj
= t_output_helper(_resultobj
, o
);
6217 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6218 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6219 PyObject
* _resultobj
;
6223 PyObject
* _argo0
= 0;
6224 char *_kwnames
[] = { "self","x", NULL
};
6227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6238 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6240 wxPyEndAllowThreads(__tstate
);
6241 if (PyErr_Occurred()) return NULL
;
6242 } _resultobj
= Py_BuildValue("l",_result
);
6246 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6247 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6248 PyObject
* _resultobj
;
6252 PyObject
* _argo0
= 0;
6253 char *_kwnames
[] = { "self","x", NULL
};
6256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6267 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6269 wxPyEndAllowThreads(__tstate
);
6270 if (PyErr_Occurred()) return NULL
;
6271 } _resultobj
= Py_BuildValue("l",_result
);
6275 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6276 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6277 PyObject
* _resultobj
;
6281 PyObject
* _argo0
= 0;
6282 char *_kwnames
[] = { "self","y", NULL
};
6285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6296 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6298 wxPyEndAllowThreads(__tstate
);
6299 if (PyErr_Occurred()) return NULL
;
6300 } _resultobj
= Py_BuildValue("l",_result
);
6304 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6305 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6306 PyObject
* _resultobj
;
6310 PyObject
* _argo0
= 0;
6311 char *_kwnames
[] = { "self","y", NULL
};
6314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6325 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6327 wxPyEndAllowThreads(__tstate
);
6328 if (PyErr_Occurred()) return NULL
;
6329 } _resultobj
= Py_BuildValue("l",_result
);
6333 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6334 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6335 PyObject
* _resultobj
;
6338 PyObject
* _argo0
= 0;
6339 char *_kwnames
[] = { "self", NULL
};
6342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6353 _result
= (long )wxDC_MaxX(_arg0
);
6355 wxPyEndAllowThreads(__tstate
);
6356 if (PyErr_Occurred()) return NULL
;
6357 } _resultobj
= Py_BuildValue("l",_result
);
6361 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6362 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6363 PyObject
* _resultobj
;
6366 PyObject
* _argo0
= 0;
6367 char *_kwnames
[] = { "self", NULL
};
6370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6381 _result
= (long )wxDC_MaxY(_arg0
);
6383 wxPyEndAllowThreads(__tstate
);
6384 if (PyErr_Occurred()) return NULL
;
6385 } _resultobj
= Py_BuildValue("l",_result
);
6389 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6390 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6391 PyObject
* _resultobj
;
6394 PyObject
* _argo0
= 0;
6395 char *_kwnames
[] = { "self", NULL
};
6398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6409 _result
= (long )wxDC_MinX(_arg0
);
6411 wxPyEndAllowThreads(__tstate
);
6412 if (PyErr_Occurred()) return NULL
;
6413 } _resultobj
= Py_BuildValue("l",_result
);
6417 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6418 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6419 PyObject
* _resultobj
;
6422 PyObject
* _argo0
= 0;
6423 char *_kwnames
[] = { "self", NULL
};
6426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6437 _result
= (long )wxDC_MinY(_arg0
);
6439 wxPyEndAllowThreads(__tstate
);
6440 if (PyErr_Occurred()) return NULL
;
6441 } _resultobj
= Py_BuildValue("l",_result
);
6445 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6446 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6447 PyObject
* _resultobj
;
6450 PyObject
* _argo0
= 0;
6451 char *_kwnames
[] = { "self", NULL
};
6454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6465 _result
= (bool )wxDC_Ok(_arg0
);
6467 wxPyEndAllowThreads(__tstate
);
6468 if (PyErr_Occurred()) return NULL
;
6469 } _resultobj
= Py_BuildValue("i",_result
);
6473 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6474 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6475 PyObject
* _resultobj
;
6479 PyObject
* _argo0
= 0;
6480 char *_kwnames
[] = { "self","x","y", NULL
};
6483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6494 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6496 wxPyEndAllowThreads(__tstate
);
6497 if (PyErr_Occurred()) return NULL
;
6498 } Py_INCREF(Py_None
);
6499 _resultobj
= Py_None
;
6503 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6504 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6505 PyObject
* _resultobj
;
6508 PyObject
* _argo0
= 0;
6509 PyObject
* _argo1
= 0;
6510 char *_kwnames
[] = { "self","brush", NULL
};
6513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6523 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6524 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6531 wxDC_SetBackground(_arg0
,*_arg1
);
6533 wxPyEndAllowThreads(__tstate
);
6534 if (PyErr_Occurred()) return NULL
;
6535 } Py_INCREF(Py_None
);
6536 _resultobj
= Py_None
;
6540 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6541 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6542 PyObject
* _resultobj
;
6545 PyObject
* _argo0
= 0;
6546 char *_kwnames
[] = { "self","mode", NULL
};
6549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6560 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6562 wxPyEndAllowThreads(__tstate
);
6563 if (PyErr_Occurred()) return NULL
;
6564 } Py_INCREF(Py_None
);
6565 _resultobj
= Py_None
;
6569 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6570 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6571 PyObject
* _resultobj
;
6577 PyObject
* _argo0
= 0;
6578 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6592 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6594 wxPyEndAllowThreads(__tstate
);
6595 if (PyErr_Occurred()) return NULL
;
6596 } Py_INCREF(Py_None
);
6597 _resultobj
= Py_None
;
6601 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6602 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6603 PyObject
* _resultobj
;
6606 PyObject
* _argo0
= 0;
6607 PyObject
* _argo1
= 0;
6608 char *_kwnames
[] = { "self","region", NULL
};
6611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
6614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
6621 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6622 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
6623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
6628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6629 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
6631 wxPyEndAllowThreads(__tstate
);
6632 if (PyErr_Occurred()) return NULL
;
6633 } Py_INCREF(Py_None
);
6634 _resultobj
= Py_None
;
6638 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6639 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6640 PyObject
* _resultobj
;
6643 PyObject
* _argo0
= 0;
6644 PyObject
* _argo1
= 0;
6645 char *_kwnames
[] = { "self","colourMap", NULL
};
6648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6658 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6659 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6666 wxDC_SetPalette(_arg0
,*_arg1
);
6668 wxPyEndAllowThreads(__tstate
);
6669 if (PyErr_Occurred()) return NULL
;
6670 } Py_INCREF(Py_None
);
6671 _resultobj
= Py_None
;
6675 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6676 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6677 PyObject
* _resultobj
;
6680 PyObject
* _argo0
= 0;
6681 PyObject
* _argo1
= 0;
6682 char *_kwnames
[] = { "self","brush", NULL
};
6685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6695 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6696 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6703 wxDC_SetBrush(_arg0
,*_arg1
);
6705 wxPyEndAllowThreads(__tstate
);
6706 if (PyErr_Occurred()) return NULL
;
6707 } Py_INCREF(Py_None
);
6708 _resultobj
= Py_None
;
6712 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6713 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6714 PyObject
* _resultobj
;
6717 PyObject
* _argo0
= 0;
6718 PyObject
* _argo1
= 0;
6719 char *_kwnames
[] = { "self","font", NULL
};
6722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6732 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6733 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6740 wxDC_SetFont(_arg0
,*_arg1
);
6742 wxPyEndAllowThreads(__tstate
);
6743 if (PyErr_Occurred()) return NULL
;
6744 } Py_INCREF(Py_None
);
6745 _resultobj
= Py_None
;
6749 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
6750 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6751 PyObject
* _resultobj
;
6754 PyObject
* _argo0
= 0;
6755 char *_kwnames
[] = { "self","function", NULL
};
6758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
6761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6769 wxDC_SetLogicalFunction(_arg0
,_arg1
);
6771 wxPyEndAllowThreads(__tstate
);
6772 if (PyErr_Occurred()) return NULL
;
6773 } Py_INCREF(Py_None
);
6774 _resultobj
= Py_None
;
6778 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6779 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6780 PyObject
* _resultobj
;
6784 PyObject
* _argo0
= 0;
6785 char *_kwnames
[] = { "self","x","y", NULL
};
6788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6799 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
6801 wxPyEndAllowThreads(__tstate
);
6802 if (PyErr_Occurred()) return NULL
;
6803 } Py_INCREF(Py_None
);
6804 _resultobj
= Py_None
;
6808 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
6809 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6810 PyObject
* _resultobj
;
6813 PyObject
* _argo0
= 0;
6814 char *_kwnames
[] = { "self","mode", NULL
};
6817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
6820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6828 wxDC_SetMapMode(_arg0
,_arg1
);
6830 wxPyEndAllowThreads(__tstate
);
6831 if (PyErr_Occurred()) return NULL
;
6832 } Py_INCREF(Py_None
);
6833 _resultobj
= Py_None
;
6837 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
6838 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6839 PyObject
* _resultobj
;
6842 PyObject
* _argo0
= 0;
6844 char *_kwnames
[] = { "self","optimize", NULL
};
6847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
6850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6856 _arg1
= (bool ) tempbool1
;
6858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6859 wxDC_SetOptimization(_arg0
,_arg1
);
6861 wxPyEndAllowThreads(__tstate
);
6862 if (PyErr_Occurred()) return NULL
;
6863 } Py_INCREF(Py_None
);
6864 _resultobj
= Py_None
;
6868 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
6869 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6870 PyObject
* _resultobj
;
6873 PyObject
* _argo0
= 0;
6874 PyObject
* _argo1
= 0;
6875 char *_kwnames
[] = { "self","pen", NULL
};
6878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
6881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
6888 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6889 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
6895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6896 wxDC_SetPen(_arg0
,*_arg1
);
6898 wxPyEndAllowThreads(__tstate
);
6899 if (PyErr_Occurred()) return NULL
;
6900 } Py_INCREF(Py_None
);
6901 _resultobj
= Py_None
;
6905 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
6906 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6907 PyObject
* _resultobj
;
6910 PyObject
* _argo0
= 0;
6912 PyObject
* _obj1
= 0;
6913 char *_kwnames
[] = { "self","colour", NULL
};
6916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
6919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
6927 if (! wxColour_helper(_obj1
, &_arg1
))
6931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6932 wxDC_SetTextBackground(_arg0
,*_arg1
);
6934 wxPyEndAllowThreads(__tstate
);
6935 if (PyErr_Occurred()) return NULL
;
6936 } Py_INCREF(Py_None
);
6937 _resultobj
= Py_None
;
6941 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
6942 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6943 PyObject
* _resultobj
;
6946 PyObject
* _argo0
= 0;
6948 PyObject
* _obj1
= 0;
6949 char *_kwnames
[] = { "self","colour", NULL
};
6952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
6955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
6963 if (! wxColour_helper(_obj1
, &_arg1
))
6967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6968 wxDC_SetTextForeground(_arg0
,*_arg1
);
6970 wxPyEndAllowThreads(__tstate
);
6971 if (PyErr_Occurred()) return NULL
;
6972 } Py_INCREF(Py_None
);
6973 _resultobj
= Py_None
;
6977 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
6978 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6979 PyObject
* _resultobj
;
6983 PyObject
* _argo0
= 0;
6984 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
6987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
6997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6998 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7000 wxPyEndAllowThreads(__tstate
);
7001 if (PyErr_Occurred()) return NULL
;
7002 } Py_INCREF(Py_None
);
7003 _resultobj
= Py_None
;
7007 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7008 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7009 PyObject
* _resultobj
;
7013 PyObject
* _argo0
= 0;
7014 PyObject
* _obj1
= 0;
7015 char *_kwnames
[] = { "self","message", NULL
};
7018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7028 _arg1
= wxString_in_helper(_obj1
);
7033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7034 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7036 wxPyEndAllowThreads(__tstate
);
7037 if (PyErr_Occurred()) return NULL
;
7038 } _resultobj
= Py_BuildValue("i",_result
);
7046 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7047 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7048 PyObject
* _resultobj
;
7050 PyObject
* _argo0
= 0;
7051 char *_kwnames
[] = { "self", NULL
};
7054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7065 wxDC_StartPage(_arg0
);
7067 wxPyEndAllowThreads(__tstate
);
7068 if (PyErr_Occurred()) return NULL
;
7069 } Py_INCREF(Py_None
);
7070 _resultobj
= Py_None
;
7074 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7075 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7076 PyObject
* _resultobj
;
7081 int _arg4
= (int ) FALSE
;
7082 PyObject
* _argo0
= 0;
7083 PyObject
* _argo1
= 0;
7084 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7097 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7098 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7105 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7107 wxPyEndAllowThreads(__tstate
);
7108 if (PyErr_Occurred()) return NULL
;
7109 } Py_INCREF(Py_None
);
7110 _resultobj
= Py_None
;
7114 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7115 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7116 PyObject
* _resultobj
;
7119 PyObject
* _argo0
= 0;
7120 char *_kwnames
[] = { "self", NULL
};
7123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7134 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7136 wxPyEndAllowThreads(__tstate
);
7137 if (PyErr_Occurred()) return NULL
;
7138 } _resultobj
= Py_BuildValue("i",_result
);
7142 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7143 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7144 PyObject
* _resultobj
;
7147 PyObject
* _argo0
= 0;
7148 char *_kwnames
[] = { "self", NULL
};
7151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7162 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7164 wxPyEndAllowThreads(__tstate
);
7165 if (PyErr_Occurred()) return NULL
;
7166 } _resultobj
= Py_BuildValue("i",_result
);
7170 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7171 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7172 PyObject
* _resultobj
;
7175 PyObject
* _argo0
= 0;
7176 char *_kwnames
[] = { "self", NULL
};
7179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7190 _result
= (int )wxDC_GetDepth(_arg0
);
7192 wxPyEndAllowThreads(__tstate
);
7193 if (PyErr_Occurred()) return NULL
;
7194 } _resultobj
= Py_BuildValue("i",_result
);
7198 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7199 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7200 PyObject
* _resultobj
;
7203 PyObject
* _argo0
= 0;
7204 char *_kwnames
[] = { "self", NULL
};
7208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7219 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7221 wxPyEndAllowThreads(__tstate
);
7222 if (PyErr_Occurred()) return NULL
;
7223 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7224 _resultobj
= Py_BuildValue("s",_ptemp
);
7228 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7229 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7230 PyObject
* _resultobj
;
7236 PyObject
* _argo0
= 0;
7237 char *_kwnames
[] = { "self", NULL
};
7246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7257 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7259 wxPyEndAllowThreads(__tstate
);
7260 if (PyErr_Occurred()) return NULL
;
7261 } Py_INCREF(Py_None
);
7262 _resultobj
= Py_None
;
7265 o
= PyInt_FromLong((long) (*_arg1
));
7266 _resultobj
= t_output_helper(_resultobj
, o
);
7270 o
= PyInt_FromLong((long) (*_arg2
));
7271 _resultobj
= t_output_helper(_resultobj
, o
);
7276 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7277 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7278 PyObject
* _resultobj
;
7282 PyObject
* _argo0
= 0;
7283 char *_kwnames
[] = { "self","x","y", NULL
};
7286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7297 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7299 wxPyEndAllowThreads(__tstate
);
7300 if (PyErr_Occurred()) return NULL
;
7301 } Py_INCREF(Py_None
);
7302 _resultobj
= Py_None
;
7306 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7307 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7308 PyObject
* _resultobj
;
7314 PyObject
* _argo0
= 0;
7315 char *_kwnames
[] = { "self", NULL
};
7324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7335 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7337 wxPyEndAllowThreads(__tstate
);
7338 if (PyErr_Occurred()) return NULL
;
7339 } Py_INCREF(Py_None
);
7340 _resultobj
= Py_None
;
7343 o
= PyInt_FromLong((long) (*_arg1
));
7344 _resultobj
= t_output_helper(_resultobj
, o
);
7348 o
= PyInt_FromLong((long) (*_arg2
));
7349 _resultobj
= t_output_helper(_resultobj
, o
);
7354 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7355 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7356 PyObject
* _resultobj
;
7360 PyObject
* _argo0
= 0;
7363 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7375 _arg1
= (bool ) tempbool1
;
7376 _arg2
= (bool ) tempbool2
;
7378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7379 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7381 wxPyEndAllowThreads(__tstate
);
7382 if (PyErr_Occurred()) return NULL
;
7383 } Py_INCREF(Py_None
);
7384 _resultobj
= Py_None
;
7388 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7389 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
* _resultobj
;
7394 PyObject
* _argo0
= 0;
7395 char *_kwnames
[] = { "self","x","y", NULL
};
7398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7409 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7411 wxPyEndAllowThreads(__tstate
);
7412 if (PyErr_Occurred()) return NULL
;
7413 } Py_INCREF(Py_None
);
7414 _resultobj
= Py_None
;
7418 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7419 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7420 PyObject
* _resultobj
;
7422 PyObject
* _argo0
= 0;
7423 char *_kwnames
[] = { "self", NULL
};
7426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7437 wxDC_ResetBoundingBox(_arg0
);
7439 wxPyEndAllowThreads(__tstate
);
7440 if (PyErr_Occurred()) return NULL
;
7441 } Py_INCREF(Py_None
);
7442 _resultobj
= Py_None
;
7446 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7447 PyObject
* _resultobj
;
7457 PyObject
* _argo0
= 0;
7458 char *_kwnames
[] = { "self", NULL
};
7473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
7476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
7483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7484 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7486 wxPyEndAllowThreads(__tstate
);
7487 if (PyErr_Occurred()) return NULL
;
7488 } Py_INCREF(Py_None
);
7489 _resultobj
= Py_None
;
7492 o
= PyInt_FromLong((long) (*_arg1
));
7493 _resultobj
= t_output_helper(_resultobj
, o
);
7497 o
= PyInt_FromLong((long) (*_arg2
));
7498 _resultobj
= t_output_helper(_resultobj
, o
);
7502 o
= PyInt_FromLong((long) (*_arg3
));
7503 _resultobj
= t_output_helper(_resultobj
, o
);
7507 o
= PyInt_FromLong((long) (*_arg4
));
7508 _resultobj
= t_output_helper(_resultobj
, o
);
7513 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
7514 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
7515 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
7523 if (!PySequence_Check(pyPoints
)) {
7526 if (!PySequence_Check(pyPens
)) {
7529 numObjs
= PySequence_Length(pyPoints
);
7530 numPens
= PySequence_Length(pyPens
);
7532 for (i
= 0; i
< numObjs
; i
++) {
7536 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
7539 obj
= PySequence_GetItem(pyPens
, i
);
7541 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
7552 // Get the point coordinants
7554 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
7557 obj
= PySequence_GetItem(pyPoints
, i
);
7559 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
7565 // Now draw the point
7566 self
->DrawPoint(x1
, y1
);
7576 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
7579 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
7582 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7583 PyObject
* _resultobj
;
7588 PyObject
* _argo0
= 0;
7589 PyObject
* _obj1
= 0;
7590 PyObject
* _obj2
= 0;
7591 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
7594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
7597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
7610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7611 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
7613 wxPyEndAllowThreads(__tstate
);
7614 if (PyErr_Occurred()) return NULL
;
7616 _resultobj
= _result
;
7621 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
7622 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
7623 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
7631 if (!PySequence_Check(pyLines
)) {
7634 if (!PySequence_Check(pyPens
)) {
7637 numObjs
= PySequence_Length(pyLines
);
7638 numPens
= PySequence_Length(pyPens
);
7640 for (i
= 0; i
< numObjs
; i
++) {
7644 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
7647 obj
= PySequence_GetItem(pyPens
, i
);
7649 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
7660 // Get the line coordinants
7662 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
7665 obj
= PySequence_GetItem(pyLines
, i
);
7667 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
7673 // Now draw the line
7674 self
->DrawLine(x1
, y1
, x2
, y2
);
7684 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
7687 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
7690 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7691 PyObject
* _resultobj
;
7696 PyObject
* _argo0
= 0;
7697 PyObject
* _obj1
= 0;
7698 PyObject
* _obj2
= 0;
7699 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
7702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
7705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
7718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7719 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
7721 wxPyEndAllowThreads(__tstate
);
7722 if (PyErr_Occurred()) return NULL
;
7724 _resultobj
= _result
;
7729 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7732 src
= (wxMemoryDC
*) ptr
;
7733 dest
= (wxDC
*) src
;
7734 return (void *) dest
;
7737 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
7740 src
= (wxMemoryDC
*) ptr
;
7741 dest
= (wxObject
*) src
;
7742 return (void *) dest
;
7745 #define new_wxMemoryDC() (new wxMemoryDC())
7746 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7747 PyObject
* _resultobj
;
7748 wxMemoryDC
* _result
;
7749 char *_kwnames
[] = { NULL
};
7753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7757 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7759 wxPyEndAllowThreads(__tstate
);
7760 if (PyErr_Occurred()) return NULL
;
7762 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7763 _resultobj
= Py_BuildValue("s",_ptemp
);
7766 _resultobj
= Py_None
;
7771 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7772 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7773 PyObject
* _resultobj
;
7776 PyObject
* _argo0
= 0;
7777 PyObject
* _argo1
= 0;
7778 char *_kwnames
[] = { "self","bitmap", NULL
};
7781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7791 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7792 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7799 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7801 wxPyEndAllowThreads(__tstate
);
7802 if (PyErr_Occurred()) return NULL
;
7803 } Py_INCREF(Py_None
);
7804 _resultobj
= Py_None
;
7808 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
7811 src
= (wxBufferedDC
*) ptr
;
7812 dest
= (wxMemoryDC
*) src
;
7813 return (void *) dest
;
7816 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
7819 src
= (wxBufferedDC
*) ptr
;
7820 dest
= (wxDC
*) src
;
7821 return (void *) dest
;
7824 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
7827 src
= (wxBufferedDC
*) ptr
;
7828 dest
= (wxObject
*) src
;
7829 return (void *) dest
;
7832 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7833 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7834 PyObject
* _resultobj
;
7835 wxBufferedDC
* _result
;
7838 PyObject
* _argo0
= 0;
7839 PyObject
* _argo1
= 0;
7840 char *_kwnames
[] = { "dc","buffer", NULL
};
7844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
7847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
7854 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7855 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
7861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7862 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
7864 wxPyEndAllowThreads(__tstate
);
7865 if (PyErr_Occurred()) return NULL
;
7867 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
7868 _resultobj
= Py_BuildValue("s",_ptemp
);
7871 _resultobj
= Py_None
;
7876 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7877 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7878 PyObject
* _resultobj
;
7879 wxBufferedDC
* _result
;
7882 PyObject
* _argo0
= 0;
7884 PyObject
* _obj1
= 0;
7885 char *_kwnames
[] = { "dc","area", NULL
};
7889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
7892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
7900 if (! wxSize_helper(_obj1
, &_arg1
))
7904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7905 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
7907 wxPyEndAllowThreads(__tstate
);
7908 if (PyErr_Occurred()) return NULL
;
7910 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
7911 _resultobj
= Py_BuildValue("s",_ptemp
);
7914 _resultobj
= Py_None
;
7919 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
7920 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7921 PyObject
* _resultobj
;
7922 wxBufferedDC
* _arg0
;
7923 PyObject
* _argo0
= 0;
7924 char *_kwnames
[] = { "self", NULL
};
7927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
7930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
7932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
7937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7938 wxBufferedDC_UnMask(_arg0
);
7940 wxPyEndAllowThreads(__tstate
);
7941 if (PyErr_Occurred()) return NULL
;
7942 } Py_INCREF(Py_None
);
7943 _resultobj
= Py_None
;
7947 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
7948 wxBufferedPaintDC
*src
;
7950 src
= (wxBufferedPaintDC
*) ptr
;
7951 dest
= (wxBufferedDC
*) src
;
7952 return (void *) dest
;
7955 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
7956 wxBufferedPaintDC
*src
;
7958 src
= (wxBufferedPaintDC
*) ptr
;
7959 dest
= (wxMemoryDC
*) src
;
7960 return (void *) dest
;
7963 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
7964 wxBufferedPaintDC
*src
;
7966 src
= (wxBufferedPaintDC
*) ptr
;
7967 dest
= (wxDC
*) src
;
7968 return (void *) dest
;
7971 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
7972 wxBufferedPaintDC
*src
;
7974 src
= (wxBufferedPaintDC
*) ptr
;
7975 dest
= (wxObject
*) src
;
7976 return (void *) dest
;
7979 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
7980 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7981 PyObject
* _resultobj
;
7982 wxBufferedPaintDC
* _result
;
7984 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
7985 PyObject
* _argo0
= 0;
7986 PyObject
* _argo1
= 0;
7987 char *_kwnames
[] = { "window","buffer", NULL
};
7991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
7994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
7996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8001 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8002 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8009 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
8011 wxPyEndAllowThreads(__tstate
);
8012 if (PyErr_Occurred()) return NULL
;
8014 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
8015 _resultobj
= Py_BuildValue("s",_ptemp
);
8018 _resultobj
= Py_None
;
8023 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8026 src
= (wxScreenDC
*) ptr
;
8027 dest
= (wxDC
*) src
;
8028 return (void *) dest
;
8031 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8034 src
= (wxScreenDC
*) ptr
;
8035 dest
= (wxObject
*) src
;
8036 return (void *) dest
;
8039 #define new_wxScreenDC() (new wxScreenDC())
8040 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8041 PyObject
* _resultobj
;
8042 wxScreenDC
* _result
;
8043 char *_kwnames
[] = { NULL
};
8047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8051 _result
= (wxScreenDC
*)new_wxScreenDC();
8053 wxPyEndAllowThreads(__tstate
);
8054 if (PyErr_Occurred()) return NULL
;
8056 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8057 _resultobj
= Py_BuildValue("s",_ptemp
);
8060 _resultobj
= Py_None
;
8065 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8066 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8067 PyObject
* _resultobj
;
8071 PyObject
* _argo0
= 0;
8072 PyObject
* _argo1
= 0;
8073 char *_kwnames
[] = { "self","window", NULL
};
8076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8086 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8087 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8094 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8096 wxPyEndAllowThreads(__tstate
);
8097 if (PyErr_Occurred()) return NULL
;
8098 } _resultobj
= Py_BuildValue("i",_result
);
8102 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8103 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8104 PyObject
* _resultobj
;
8107 wxRect
* _arg1
= (wxRect
*) NULL
;
8108 PyObject
* _argo0
= 0;
8110 PyObject
* _obj1
= 0;
8111 char *_kwnames
[] = { "self","rect", NULL
};
8114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8126 if (! wxRect_helper(_obj1
, &_arg1
))
8130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8131 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8133 wxPyEndAllowThreads(__tstate
);
8134 if (PyErr_Occurred()) return NULL
;
8135 } _resultobj
= Py_BuildValue("i",_result
);
8139 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8140 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8141 PyObject
* _resultobj
;
8144 PyObject
* _argo0
= 0;
8145 char *_kwnames
[] = { "self", NULL
};
8148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8159 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8161 wxPyEndAllowThreads(__tstate
);
8162 if (PyErr_Occurred()) return NULL
;
8163 } _resultobj
= Py_BuildValue("i",_result
);
8167 static void *SwigwxClientDCTowxDC(void *ptr
) {
8170 src
= (wxClientDC
*) ptr
;
8171 dest
= (wxDC
*) src
;
8172 return (void *) dest
;
8175 static void *SwigwxClientDCTowxObject(void *ptr
) {
8178 src
= (wxClientDC
*) ptr
;
8179 dest
= (wxObject
*) src
;
8180 return (void *) dest
;
8183 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8184 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8185 PyObject
* _resultobj
;
8186 wxClientDC
* _result
;
8188 PyObject
* _argo0
= 0;
8189 char *_kwnames
[] = { "win", NULL
};
8193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8204 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8206 wxPyEndAllowThreads(__tstate
);
8207 if (PyErr_Occurred()) return NULL
;
8209 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8210 _resultobj
= Py_BuildValue("s",_ptemp
);
8213 _resultobj
= Py_None
;
8218 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8221 src
= (wxPaintDC
*) ptr
;
8222 dest
= (wxDC
*) src
;
8223 return (void *) dest
;
8226 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8229 src
= (wxPaintDC
*) ptr
;
8230 dest
= (wxObject
*) src
;
8231 return (void *) dest
;
8234 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8235 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8236 PyObject
* _resultobj
;
8237 wxPaintDC
* _result
;
8239 PyObject
* _argo0
= 0;
8240 char *_kwnames
[] = { "win", NULL
};
8244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8255 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8257 wxPyEndAllowThreads(__tstate
);
8258 if (PyErr_Occurred()) return NULL
;
8260 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8261 _resultobj
= Py_BuildValue("s",_ptemp
);
8264 _resultobj
= Py_None
;
8269 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8272 src
= (wxWindowDC
*) ptr
;
8273 dest
= (wxDC
*) src
;
8274 return (void *) dest
;
8277 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8280 src
= (wxWindowDC
*) ptr
;
8281 dest
= (wxObject
*) src
;
8282 return (void *) dest
;
8285 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8286 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8287 PyObject
* _resultobj
;
8288 wxWindowDC
* _result
;
8290 PyObject
* _argo0
= 0;
8291 char *_kwnames
[] = { "win", NULL
};
8295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8306 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8308 wxPyEndAllowThreads(__tstate
);
8309 if (PyErr_Occurred()) return NULL
;
8311 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8312 _resultobj
= Py_BuildValue("s",_ptemp
);
8315 _resultobj
= Py_None
;
8320 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8323 src
= (wxPalette
*) ptr
;
8324 dest
= (wxGDIObject
*) src
;
8325 return (void *) dest
;
8328 static void *SwigwxPaletteTowxObject(void *ptr
) {
8331 src
= (wxPalette
*) ptr
;
8332 dest
= (wxObject
*) src
;
8333 return (void *) dest
;
8336 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8337 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8338 PyObject
* _resultobj
;
8339 wxPalette
* _result
;
8344 PyObject
* _obj1
= 0;
8345 PyObject
* _obj2
= 0;
8346 PyObject
* _obj3
= 0;
8347 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8354 _arg1
= byte_LIST_helper(_obj1
);
8355 if (_arg1
== NULL
) {
8360 _arg2
= byte_LIST_helper(_obj2
);
8361 if (_arg2
== NULL
) {
8367 _arg3
= byte_LIST_helper(_obj3
);
8368 if (_arg3
== NULL
) {
8374 _arg0
= PyList_Size(_obj1
);
8381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8382 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8384 wxPyEndAllowThreads(__tstate
);
8385 if (PyErr_Occurred()) return NULL
;
8387 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8388 _resultobj
= Py_BuildValue("s",_ptemp
);
8391 _resultobj
= Py_None
;
8405 #define delete_wxPalette(_swigobj) (delete _swigobj)
8406 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8407 PyObject
* _resultobj
;
8409 PyObject
* _argo0
= 0;
8410 char *_kwnames
[] = { "self", NULL
};
8413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8424 delete_wxPalette(_arg0
);
8426 wxPyEndAllowThreads(__tstate
);
8427 if (PyErr_Occurred()) return NULL
;
8428 } Py_INCREF(Py_None
);
8429 _resultobj
= Py_None
;
8433 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8434 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8435 PyObject
* _resultobj
;
8441 PyObject
* _argo0
= 0;
8442 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8456 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8458 wxPyEndAllowThreads(__tstate
);
8459 if (PyErr_Occurred()) return NULL
;
8460 } _resultobj
= Py_BuildValue("i",_result
);
8464 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8465 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8466 PyObject
* _resultobj
;
8476 PyObject
* _argo0
= 0;
8477 char *_kwnames
[] = { "self","pixel", NULL
};
8481 _arg2
= (byte
*)&temp
;
8484 _arg3
= (byte
*)&temp0
;
8487 _arg4
= (byte
*)&temp1
;
8489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
8492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8500 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8502 wxPyEndAllowThreads(__tstate
);
8503 if (PyErr_Occurred()) return NULL
;
8504 } _resultobj
= Py_BuildValue("i",_result
);
8507 o
= PyInt_FromLong((long) (*_arg2
));
8508 _resultobj
= t_output_helper(_resultobj
, o
);
8512 o
= PyInt_FromLong((long) (*_arg3
));
8513 _resultobj
= t_output_helper(_resultobj
, o
);
8517 o
= PyInt_FromLong((long) (*_arg4
));
8518 _resultobj
= t_output_helper(_resultobj
, o
);
8523 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8524 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8525 PyObject
* _resultobj
;
8528 PyObject
* _argo0
= 0;
8529 char *_kwnames
[] = { "self", NULL
};
8532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8543 _result
= (bool )wxPalette_Ok(_arg0
);
8545 wxPyEndAllowThreads(__tstate
);
8546 if (PyErr_Occurred()) return NULL
;
8547 } _resultobj
= Py_BuildValue("i",_result
);
8551 static void *SwigwxImageListTowxObject(void *ptr
) {
8554 src
= (wxImageList
*) ptr
;
8555 dest
= (wxObject
*) src
;
8556 return (void *) dest
;
8559 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8560 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8561 PyObject
* _resultobj
;
8562 wxImageList
* _result
;
8565 int _arg2
= (int ) TRUE
;
8566 int _arg3
= (int ) 1;
8567 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8575 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8577 wxPyEndAllowThreads(__tstate
);
8578 if (PyErr_Occurred()) return NULL
;
8580 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8581 _resultobj
= Py_BuildValue("s",_ptemp
);
8584 _resultobj
= Py_None
;
8589 #define delete_wxImageList(_swigobj) (delete _swigobj)
8590 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8591 PyObject
* _resultobj
;
8592 wxImageList
* _arg0
;
8593 PyObject
* _argo0
= 0;
8594 char *_kwnames
[] = { "self", NULL
};
8597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8608 delete_wxImageList(_arg0
);
8610 wxPyEndAllowThreads(__tstate
);
8611 if (PyErr_Occurred()) return NULL
;
8612 } Py_INCREF(Py_None
);
8613 _resultobj
= Py_None
;
8617 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8618 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8619 PyObject
* _resultobj
;
8621 wxImageList
* _arg0
;
8623 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8624 PyObject
* _argo0
= 0;
8625 PyObject
* _argo1
= 0;
8626 PyObject
* _argo2
= 0;
8627 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8640 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8641 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8647 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8648 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8655 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8657 wxPyEndAllowThreads(__tstate
);
8658 if (PyErr_Occurred()) return NULL
;
8659 } _resultobj
= Py_BuildValue("i",_result
);
8663 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8664 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8665 PyObject
* _resultobj
;
8667 wxImageList
* _arg0
;
8670 PyObject
* _argo0
= 0;
8671 PyObject
* _argo1
= 0;
8673 PyObject
* _obj2
= 0;
8674 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8687 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8688 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8695 if (! wxColour_helper(_obj2
, &_arg2
))
8699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8700 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8702 wxPyEndAllowThreads(__tstate
);
8703 if (PyErr_Occurred()) return NULL
;
8704 } _resultobj
= Py_BuildValue("i",_result
);
8708 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8709 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8710 PyObject
* _resultobj
;
8712 wxImageList
* _arg0
;
8714 PyObject
* _argo0
= 0;
8715 PyObject
* _argo1
= 0;
8716 char *_kwnames
[] = { "self","icon", NULL
};
8719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8729 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8730 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8737 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8739 wxPyEndAllowThreads(__tstate
);
8740 if (PyErr_Occurred()) return NULL
;
8741 } _resultobj
= Py_BuildValue("i",_result
);
8745 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8746 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8747 PyObject
* _resultobj
;
8749 wxImageList
* _arg0
;
8752 PyObject
* _argo0
= 0;
8753 PyObject
* _argo2
= 0;
8754 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8767 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8768 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8775 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8777 wxPyEndAllowThreads(__tstate
);
8778 if (PyErr_Occurred()) return NULL
;
8779 } _resultobj
= Py_BuildValue("i",_result
);
8783 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8784 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8785 PyObject
* _resultobj
;
8787 wxImageList
* _arg0
;
8792 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8793 bool _arg6
= (bool ) FALSE
;
8794 PyObject
* _argo0
= 0;
8795 PyObject
* _argo2
= 0;
8796 int tempbool6
= (int) FALSE
;
8797 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8810 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8811 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8816 _arg6
= (bool ) tempbool6
;
8818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8819 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8821 wxPyEndAllowThreads(__tstate
);
8822 if (PyErr_Occurred()) return NULL
;
8823 } _resultobj
= Py_BuildValue("i",_result
);
8827 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8828 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8829 PyObject
* _resultobj
;
8831 wxImageList
* _arg0
;
8832 PyObject
* _argo0
= 0;
8833 char *_kwnames
[] = { "self", NULL
};
8836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8847 _result
= (int )wxImageList_GetImageCount(_arg0
);
8849 wxPyEndAllowThreads(__tstate
);
8850 if (PyErr_Occurred()) return NULL
;
8851 } _resultobj
= Py_BuildValue("i",_result
);
8855 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8856 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8857 PyObject
* _resultobj
;
8859 wxImageList
* _arg0
;
8861 PyObject
* _argo0
= 0;
8862 char *_kwnames
[] = { "self","index", NULL
};
8865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8876 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8878 wxPyEndAllowThreads(__tstate
);
8879 if (PyErr_Occurred()) return NULL
;
8880 } _resultobj
= Py_BuildValue("i",_result
);
8884 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8885 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8886 PyObject
* _resultobj
;
8888 wxImageList
* _arg0
;
8889 PyObject
* _argo0
= 0;
8890 char *_kwnames
[] = { "self", NULL
};
8893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
8896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8904 _result
= (bool )wxImageList_RemoveAll(_arg0
);
8906 wxPyEndAllowThreads(__tstate
);
8907 if (PyErr_Occurred()) return NULL
;
8908 } _resultobj
= Py_BuildValue("i",_result
);
8912 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8913 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8914 PyObject
* _resultobj
;
8915 wxImageList
* _arg0
;
8921 PyObject
* _argo0
= 0;
8922 char *_kwnames
[] = { "self","index", NULL
};
8931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
8934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8941 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8942 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
8944 wxPyEndAllowThreads(__tstate
);
8945 if (PyErr_Occurred()) return NULL
;
8946 } Py_INCREF(Py_None
);
8947 _resultobj
= Py_None
;
8950 o
= PyInt_FromLong((long) (*_arg2
));
8951 _resultobj
= t_output_helper(_resultobj
, o
);
8955 o
= PyInt_FromLong((long) (*_arg3
));
8956 _resultobj
= t_output_helper(_resultobj
, o
);
8961 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
8964 src
= (wxRegion
*) ptr
;
8965 dest
= (wxGDIObject
*) src
;
8966 return (void *) dest
;
8969 static void *SwigwxRegionTowxObject(void *ptr
) {
8972 src
= (wxRegion
*) ptr
;
8973 dest
= (wxObject
*) src
;
8974 return (void *) dest
;
8977 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8978 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8979 PyObject
* _resultobj
;
8981 long _arg0
= (long ) 0;
8982 long _arg1
= (long ) 0;
8983 long _arg2
= (long ) 0;
8984 long _arg3
= (long ) 0;
8985 char *_kwnames
[] = { "x","y","width","height", NULL
};
8989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8993 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
8995 wxPyEndAllowThreads(__tstate
);
8996 if (PyErr_Occurred()) return NULL
;
8998 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
8999 _resultobj
= Py_BuildValue("s",_ptemp
);
9002 _resultobj
= Py_None
;
9007 #define delete_wxRegion(_swigobj) (delete _swigobj)
9008 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9009 PyObject
* _resultobj
;
9011 PyObject
* _argo0
= 0;
9012 char *_kwnames
[] = { "self", NULL
};
9015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9026 delete_wxRegion(_arg0
);
9028 wxPyEndAllowThreads(__tstate
);
9029 if (PyErr_Occurred()) return NULL
;
9030 } Py_INCREF(Py_None
);
9031 _resultobj
= Py_None
;
9035 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9036 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9037 PyObject
* _resultobj
;
9039 PyObject
* _argo0
= 0;
9040 char *_kwnames
[] = { "self", NULL
};
9043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9054 wxRegion_Clear(_arg0
);
9056 wxPyEndAllowThreads(__tstate
);
9057 if (PyErr_Occurred()) return NULL
;
9058 } Py_INCREF(Py_None
);
9059 _resultobj
= Py_None
;
9063 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9064 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9065 PyObject
* _resultobj
;
9066 wxRegionContain _result
;
9070 PyObject
* _argo0
= 0;
9071 char *_kwnames
[] = { "self","x","y", NULL
};
9074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9085 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9087 wxPyEndAllowThreads(__tstate
);
9088 if (PyErr_Occurred()) return NULL
;
9089 } _resultobj
= Py_BuildValue("i",_result
);
9093 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9094 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9095 PyObject
* _resultobj
;
9096 wxRegionContain _result
;
9099 PyObject
* _argo0
= 0;
9101 PyObject
* _obj1
= 0;
9102 char *_kwnames
[] = { "self","pt", NULL
};
9105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9116 if (! wxPoint_helper(_obj1
, &_arg1
))
9120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9121 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9123 wxPyEndAllowThreads(__tstate
);
9124 if (PyErr_Occurred()) return NULL
;
9125 } _resultobj
= Py_BuildValue("i",_result
);
9129 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9130 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9131 PyObject
* _resultobj
;
9132 wxRegionContain _result
;
9135 PyObject
* _argo0
= 0;
9137 PyObject
* _obj1
= 0;
9138 char *_kwnames
[] = { "self","rect", NULL
};
9141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9152 if (! wxRect_helper(_obj1
, &_arg1
))
9156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9157 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9159 wxPyEndAllowThreads(__tstate
);
9160 if (PyErr_Occurred()) return NULL
;
9161 } _resultobj
= Py_BuildValue("i",_result
);
9165 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9166 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9167 PyObject
* _resultobj
;
9168 wxRegionContain _result
;
9174 PyObject
* _argo0
= 0;
9175 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9189 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9191 wxPyEndAllowThreads(__tstate
);
9192 if (PyErr_Occurred()) return NULL
;
9193 } _resultobj
= Py_BuildValue("i",_result
);
9197 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9198 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9199 PyObject
* _resultobj
;
9202 PyObject
* _argo0
= 0;
9203 char *_kwnames
[] = { "self", NULL
};
9207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9218 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9220 wxPyEndAllowThreads(__tstate
);
9221 if (PyErr_Occurred()) return NULL
;
9222 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9223 _resultobj
= Py_BuildValue("s",_ptemp
);
9227 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9228 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9229 PyObject
* _resultobj
;
9236 PyObject
* _argo0
= 0;
9237 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9251 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9253 wxPyEndAllowThreads(__tstate
);
9254 if (PyErr_Occurred()) return NULL
;
9255 } _resultobj
= Py_BuildValue("i",_result
);
9259 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9260 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9261 PyObject
* _resultobj
;
9265 PyObject
* _argo0
= 0;
9267 PyObject
* _obj1
= 0;
9268 char *_kwnames
[] = { "self","rect", NULL
};
9271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9282 if (! wxRect_helper(_obj1
, &_arg1
))
9286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9287 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9289 wxPyEndAllowThreads(__tstate
);
9290 if (PyErr_Occurred()) return NULL
;
9291 } _resultobj
= Py_BuildValue("i",_result
);
9295 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9296 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9297 PyObject
* _resultobj
;
9301 PyObject
* _argo0
= 0;
9302 PyObject
* _argo1
= 0;
9303 char *_kwnames
[] = { "self","region", NULL
};
9306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9316 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9317 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9324 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9326 wxPyEndAllowThreads(__tstate
);
9327 if (PyErr_Occurred()) return NULL
;
9328 } _resultobj
= Py_BuildValue("i",_result
);
9332 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9333 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9334 PyObject
* _resultobj
;
9337 PyObject
* _argo0
= 0;
9338 char *_kwnames
[] = { "self", NULL
};
9341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9352 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9354 wxPyEndAllowThreads(__tstate
);
9355 if (PyErr_Occurred()) return NULL
;
9356 } _resultobj
= Py_BuildValue("i",_result
);
9360 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9361 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9362 PyObject
* _resultobj
;
9369 PyObject
* _argo0
= 0;
9370 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9384 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9386 wxPyEndAllowThreads(__tstate
);
9387 if (PyErr_Occurred()) return NULL
;
9388 } _resultobj
= Py_BuildValue("i",_result
);
9392 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9393 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9394 PyObject
* _resultobj
;
9398 PyObject
* _argo0
= 0;
9400 PyObject
* _obj1
= 0;
9401 char *_kwnames
[] = { "self","rect", NULL
};
9404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9415 if (! wxRect_helper(_obj1
, &_arg1
))
9419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9420 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9422 wxPyEndAllowThreads(__tstate
);
9423 if (PyErr_Occurred()) return NULL
;
9424 } _resultobj
= Py_BuildValue("i",_result
);
9428 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9429 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9430 PyObject
* _resultobj
;
9434 PyObject
* _argo0
= 0;
9435 PyObject
* _argo1
= 0;
9436 char *_kwnames
[] = { "self","region", NULL
};
9439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9449 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9450 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9457 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9459 wxPyEndAllowThreads(__tstate
);
9460 if (PyErr_Occurred()) return NULL
;
9461 } _resultobj
= Py_BuildValue("i",_result
);
9465 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9466 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9467 PyObject
* _resultobj
;
9474 PyObject
* _argo0
= 0;
9475 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9489 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9491 wxPyEndAllowThreads(__tstate
);
9492 if (PyErr_Occurred()) return NULL
;
9493 } _resultobj
= Py_BuildValue("i",_result
);
9497 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9498 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9499 PyObject
* _resultobj
;
9503 PyObject
* _argo0
= 0;
9505 PyObject
* _obj1
= 0;
9506 char *_kwnames
[] = { "self","rect", NULL
};
9509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9520 if (! wxRect_helper(_obj1
, &_arg1
))
9524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9525 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9527 wxPyEndAllowThreads(__tstate
);
9528 if (PyErr_Occurred()) return NULL
;
9529 } _resultobj
= Py_BuildValue("i",_result
);
9533 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9534 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9535 PyObject
* _resultobj
;
9539 PyObject
* _argo0
= 0;
9540 PyObject
* _argo1
= 0;
9541 char *_kwnames
[] = { "self","region", NULL
};
9544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9554 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9555 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9562 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9564 wxPyEndAllowThreads(__tstate
);
9565 if (PyErr_Occurred()) return NULL
;
9566 } _resultobj
= Py_BuildValue("i",_result
);
9570 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9571 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9572 PyObject
* _resultobj
;
9579 PyObject
* _argo0
= 0;
9580 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9594 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9596 wxPyEndAllowThreads(__tstate
);
9597 if (PyErr_Occurred()) return NULL
;
9598 } _resultobj
= Py_BuildValue("i",_result
);
9602 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9603 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9604 PyObject
* _resultobj
;
9608 PyObject
* _argo0
= 0;
9610 PyObject
* _obj1
= 0;
9611 char *_kwnames
[] = { "self","rect", NULL
};
9614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9625 if (! wxRect_helper(_obj1
, &_arg1
))
9629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9630 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9632 wxPyEndAllowThreads(__tstate
);
9633 if (PyErr_Occurred()) return NULL
;
9634 } _resultobj
= Py_BuildValue("i",_result
);
9638 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9639 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9640 PyObject
* _resultobj
;
9644 PyObject
* _argo0
= 0;
9645 PyObject
* _argo1
= 0;
9646 char *_kwnames
[] = { "self","region", NULL
};
9649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9659 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9660 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9667 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9669 wxPyEndAllowThreads(__tstate
);
9670 if (PyErr_Occurred()) return NULL
;
9671 } _resultobj
= Py_BuildValue("i",_result
);
9675 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9676 wxRegionIterator
*src
;
9678 src
= (wxRegionIterator
*) ptr
;
9679 dest
= (wxObject
*) src
;
9680 return (void *) dest
;
9683 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9684 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9685 PyObject
* _resultobj
;
9686 wxRegionIterator
* _result
;
9688 PyObject
* _argo0
= 0;
9689 char *_kwnames
[] = { "region", NULL
};
9693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
9696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9704 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
9706 wxPyEndAllowThreads(__tstate
);
9707 if (PyErr_Occurred()) return NULL
;
9709 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
9710 _resultobj
= Py_BuildValue("s",_ptemp
);
9713 _resultobj
= Py_None
;
9718 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9719 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9720 PyObject
* _resultobj
;
9721 wxRegionIterator
* _arg0
;
9722 PyObject
* _argo0
= 0;
9723 char *_kwnames
[] = { "self", NULL
};
9726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
9729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9737 delete_wxRegionIterator(_arg0
);
9739 wxPyEndAllowThreads(__tstate
);
9740 if (PyErr_Occurred()) return NULL
;
9741 } Py_INCREF(Py_None
);
9742 _resultobj
= Py_None
;
9746 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9747 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9748 PyObject
* _resultobj
;
9750 wxRegionIterator
* _arg0
;
9751 PyObject
* _argo0
= 0;
9752 char *_kwnames
[] = { "self", NULL
};
9755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
9758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9766 _result
= (long )wxRegionIterator_GetX(_arg0
);
9768 wxPyEndAllowThreads(__tstate
);
9769 if (PyErr_Occurred()) return NULL
;
9770 } _resultobj
= Py_BuildValue("l",_result
);
9774 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9775 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9776 PyObject
* _resultobj
;
9778 wxRegionIterator
* _arg0
;
9779 PyObject
* _argo0
= 0;
9780 char *_kwnames
[] = { "self", NULL
};
9783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
9786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9794 _result
= (long )wxRegionIterator_GetY(_arg0
);
9796 wxPyEndAllowThreads(__tstate
);
9797 if (PyErr_Occurred()) return NULL
;
9798 } _resultobj
= Py_BuildValue("l",_result
);
9802 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9803 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9804 PyObject
* _resultobj
;
9806 wxRegionIterator
* _arg0
;
9807 PyObject
* _argo0
= 0;
9808 char *_kwnames
[] = { "self", NULL
};
9811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
9814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9822 _result
= (long )wxRegionIterator_GetW(_arg0
);
9824 wxPyEndAllowThreads(__tstate
);
9825 if (PyErr_Occurred()) return NULL
;
9826 } _resultobj
= Py_BuildValue("l",_result
);
9830 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9831 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9832 PyObject
* _resultobj
;
9834 wxRegionIterator
* _arg0
;
9835 PyObject
* _argo0
= 0;
9836 char *_kwnames
[] = { "self", NULL
};
9839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
9842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9850 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
9852 wxPyEndAllowThreads(__tstate
);
9853 if (PyErr_Occurred()) return NULL
;
9854 } _resultobj
= Py_BuildValue("l",_result
);
9858 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
9859 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9860 PyObject
* _resultobj
;
9862 wxRegionIterator
* _arg0
;
9863 PyObject
* _argo0
= 0;
9864 char *_kwnames
[] = { "self", NULL
};
9867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
9870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
9877 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9878 _result
= (long )wxRegionIterator_GetH(_arg0
);
9880 wxPyEndAllowThreads(__tstate
);
9881 if (PyErr_Occurred()) return NULL
;
9882 } _resultobj
= Py_BuildValue("l",_result
);
9886 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
9887 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9888 PyObject
* _resultobj
;
9890 wxRegionIterator
* _arg0
;
9891 PyObject
* _argo0
= 0;
9892 char *_kwnames
[] = { "self", NULL
};
9895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
9898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
9905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9906 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
9908 wxPyEndAllowThreads(__tstate
);
9909 if (PyErr_Occurred()) return NULL
;
9910 } _resultobj
= Py_BuildValue("l",_result
);
9914 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
9915 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9916 PyObject
* _resultobj
;
9918 wxRegionIterator
* _arg0
;
9919 PyObject
* _argo0
= 0;
9920 char *_kwnames
[] = { "self", NULL
};
9924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
9927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
9934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9935 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
9937 wxPyEndAllowThreads(__tstate
);
9938 if (PyErr_Occurred()) return NULL
;
9939 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9940 _resultobj
= Py_BuildValue("s",_ptemp
);
9944 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
9945 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9946 PyObject
* _resultobj
;
9948 wxRegionIterator
* _arg0
;
9949 PyObject
* _argo0
= 0;
9950 char *_kwnames
[] = { "self", NULL
};
9953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
9956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
9963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9964 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
9966 wxPyEndAllowThreads(__tstate
);
9967 if (PyErr_Occurred()) return NULL
;
9968 } _resultobj
= Py_BuildValue("i",_result
);
9972 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
9973 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9974 PyObject
* _resultobj
;
9975 wxRegionIterator
* _arg0
;
9976 PyObject
* _argo0
= 0;
9977 char *_kwnames
[] = { "self", NULL
};
9980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
9983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
9990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9991 wxRegionIterator_Reset(_arg0
);
9993 wxPyEndAllowThreads(__tstate
);
9994 if (PyErr_Occurred()) return NULL
;
9995 } Py_INCREF(Py_None
);
9996 _resultobj
= Py_None
;
10000 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10003 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10004 PyObject
* _resultobj
;
10005 wxRegionIterator
* _arg0
;
10006 PyObject
* _argo0
= 0;
10007 char *_kwnames
[] = { "self", NULL
};
10010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10021 wxRegionIterator_Next(_arg0
);
10023 wxPyEndAllowThreads(__tstate
);
10024 if (PyErr_Occurred()) return NULL
;
10025 } Py_INCREF(Py_None
);
10026 _resultobj
= Py_None
;
10030 static PyMethodDef gdicMethods
[] = {
10031 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10145 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10146 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10147 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10148 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10149 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10150 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10151 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10152 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10153 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10154 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10155 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10156 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10157 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10158 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10159 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10160 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10161 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10162 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10163 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10164 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10165 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10166 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10167 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
10168 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
10169 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10170 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10171 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10172 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10173 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10174 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10175 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10176 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10177 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10178 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10179 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10180 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10181 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10182 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10183 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10184 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10185 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10186 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10187 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10188 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10189 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10190 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10191 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10192 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10193 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10194 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10195 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10196 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10197 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10198 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10199 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10200 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10201 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10202 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10203 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10204 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10205 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10206 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10207 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10208 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10209 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10210 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10211 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10212 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10213 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10214 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10215 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10216 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10217 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10218 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10219 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10220 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10221 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10222 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10223 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10224 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10225 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10226 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10227 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10228 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10229 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10230 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10231 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10232 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
10233 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10234 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10235 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10236 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10237 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10238 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10239 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10240 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10241 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10242 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10243 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10244 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10245 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10246 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10247 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10248 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10249 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10250 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10251 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10252 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10253 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10254 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10255 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10256 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10257 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10258 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10259 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10260 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10261 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10262 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10263 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10264 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10265 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10266 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10267 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10268 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10269 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10270 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10271 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10272 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10273 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10274 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10275 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10276 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10277 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10278 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10279 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
10280 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10281 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10282 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10289 * This table is used by the pointer type-checker
10291 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10292 { "_signed_long","_long",0},
10293 { "_wxPrintQuality","_wxCoord",0},
10294 { "_wxPrintQuality","_int",0},
10295 { "_wxPrintQuality","_signed_int",0},
10296 { "_wxPrintQuality","_unsigned_int",0},
10297 { "_wxPrintQuality","_wxWindowID",0},
10298 { "_wxPrintQuality","_uint",0},
10299 { "_wxPrintQuality","_EBool",0},
10300 { "_wxPrintQuality","_size_t",0},
10301 { "_wxPrintQuality","_time_t",0},
10302 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
10303 { "_byte","_unsigned_char",0},
10304 { "_long","_unsigned_long",0},
10305 { "_long","_signed_long",0},
10306 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10307 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10308 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10309 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
10310 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10311 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10312 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10313 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10314 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10315 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10316 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10317 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10318 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
10319 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
10320 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10321 { "_size_t","_wxCoord",0},
10322 { "_size_t","_wxPrintQuality",0},
10323 { "_size_t","_time_t",0},
10324 { "_size_t","_unsigned_int",0},
10325 { "_size_t","_int",0},
10326 { "_size_t","_wxWindowID",0},
10327 { "_size_t","_uint",0},
10328 { "_uint","_wxCoord",0},
10329 { "_uint","_wxPrintQuality",0},
10330 { "_uint","_time_t",0},
10331 { "_uint","_size_t",0},
10332 { "_uint","_unsigned_int",0},
10333 { "_uint","_int",0},
10334 { "_uint","_wxWindowID",0},
10335 { "_wxChar","_char",0},
10336 { "_char","_wxChar",0},
10337 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
10338 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10339 { "_EBool","_wxCoord",0},
10340 { "_EBool","_wxPrintQuality",0},
10341 { "_EBool","_signed_int",0},
10342 { "_EBool","_int",0},
10343 { "_EBool","_wxWindowID",0},
10344 { "_unsigned_long","_long",0},
10345 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10346 { "_signed_int","_wxCoord",0},
10347 { "_signed_int","_wxPrintQuality",0},
10348 { "_signed_int","_EBool",0},
10349 { "_signed_int","_wxWindowID",0},
10350 { "_signed_int","_int",0},
10351 { "_WXTYPE","_short",0},
10352 { "_WXTYPE","_signed_short",0},
10353 { "_WXTYPE","_unsigned_short",0},
10354 { "_unsigned_short","_WXTYPE",0},
10355 { "_unsigned_short","_short",0},
10356 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10357 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10358 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10359 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10360 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10361 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10362 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10363 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10364 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
10365 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
10366 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10367 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10368 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
10369 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10370 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10371 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
10372 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10373 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10374 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10375 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10376 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10377 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10378 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10379 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10380 { "_signed_short","_WXTYPE",0},
10381 { "_signed_short","_short",0},
10382 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
10383 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
10384 { "_unsigned_char","_byte",0},
10385 { "_unsigned_int","_wxCoord",0},
10386 { "_unsigned_int","_wxPrintQuality",0},
10387 { "_unsigned_int","_time_t",0},
10388 { "_unsigned_int","_size_t",0},
10389 { "_unsigned_int","_uint",0},
10390 { "_unsigned_int","_wxWindowID",0},
10391 { "_unsigned_int","_int",0},
10392 { "_short","_WXTYPE",0},
10393 { "_short","_unsigned_short",0},
10394 { "_short","_signed_short",0},
10395 { "_wxWindowID","_wxCoord",0},
10396 { "_wxWindowID","_wxPrintQuality",0},
10397 { "_wxWindowID","_time_t",0},
10398 { "_wxWindowID","_size_t",0},
10399 { "_wxWindowID","_EBool",0},
10400 { "_wxWindowID","_uint",0},
10401 { "_wxWindowID","_int",0},
10402 { "_wxWindowID","_signed_int",0},
10403 { "_wxWindowID","_unsigned_int",0},
10404 { "_int","_wxCoord",0},
10405 { "_int","_wxPrintQuality",0},
10406 { "_int","_time_t",0},
10407 { "_int","_size_t",0},
10408 { "_int","_EBool",0},
10409 { "_int","_uint",0},
10410 { "_int","_wxWindowID",0},
10411 { "_int","_unsigned_int",0},
10412 { "_int","_signed_int",0},
10413 { "_time_t","_wxCoord",0},
10414 { "_time_t","_wxPrintQuality",0},
10415 { "_time_t","_unsigned_int",0},
10416 { "_time_t","_int",0},
10417 { "_time_t","_wxWindowID",0},
10418 { "_time_t","_uint",0},
10419 { "_time_t","_size_t",0},
10420 { "_wxCoord","_int",0},
10421 { "_wxCoord","_signed_int",0},
10422 { "_wxCoord","_unsigned_int",0},
10423 { "_wxCoord","_wxWindowID",0},
10424 { "_wxCoord","_uint",0},
10425 { "_wxCoord","_EBool",0},
10426 { "_wxCoord","_size_t",0},
10427 { "_wxCoord","_time_t",0},
10428 { "_wxCoord","_wxPrintQuality",0},
10431 static PyObject
*SWIG_globals
;
10435 SWIGEXPORT(void) initgdic() {
10437 SWIG_globals
= SWIG_newvarlink();
10438 m
= Py_InitModule("gdic", gdicMethods
);
10439 d
= PyModule_GetDict(m
);
10440 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10441 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10442 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10443 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10444 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10445 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10446 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10447 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10448 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10449 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10450 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10451 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10452 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10453 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10454 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10455 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10456 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10457 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10458 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10459 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10460 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10461 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10462 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10463 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10464 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10465 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10466 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10467 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10468 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10469 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10470 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10471 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10472 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10473 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10474 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10475 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10476 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10477 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10478 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10479 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10480 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10481 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10482 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10483 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10484 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10485 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10486 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10487 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10488 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10489 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10490 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10491 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10492 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10493 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10494 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10495 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10496 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10499 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10500 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);