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_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
5154 static PyObject
*_wrap_wxDC_DrawRectangleRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5155 PyObject
* _resultobj
;
5158 PyObject
* _argo0
= 0;
5160 PyObject
* _obj1
= 0;
5161 char *_kwnames
[] = { "self","rect", NULL
};
5164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawRectangleRect",_kwnames
,&_argo0
,&_obj1
))
5167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
5175 if (! wxRect_helper(_obj1
, &_arg1
))
5179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5180 wxDC_DrawRectangleRect(_arg0
,*_arg1
);
5182 wxPyEndAllowThreads(__tstate
);
5183 if (PyErr_Occurred()) return NULL
;
5184 } Py_INCREF(Py_None
);
5185 _resultobj
= Py_None
;
5189 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5190 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5191 PyObject
* _resultobj
;
5197 PyObject
* _argo0
= 0;
5198 PyObject
* _obj1
= 0;
5199 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5212 _arg1
= wxString_in_helper(_obj1
);
5217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5218 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5220 wxPyEndAllowThreads(__tstate
);
5221 if (PyErr_Occurred()) return NULL
;
5222 } Py_INCREF(Py_None
);
5223 _resultobj
= Py_None
;
5231 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5232 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5233 PyObject
* _resultobj
;
5239 long _arg5
= (long ) 20;
5240 PyObject
* _argo0
= 0;
5241 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5255 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5257 wxPyEndAllowThreads(__tstate
);
5258 if (PyErr_Occurred()) return NULL
;
5259 } Py_INCREF(Py_None
);
5260 _resultobj
= Py_None
;
5264 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5265 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5266 PyObject
* _resultobj
;
5270 PyObject
* _argo0
= 0;
5272 PyObject
* _obj2
= 0;
5273 char *_kwnames
[] = { "self","points", NULL
};
5276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5287 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5288 if (_arg2
== NULL
) {
5296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5297 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5299 wxPyEndAllowThreads(__tstate
);
5300 if (PyErr_Occurred()) return NULL
;
5301 } Py_INCREF(Py_None
);
5302 _resultobj
= Py_None
;
5309 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5310 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5311 PyObject
* _resultobj
;
5316 PyObject
* _argo0
= 0;
5317 PyObject
* _obj1
= 0;
5318 char *_kwnames
[] = { "self","text","x","y", NULL
};
5321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5331 _arg1
= wxString_in_helper(_obj1
);
5336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5337 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5339 wxPyEndAllowThreads(__tstate
);
5340 if (PyErr_Occurred()) return NULL
;
5341 } Py_INCREF(Py_None
);
5342 _resultobj
= Py_None
;
5350 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5351 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5352 PyObject
* _resultobj
;
5354 PyObject
* _argo0
= 0;
5355 char *_kwnames
[] = { "self", NULL
};
5358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5371 wxPyEndAllowThreads(__tstate
);
5372 if (PyErr_Occurred()) return NULL
;
5373 } Py_INCREF(Py_None
);
5374 _resultobj
= Py_None
;
5378 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5379 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5380 PyObject
* _resultobj
;
5382 PyObject
* _argo0
= 0;
5383 char *_kwnames
[] = { "self", NULL
};
5386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5397 wxDC_EndDrawing(_arg0
);
5399 wxPyEndAllowThreads(__tstate
);
5400 if (PyErr_Occurred()) return NULL
;
5401 } Py_INCREF(Py_None
);
5402 _resultobj
= Py_None
;
5406 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5407 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5408 PyObject
* _resultobj
;
5410 PyObject
* _argo0
= 0;
5411 char *_kwnames
[] = { "self", NULL
};
5414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5425 wxDC_EndPage(_arg0
);
5427 wxPyEndAllowThreads(__tstate
);
5428 if (PyErr_Occurred()) return NULL
;
5429 } Py_INCREF(Py_None
);
5430 _resultobj
= Py_None
;
5434 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5435 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5436 PyObject
* _resultobj
;
5442 int _arg4
= (int ) wxFLOOD_SURFACE
;
5443 PyObject
* _argo0
= 0;
5445 PyObject
* _obj3
= 0;
5446 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5460 if (! wxColour_helper(_obj3
, &_arg3
))
5464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5465 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5467 wxPyEndAllowThreads(__tstate
);
5468 if (PyErr_Occurred()) return NULL
;
5469 } _resultobj
= Py_BuildValue("i",_result
);
5473 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5474 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5475 PyObject
* _resultobj
;
5478 PyObject
* _argo0
= 0;
5479 char *_kwnames
[] = { "self", NULL
};
5483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5494 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
5496 wxPyEndAllowThreads(__tstate
);
5497 if (PyErr_Occurred()) return NULL
;
5498 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5499 _resultobj
= Py_BuildValue("s",_ptemp
);
5503 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5504 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5505 PyObject
* _resultobj
;
5508 PyObject
* _argo0
= 0;
5509 char *_kwnames
[] = { "self", NULL
};
5513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5524 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
5526 wxPyEndAllowThreads(__tstate
);
5527 if (PyErr_Occurred()) return NULL
;
5528 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5529 _resultobj
= Py_BuildValue("s",_ptemp
);
5533 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5534 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5535 PyObject
* _resultobj
;
5538 PyObject
* _argo0
= 0;
5539 char *_kwnames
[] = { "self", NULL
};
5542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5553 _result
= (long )wxDC_GetCharHeight(_arg0
);
5555 wxPyEndAllowThreads(__tstate
);
5556 if (PyErr_Occurred()) return NULL
;
5557 } _resultobj
= Py_BuildValue("l",_result
);
5561 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5562 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5563 PyObject
* _resultobj
;
5566 PyObject
* _argo0
= 0;
5567 char *_kwnames
[] = { "self", NULL
};
5570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5581 _result
= (long )wxDC_GetCharWidth(_arg0
);
5583 wxPyEndAllowThreads(__tstate
);
5584 if (PyErr_Occurred()) return NULL
;
5585 } _resultobj
= Py_BuildValue("l",_result
);
5589 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5590 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5591 PyObject
* _resultobj
;
5601 PyObject
* _argo0
= 0;
5602 char *_kwnames
[] = { "self", NULL
};
5617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5628 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5630 wxPyEndAllowThreads(__tstate
);
5631 if (PyErr_Occurred()) return NULL
;
5632 } Py_INCREF(Py_None
);
5633 _resultobj
= Py_None
;
5636 o
= PyInt_FromLong((long) (*_arg1
));
5637 _resultobj
= t_output_helper(_resultobj
, o
);
5641 o
= PyInt_FromLong((long) (*_arg2
));
5642 _resultobj
= t_output_helper(_resultobj
, o
);
5646 o
= PyInt_FromLong((long) (*_arg3
));
5647 _resultobj
= t_output_helper(_resultobj
, o
);
5651 o
= PyInt_FromLong((long) (*_arg4
));
5652 _resultobj
= t_output_helper(_resultobj
, o
);
5657 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5658 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5659 PyObject
* _resultobj
;
5662 PyObject
* _argo0
= 0;
5663 char *_kwnames
[] = { "self", NULL
};
5667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5678 _result
= new wxFont (wxDC_GetFont(_arg0
));
5680 wxPyEndAllowThreads(__tstate
);
5681 if (PyErr_Occurred()) return NULL
;
5682 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
5683 _resultobj
= Py_BuildValue("s",_ptemp
);
5687 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5688 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5689 PyObject
* _resultobj
;
5692 PyObject
* _argo0
= 0;
5693 char *_kwnames
[] = { "self", NULL
};
5696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5707 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5709 wxPyEndAllowThreads(__tstate
);
5710 if (PyErr_Occurred()) return NULL
;
5711 } _resultobj
= Py_BuildValue("i",_result
);
5715 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5716 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5717 PyObject
* _resultobj
;
5723 PyObject
* _argo0
= 0;
5724 char *_kwnames
[] = { "self", NULL
};
5733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5744 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5746 wxPyEndAllowThreads(__tstate
);
5747 if (PyErr_Occurred()) return NULL
;
5748 } Py_INCREF(Py_None
);
5749 _resultobj
= Py_None
;
5752 o
= PyFloat_FromDouble((double) (*_arg1
));
5753 _resultobj
= t_output_helper(_resultobj
, o
);
5757 o
= PyFloat_FromDouble((double) (*_arg2
));
5758 _resultobj
= t_output_helper(_resultobj
, o
);
5763 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5764 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5765 PyObject
* _resultobj
;
5768 PyObject
* _argo0
= 0;
5769 char *_kwnames
[] = { "self", NULL
};
5772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5783 _result
= (int )wxDC_GetMapMode(_arg0
);
5785 wxPyEndAllowThreads(__tstate
);
5786 if (PyErr_Occurred()) return NULL
;
5787 } _resultobj
= Py_BuildValue("i",_result
);
5791 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5792 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5793 PyObject
* _resultobj
;
5796 PyObject
* _argo0
= 0;
5797 char *_kwnames
[] = { "self", NULL
};
5800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
5803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5811 _result
= (bool )wxDC_GetOptimization(_arg0
);
5813 wxPyEndAllowThreads(__tstate
);
5814 if (PyErr_Occurred()) return NULL
;
5815 } _resultobj
= Py_BuildValue("i",_result
);
5819 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5820 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5821 PyObject
* _resultobj
;
5824 PyObject
* _argo0
= 0;
5825 char *_kwnames
[] = { "self", NULL
};
5829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
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_GetPen. Expected _wxDC_p.");
5839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5840 _result
= new wxPen (wxDC_GetPen(_arg0
));
5842 wxPyEndAllowThreads(__tstate
);
5843 if (PyErr_Occurred()) return NULL
;
5844 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
5845 _resultobj
= Py_BuildValue("s",_ptemp
);
5849 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
5850 wxColour
* wc
= new wxColour();
5851 self
->GetPixel(x
, y
, wc
);
5854 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5855 PyObject
* _resultobj
;
5860 PyObject
* _argo0
= 0;
5861 char *_kwnames
[] = { "self","x","y", NULL
};
5865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5876 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
5878 wxPyEndAllowThreads(__tstate
);
5879 if (PyErr_Occurred()) return NULL
;
5881 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5882 _resultobj
= Py_BuildValue("s",_ptemp
);
5885 _resultobj
= Py_None
;
5890 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
5891 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5892 PyObject
* _resultobj
;
5898 PyObject
* _argo0
= 0;
5899 char *_kwnames
[] = { "self", NULL
};
5908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
5911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
5918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5919 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
5921 wxPyEndAllowThreads(__tstate
);
5922 if (PyErr_Occurred()) return NULL
;
5923 } Py_INCREF(Py_None
);
5924 _resultobj
= Py_None
;
5927 o
= PyInt_FromLong((long) (*_arg1
));
5928 _resultobj
= t_output_helper(_resultobj
, o
);
5932 o
= PyInt_FromLong((long) (*_arg2
));
5933 _resultobj
= t_output_helper(_resultobj
, o
);
5938 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
5939 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5940 PyObject
* _resultobj
;
5943 PyObject
* _argo0
= 0;
5944 char *_kwnames
[] = { "self", NULL
};
5948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
5951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
5958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5959 _result
= new wxSize (wxDC_GetSize(_arg0
));
5961 wxPyEndAllowThreads(__tstate
);
5962 if (PyErr_Occurred()) return NULL
;
5963 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5964 _resultobj
= Py_BuildValue("s",_ptemp
);
5968 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
5969 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5970 PyObject
* _resultobj
;
5973 PyObject
* _argo0
= 0;
5974 char *_kwnames
[] = { "self", NULL
};
5978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
5981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
5988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5989 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
5991 wxPyEndAllowThreads(__tstate
);
5992 if (PyErr_Occurred()) return NULL
;
5993 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5994 _resultobj
= Py_BuildValue("s",_ptemp
);
5998 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
5999 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6000 PyObject
* _resultobj
;
6003 PyObject
* _argo0
= 0;
6004 char *_kwnames
[] = { "self", NULL
};
6008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6019 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6021 wxPyEndAllowThreads(__tstate
);
6022 if (PyErr_Occurred()) return NULL
;
6023 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6024 _resultobj
= Py_BuildValue("s",_ptemp
);
6028 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6029 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6030 PyObject
* _resultobj
;
6037 PyObject
* _argo0
= 0;
6038 PyObject
* _obj1
= 0;
6039 char *_kwnames
[] = { "self","string", NULL
};
6048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6058 _arg1
= wxString_in_helper(_obj1
);
6063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6064 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6066 wxPyEndAllowThreads(__tstate
);
6067 if (PyErr_Occurred()) return NULL
;
6068 } Py_INCREF(Py_None
);
6069 _resultobj
= Py_None
;
6072 o
= PyInt_FromLong((long) (*_arg2
));
6073 _resultobj
= t_output_helper(_resultobj
, o
);
6077 o
= PyInt_FromLong((long) (*_arg3
));
6078 _resultobj
= t_output_helper(_resultobj
, o
);
6087 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6088 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6089 PyObject
* _resultobj
;
6100 wxFont
* _arg6
= (wxFont
*) NULL
;
6101 PyObject
* _argo0
= 0;
6102 PyObject
* _obj1
= 0;
6103 PyObject
* _argo6
= 0;
6104 char *_kwnames
[] = { "self","string","font", NULL
};
6119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6129 _arg1
= wxString_in_helper(_obj1
);
6134 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6135 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6142 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6144 wxPyEndAllowThreads(__tstate
);
6145 if (PyErr_Occurred()) return NULL
;
6146 } Py_INCREF(Py_None
);
6147 _resultobj
= Py_None
;
6150 o
= PyInt_FromLong((long) (*_arg2
));
6151 _resultobj
= t_output_helper(_resultobj
, o
);
6155 o
= PyInt_FromLong((long) (*_arg3
));
6156 _resultobj
= t_output_helper(_resultobj
, o
);
6160 o
= PyInt_FromLong((long) (*_arg4
));
6161 _resultobj
= t_output_helper(_resultobj
, o
);
6165 o
= PyInt_FromLong((long) (*_arg5
));
6166 _resultobj
= t_output_helper(_resultobj
, o
);
6175 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6176 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6177 PyObject
* _resultobj
;
6180 PyObject
* _argo0
= 0;
6181 char *_kwnames
[] = { "self", NULL
};
6185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6196 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6198 wxPyEndAllowThreads(__tstate
);
6199 if (PyErr_Occurred()) return NULL
;
6200 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6201 _resultobj
= Py_BuildValue("s",_ptemp
);
6205 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6206 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6207 PyObject
* _resultobj
;
6213 PyObject
* _argo0
= 0;
6214 char *_kwnames
[] = { "self", NULL
};
6223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6234 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6236 wxPyEndAllowThreads(__tstate
);
6237 if (PyErr_Occurred()) return NULL
;
6238 } Py_INCREF(Py_None
);
6239 _resultobj
= Py_None
;
6242 o
= PyFloat_FromDouble((double) (*_arg1
));
6243 _resultobj
= t_output_helper(_resultobj
, o
);
6247 o
= PyFloat_FromDouble((double) (*_arg2
));
6248 _resultobj
= t_output_helper(_resultobj
, o
);
6253 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6254 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6255 PyObject
* _resultobj
;
6259 PyObject
* _argo0
= 0;
6260 char *_kwnames
[] = { "self","x", NULL
};
6263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6274 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6276 wxPyEndAllowThreads(__tstate
);
6277 if (PyErr_Occurred()) return NULL
;
6278 } _resultobj
= Py_BuildValue("l",_result
);
6282 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6283 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6284 PyObject
* _resultobj
;
6288 PyObject
* _argo0
= 0;
6289 char *_kwnames
[] = { "self","x", NULL
};
6292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6303 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6305 wxPyEndAllowThreads(__tstate
);
6306 if (PyErr_Occurred()) return NULL
;
6307 } _resultobj
= Py_BuildValue("l",_result
);
6311 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6312 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6313 PyObject
* _resultobj
;
6317 PyObject
* _argo0
= 0;
6318 char *_kwnames
[] = { "self","y", NULL
};
6321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6332 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6334 wxPyEndAllowThreads(__tstate
);
6335 if (PyErr_Occurred()) return NULL
;
6336 } _resultobj
= Py_BuildValue("l",_result
);
6340 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6341 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6342 PyObject
* _resultobj
;
6346 PyObject
* _argo0
= 0;
6347 char *_kwnames
[] = { "self","y", NULL
};
6350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6361 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6363 wxPyEndAllowThreads(__tstate
);
6364 if (PyErr_Occurred()) return NULL
;
6365 } _resultobj
= Py_BuildValue("l",_result
);
6369 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6370 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6371 PyObject
* _resultobj
;
6374 PyObject
* _argo0
= 0;
6375 char *_kwnames
[] = { "self", NULL
};
6378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6389 _result
= (long )wxDC_MaxX(_arg0
);
6391 wxPyEndAllowThreads(__tstate
);
6392 if (PyErr_Occurred()) return NULL
;
6393 } _resultobj
= Py_BuildValue("l",_result
);
6397 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6398 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6399 PyObject
* _resultobj
;
6402 PyObject
* _argo0
= 0;
6403 char *_kwnames
[] = { "self", NULL
};
6406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6417 _result
= (long )wxDC_MaxY(_arg0
);
6419 wxPyEndAllowThreads(__tstate
);
6420 if (PyErr_Occurred()) return NULL
;
6421 } _resultobj
= Py_BuildValue("l",_result
);
6425 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6426 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6427 PyObject
* _resultobj
;
6430 PyObject
* _argo0
= 0;
6431 char *_kwnames
[] = { "self", NULL
};
6434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6445 _result
= (long )wxDC_MinX(_arg0
);
6447 wxPyEndAllowThreads(__tstate
);
6448 if (PyErr_Occurred()) return NULL
;
6449 } _resultobj
= Py_BuildValue("l",_result
);
6453 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6454 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6455 PyObject
* _resultobj
;
6458 PyObject
* _argo0
= 0;
6459 char *_kwnames
[] = { "self", NULL
};
6462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6473 _result
= (long )wxDC_MinY(_arg0
);
6475 wxPyEndAllowThreads(__tstate
);
6476 if (PyErr_Occurred()) return NULL
;
6477 } _resultobj
= Py_BuildValue("l",_result
);
6481 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6482 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6483 PyObject
* _resultobj
;
6486 PyObject
* _argo0
= 0;
6487 char *_kwnames
[] = { "self", NULL
};
6490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6501 _result
= (bool )wxDC_Ok(_arg0
);
6503 wxPyEndAllowThreads(__tstate
);
6504 if (PyErr_Occurred()) return NULL
;
6505 } _resultobj
= Py_BuildValue("i",_result
);
6509 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6510 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6511 PyObject
* _resultobj
;
6515 PyObject
* _argo0
= 0;
6516 char *_kwnames
[] = { "self","x","y", NULL
};
6519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6530 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6532 wxPyEndAllowThreads(__tstate
);
6533 if (PyErr_Occurred()) return NULL
;
6534 } Py_INCREF(Py_None
);
6535 _resultobj
= Py_None
;
6539 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6540 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6541 PyObject
* _resultobj
;
6544 PyObject
* _argo0
= 0;
6545 PyObject
* _argo1
= 0;
6546 char *_kwnames
[] = { "self","brush", NULL
};
6549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
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_SetBackground. Expected _wxDC_p.");
6559 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6560 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6567 wxDC_SetBackground(_arg0
,*_arg1
);
6569 wxPyEndAllowThreads(__tstate
);
6570 if (PyErr_Occurred()) return NULL
;
6571 } Py_INCREF(Py_None
);
6572 _resultobj
= Py_None
;
6576 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6577 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6578 PyObject
* _resultobj
;
6581 PyObject
* _argo0
= 0;
6582 char *_kwnames
[] = { "self","mode", NULL
};
6585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6596 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6598 wxPyEndAllowThreads(__tstate
);
6599 if (PyErr_Occurred()) return NULL
;
6600 } Py_INCREF(Py_None
);
6601 _resultobj
= Py_None
;
6605 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6606 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6607 PyObject
* _resultobj
;
6613 PyObject
* _argo0
= 0;
6614 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6628 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6630 wxPyEndAllowThreads(__tstate
);
6631 if (PyErr_Occurred()) return NULL
;
6632 } Py_INCREF(Py_None
);
6633 _resultobj
= Py_None
;
6637 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6638 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6639 PyObject
* _resultobj
;
6642 PyObject
* _argo0
= 0;
6643 PyObject
* _argo1
= 0;
6644 char *_kwnames
[] = { "self","region", NULL
};
6647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
6650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
6657 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6658 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
6659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
6664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6665 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
6667 wxPyEndAllowThreads(__tstate
);
6668 if (PyErr_Occurred()) return NULL
;
6669 } Py_INCREF(Py_None
);
6670 _resultobj
= Py_None
;
6674 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6675 static PyObject
*_wrap_wxDC_SetClippingRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6676 PyObject
* _resultobj
;
6679 PyObject
* _argo0
= 0;
6681 PyObject
* _obj1
= 0;
6682 char *_kwnames
[] = { "self","rect", NULL
};
6685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRect",_kwnames
,&_argo0
,&_obj1
))
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_SetClippingRect. Expected _wxDC_p.");
6696 if (! wxRect_helper(_obj1
, &_arg1
))
6700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6701 wxDC_SetClippingRect(_arg0
,*_arg1
);
6703 wxPyEndAllowThreads(__tstate
);
6704 if (PyErr_Occurred()) return NULL
;
6705 } Py_INCREF(Py_None
);
6706 _resultobj
= Py_None
;
6710 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6711 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6712 PyObject
* _resultobj
;
6715 PyObject
* _argo0
= 0;
6716 PyObject
* _argo1
= 0;
6717 char *_kwnames
[] = { "self","colourMap", NULL
};
6720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6730 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6731 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6738 wxDC_SetPalette(_arg0
,*_arg1
);
6740 wxPyEndAllowThreads(__tstate
);
6741 if (PyErr_Occurred()) return NULL
;
6742 } Py_INCREF(Py_None
);
6743 _resultobj
= Py_None
;
6747 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6748 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6749 PyObject
* _resultobj
;
6752 PyObject
* _argo0
= 0;
6753 PyObject
* _argo1
= 0;
6754 char *_kwnames
[] = { "self","brush", NULL
};
6757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6767 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6768 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6775 wxDC_SetBrush(_arg0
,*_arg1
);
6777 wxPyEndAllowThreads(__tstate
);
6778 if (PyErr_Occurred()) return NULL
;
6779 } Py_INCREF(Py_None
);
6780 _resultobj
= Py_None
;
6784 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6785 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6786 PyObject
* _resultobj
;
6789 PyObject
* _argo0
= 0;
6790 PyObject
* _argo1
= 0;
6791 char *_kwnames
[] = { "self","font", NULL
};
6794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6804 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6805 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6812 wxDC_SetFont(_arg0
,*_arg1
);
6814 wxPyEndAllowThreads(__tstate
);
6815 if (PyErr_Occurred()) return NULL
;
6816 } Py_INCREF(Py_None
);
6817 _resultobj
= Py_None
;
6821 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
6822 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6823 PyObject
* _resultobj
;
6826 PyObject
* _argo0
= 0;
6827 char *_kwnames
[] = { "self","function", NULL
};
6830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
6833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6841 wxDC_SetLogicalFunction(_arg0
,_arg1
);
6843 wxPyEndAllowThreads(__tstate
);
6844 if (PyErr_Occurred()) return NULL
;
6845 } Py_INCREF(Py_None
);
6846 _resultobj
= Py_None
;
6850 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6851 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6852 PyObject
* _resultobj
;
6856 PyObject
* _argo0
= 0;
6857 char *_kwnames
[] = { "self","x","y", NULL
};
6860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6871 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
6873 wxPyEndAllowThreads(__tstate
);
6874 if (PyErr_Occurred()) return NULL
;
6875 } Py_INCREF(Py_None
);
6876 _resultobj
= Py_None
;
6880 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
6881 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6882 PyObject
* _resultobj
;
6885 PyObject
* _argo0
= 0;
6886 char *_kwnames
[] = { "self","mode", NULL
};
6889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
6892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6900 wxDC_SetMapMode(_arg0
,_arg1
);
6902 wxPyEndAllowThreads(__tstate
);
6903 if (PyErr_Occurred()) return NULL
;
6904 } Py_INCREF(Py_None
);
6905 _resultobj
= Py_None
;
6909 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
6910 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6911 PyObject
* _resultobj
;
6914 PyObject
* _argo0
= 0;
6916 char *_kwnames
[] = { "self","optimize", NULL
};
6919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
6922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6928 _arg1
= (bool ) tempbool1
;
6930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6931 wxDC_SetOptimization(_arg0
,_arg1
);
6933 wxPyEndAllowThreads(__tstate
);
6934 if (PyErr_Occurred()) return NULL
;
6935 } Py_INCREF(Py_None
);
6936 _resultobj
= Py_None
;
6940 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
6941 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6942 PyObject
* _resultobj
;
6945 PyObject
* _argo0
= 0;
6946 PyObject
* _argo1
= 0;
6947 char *_kwnames
[] = { "self","pen", NULL
};
6950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
6953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
6960 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6961 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
6962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
6967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6968 wxDC_SetPen(_arg0
,*_arg1
);
6970 wxPyEndAllowThreads(__tstate
);
6971 if (PyErr_Occurred()) return NULL
;
6972 } Py_INCREF(Py_None
);
6973 _resultobj
= Py_None
;
6977 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
6978 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6979 PyObject
* _resultobj
;
6982 PyObject
* _argo0
= 0;
6984 PyObject
* _obj1
= 0;
6985 char *_kwnames
[] = { "self","colour", NULL
};
6988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
6991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
6999 if (! wxColour_helper(_obj1
, &_arg1
))
7003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7004 wxDC_SetTextBackground(_arg0
,*_arg1
);
7006 wxPyEndAllowThreads(__tstate
);
7007 if (PyErr_Occurred()) return NULL
;
7008 } Py_INCREF(Py_None
);
7009 _resultobj
= Py_None
;
7013 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7014 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7015 PyObject
* _resultobj
;
7018 PyObject
* _argo0
= 0;
7020 PyObject
* _obj1
= 0;
7021 char *_kwnames
[] = { "self","colour", NULL
};
7024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7035 if (! wxColour_helper(_obj1
, &_arg1
))
7039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7040 wxDC_SetTextForeground(_arg0
,*_arg1
);
7042 wxPyEndAllowThreads(__tstate
);
7043 if (PyErr_Occurred()) return NULL
;
7044 } Py_INCREF(Py_None
);
7045 _resultobj
= Py_None
;
7049 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7050 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7051 PyObject
* _resultobj
;
7055 PyObject
* _argo0
= 0;
7056 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7070 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7072 wxPyEndAllowThreads(__tstate
);
7073 if (PyErr_Occurred()) return NULL
;
7074 } Py_INCREF(Py_None
);
7075 _resultobj
= Py_None
;
7079 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7080 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7081 PyObject
* _resultobj
;
7085 PyObject
* _argo0
= 0;
7086 PyObject
* _obj1
= 0;
7087 char *_kwnames
[] = { "self","message", NULL
};
7090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7100 _arg1
= wxString_in_helper(_obj1
);
7105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7106 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7108 wxPyEndAllowThreads(__tstate
);
7109 if (PyErr_Occurred()) return NULL
;
7110 } _resultobj
= Py_BuildValue("i",_result
);
7118 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7119 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7120 PyObject
* _resultobj
;
7122 PyObject
* _argo0
= 0;
7123 char *_kwnames
[] = { "self", NULL
};
7126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7137 wxDC_StartPage(_arg0
);
7139 wxPyEndAllowThreads(__tstate
);
7140 if (PyErr_Occurred()) return NULL
;
7141 } Py_INCREF(Py_None
);
7142 _resultobj
= Py_None
;
7146 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7147 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7148 PyObject
* _resultobj
;
7153 int _arg4
= (int ) FALSE
;
7154 PyObject
* _argo0
= 0;
7155 PyObject
* _argo1
= 0;
7156 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7169 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7170 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7177 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7179 wxPyEndAllowThreads(__tstate
);
7180 if (PyErr_Occurred()) return NULL
;
7181 } Py_INCREF(Py_None
);
7182 _resultobj
= Py_None
;
7186 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7187 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7188 PyObject
* _resultobj
;
7191 PyObject
* _argo0
= 0;
7192 char *_kwnames
[] = { "self", NULL
};
7195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7206 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7208 wxPyEndAllowThreads(__tstate
);
7209 if (PyErr_Occurred()) return NULL
;
7210 } _resultobj
= Py_BuildValue("i",_result
);
7214 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7215 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7216 PyObject
* _resultobj
;
7219 PyObject
* _argo0
= 0;
7220 char *_kwnames
[] = { "self", NULL
};
7223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7234 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7236 wxPyEndAllowThreads(__tstate
);
7237 if (PyErr_Occurred()) return NULL
;
7238 } _resultobj
= Py_BuildValue("i",_result
);
7242 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7243 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7244 PyObject
* _resultobj
;
7247 PyObject
* _argo0
= 0;
7248 char *_kwnames
[] = { "self", NULL
};
7251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7262 _result
= (int )wxDC_GetDepth(_arg0
);
7264 wxPyEndAllowThreads(__tstate
);
7265 if (PyErr_Occurred()) return NULL
;
7266 } _resultobj
= Py_BuildValue("i",_result
);
7270 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7271 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7272 PyObject
* _resultobj
;
7275 PyObject
* _argo0
= 0;
7276 char *_kwnames
[] = { "self", NULL
};
7280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7291 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7293 wxPyEndAllowThreads(__tstate
);
7294 if (PyErr_Occurred()) return NULL
;
7295 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7296 _resultobj
= Py_BuildValue("s",_ptemp
);
7300 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7301 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7302 PyObject
* _resultobj
;
7308 PyObject
* _argo0
= 0;
7309 char *_kwnames
[] = { "self", NULL
};
7318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7329 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7331 wxPyEndAllowThreads(__tstate
);
7332 if (PyErr_Occurred()) return NULL
;
7333 } Py_INCREF(Py_None
);
7334 _resultobj
= Py_None
;
7337 o
= PyInt_FromLong((long) (*_arg1
));
7338 _resultobj
= t_output_helper(_resultobj
, o
);
7342 o
= PyInt_FromLong((long) (*_arg2
));
7343 _resultobj
= t_output_helper(_resultobj
, o
);
7348 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7349 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7350 PyObject
* _resultobj
;
7354 PyObject
* _argo0
= 0;
7355 char *_kwnames
[] = { "self","x","y", NULL
};
7358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7369 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7371 wxPyEndAllowThreads(__tstate
);
7372 if (PyErr_Occurred()) return NULL
;
7373 } Py_INCREF(Py_None
);
7374 _resultobj
= Py_None
;
7378 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7379 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7380 PyObject
* _resultobj
;
7386 PyObject
* _argo0
= 0;
7387 char *_kwnames
[] = { "self", NULL
};
7396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7407 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7409 wxPyEndAllowThreads(__tstate
);
7410 if (PyErr_Occurred()) return NULL
;
7411 } Py_INCREF(Py_None
);
7412 _resultobj
= Py_None
;
7415 o
= PyInt_FromLong((long) (*_arg1
));
7416 _resultobj
= t_output_helper(_resultobj
, o
);
7420 o
= PyInt_FromLong((long) (*_arg2
));
7421 _resultobj
= t_output_helper(_resultobj
, o
);
7426 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7427 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7428 PyObject
* _resultobj
;
7432 PyObject
* _argo0
= 0;
7435 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7447 _arg1
= (bool ) tempbool1
;
7448 _arg2
= (bool ) tempbool2
;
7450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7451 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7453 wxPyEndAllowThreads(__tstate
);
7454 if (PyErr_Occurred()) return NULL
;
7455 } Py_INCREF(Py_None
);
7456 _resultobj
= Py_None
;
7460 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7461 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7462 PyObject
* _resultobj
;
7466 PyObject
* _argo0
= 0;
7467 char *_kwnames
[] = { "self","x","y", NULL
};
7470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7480 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7481 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7483 wxPyEndAllowThreads(__tstate
);
7484 if (PyErr_Occurred()) return NULL
;
7485 } Py_INCREF(Py_None
);
7486 _resultobj
= Py_None
;
7490 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7491 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7492 PyObject
* _resultobj
;
7494 PyObject
* _argo0
= 0;
7495 char *_kwnames
[] = { "self", NULL
};
7498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7509 wxDC_ResetBoundingBox(_arg0
);
7511 wxPyEndAllowThreads(__tstate
);
7512 if (PyErr_Occurred()) return NULL
;
7513 } Py_INCREF(Py_None
);
7514 _resultobj
= Py_None
;
7518 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7519 PyObject
* _resultobj
;
7529 PyObject
* _argo0
= 0;
7530 char *_kwnames
[] = { "self", NULL
};
7545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
7548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
7555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7556 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7558 wxPyEndAllowThreads(__tstate
);
7559 if (PyErr_Occurred()) return NULL
;
7560 } Py_INCREF(Py_None
);
7561 _resultobj
= Py_None
;
7564 o
= PyInt_FromLong((long) (*_arg1
));
7565 _resultobj
= t_output_helper(_resultobj
, o
);
7569 o
= PyInt_FromLong((long) (*_arg2
));
7570 _resultobj
= t_output_helper(_resultobj
, o
);
7574 o
= PyInt_FromLong((long) (*_arg3
));
7575 _resultobj
= t_output_helper(_resultobj
, o
);
7579 o
= PyInt_FromLong((long) (*_arg4
));
7580 _resultobj
= t_output_helper(_resultobj
, o
);
7585 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
7586 wxPyBeginBlockThreads();
7588 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
7589 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
7598 if (!PySequence_Check(pyPoints
)) {
7601 if (!PySequence_Check(pyPens
)) {
7604 numObjs
= PySequence_Length(pyPoints
);
7605 numPens
= PySequence_Length(pyPens
);
7607 for (i
= 0; i
< numObjs
; i
++) {
7611 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
7614 obj
= PySequence_GetItem(pyPens
, i
);
7616 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
7627 // Get the point coordinants
7629 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
7632 obj
= PySequence_GetItem(pyPoints
, i
);
7634 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
7639 if (PyErr_Occurred()) {
7647 // Now draw the point
7648 self
->DrawPoint(x1
, y1
);
7659 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
7663 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
7668 wxPyEndBlockThreads();
7671 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7672 PyObject
* _resultobj
;
7677 PyObject
* _argo0
= 0;
7678 PyObject
* _obj1
= 0;
7679 PyObject
* _obj2
= 0;
7680 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
7683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
7686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
7699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7700 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
7702 wxPyEndAllowThreads(__tstate
);
7703 if (PyErr_Occurred()) return NULL
;
7705 _resultobj
= _result
;
7710 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
7711 wxPyBeginBlockThreads();
7713 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
7714 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
7723 if (!PySequence_Check(pyLines
)) {
7726 if (!PySequence_Check(pyPens
)) {
7729 numObjs
= PySequence_Length(pyLines
);
7730 numPens
= PySequence_Length(pyPens
);
7732 for (i
= 0; i
< numObjs
; i
++) {
7736 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
7739 obj
= PySequence_GetItem(pyPens
, i
);
7741 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
7752 // Get the line coordinants
7754 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
7757 obj
= PySequence_GetItem(pyLines
, i
);
7759 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
7764 if (PyErr_Occurred()) {
7771 // Now draw the line
7772 self
->DrawLine(x1
, y1
, x2
, y2
);
7783 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
7788 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
7793 wxPyEndBlockThreads();
7796 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7797 PyObject
* _resultobj
;
7802 PyObject
* _argo0
= 0;
7803 PyObject
* _obj1
= 0;
7804 PyObject
* _obj2
= 0;
7805 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
7808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
7811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
7824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7825 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
7827 wxPyEndAllowThreads(__tstate
);
7828 if (PyErr_Occurred()) return NULL
;
7830 _resultobj
= _result
;
7835 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7838 src
= (wxMemoryDC
*) ptr
;
7839 dest
= (wxDC
*) src
;
7840 return (void *) dest
;
7843 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
7846 src
= (wxMemoryDC
*) ptr
;
7847 dest
= (wxObject
*) src
;
7848 return (void *) dest
;
7851 #define new_wxMemoryDC() (new wxMemoryDC())
7852 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7853 PyObject
* _resultobj
;
7854 wxMemoryDC
* _result
;
7855 char *_kwnames
[] = { NULL
};
7859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7863 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7865 wxPyEndAllowThreads(__tstate
);
7866 if (PyErr_Occurred()) return NULL
;
7868 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7869 _resultobj
= Py_BuildValue("s",_ptemp
);
7872 _resultobj
= Py_None
;
7877 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7878 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7879 PyObject
* _resultobj
;
7882 PyObject
* _argo0
= 0;
7883 PyObject
* _argo1
= 0;
7884 char *_kwnames
[] = { "self","bitmap", NULL
};
7887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7897 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7898 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7905 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7907 wxPyEndAllowThreads(__tstate
);
7908 if (PyErr_Occurred()) return NULL
;
7909 } Py_INCREF(Py_None
);
7910 _resultobj
= Py_None
;
7914 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
7917 src
= (wxBufferedDC
*) ptr
;
7918 dest
= (wxMemoryDC
*) src
;
7919 return (void *) dest
;
7922 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
7925 src
= (wxBufferedDC
*) ptr
;
7926 dest
= (wxDC
*) src
;
7927 return (void *) dest
;
7930 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
7933 src
= (wxBufferedDC
*) ptr
;
7934 dest
= (wxObject
*) src
;
7935 return (void *) dest
;
7938 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7939 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7940 PyObject
* _resultobj
;
7941 wxBufferedDC
* _result
;
7944 PyObject
* _argo0
= 0;
7945 PyObject
* _argo1
= 0;
7946 char *_kwnames
[] = { "dc","buffer", NULL
};
7950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
7953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
7960 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7961 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
7967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7968 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
7970 wxPyEndAllowThreads(__tstate
);
7971 if (PyErr_Occurred()) return NULL
;
7973 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
7974 _resultobj
= Py_BuildValue("s",_ptemp
);
7977 _resultobj
= Py_None
;
7982 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7983 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7984 PyObject
* _resultobj
;
7985 wxBufferedDC
* _result
;
7988 PyObject
* _argo0
= 0;
7990 PyObject
* _obj1
= 0;
7991 char *_kwnames
[] = { "dc","area", NULL
};
7995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
7998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8006 if (! wxSize_helper(_obj1
, &_arg1
))
8010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8011 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
8013 wxPyEndAllowThreads(__tstate
);
8014 if (PyErr_Occurred()) return NULL
;
8016 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8017 _resultobj
= Py_BuildValue("s",_ptemp
);
8020 _resultobj
= Py_None
;
8025 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
8026 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8027 PyObject
* _resultobj
;
8028 wxBufferedDC
* _arg0
;
8029 PyObject
* _argo0
= 0;
8030 char *_kwnames
[] = { "self", NULL
};
8033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
8036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
8038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
8043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8044 wxBufferedDC_UnMask(_arg0
);
8046 wxPyEndAllowThreads(__tstate
);
8047 if (PyErr_Occurred()) return NULL
;
8048 } Py_INCREF(Py_None
);
8049 _resultobj
= Py_None
;
8053 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
8054 wxBufferedPaintDC
*src
;
8056 src
= (wxBufferedPaintDC
*) ptr
;
8057 dest
= (wxBufferedDC
*) src
;
8058 return (void *) dest
;
8061 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
8062 wxBufferedPaintDC
*src
;
8064 src
= (wxBufferedPaintDC
*) ptr
;
8065 dest
= (wxMemoryDC
*) src
;
8066 return (void *) dest
;
8069 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
8070 wxBufferedPaintDC
*src
;
8072 src
= (wxBufferedPaintDC
*) ptr
;
8073 dest
= (wxDC
*) src
;
8074 return (void *) dest
;
8077 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
8078 wxBufferedPaintDC
*src
;
8080 src
= (wxBufferedPaintDC
*) ptr
;
8081 dest
= (wxObject
*) src
;
8082 return (void *) dest
;
8085 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
8086 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8087 PyObject
* _resultobj
;
8088 wxBufferedPaintDC
* _result
;
8090 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
8091 PyObject
* _argo0
= 0;
8092 PyObject
* _argo1
= 0;
8093 char *_kwnames
[] = { "window","buffer", NULL
};
8097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
8100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8107 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8108 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8115 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
8117 wxPyEndAllowThreads(__tstate
);
8118 if (PyErr_Occurred()) return NULL
;
8120 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
8121 _resultobj
= Py_BuildValue("s",_ptemp
);
8124 _resultobj
= Py_None
;
8129 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8132 src
= (wxScreenDC
*) ptr
;
8133 dest
= (wxDC
*) src
;
8134 return (void *) dest
;
8137 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8140 src
= (wxScreenDC
*) ptr
;
8141 dest
= (wxObject
*) src
;
8142 return (void *) dest
;
8145 #define new_wxScreenDC() (new wxScreenDC())
8146 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8147 PyObject
* _resultobj
;
8148 wxScreenDC
* _result
;
8149 char *_kwnames
[] = { NULL
};
8153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8157 _result
= (wxScreenDC
*)new_wxScreenDC();
8159 wxPyEndAllowThreads(__tstate
);
8160 if (PyErr_Occurred()) return NULL
;
8162 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8163 _resultobj
= Py_BuildValue("s",_ptemp
);
8166 _resultobj
= Py_None
;
8171 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8172 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8173 PyObject
* _resultobj
;
8177 PyObject
* _argo0
= 0;
8178 PyObject
* _argo1
= 0;
8179 char *_kwnames
[] = { "self","window", NULL
};
8182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8192 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8193 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8200 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8202 wxPyEndAllowThreads(__tstate
);
8203 if (PyErr_Occurred()) return NULL
;
8204 } _resultobj
= Py_BuildValue("i",_result
);
8208 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8209 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8210 PyObject
* _resultobj
;
8213 wxRect
* _arg1
= (wxRect
*) NULL
;
8214 PyObject
* _argo0
= 0;
8216 PyObject
* _obj1
= 0;
8217 char *_kwnames
[] = { "self","rect", NULL
};
8220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8232 if (! wxRect_helper(_obj1
, &_arg1
))
8236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8237 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8239 wxPyEndAllowThreads(__tstate
);
8240 if (PyErr_Occurred()) return NULL
;
8241 } _resultobj
= Py_BuildValue("i",_result
);
8245 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8246 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8247 PyObject
* _resultobj
;
8250 PyObject
* _argo0
= 0;
8251 char *_kwnames
[] = { "self", NULL
};
8254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8265 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8267 wxPyEndAllowThreads(__tstate
);
8268 if (PyErr_Occurred()) return NULL
;
8269 } _resultobj
= Py_BuildValue("i",_result
);
8273 static void *SwigwxClientDCTowxDC(void *ptr
) {
8276 src
= (wxClientDC
*) ptr
;
8277 dest
= (wxDC
*) src
;
8278 return (void *) dest
;
8281 static void *SwigwxClientDCTowxObject(void *ptr
) {
8284 src
= (wxClientDC
*) ptr
;
8285 dest
= (wxObject
*) src
;
8286 return (void *) dest
;
8289 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8290 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8291 PyObject
* _resultobj
;
8292 wxClientDC
* _result
;
8294 PyObject
* _argo0
= 0;
8295 char *_kwnames
[] = { "win", NULL
};
8299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8310 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8312 wxPyEndAllowThreads(__tstate
);
8313 if (PyErr_Occurred()) return NULL
;
8315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8316 _resultobj
= Py_BuildValue("s",_ptemp
);
8319 _resultobj
= Py_None
;
8324 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8327 src
= (wxPaintDC
*) ptr
;
8328 dest
= (wxDC
*) src
;
8329 return (void *) dest
;
8332 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8335 src
= (wxPaintDC
*) ptr
;
8336 dest
= (wxObject
*) src
;
8337 return (void *) dest
;
8340 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8341 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8342 PyObject
* _resultobj
;
8343 wxPaintDC
* _result
;
8345 PyObject
* _argo0
= 0;
8346 char *_kwnames
[] = { "win", NULL
};
8350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8361 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8363 wxPyEndAllowThreads(__tstate
);
8364 if (PyErr_Occurred()) return NULL
;
8366 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8367 _resultobj
= Py_BuildValue("s",_ptemp
);
8370 _resultobj
= Py_None
;
8375 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8378 src
= (wxWindowDC
*) ptr
;
8379 dest
= (wxDC
*) src
;
8380 return (void *) dest
;
8383 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8386 src
= (wxWindowDC
*) ptr
;
8387 dest
= (wxObject
*) src
;
8388 return (void *) dest
;
8391 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8392 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8393 PyObject
* _resultobj
;
8394 wxWindowDC
* _result
;
8396 PyObject
* _argo0
= 0;
8397 char *_kwnames
[] = { "win", NULL
};
8401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8412 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8414 wxPyEndAllowThreads(__tstate
);
8415 if (PyErr_Occurred()) return NULL
;
8417 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8418 _resultobj
= Py_BuildValue("s",_ptemp
);
8421 _resultobj
= Py_None
;
8426 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8429 src
= (wxPalette
*) ptr
;
8430 dest
= (wxGDIObject
*) src
;
8431 return (void *) dest
;
8434 static void *SwigwxPaletteTowxObject(void *ptr
) {
8437 src
= (wxPalette
*) ptr
;
8438 dest
= (wxObject
*) src
;
8439 return (void *) dest
;
8442 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8443 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8444 PyObject
* _resultobj
;
8445 wxPalette
* _result
;
8450 PyObject
* _obj1
= 0;
8451 PyObject
* _obj2
= 0;
8452 PyObject
* _obj3
= 0;
8453 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8460 _arg1
= byte_LIST_helper(_obj1
);
8461 if (_arg1
== NULL
) {
8466 _arg2
= byte_LIST_helper(_obj2
);
8467 if (_arg2
== NULL
) {
8473 _arg3
= byte_LIST_helper(_obj3
);
8474 if (_arg3
== NULL
) {
8480 _arg0
= PyList_Size(_obj1
);
8487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8488 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8490 wxPyEndAllowThreads(__tstate
);
8491 if (PyErr_Occurred()) return NULL
;
8493 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8494 _resultobj
= Py_BuildValue("s",_ptemp
);
8497 _resultobj
= Py_None
;
8511 #define delete_wxPalette(_swigobj) (delete _swigobj)
8512 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8513 PyObject
* _resultobj
;
8515 PyObject
* _argo0
= 0;
8516 char *_kwnames
[] = { "self", NULL
};
8519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8530 delete_wxPalette(_arg0
);
8532 wxPyEndAllowThreads(__tstate
);
8533 if (PyErr_Occurred()) return NULL
;
8534 } Py_INCREF(Py_None
);
8535 _resultobj
= Py_None
;
8539 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8540 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8541 PyObject
* _resultobj
;
8547 PyObject
* _argo0
= 0;
8548 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8562 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8564 wxPyEndAllowThreads(__tstate
);
8565 if (PyErr_Occurred()) return NULL
;
8566 } _resultobj
= Py_BuildValue("i",_result
);
8570 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8571 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8572 PyObject
* _resultobj
;
8582 PyObject
* _argo0
= 0;
8583 char *_kwnames
[] = { "self","pixel", NULL
};
8587 _arg2
= (byte
*)&temp
;
8590 _arg3
= (byte
*)&temp0
;
8593 _arg4
= (byte
*)&temp1
;
8595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
8598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8606 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8608 wxPyEndAllowThreads(__tstate
);
8609 if (PyErr_Occurred()) return NULL
;
8610 } _resultobj
= Py_BuildValue("i",_result
);
8613 o
= PyInt_FromLong((long) (*_arg2
));
8614 _resultobj
= t_output_helper(_resultobj
, o
);
8618 o
= PyInt_FromLong((long) (*_arg3
));
8619 _resultobj
= t_output_helper(_resultobj
, o
);
8623 o
= PyInt_FromLong((long) (*_arg4
));
8624 _resultobj
= t_output_helper(_resultobj
, o
);
8629 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8630 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8631 PyObject
* _resultobj
;
8634 PyObject
* _argo0
= 0;
8635 char *_kwnames
[] = { "self", NULL
};
8638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8649 _result
= (bool )wxPalette_Ok(_arg0
);
8651 wxPyEndAllowThreads(__tstate
);
8652 if (PyErr_Occurred()) return NULL
;
8653 } _resultobj
= Py_BuildValue("i",_result
);
8657 static void *SwigwxImageListTowxObject(void *ptr
) {
8660 src
= (wxImageList
*) ptr
;
8661 dest
= (wxObject
*) src
;
8662 return (void *) dest
;
8665 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8666 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8667 PyObject
* _resultobj
;
8668 wxImageList
* _result
;
8671 int _arg2
= (int ) TRUE
;
8672 int _arg3
= (int ) 1;
8673 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8680 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8681 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8683 wxPyEndAllowThreads(__tstate
);
8684 if (PyErr_Occurred()) return NULL
;
8686 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8687 _resultobj
= Py_BuildValue("s",_ptemp
);
8690 _resultobj
= Py_None
;
8695 #define delete_wxImageList(_swigobj) (delete _swigobj)
8696 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8697 PyObject
* _resultobj
;
8698 wxImageList
* _arg0
;
8699 PyObject
* _argo0
= 0;
8700 char *_kwnames
[] = { "self", NULL
};
8703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8714 delete_wxImageList(_arg0
);
8716 wxPyEndAllowThreads(__tstate
);
8717 if (PyErr_Occurred()) return NULL
;
8718 } Py_INCREF(Py_None
);
8719 _resultobj
= Py_None
;
8723 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8724 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8725 PyObject
* _resultobj
;
8727 wxImageList
* _arg0
;
8729 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8730 PyObject
* _argo0
= 0;
8731 PyObject
* _argo1
= 0;
8732 PyObject
* _argo2
= 0;
8733 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8746 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8747 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8753 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8754 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8761 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8763 wxPyEndAllowThreads(__tstate
);
8764 if (PyErr_Occurred()) return NULL
;
8765 } _resultobj
= Py_BuildValue("i",_result
);
8769 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8770 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8771 PyObject
* _resultobj
;
8773 wxImageList
* _arg0
;
8776 PyObject
* _argo0
= 0;
8777 PyObject
* _argo1
= 0;
8779 PyObject
* _obj2
= 0;
8780 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8793 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8794 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8801 if (! wxColour_helper(_obj2
, &_arg2
))
8805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8806 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8808 wxPyEndAllowThreads(__tstate
);
8809 if (PyErr_Occurred()) return NULL
;
8810 } _resultobj
= Py_BuildValue("i",_result
);
8814 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8815 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8816 PyObject
* _resultobj
;
8818 wxImageList
* _arg0
;
8820 PyObject
* _argo0
= 0;
8821 PyObject
* _argo1
= 0;
8822 char *_kwnames
[] = { "self","icon", NULL
};
8825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8835 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8836 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8843 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8845 wxPyEndAllowThreads(__tstate
);
8846 if (PyErr_Occurred()) return NULL
;
8847 } _resultobj
= Py_BuildValue("i",_result
);
8851 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8852 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8853 PyObject
* _resultobj
;
8855 wxImageList
* _arg0
;
8858 PyObject
* _argo0
= 0;
8859 PyObject
* _argo2
= 0;
8860 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8873 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8874 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8880 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8881 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8883 wxPyEndAllowThreads(__tstate
);
8884 if (PyErr_Occurred()) return NULL
;
8885 } _resultobj
= Py_BuildValue("i",_result
);
8889 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8890 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8891 PyObject
* _resultobj
;
8893 wxImageList
* _arg0
;
8898 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8899 bool _arg6
= (bool ) FALSE
;
8900 PyObject
* _argo0
= 0;
8901 PyObject
* _argo2
= 0;
8902 int tempbool6
= (int) FALSE
;
8903 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8916 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8917 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8922 _arg6
= (bool ) tempbool6
;
8924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8925 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8927 wxPyEndAllowThreads(__tstate
);
8928 if (PyErr_Occurred()) return NULL
;
8929 } _resultobj
= Py_BuildValue("i",_result
);
8933 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8934 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8935 PyObject
* _resultobj
;
8937 wxImageList
* _arg0
;
8938 PyObject
* _argo0
= 0;
8939 char *_kwnames
[] = { "self", NULL
};
8942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8953 _result
= (int )wxImageList_GetImageCount(_arg0
);
8955 wxPyEndAllowThreads(__tstate
);
8956 if (PyErr_Occurred()) return NULL
;
8957 } _resultobj
= Py_BuildValue("i",_result
);
8961 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8962 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8963 PyObject
* _resultobj
;
8965 wxImageList
* _arg0
;
8967 PyObject
* _argo0
= 0;
8968 char *_kwnames
[] = { "self","index", NULL
};
8971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8982 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8984 wxPyEndAllowThreads(__tstate
);
8985 if (PyErr_Occurred()) return NULL
;
8986 } _resultobj
= Py_BuildValue("i",_result
);
8990 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8991 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8992 PyObject
* _resultobj
;
8994 wxImageList
* _arg0
;
8995 PyObject
* _argo0
= 0;
8996 char *_kwnames
[] = { "self", NULL
};
8999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9010 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9012 wxPyEndAllowThreads(__tstate
);
9013 if (PyErr_Occurred()) return NULL
;
9014 } _resultobj
= Py_BuildValue("i",_result
);
9018 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9019 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9020 PyObject
* _resultobj
;
9021 wxImageList
* _arg0
;
9027 PyObject
* _argo0
= 0;
9028 char *_kwnames
[] = { "self","index", NULL
};
9037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9048 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9050 wxPyEndAllowThreads(__tstate
);
9051 if (PyErr_Occurred()) return NULL
;
9052 } Py_INCREF(Py_None
);
9053 _resultobj
= Py_None
;
9056 o
= PyInt_FromLong((long) (*_arg2
));
9057 _resultobj
= t_output_helper(_resultobj
, o
);
9061 o
= PyInt_FromLong((long) (*_arg3
));
9062 _resultobj
= t_output_helper(_resultobj
, o
);
9067 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9070 src
= (wxRegion
*) ptr
;
9071 dest
= (wxGDIObject
*) src
;
9072 return (void *) dest
;
9075 static void *SwigwxRegionTowxObject(void *ptr
) {
9078 src
= (wxRegion
*) ptr
;
9079 dest
= (wxObject
*) src
;
9080 return (void *) dest
;
9083 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9084 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9085 PyObject
* _resultobj
;
9087 long _arg0
= (long ) 0;
9088 long _arg1
= (long ) 0;
9089 long _arg2
= (long ) 0;
9090 long _arg3
= (long ) 0;
9091 char *_kwnames
[] = { "x","y","width","height", NULL
};
9095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9099 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9101 wxPyEndAllowThreads(__tstate
);
9102 if (PyErr_Occurred()) return NULL
;
9104 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9105 _resultobj
= Py_BuildValue("s",_ptemp
);
9108 _resultobj
= Py_None
;
9113 #define delete_wxRegion(_swigobj) (delete _swigobj)
9114 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9115 PyObject
* _resultobj
;
9117 PyObject
* _argo0
= 0;
9118 char *_kwnames
[] = { "self", NULL
};
9121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9132 delete_wxRegion(_arg0
);
9134 wxPyEndAllowThreads(__tstate
);
9135 if (PyErr_Occurred()) return NULL
;
9136 } Py_INCREF(Py_None
);
9137 _resultobj
= Py_None
;
9141 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9142 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9143 PyObject
* _resultobj
;
9145 PyObject
* _argo0
= 0;
9146 char *_kwnames
[] = { "self", NULL
};
9149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9160 wxRegion_Clear(_arg0
);
9162 wxPyEndAllowThreads(__tstate
);
9163 if (PyErr_Occurred()) return NULL
;
9164 } Py_INCREF(Py_None
);
9165 _resultobj
= Py_None
;
9169 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9170 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9171 PyObject
* _resultobj
;
9172 wxRegionContain _result
;
9176 PyObject
* _argo0
= 0;
9177 char *_kwnames
[] = { "self","x","y", NULL
};
9180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9191 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9193 wxPyEndAllowThreads(__tstate
);
9194 if (PyErr_Occurred()) return NULL
;
9195 } _resultobj
= Py_BuildValue("i",_result
);
9199 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9200 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9201 PyObject
* _resultobj
;
9202 wxRegionContain _result
;
9205 PyObject
* _argo0
= 0;
9207 PyObject
* _obj1
= 0;
9208 char *_kwnames
[] = { "self","pt", NULL
};
9211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9222 if (! wxPoint_helper(_obj1
, &_arg1
))
9226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9227 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9229 wxPyEndAllowThreads(__tstate
);
9230 if (PyErr_Occurred()) return NULL
;
9231 } _resultobj
= Py_BuildValue("i",_result
);
9235 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9236 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9237 PyObject
* _resultobj
;
9238 wxRegionContain _result
;
9241 PyObject
* _argo0
= 0;
9243 PyObject
* _obj1
= 0;
9244 char *_kwnames
[] = { "self","rect", NULL
};
9247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9258 if (! wxRect_helper(_obj1
, &_arg1
))
9262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9263 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9265 wxPyEndAllowThreads(__tstate
);
9266 if (PyErr_Occurred()) return NULL
;
9267 } _resultobj
= Py_BuildValue("i",_result
);
9271 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9272 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9273 PyObject
* _resultobj
;
9274 wxRegionContain _result
;
9280 PyObject
* _argo0
= 0;
9281 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9295 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9297 wxPyEndAllowThreads(__tstate
);
9298 if (PyErr_Occurred()) return NULL
;
9299 } _resultobj
= Py_BuildValue("i",_result
);
9303 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9304 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9305 PyObject
* _resultobj
;
9308 PyObject
* _argo0
= 0;
9309 char *_kwnames
[] = { "self", NULL
};
9313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9324 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9326 wxPyEndAllowThreads(__tstate
);
9327 if (PyErr_Occurred()) return NULL
;
9328 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9329 _resultobj
= Py_BuildValue("s",_ptemp
);
9333 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9334 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9335 PyObject
* _resultobj
;
9342 PyObject
* _argo0
= 0;
9343 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9357 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9359 wxPyEndAllowThreads(__tstate
);
9360 if (PyErr_Occurred()) return NULL
;
9361 } _resultobj
= Py_BuildValue("i",_result
);
9365 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9366 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9367 PyObject
* _resultobj
;
9371 PyObject
* _argo0
= 0;
9373 PyObject
* _obj1
= 0;
9374 char *_kwnames
[] = { "self","rect", NULL
};
9377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9388 if (! wxRect_helper(_obj1
, &_arg1
))
9392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9393 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9395 wxPyEndAllowThreads(__tstate
);
9396 if (PyErr_Occurred()) return NULL
;
9397 } _resultobj
= Py_BuildValue("i",_result
);
9401 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9402 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9403 PyObject
* _resultobj
;
9407 PyObject
* _argo0
= 0;
9408 PyObject
* _argo1
= 0;
9409 char *_kwnames
[] = { "self","region", NULL
};
9412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9422 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9423 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9430 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9432 wxPyEndAllowThreads(__tstate
);
9433 if (PyErr_Occurred()) return NULL
;
9434 } _resultobj
= Py_BuildValue("i",_result
);
9438 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9439 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9440 PyObject
* _resultobj
;
9443 PyObject
* _argo0
= 0;
9444 char *_kwnames
[] = { "self", NULL
};
9447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9457 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9458 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9460 wxPyEndAllowThreads(__tstate
);
9461 if (PyErr_Occurred()) return NULL
;
9462 } _resultobj
= Py_BuildValue("i",_result
);
9466 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9467 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9468 PyObject
* _resultobj
;
9475 PyObject
* _argo0
= 0;
9476 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9490 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9492 wxPyEndAllowThreads(__tstate
);
9493 if (PyErr_Occurred()) return NULL
;
9494 } _resultobj
= Py_BuildValue("i",_result
);
9498 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9499 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9500 PyObject
* _resultobj
;
9504 PyObject
* _argo0
= 0;
9506 PyObject
* _obj1
= 0;
9507 char *_kwnames
[] = { "self","rect", NULL
};
9510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9521 if (! wxRect_helper(_obj1
, &_arg1
))
9525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9526 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9528 wxPyEndAllowThreads(__tstate
);
9529 if (PyErr_Occurred()) return NULL
;
9530 } _resultobj
= Py_BuildValue("i",_result
);
9534 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9535 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9536 PyObject
* _resultobj
;
9540 PyObject
* _argo0
= 0;
9541 PyObject
* _argo1
= 0;
9542 char *_kwnames
[] = { "self","region", NULL
};
9545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9555 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9556 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9563 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9565 wxPyEndAllowThreads(__tstate
);
9566 if (PyErr_Occurred()) return NULL
;
9567 } _resultobj
= Py_BuildValue("i",_result
);
9571 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9572 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9573 PyObject
* _resultobj
;
9580 PyObject
* _argo0
= 0;
9581 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9594 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9595 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9597 wxPyEndAllowThreads(__tstate
);
9598 if (PyErr_Occurred()) return NULL
;
9599 } _resultobj
= Py_BuildValue("i",_result
);
9603 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9604 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9605 PyObject
* _resultobj
;
9609 PyObject
* _argo0
= 0;
9611 PyObject
* _obj1
= 0;
9612 char *_kwnames
[] = { "self","rect", NULL
};
9615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9626 if (! wxRect_helper(_obj1
, &_arg1
))
9630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9631 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9633 wxPyEndAllowThreads(__tstate
);
9634 if (PyErr_Occurred()) return NULL
;
9635 } _resultobj
= Py_BuildValue("i",_result
);
9639 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9640 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9641 PyObject
* _resultobj
;
9645 PyObject
* _argo0
= 0;
9646 PyObject
* _argo1
= 0;
9647 char *_kwnames
[] = { "self","region", NULL
};
9650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9660 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9661 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9668 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9670 wxPyEndAllowThreads(__tstate
);
9671 if (PyErr_Occurred()) return NULL
;
9672 } _resultobj
= Py_BuildValue("i",_result
);
9676 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9677 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9678 PyObject
* _resultobj
;
9685 PyObject
* _argo0
= 0;
9686 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9700 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9702 wxPyEndAllowThreads(__tstate
);
9703 if (PyErr_Occurred()) return NULL
;
9704 } _resultobj
= Py_BuildValue("i",_result
);
9708 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9709 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9710 PyObject
* _resultobj
;
9714 PyObject
* _argo0
= 0;
9716 PyObject
* _obj1
= 0;
9717 char *_kwnames
[] = { "self","rect", NULL
};
9720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9731 if (! wxRect_helper(_obj1
, &_arg1
))
9735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9736 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9738 wxPyEndAllowThreads(__tstate
);
9739 if (PyErr_Occurred()) return NULL
;
9740 } _resultobj
= Py_BuildValue("i",_result
);
9744 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9745 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9746 PyObject
* _resultobj
;
9750 PyObject
* _argo0
= 0;
9751 PyObject
* _argo1
= 0;
9752 char *_kwnames
[] = { "self","region", NULL
};
9755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9765 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9766 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9773 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9775 wxPyEndAllowThreads(__tstate
);
9776 if (PyErr_Occurred()) return NULL
;
9777 } _resultobj
= Py_BuildValue("i",_result
);
9781 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9782 wxRegionIterator
*src
;
9784 src
= (wxRegionIterator
*) ptr
;
9785 dest
= (wxObject
*) src
;
9786 return (void *) dest
;
9789 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9790 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9791 PyObject
* _resultobj
;
9792 wxRegionIterator
* _result
;
9794 PyObject
* _argo0
= 0;
9795 char *_kwnames
[] = { "region", NULL
};
9799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
9802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9809 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9810 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
9812 wxPyEndAllowThreads(__tstate
);
9813 if (PyErr_Occurred()) return NULL
;
9815 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
9816 _resultobj
= Py_BuildValue("s",_ptemp
);
9819 _resultobj
= Py_None
;
9824 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9825 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9826 PyObject
* _resultobj
;
9827 wxRegionIterator
* _arg0
;
9828 PyObject
* _argo0
= 0;
9829 char *_kwnames
[] = { "self", NULL
};
9832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
9835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9843 delete_wxRegionIterator(_arg0
);
9845 wxPyEndAllowThreads(__tstate
);
9846 if (PyErr_Occurred()) return NULL
;
9847 } Py_INCREF(Py_None
);
9848 _resultobj
= Py_None
;
9852 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9853 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9854 PyObject
* _resultobj
;
9856 wxRegionIterator
* _arg0
;
9857 PyObject
* _argo0
= 0;
9858 char *_kwnames
[] = { "self", NULL
};
9861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
9864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9872 _result
= (long )wxRegionIterator_GetX(_arg0
);
9874 wxPyEndAllowThreads(__tstate
);
9875 if (PyErr_Occurred()) return NULL
;
9876 } _resultobj
= Py_BuildValue("l",_result
);
9880 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9881 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9882 PyObject
* _resultobj
;
9884 wxRegionIterator
* _arg0
;
9885 PyObject
* _argo0
= 0;
9886 char *_kwnames
[] = { "self", NULL
};
9889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
9892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9900 _result
= (long )wxRegionIterator_GetY(_arg0
);
9902 wxPyEndAllowThreads(__tstate
);
9903 if (PyErr_Occurred()) return NULL
;
9904 } _resultobj
= Py_BuildValue("l",_result
);
9908 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9909 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9910 PyObject
* _resultobj
;
9912 wxRegionIterator
* _arg0
;
9913 PyObject
* _argo0
= 0;
9914 char *_kwnames
[] = { "self", NULL
};
9917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
9920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9928 _result
= (long )wxRegionIterator_GetW(_arg0
);
9930 wxPyEndAllowThreads(__tstate
);
9931 if (PyErr_Occurred()) return NULL
;
9932 } _resultobj
= Py_BuildValue("l",_result
);
9936 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9937 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9938 PyObject
* _resultobj
;
9940 wxRegionIterator
* _arg0
;
9941 PyObject
* _argo0
= 0;
9942 char *_kwnames
[] = { "self", NULL
};
9945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
9948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9956 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
9958 wxPyEndAllowThreads(__tstate
);
9959 if (PyErr_Occurred()) return NULL
;
9960 } _resultobj
= Py_BuildValue("l",_result
);
9964 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
9965 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9966 PyObject
* _resultobj
;
9968 wxRegionIterator
* _arg0
;
9969 PyObject
* _argo0
= 0;
9970 char *_kwnames
[] = { "self", NULL
};
9973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
9976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
9983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9984 _result
= (long )wxRegionIterator_GetH(_arg0
);
9986 wxPyEndAllowThreads(__tstate
);
9987 if (PyErr_Occurred()) return NULL
;
9988 } _resultobj
= Py_BuildValue("l",_result
);
9992 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
9993 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9994 PyObject
* _resultobj
;
9996 wxRegionIterator
* _arg0
;
9997 PyObject
* _argo0
= 0;
9998 char *_kwnames
[] = { "self", NULL
};
10001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10012 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10014 wxPyEndAllowThreads(__tstate
);
10015 if (PyErr_Occurred()) return NULL
;
10016 } _resultobj
= Py_BuildValue("l",_result
);
10020 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10021 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10022 PyObject
* _resultobj
;
10024 wxRegionIterator
* _arg0
;
10025 PyObject
* _argo0
= 0;
10026 char *_kwnames
[] = { "self", NULL
};
10030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10041 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10043 wxPyEndAllowThreads(__tstate
);
10044 if (PyErr_Occurred()) return NULL
;
10045 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10046 _resultobj
= Py_BuildValue("s",_ptemp
);
10050 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10051 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10052 PyObject
* _resultobj
;
10054 wxRegionIterator
* _arg0
;
10055 PyObject
* _argo0
= 0;
10056 char *_kwnames
[] = { "self", NULL
};
10059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10070 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10072 wxPyEndAllowThreads(__tstate
);
10073 if (PyErr_Occurred()) return NULL
;
10074 } _resultobj
= Py_BuildValue("i",_result
);
10078 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10079 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10080 PyObject
* _resultobj
;
10081 wxRegionIterator
* _arg0
;
10082 PyObject
* _argo0
= 0;
10083 char *_kwnames
[] = { "self", NULL
};
10086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10097 wxRegionIterator_Reset(_arg0
);
10099 wxPyEndAllowThreads(__tstate
);
10100 if (PyErr_Occurred()) return NULL
;
10101 } Py_INCREF(Py_None
);
10102 _resultobj
= Py_None
;
10106 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10109 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10110 PyObject
* _resultobj
;
10111 wxRegionIterator
* _arg0
;
10112 PyObject
* _argo0
= 0;
10113 char *_kwnames
[] = { "self", NULL
};
10116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10127 wxRegionIterator_Next(_arg0
);
10129 wxPyEndAllowThreads(__tstate
);
10130 if (PyErr_Occurred()) return NULL
;
10131 } Py_INCREF(Py_None
);
10132 _resultobj
= Py_None
;
10136 static PyMethodDef gdicMethods
[] = {
10137 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10145 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10146 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10147 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10148 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10149 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10150 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10151 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10152 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10153 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10154 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10155 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10156 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10157 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10158 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10159 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10160 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10161 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10162 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10163 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10164 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10165 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10166 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10167 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10168 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10169 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10170 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10171 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10172 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10173 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10174 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10175 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10176 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10177 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10178 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10179 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10180 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10181 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10182 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10183 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10184 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10185 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10186 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10187 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10188 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10189 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10190 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10191 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10192 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10193 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10194 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
10195 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
10196 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
10197 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10198 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10199 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
10200 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
10201 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10202 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10203 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10204 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10205 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10206 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10207 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10208 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10209 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10210 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10211 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10212 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10213 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10214 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10215 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10216 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10217 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10218 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10219 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10220 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10221 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10222 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10223 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10224 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10225 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10226 { "wxDC_SetClippingRect", (PyCFunction
) _wrap_wxDC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
},
10227 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
10228 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10229 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10230 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10231 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10232 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10233 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10234 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10235 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10236 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10237 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10238 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10239 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10240 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10241 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10242 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10243 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10244 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10245 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10246 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10247 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10248 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10249 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10250 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10251 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10252 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10253 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10254 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10255 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10256 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10257 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10258 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10259 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10260 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10261 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10262 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10263 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10264 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10265 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10266 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10267 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10268 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10269 { "wxDC_DrawRectangleRect", (PyCFunction
) _wrap_wxDC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
},
10270 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10271 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10272 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10273 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10274 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10275 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
10276 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
10277 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10278 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10279 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10280 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10281 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10282 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10283 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10284 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10285 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10286 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10287 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10288 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10289 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10290 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10291 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10292 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10293 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10294 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10295 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10296 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10297 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10298 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10299 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10300 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10301 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10302 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10303 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10304 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10305 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10306 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10307 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10308 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10309 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10310 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10311 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10312 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10313 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10314 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10315 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10316 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10317 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10318 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10319 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10320 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10321 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10322 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10323 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10324 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10325 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10326 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10327 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10328 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10329 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10330 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10331 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10332 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10333 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10334 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10335 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10336 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10337 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10338 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10339 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10340 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
10341 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10342 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10343 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10344 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10345 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10346 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10397 * This table is used by the pointer type-checker
10399 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10400 { "_signed_long","_long",0},
10401 { "_wxPrintQuality","_wxCoord",0},
10402 { "_wxPrintQuality","_int",0},
10403 { "_wxPrintQuality","_signed_int",0},
10404 { "_wxPrintQuality","_unsigned_int",0},
10405 { "_wxPrintQuality","_wxWindowID",0},
10406 { "_wxPrintQuality","_uint",0},
10407 { "_wxPrintQuality","_EBool",0},
10408 { "_wxPrintQuality","_size_t",0},
10409 { "_wxPrintQuality","_time_t",0},
10410 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
10411 { "_byte","_unsigned_char",0},
10412 { "_long","_unsigned_long",0},
10413 { "_long","_signed_long",0},
10414 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10415 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10416 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10417 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
10418 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10419 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10420 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10421 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10422 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10423 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10424 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10425 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10426 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
10427 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
10428 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10429 { "_size_t","_wxCoord",0},
10430 { "_size_t","_wxPrintQuality",0},
10431 { "_size_t","_time_t",0},
10432 { "_size_t","_unsigned_int",0},
10433 { "_size_t","_int",0},
10434 { "_size_t","_wxWindowID",0},
10435 { "_size_t","_uint",0},
10436 { "_uint","_wxCoord",0},
10437 { "_uint","_wxPrintQuality",0},
10438 { "_uint","_time_t",0},
10439 { "_uint","_size_t",0},
10440 { "_uint","_unsigned_int",0},
10441 { "_uint","_int",0},
10442 { "_uint","_wxWindowID",0},
10443 { "_wxChar","_char",0},
10444 { "_char","_wxChar",0},
10445 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
10446 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10447 { "_EBool","_wxCoord",0},
10448 { "_EBool","_wxPrintQuality",0},
10449 { "_EBool","_signed_int",0},
10450 { "_EBool","_int",0},
10451 { "_EBool","_wxWindowID",0},
10452 { "_unsigned_long","_long",0},
10453 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10454 { "_signed_int","_wxCoord",0},
10455 { "_signed_int","_wxPrintQuality",0},
10456 { "_signed_int","_EBool",0},
10457 { "_signed_int","_wxWindowID",0},
10458 { "_signed_int","_int",0},
10459 { "_WXTYPE","_short",0},
10460 { "_WXTYPE","_signed_short",0},
10461 { "_WXTYPE","_unsigned_short",0},
10462 { "_unsigned_short","_WXTYPE",0},
10463 { "_unsigned_short","_short",0},
10464 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10465 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10466 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10467 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10468 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10469 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10470 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10471 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10472 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
10473 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
10474 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10475 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10476 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
10477 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10478 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10479 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
10480 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10481 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10482 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10483 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10484 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10485 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10486 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10487 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10488 { "_signed_short","_WXTYPE",0},
10489 { "_signed_short","_short",0},
10490 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
10491 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
10492 { "_unsigned_char","_byte",0},
10493 { "_unsigned_int","_wxCoord",0},
10494 { "_unsigned_int","_wxPrintQuality",0},
10495 { "_unsigned_int","_time_t",0},
10496 { "_unsigned_int","_size_t",0},
10497 { "_unsigned_int","_uint",0},
10498 { "_unsigned_int","_wxWindowID",0},
10499 { "_unsigned_int","_int",0},
10500 { "_short","_WXTYPE",0},
10501 { "_short","_unsigned_short",0},
10502 { "_short","_signed_short",0},
10503 { "_wxWindowID","_wxCoord",0},
10504 { "_wxWindowID","_wxPrintQuality",0},
10505 { "_wxWindowID","_time_t",0},
10506 { "_wxWindowID","_size_t",0},
10507 { "_wxWindowID","_EBool",0},
10508 { "_wxWindowID","_uint",0},
10509 { "_wxWindowID","_int",0},
10510 { "_wxWindowID","_signed_int",0},
10511 { "_wxWindowID","_unsigned_int",0},
10512 { "_int","_wxCoord",0},
10513 { "_int","_wxPrintQuality",0},
10514 { "_int","_time_t",0},
10515 { "_int","_size_t",0},
10516 { "_int","_EBool",0},
10517 { "_int","_uint",0},
10518 { "_int","_wxWindowID",0},
10519 { "_int","_unsigned_int",0},
10520 { "_int","_signed_int",0},
10521 { "_time_t","_wxCoord",0},
10522 { "_time_t","_wxPrintQuality",0},
10523 { "_time_t","_unsigned_int",0},
10524 { "_time_t","_int",0},
10525 { "_time_t","_wxWindowID",0},
10526 { "_time_t","_uint",0},
10527 { "_time_t","_size_t",0},
10528 { "_wxCoord","_int",0},
10529 { "_wxCoord","_signed_int",0},
10530 { "_wxCoord","_unsigned_int",0},
10531 { "_wxCoord","_wxWindowID",0},
10532 { "_wxCoord","_uint",0},
10533 { "_wxCoord","_EBool",0},
10534 { "_wxCoord","_size_t",0},
10535 { "_wxCoord","_time_t",0},
10536 { "_wxCoord","_wxPrintQuality",0},
10539 static PyObject
*SWIG_globals
;
10543 SWIGEXPORT(void) initgdic() {
10545 SWIG_globals
= SWIG_newvarlink();
10546 m
= Py_InitModule("gdic", gdicMethods
);
10547 d
= PyModule_GetDict(m
);
10548 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10549 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10550 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10551 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10552 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10553 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10554 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10555 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10556 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10557 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10558 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10559 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10560 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10561 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10562 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10563 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10564 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10565 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10566 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10567 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10568 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10569 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10570 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10571 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10572 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10573 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10574 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10575 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10576 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10577 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10578 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10579 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10580 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10581 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10582 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10583 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10584 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10585 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10586 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10587 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10588 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10589 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10590 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10591 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10592 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10593 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10594 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10595 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10596 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10597 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10598 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10599 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10600 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10601 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10602 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10603 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10604 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10607 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10608 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);