2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/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_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2178 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2179 PyObject
* _resultobj
;
2184 PyObject
* _argo0
= 0;
2185 PyObject
* _obj1
= 0;
2186 char *_kwnames
[] = { "self","name","flags", NULL
};
2189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2199 _arg1
= wxString_in_helper(_obj1
);
2204 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2205 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2207 wxPyEndAllowThreads(__tstate
);
2208 if (PyErr_Occurred()) return NULL
;
2209 } _resultobj
= Py_BuildValue("i",_result
);
2217 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2218 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2219 PyObject
* _resultobj
;
2222 PyObject
* _argo0
= 0;
2223 char *_kwnames
[] = { "self", NULL
};
2226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2237 _result
= (bool )wxIcon_Ok(_arg0
);
2239 wxPyEndAllowThreads(__tstate
);
2240 if (PyErr_Occurred()) return NULL
;
2241 } _resultobj
= Py_BuildValue("i",_result
);
2245 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2246 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
* _resultobj
;
2250 PyObject
* _argo0
= 0;
2251 char *_kwnames
[] = { "self", NULL
};
2254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2265 _result
= (int )wxIcon_GetWidth(_arg0
);
2267 wxPyEndAllowThreads(__tstate
);
2268 if (PyErr_Occurred()) return NULL
;
2269 } _resultobj
= Py_BuildValue("i",_result
);
2273 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2274 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2275 PyObject
* _resultobj
;
2278 PyObject
* _argo0
= 0;
2279 char *_kwnames
[] = { "self", NULL
};
2282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2293 _result
= (int )wxIcon_GetHeight(_arg0
);
2295 wxPyEndAllowThreads(__tstate
);
2296 if (PyErr_Occurred()) return NULL
;
2297 } _resultobj
= Py_BuildValue("i",_result
);
2301 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2302 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2303 PyObject
* _resultobj
;
2306 PyObject
* _argo0
= 0;
2307 char *_kwnames
[] = { "self", NULL
};
2310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2321 _result
= (int )wxIcon_GetDepth(_arg0
);
2323 wxPyEndAllowThreads(__tstate
);
2324 if (PyErr_Occurred()) return NULL
;
2325 } _resultobj
= Py_BuildValue("i",_result
);
2329 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2330 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2331 PyObject
* _resultobj
;
2334 PyObject
* _argo0
= 0;
2335 char *_kwnames
[] = { "self","w", NULL
};
2338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2349 wxIcon_SetWidth(_arg0
,_arg1
);
2351 wxPyEndAllowThreads(__tstate
);
2352 if (PyErr_Occurred()) return NULL
;
2353 } Py_INCREF(Py_None
);
2354 _resultobj
= Py_None
;
2358 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2359 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2360 PyObject
* _resultobj
;
2363 PyObject
* _argo0
= 0;
2364 char *_kwnames
[] = { "self","h", NULL
};
2367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2378 wxIcon_SetHeight(_arg0
,_arg1
);
2380 wxPyEndAllowThreads(__tstate
);
2381 if (PyErr_Occurred()) return NULL
;
2382 } Py_INCREF(Py_None
);
2383 _resultobj
= Py_None
;
2387 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2388 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2389 PyObject
* _resultobj
;
2392 PyObject
* _argo0
= 0;
2393 char *_kwnames
[] = { "self","d", NULL
};
2396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2407 wxIcon_SetDepth(_arg0
,_arg1
);
2409 wxPyEndAllowThreads(__tstate
);
2410 if (PyErr_Occurred()) return NULL
;
2411 } Py_INCREF(Py_None
);
2412 _resultobj
= Py_None
;
2416 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2417 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2418 PyObject
* _resultobj
;
2421 PyObject
* _argo0
= 0;
2422 PyObject
* _argo1
= 0;
2423 char *_kwnames
[] = { "self","bmp", NULL
};
2426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2436 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2437 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2444 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2446 wxPyEndAllowThreads(__tstate
);
2447 if (PyErr_Occurred()) return NULL
;
2448 } Py_INCREF(Py_None
);
2449 _resultobj
= Py_None
;
2453 #define new_wxIconBundle() (new wxIconBundle())
2454 static PyObject
*_wrap_new_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2455 PyObject
* _resultobj
;
2456 wxIconBundle
* _result
;
2457 char *_kwnames
[] = { NULL
};
2461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxIconBundle",_kwnames
))
2464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2465 _result
= (wxIconBundle
*)new_wxIconBundle();
2467 wxPyEndAllowThreads(__tstate
);
2468 if (PyErr_Occurred()) return NULL
;
2470 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2471 _resultobj
= Py_BuildValue("s",_ptemp
);
2474 _resultobj
= Py_None
;
2479 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2480 static PyObject
*_wrap_new_wxIconBundleFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2481 PyObject
* _resultobj
;
2482 wxIconBundle
* _result
;
2485 PyObject
* _obj0
= 0;
2486 char *_kwnames
[] = { "file","type", NULL
};
2490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxIconBundleFromFile",_kwnames
,&_obj0
,&_arg1
))
2493 _arg0
= wxString_in_helper(_obj0
);
2498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2499 _result
= (wxIconBundle
*)new_wxIconBundleFromFile(*_arg0
,_arg1
);
2501 wxPyEndAllowThreads(__tstate
);
2502 if (PyErr_Occurred()) return NULL
;
2504 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2505 _resultobj
= Py_BuildValue("s",_ptemp
);
2508 _resultobj
= Py_None
;
2517 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2518 static PyObject
*_wrap_new_wxIconBundleFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2519 PyObject
* _resultobj
;
2520 wxIconBundle
* _result
;
2522 PyObject
* _argo0
= 0;
2523 char *_kwnames
[] = { "icon", NULL
};
2527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxIconBundleFromIcon",_kwnames
,&_argo0
))
2530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
2537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2538 _result
= (wxIconBundle
*)new_wxIconBundleFromIcon(*_arg0
);
2540 wxPyEndAllowThreads(__tstate
);
2541 if (PyErr_Occurred()) return NULL
;
2543 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2544 _resultobj
= Py_BuildValue("s",_ptemp
);
2547 _resultobj
= Py_None
;
2552 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
2553 static PyObject
*_wrap_delete_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2555 wxIconBundle
* _arg0
;
2556 PyObject
* _argo0
= 0;
2557 char *_kwnames
[] = { "self", NULL
};
2560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconBundle",_kwnames
,&_argo0
))
2563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
2570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2571 delete_wxIconBundle(_arg0
);
2573 wxPyEndAllowThreads(__tstate
);
2574 if (PyErr_Occurred()) return NULL
;
2575 } Py_INCREF(Py_None
);
2576 _resultobj
= Py_None
;
2580 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2581 static PyObject
*_wrap_wxIconBundle_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2583 wxIconBundle
* _arg0
;
2585 PyObject
* _argo0
= 0;
2586 PyObject
* _argo1
= 0;
2587 char *_kwnames
[] = { "self","icon", NULL
};
2590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_AddIcon",_kwnames
,&_argo0
,&_argo1
))
2593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
2600 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2601 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
2607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2608 wxIconBundle_AddIcon(_arg0
,*_arg1
);
2610 wxPyEndAllowThreads(__tstate
);
2611 if (PyErr_Occurred()) return NULL
;
2612 } Py_INCREF(Py_None
);
2613 _resultobj
= Py_None
;
2617 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2618 static PyObject
*_wrap_wxIconBundle_AddIconFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
* _resultobj
;
2620 wxIconBundle
* _arg0
;
2623 PyObject
* _argo0
= 0;
2624 PyObject
* _obj1
= 0;
2625 char *_kwnames
[] = { "self","file","type", NULL
};
2628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIconBundle_AddIconFromFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
2638 _arg1
= wxString_in_helper(_obj1
);
2643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2644 wxIconBundle_AddIconFromFile(_arg0
,*_arg1
,_arg2
);
2646 wxPyEndAllowThreads(__tstate
);
2647 if (PyErr_Occurred()) return NULL
;
2648 } Py_INCREF(Py_None
);
2649 _resultobj
= Py_None
;
2657 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
2658 static PyObject
*_wrap_wxIconBundle_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2659 PyObject
* _resultobj
;
2661 wxIconBundle
* _arg0
;
2663 PyObject
* _argo0
= 0;
2665 PyObject
* _obj1
= 0;
2666 char *_kwnames
[] = { "self","size", NULL
};
2670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_GetIcon",_kwnames
,&_argo0
,&_obj1
))
2673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
2681 if (! wxSize_helper(_obj1
, &_arg1
))
2685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2686 const wxIcon
& _result_ref
= wxIconBundle_GetIcon(_arg0
,*_arg1
);
2687 _result
= (wxIcon
*) &_result_ref
;
2689 wxPyEndAllowThreads(__tstate
);
2690 if (PyErr_Occurred()) return NULL
;
2692 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2693 _resultobj
= Py_BuildValue("s",_ptemp
);
2696 _resultobj
= Py_None
;
2701 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2704 src
= (wxCursor
*) ptr
;
2705 dest
= (wxGDIObject
*) src
;
2706 return (void *) dest
;
2709 static void *SwigwxCursorTowxObject(void *ptr
) {
2712 src
= (wxCursor
*) ptr
;
2713 dest
= (wxObject
*) src
;
2714 return (void *) dest
;
2717 #define delete_wxCursor(_swigobj) (delete _swigobj)
2718 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2719 PyObject
* _resultobj
;
2721 PyObject
* _argo0
= 0;
2722 char *_kwnames
[] = { "self", NULL
};
2725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2736 delete_wxCursor(_arg0
);
2738 wxPyEndAllowThreads(__tstate
);
2739 if (PyErr_Occurred()) return NULL
;
2740 } Py_INCREF(Py_None
);
2741 _resultobj
= Py_None
;
2745 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2746 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2747 PyObject
* _resultobj
;
2750 PyObject
* _argo0
= 0;
2751 char *_kwnames
[] = { "self", NULL
};
2754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2765 _result
= (bool )wxCursor_Ok(_arg0
);
2767 wxPyEndAllowThreads(__tstate
);
2768 if (PyErr_Occurred()) return NULL
;
2769 } _resultobj
= Py_BuildValue("i",_result
);
2773 static void *SwigwxColourTowxObject(void *ptr
) {
2776 src
= (wxColour
*) ptr
;
2777 dest
= (wxObject
*) src
;
2778 return (void *) dest
;
2781 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2782 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2783 PyObject
* _resultobj
;
2785 unsigned char _arg0
= (unsigned char ) 0;
2786 unsigned char _arg1
= (unsigned char ) 0;
2787 unsigned char _arg2
= (unsigned char ) 0;
2788 char *_kwnames
[] = { "red","green","blue", NULL
};
2792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
2795 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2796 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
2798 wxPyEndAllowThreads(__tstate
);
2799 if (PyErr_Occurred()) return NULL
;
2801 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
2802 _resultobj
= Py_BuildValue("s",_ptemp
);
2805 _resultobj
= Py_None
;
2810 #define delete_wxColour(_swigobj) (delete _swigobj)
2811 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2812 PyObject
* _resultobj
;
2815 PyObject
* _obj0
= 0;
2816 char *_kwnames
[] = { "self", NULL
};
2819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
2823 if (! wxColour_helper(_obj0
, &_arg0
))
2827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2828 delete_wxColour(_arg0
);
2830 wxPyEndAllowThreads(__tstate
);
2831 if (PyErr_Occurred()) return NULL
;
2832 } Py_INCREF(Py_None
);
2833 _resultobj
= Py_None
;
2837 #define wxColour_Red(_swigobj) (_swigobj->Red())
2838 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
* _resultobj
;
2840 unsigned char _result
;
2843 PyObject
* _obj0
= 0;
2844 char *_kwnames
[] = { "self", NULL
};
2847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
2851 if (! wxColour_helper(_obj0
, &_arg0
))
2855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2856 _result
= (unsigned char )wxColour_Red(_arg0
);
2858 wxPyEndAllowThreads(__tstate
);
2859 if (PyErr_Occurred()) return NULL
;
2860 } _resultobj
= Py_BuildValue("b",_result
);
2864 #define wxColour_Green(_swigobj) (_swigobj->Green())
2865 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2866 PyObject
* _resultobj
;
2867 unsigned char _result
;
2870 PyObject
* _obj0
= 0;
2871 char *_kwnames
[] = { "self", NULL
};
2874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
2878 if (! wxColour_helper(_obj0
, &_arg0
))
2882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2883 _result
= (unsigned char )wxColour_Green(_arg0
);
2885 wxPyEndAllowThreads(__tstate
);
2886 if (PyErr_Occurred()) return NULL
;
2887 } _resultobj
= Py_BuildValue("b",_result
);
2891 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
2892 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2893 PyObject
* _resultobj
;
2894 unsigned char _result
;
2897 PyObject
* _obj0
= 0;
2898 char *_kwnames
[] = { "self", NULL
};
2901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
2905 if (! wxColour_helper(_obj0
, &_arg0
))
2909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2910 _result
= (unsigned char )wxColour_Blue(_arg0
);
2912 wxPyEndAllowThreads(__tstate
);
2913 if (PyErr_Occurred()) return NULL
;
2914 } _resultobj
= Py_BuildValue("b",_result
);
2918 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
2919 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2920 PyObject
* _resultobj
;
2924 PyObject
* _obj0
= 0;
2925 char *_kwnames
[] = { "self", NULL
};
2928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
2932 if (! wxColour_helper(_obj0
, &_arg0
))
2936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2937 _result
= (bool )wxColour_Ok(_arg0
);
2939 wxPyEndAllowThreads(__tstate
);
2940 if (PyErr_Occurred()) return NULL
;
2941 } _resultobj
= Py_BuildValue("i",_result
);
2945 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
2946 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2947 PyObject
* _resultobj
;
2949 unsigned char _arg1
;
2950 unsigned char _arg2
;
2951 unsigned char _arg3
;
2953 PyObject
* _obj0
= 0;
2954 char *_kwnames
[] = { "self","red","green","blue", NULL
};
2957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2961 if (! wxColour_helper(_obj0
, &_arg0
))
2965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2966 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
2968 wxPyEndAllowThreads(__tstate
);
2969 if (PyErr_Occurred()) return NULL
;
2970 } Py_INCREF(Py_None
);
2971 _resultobj
= Py_None
;
2975 static PyObject
* wxColour_Get(wxColour
*self
) {
2976 PyObject
* rv
= PyTuple_New(3);
2977 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
2978 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
2979 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
2982 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2983 PyObject
* _resultobj
;
2987 PyObject
* _obj0
= 0;
2988 char *_kwnames
[] = { "self", NULL
};
2991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
2995 if (! wxColour_helper(_obj0
, &_arg0
))
2999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3000 _result
= (PyObject
*)wxColour_Get(_arg0
);
3002 wxPyEndAllowThreads(__tstate
);
3003 if (PyErr_Occurred()) return NULL
;
3005 _resultobj
= _result
;
3010 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
3011 wxColourDatabase
*src
;
3013 src
= (wxColourDatabase
*) ptr
;
3014 dest
= (wxObject
*) src
;
3015 return (void *) dest
;
3018 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3019 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3020 PyObject
* _resultobj
;
3022 wxColourDatabase
* _arg0
;
3024 PyObject
* _argo0
= 0;
3025 PyObject
* _obj1
= 0;
3026 char *_kwnames
[] = { "self","colour", NULL
};
3030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3040 _arg1
= wxString_in_helper(_obj1
);
3045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3046 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3048 wxPyEndAllowThreads(__tstate
);
3049 if (PyErr_Occurred()) return NULL
;
3051 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3052 _resultobj
= Py_BuildValue("s",_ptemp
);
3055 _resultobj
= Py_None
;
3064 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3065 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3066 PyObject
* _resultobj
;
3068 wxColourDatabase
* _arg0
;
3070 PyObject
* _argo0
= 0;
3072 PyObject
* _obj1
= 0;
3073 char *_kwnames
[] = { "self","colour", NULL
};
3076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3087 if (! wxColour_helper(_obj1
, &_arg1
))
3091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3092 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3094 wxPyEndAllowThreads(__tstate
);
3095 if (PyErr_Occurred()) return NULL
;
3098 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
3100 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3109 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3110 // first see if the name is already there
3111 wxString cName
= name
;
3113 wxString cName2
= cName
;
3114 if ( !cName2
.Replace(wxT("GRAY"), wxT("GREY")) )
3117 wxNode
*node
= self
->First();
3119 const wxChar
*key
= node
->GetKeyString();
3120 if ( cName
== key
|| cName2
== key
) {
3121 wxColour
* c
= (wxColour
*)node
->Data();
3122 c
->Set(red
, green
, blue
);
3125 node
= node
->Next();
3128 // otherwise append the new colour
3129 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3131 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3132 PyObject
* _resultobj
;
3133 wxColourDatabase
* _arg0
;
3138 PyObject
* _argo0
= 0;
3139 PyObject
* _obj1
= 0;
3140 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3153 _arg1
= wxString_in_helper(_obj1
);
3158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3159 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3161 wxPyEndAllowThreads(__tstate
);
3162 if (PyErr_Occurred()) return NULL
;
3163 } Py_INCREF(Py_None
);
3164 _resultobj
= Py_None
;
3172 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3175 src
= (wxPen
*) ptr
;
3176 dest
= (wxGDIObject
*) src
;
3177 return (void *) dest
;
3180 static void *SwigwxPenTowxObject(void *ptr
) {
3183 src
= (wxPen
*) ptr
;
3184 dest
= (wxObject
*) src
;
3185 return (void *) dest
;
3188 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3189 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3190 PyObject
* _resultobj
;
3193 int _arg1
= (int ) 1;
3194 int _arg2
= (int ) wxSOLID
;
3196 PyObject
* _obj0
= 0;
3197 char *_kwnames
[] = { "colour","width","style", NULL
};
3201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3205 if (! wxColour_helper(_obj0
, &_arg0
))
3209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3210 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3212 wxPyEndAllowThreads(__tstate
);
3213 if (PyErr_Occurred()) return NULL
;
3215 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3216 _resultobj
= Py_BuildValue("s",_ptemp
);
3219 _resultobj
= Py_None
;
3224 #define delete_wxPen(_swigobj) (delete _swigobj)
3225 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3226 PyObject
* _resultobj
;
3228 PyObject
* _argo0
= 0;
3229 char *_kwnames
[] = { "self", NULL
};
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3243 delete_wxPen(_arg0
);
3245 wxPyEndAllowThreads(__tstate
);
3246 if (PyErr_Occurred()) return NULL
;
3247 } Py_INCREF(Py_None
);
3248 _resultobj
= Py_None
;
3252 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3253 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3254 PyObject
* _resultobj
;
3257 PyObject
* _argo0
= 0;
3258 char *_kwnames
[] = { "self", NULL
};
3261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3272 _result
= (int )wxPen_GetCap(_arg0
);
3274 wxPyEndAllowThreads(__tstate
);
3275 if (PyErr_Occurred()) return NULL
;
3276 } _resultobj
= Py_BuildValue("i",_result
);
3280 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3281 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3282 PyObject
* _resultobj
;
3285 PyObject
* _argo0
= 0;
3286 char *_kwnames
[] = { "self", NULL
};
3290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3301 _result
= new wxColour (wxPen_GetColour(_arg0
));
3303 wxPyEndAllowThreads(__tstate
);
3304 if (PyErr_Occurred()) return NULL
;
3305 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
3306 _resultobj
= Py_BuildValue("s",_ptemp
);
3310 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3311 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3312 PyObject
* _resultobj
;
3315 PyObject
* _argo0
= 0;
3316 char *_kwnames
[] = { "self", NULL
};
3319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3330 _result
= (int )wxPen_GetJoin(_arg0
);
3332 wxPyEndAllowThreads(__tstate
);
3333 if (PyErr_Occurred()) return NULL
;
3334 } _resultobj
= Py_BuildValue("i",_result
);
3338 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3339 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3340 PyObject
* _resultobj
;
3343 PyObject
* _argo0
= 0;
3344 char *_kwnames
[] = { "self", NULL
};
3347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3358 _result
= (int )wxPen_GetStyle(_arg0
);
3360 wxPyEndAllowThreads(__tstate
);
3361 if (PyErr_Occurred()) return NULL
;
3362 } _resultobj
= Py_BuildValue("i",_result
);
3366 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3367 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3368 PyObject
* _resultobj
;
3371 PyObject
* _argo0
= 0;
3372 char *_kwnames
[] = { "self", NULL
};
3375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3386 _result
= (int )wxPen_GetWidth(_arg0
);
3388 wxPyEndAllowThreads(__tstate
);
3389 if (PyErr_Occurred()) return NULL
;
3390 } _resultobj
= Py_BuildValue("i",_result
);
3394 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3395 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3399 PyObject
* _argo0
= 0;
3400 char *_kwnames
[] = { "self", NULL
};
3403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3414 _result
= (bool )wxPen_Ok(_arg0
);
3416 wxPyEndAllowThreads(__tstate
);
3417 if (PyErr_Occurred()) return NULL
;
3418 } _resultobj
= Py_BuildValue("i",_result
);
3422 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3423 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3424 PyObject
* _resultobj
;
3427 PyObject
* _argo0
= 0;
3428 char *_kwnames
[] = { "self","cap_style", NULL
};
3431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3442 wxPen_SetCap(_arg0
,_arg1
);
3444 wxPyEndAllowThreads(__tstate
);
3445 if (PyErr_Occurred()) return NULL
;
3446 } Py_INCREF(Py_None
);
3447 _resultobj
= Py_None
;
3451 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3452 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3453 PyObject
* _resultobj
;
3456 PyObject
* _argo0
= 0;
3458 PyObject
* _obj1
= 0;
3459 char *_kwnames
[] = { "self","colour", NULL
};
3462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3473 if (! wxColour_helper(_obj1
, &_arg1
))
3477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3478 wxPen_SetColour(_arg0
,*_arg1
);
3480 wxPyEndAllowThreads(__tstate
);
3481 if (PyErr_Occurred()) return NULL
;
3482 } Py_INCREF(Py_None
);
3483 _resultobj
= Py_None
;
3487 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3488 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3489 PyObject
* _resultobj
;
3492 PyObject
* _argo0
= 0;
3493 char *_kwnames
[] = { "self","join_style", NULL
};
3496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3507 wxPen_SetJoin(_arg0
,_arg1
);
3509 wxPyEndAllowThreads(__tstate
);
3510 if (PyErr_Occurred()) return NULL
;
3511 } Py_INCREF(Py_None
);
3512 _resultobj
= Py_None
;
3516 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3517 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3518 PyObject
* _resultobj
;
3521 PyObject
* _argo0
= 0;
3522 char *_kwnames
[] = { "self","style", NULL
};
3525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3536 wxPen_SetStyle(_arg0
,_arg1
);
3538 wxPyEndAllowThreads(__tstate
);
3539 if (PyErr_Occurred()) return NULL
;
3540 } Py_INCREF(Py_None
);
3541 _resultobj
= Py_None
;
3545 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3546 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3547 PyObject
* _resultobj
;
3550 PyObject
* _argo0
= 0;
3551 char *_kwnames
[] = { "self","width", NULL
};
3554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3565 wxPen_SetWidth(_arg0
,_arg1
);
3567 wxPyEndAllowThreads(__tstate
);
3568 if (PyErr_Occurred()) return NULL
;
3569 } Py_INCREF(Py_None
);
3570 _resultobj
= Py_None
;
3574 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3575 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3576 PyObject
* _resultobj
;
3580 PyObject
* _argo0
= 0;
3581 PyObject
* _obj2
= 0;
3582 char *_kwnames
[] = { "self","choices", NULL
};
3585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3596 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3597 if (_arg2
== NULL
) {
3603 _arg1
= PyList_Size(_obj2
);
3610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3611 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
3613 wxPyEndAllowThreads(__tstate
);
3614 if (PyErr_Occurred()) return NULL
;
3615 } Py_INCREF(Py_None
);
3616 _resultobj
= Py_None
;
3623 static PyObject
* wxPen_GetDashes(wxPen
*self
) {
3625 int count
= self
->GetDashes(&dashes
);
3626 wxPyBeginBlockThreads();
3627 PyObject
* retval
= PyList_New(0);
3628 for (int x
=0; x
<count
; x
++)
3629 PyList_Append(retval
, PyInt_FromLong(dashes
[x
]));
3630 wxPyEndBlockThreads();
3633 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3634 PyObject
* _resultobj
;
3637 PyObject
* _argo0
= 0;
3638 char *_kwnames
[] = { "self", NULL
};
3641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetDashes",_kwnames
,&_argo0
))
3644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3652 _result
= (PyObject
*)wxPen_GetDashes(_arg0
);
3654 wxPyEndAllowThreads(__tstate
);
3655 if (PyErr_Occurred()) return NULL
;
3657 _resultobj
= _result
;
3662 static void *SwigwxPyPenTowxPen(void *ptr
) {
3665 src
= (wxPyPen
*) ptr
;
3666 dest
= (wxPen
*) src
;
3667 return (void *) dest
;
3670 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
3673 src
= (wxPyPen
*) ptr
;
3674 dest
= (wxGDIObject
*) src
;
3675 return (void *) dest
;
3678 static void *SwigwxPyPenTowxObject(void *ptr
) {
3681 src
= (wxPyPen
*) ptr
;
3682 dest
= (wxObject
*) src
;
3683 return (void *) dest
;
3686 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
3687 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3688 PyObject
* _resultobj
;
3691 int _arg1
= (int ) 1;
3692 int _arg2
= (int ) wxSOLID
;
3694 PyObject
* _obj0
= 0;
3695 char *_kwnames
[] = { "colour","width","style", NULL
};
3699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3703 if (! wxColour_helper(_obj0
, &_arg0
))
3707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3708 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
3710 wxPyEndAllowThreads(__tstate
);
3711 if (PyErr_Occurred()) return NULL
;
3713 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
3714 _resultobj
= Py_BuildValue("s",_ptemp
);
3717 _resultobj
= Py_None
;
3722 #define delete_wxPyPen(_swigobj) (delete _swigobj)
3723 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3724 PyObject
* _resultobj
;
3726 PyObject
* _argo0
= 0;
3727 char *_kwnames
[] = { "self", NULL
};
3730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
3733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
3735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
3740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3741 delete_wxPyPen(_arg0
);
3743 wxPyEndAllowThreads(__tstate
);
3744 if (PyErr_Occurred()) return NULL
;
3745 } Py_INCREF(Py_None
);
3746 _resultobj
= Py_None
;
3750 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3751 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3752 PyObject
* _resultobj
;
3756 PyObject
* _argo0
= 0;
3757 PyObject
* _obj2
= 0;
3758 char *_kwnames
[] = { "self","choices", NULL
};
3761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
3766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
3772 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3773 if (_arg2
== NULL
) {
3779 _arg1
= PyList_Size(_obj2
);
3786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3787 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
3789 wxPyEndAllowThreads(__tstate
);
3790 if (PyErr_Occurred()) return NULL
;
3791 } Py_INCREF(Py_None
);
3792 _resultobj
= Py_None
;
3799 static void *SwigwxPenListTowxObject(void *ptr
) {
3802 src
= (wxPenList
*) ptr
;
3803 dest
= (wxObject
*) src
;
3804 return (void *) dest
;
3807 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3808 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3809 PyObject
* _resultobj
;
3812 PyObject
* _argo0
= 0;
3813 PyObject
* _argo1
= 0;
3814 char *_kwnames
[] = { "self","pen", NULL
};
3817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
3820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3827 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3828 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3835 wxPenList_AddPen(_arg0
,_arg1
);
3837 wxPyEndAllowThreads(__tstate
);
3838 if (PyErr_Occurred()) return NULL
;
3839 } Py_INCREF(Py_None
);
3840 _resultobj
= Py_None
;
3844 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3845 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3846 PyObject
* _resultobj
;
3852 PyObject
* _argo0
= 0;
3854 PyObject
* _obj1
= 0;
3855 char *_kwnames
[] = { "self","colour","width","style", NULL
};
3859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
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_FindOrCreatePen. Expected _wxPenList_p.");
3870 if (! wxColour_helper(_obj1
, &_arg1
))
3874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3875 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
3877 wxPyEndAllowThreads(__tstate
);
3878 if (PyErr_Occurred()) return NULL
;
3880 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3881 _resultobj
= Py_BuildValue("s",_ptemp
);
3884 _resultobj
= Py_None
;
3889 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3890 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3891 PyObject
* _resultobj
;
3894 PyObject
* _argo0
= 0;
3895 PyObject
* _argo1
= 0;
3896 char *_kwnames
[] = { "self","pen", NULL
};
3899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
3902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3909 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3910 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3917 wxPenList_RemovePen(_arg0
,_arg1
);
3919 wxPyEndAllowThreads(__tstate
);
3920 if (PyErr_Occurred()) return NULL
;
3921 } Py_INCREF(Py_None
);
3922 _resultobj
= Py_None
;
3926 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
3927 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3928 PyObject
* _resultobj
;
3931 PyObject
* _argo0
= 0;
3932 char *_kwnames
[] = { "self", NULL
};
3935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
3938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
3945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3946 _result
= (int )wxPenList_GetCount(_arg0
);
3948 wxPyEndAllowThreads(__tstate
);
3949 if (PyErr_Occurred()) return NULL
;
3950 } _resultobj
= Py_BuildValue("i",_result
);
3954 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
3957 src
= (wxBrush
*) ptr
;
3958 dest
= (wxGDIObject
*) src
;
3959 return (void *) dest
;
3962 static void *SwigwxBrushTowxObject(void *ptr
) {
3965 src
= (wxBrush
*) ptr
;
3966 dest
= (wxObject
*) src
;
3967 return (void *) dest
;
3970 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
3971 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3972 PyObject
* _resultobj
;
3975 int _arg1
= (int ) wxSOLID
;
3977 PyObject
* _obj0
= 0;
3978 char *_kwnames
[] = { "colour","style", NULL
};
3982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
3986 if (! wxColour_helper(_obj0
, &_arg0
))
3990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3991 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
3993 wxPyEndAllowThreads(__tstate
);
3994 if (PyErr_Occurred()) return NULL
;
3996 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
3997 _resultobj
= Py_BuildValue("s",_ptemp
);
4000 _resultobj
= Py_None
;
4005 #define delete_wxBrush(_swigobj) (delete _swigobj)
4006 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4007 PyObject
* _resultobj
;
4009 PyObject
* _argo0
= 0;
4010 char *_kwnames
[] = { "self", NULL
};
4013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4024 delete_wxBrush(_arg0
);
4026 wxPyEndAllowThreads(__tstate
);
4027 if (PyErr_Occurred()) return NULL
;
4028 } Py_INCREF(Py_None
);
4029 _resultobj
= Py_None
;
4033 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4034 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4035 PyObject
* _resultobj
;
4038 PyObject
* _argo0
= 0;
4039 char *_kwnames
[] = { "self", NULL
};
4043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4054 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4056 wxPyEndAllowThreads(__tstate
);
4057 if (PyErr_Occurred()) return NULL
;
4058 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4059 _resultobj
= Py_BuildValue("s",_ptemp
);
4063 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4064 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4065 PyObject
* _resultobj
;
4068 PyObject
* _argo0
= 0;
4069 char *_kwnames
[] = { "self", NULL
};
4073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4084 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4086 wxPyEndAllowThreads(__tstate
);
4087 if (PyErr_Occurred()) return NULL
;
4089 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4090 _resultobj
= Py_BuildValue("s",_ptemp
);
4093 _resultobj
= Py_None
;
4098 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4099 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4100 PyObject
* _resultobj
;
4103 PyObject
* _argo0
= 0;
4104 char *_kwnames
[] = { "self", NULL
};
4107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4118 _result
= (int )wxBrush_GetStyle(_arg0
);
4120 wxPyEndAllowThreads(__tstate
);
4121 if (PyErr_Occurred()) return NULL
;
4122 } _resultobj
= Py_BuildValue("i",_result
);
4126 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4127 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4128 PyObject
* _resultobj
;
4131 PyObject
* _argo0
= 0;
4132 char *_kwnames
[] = { "self", NULL
};
4135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4146 _result
= (bool )wxBrush_Ok(_arg0
);
4148 wxPyEndAllowThreads(__tstate
);
4149 if (PyErr_Occurred()) return NULL
;
4150 } _resultobj
= Py_BuildValue("i",_result
);
4154 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4155 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4156 PyObject
* _resultobj
;
4159 PyObject
* _argo0
= 0;
4161 PyObject
* _obj1
= 0;
4162 char *_kwnames
[] = { "self","colour", NULL
};
4165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4176 if (! wxColour_helper(_obj1
, &_arg1
))
4180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4181 wxBrush_SetColour(_arg0
,*_arg1
);
4183 wxPyEndAllowThreads(__tstate
);
4184 if (PyErr_Occurred()) return NULL
;
4185 } Py_INCREF(Py_None
);
4186 _resultobj
= Py_None
;
4190 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4191 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4192 PyObject
* _resultobj
;
4195 PyObject
* _argo0
= 0;
4196 PyObject
* _argo1
= 0;
4197 char *_kwnames
[] = { "self","bitmap", NULL
};
4200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4210 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4211 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4218 wxBrush_SetStipple(_arg0
,*_arg1
);
4220 wxPyEndAllowThreads(__tstate
);
4221 if (PyErr_Occurred()) return NULL
;
4222 } Py_INCREF(Py_None
);
4223 _resultobj
= Py_None
;
4227 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4228 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4229 PyObject
* _resultobj
;
4232 PyObject
* _argo0
= 0;
4233 char *_kwnames
[] = { "self","style", NULL
};
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4247 wxBrush_SetStyle(_arg0
,_arg1
);
4249 wxPyEndAllowThreads(__tstate
);
4250 if (PyErr_Occurred()) return NULL
;
4251 } Py_INCREF(Py_None
);
4252 _resultobj
= Py_None
;
4256 static void *SwigwxBrushListTowxObject(void *ptr
) {
4259 src
= (wxBrushList
*) ptr
;
4260 dest
= (wxObject
*) src
;
4261 return (void *) dest
;
4264 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4265 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4266 PyObject
* _resultobj
;
4267 wxBrushList
* _arg0
;
4269 PyObject
* _argo0
= 0;
4270 PyObject
* _argo1
= 0;
4271 char *_kwnames
[] = { "self","brush", NULL
};
4274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4292 wxBrushList_AddBrush(_arg0
,_arg1
);
4294 wxPyEndAllowThreads(__tstate
);
4295 if (PyErr_Occurred()) return NULL
;
4296 } Py_INCREF(Py_None
);
4297 _resultobj
= Py_None
;
4301 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4302 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4303 PyObject
* _resultobj
;
4305 wxBrushList
* _arg0
;
4308 PyObject
* _argo0
= 0;
4310 PyObject
* _obj1
= 0;
4311 char *_kwnames
[] = { "self","colour","style", NULL
};
4315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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_FindOrCreateBrush. Expected _wxBrushList_p.");
4326 if (! wxColour_helper(_obj1
, &_arg1
))
4330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4331 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4333 wxPyEndAllowThreads(__tstate
);
4334 if (PyErr_Occurred()) return NULL
;
4336 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4337 _resultobj
= Py_BuildValue("s",_ptemp
);
4340 _resultobj
= Py_None
;
4345 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4346 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4347 PyObject
* _resultobj
;
4348 wxBrushList
* _arg0
;
4350 PyObject
* _argo0
= 0;
4351 PyObject
* _argo1
= 0;
4352 char *_kwnames
[] = { "self","brush", NULL
};
4355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4365 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4366 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4373 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4375 wxPyEndAllowThreads(__tstate
);
4376 if (PyErr_Occurred()) return NULL
;
4377 } Py_INCREF(Py_None
);
4378 _resultobj
= Py_None
;
4382 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
4383 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4384 PyObject
* _resultobj
;
4386 wxBrushList
* _arg0
;
4387 PyObject
* _argo0
= 0;
4388 char *_kwnames
[] = { "self", NULL
};
4391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
4394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
4401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4402 _result
= (int )wxBrushList_GetCount(_arg0
);
4404 wxPyEndAllowThreads(__tstate
);
4405 if (PyErr_Occurred()) return NULL
;
4406 } _resultobj
= Py_BuildValue("i",_result
);
4410 static void *SwigwxDCTowxObject(void *ptr
) {
4414 dest
= (wxObject
*) src
;
4415 return (void *) dest
;
4418 #define delete_wxDC(_swigobj) (delete _swigobj)
4419 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4420 PyObject
* _resultobj
;
4422 PyObject
* _argo0
= 0;
4423 char *_kwnames
[] = { "self", NULL
};
4426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4439 wxPyEndAllowThreads(__tstate
);
4440 if (PyErr_Occurred()) return NULL
;
4441 } Py_INCREF(Py_None
);
4442 _resultobj
= Py_None
;
4446 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4447 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4448 PyObject
* _resultobj
;
4450 PyObject
* _argo0
= 0;
4451 char *_kwnames
[] = { "self", NULL
};
4454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4465 wxDC_BeginDrawing(_arg0
);
4467 wxPyEndAllowThreads(__tstate
);
4468 if (PyErr_Occurred()) return NULL
;
4469 } Py_INCREF(Py_None
);
4470 _resultobj
= Py_None
;
4474 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4475 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4476 PyObject
* _resultobj
;
4486 int _arg8
= (int ) wxCOPY
;
4487 int _arg9
= (int ) FALSE
;
4488 PyObject
* _argo0
= 0;
4489 PyObject
* _argo5
= 0;
4490 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4503 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4504 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4511 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4513 wxPyEndAllowThreads(__tstate
);
4514 if (PyErr_Occurred()) return NULL
;
4515 } _resultobj
= Py_BuildValue("i",_result
);
4519 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4520 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4521 PyObject
* _resultobj
;
4523 PyObject
* _argo0
= 0;
4524 char *_kwnames
[] = { "self", NULL
};
4527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4540 wxPyEndAllowThreads(__tstate
);
4541 if (PyErr_Occurred()) return NULL
;
4542 } Py_INCREF(Py_None
);
4543 _resultobj
= Py_None
;
4547 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4548 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4549 PyObject
* _resultobj
;
4553 PyObject
* _argo0
= 0;
4554 char *_kwnames
[] = { "self","x","y", NULL
};
4557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4568 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4570 wxPyEndAllowThreads(__tstate
);
4571 if (PyErr_Occurred()) return NULL
;
4572 } Py_INCREF(Py_None
);
4573 _resultobj
= Py_None
;
4577 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4578 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4579 PyObject
* _resultobj
;
4581 PyObject
* _argo0
= 0;
4582 char *_kwnames
[] = { "self", NULL
};
4585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4596 wxDC_DestroyClippingRegion(_arg0
);
4598 wxPyEndAllowThreads(__tstate
);
4599 if (PyErr_Occurred()) return NULL
;
4600 } Py_INCREF(Py_None
);
4601 _resultobj
= Py_None
;
4605 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4606 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4607 PyObject
* _resultobj
;
4611 PyObject
* _argo0
= 0;
4612 char *_kwnames
[] = { "self","x", NULL
};
4615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4625 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4626 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4628 wxPyEndAllowThreads(__tstate
);
4629 if (PyErr_Occurred()) return NULL
;
4630 } _resultobj
= Py_BuildValue("l",_result
);
4634 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4635 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4636 PyObject
* _resultobj
;
4640 PyObject
* _argo0
= 0;
4641 char *_kwnames
[] = { "self","x", NULL
};
4644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4655 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4657 wxPyEndAllowThreads(__tstate
);
4658 if (PyErr_Occurred()) return NULL
;
4659 } _resultobj
= Py_BuildValue("l",_result
);
4663 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4664 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4665 PyObject
* _resultobj
;
4669 PyObject
* _argo0
= 0;
4670 char *_kwnames
[] = { "self","y", NULL
};
4673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4683 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4684 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4686 wxPyEndAllowThreads(__tstate
);
4687 if (PyErr_Occurred()) return NULL
;
4688 } _resultobj
= Py_BuildValue("l",_result
);
4692 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4693 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4694 PyObject
* _resultobj
;
4698 PyObject
* _argo0
= 0;
4699 char *_kwnames
[] = { "self","y", NULL
};
4702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
4705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4713 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
4715 wxPyEndAllowThreads(__tstate
);
4716 if (PyErr_Occurred()) return NULL
;
4717 } _resultobj
= Py_BuildValue("l",_result
);
4721 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4722 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4723 PyObject
* _resultobj
;
4731 PyObject
* _argo0
= 0;
4732 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
4735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
4745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4746 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4748 wxPyEndAllowThreads(__tstate
);
4749 if (PyErr_Occurred()) return NULL
;
4750 } Py_INCREF(Py_None
);
4751 _resultobj
= Py_None
;
4755 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
4756 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4757 PyObject
* _resultobj
;
4762 PyObject
* _argo0
= 0;
4763 char *_kwnames
[] = { "self","x","y","radius", NULL
};
4766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
4769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4777 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
4779 wxPyEndAllowThreads(__tstate
);
4780 if (PyErr_Occurred()) return NULL
;
4781 } Py_INCREF(Py_None
);
4782 _resultobj
= Py_None
;
4786 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4787 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4788 PyObject
* _resultobj
;
4794 PyObject
* _argo0
= 0;
4795 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4809 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4811 wxPyEndAllowThreads(__tstate
);
4812 if (PyErr_Occurred()) return NULL
;
4813 } Py_INCREF(Py_None
);
4814 _resultobj
= Py_None
;
4818 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4819 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4820 PyObject
* _resultobj
;
4828 PyObject
* _argo0
= 0;
4829 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
4832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4843 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4845 wxPyEndAllowThreads(__tstate
);
4846 if (PyErr_Occurred()) return NULL
;
4847 } Py_INCREF(Py_None
);
4848 _resultobj
= Py_None
;
4852 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
4853 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4854 PyObject
* _resultobj
;
4859 PyObject
* _argo0
= 0;
4860 PyObject
* _argo1
= 0;
4861 char *_kwnames
[] = { "self","icon","x","y", NULL
};
4864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
4867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4874 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4875 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
4876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4882 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
4884 wxPyEndAllowThreads(__tstate
);
4885 if (PyErr_Occurred()) return NULL
;
4886 } Py_INCREF(Py_None
);
4887 _resultobj
= Py_None
;
4891 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4892 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4893 PyObject
* _resultobj
;
4897 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
4898 int _arg4
= (int ) -1;
4899 PyObject
* _argo0
= 0;
4900 PyObject
* _obj1
= 0;
4902 PyObject
* _obj2
= 0;
4903 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
4906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
4909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
4916 _arg1
= wxString_in_helper(_obj1
);
4922 if (! wxRect_helper(_obj2
, &_arg2
))
4926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4927 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
4929 wxPyEndAllowThreads(__tstate
);
4930 if (PyErr_Occurred()) return NULL
;
4931 } Py_INCREF(Py_None
);
4932 _resultobj
= Py_None
;
4940 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
4942 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
4945 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4946 PyObject
* _resultobj
;
4952 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
4953 int _arg5
= (int ) -1;
4954 PyObject
* _argo0
= 0;
4955 PyObject
* _obj1
= 0;
4956 PyObject
* _argo2
= 0;
4958 PyObject
* _obj3
= 0;
4959 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
4963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
4966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
4973 _arg1
= wxString_in_helper(_obj1
);
4978 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4979 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
4980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
4986 if (! wxRect_helper(_obj3
, &_arg3
))
4990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4991 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
4993 wxPyEndAllowThreads(__tstate
);
4994 if (PyErr_Occurred()) return NULL
;
4995 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
4996 _resultobj
= Py_BuildValue("s",_ptemp
);
5004 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5005 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5006 PyObject
* _resultobj
;
5012 PyObject
* _argo0
= 0;
5013 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5027 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5029 wxPyEndAllowThreads(__tstate
);
5030 if (PyErr_Occurred()) return NULL
;
5031 } Py_INCREF(Py_None
);
5032 _resultobj
= Py_None
;
5036 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5037 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5042 long _arg3
= (long ) 0;
5043 long _arg4
= (long ) 0;
5044 PyObject
* _argo0
= 0;
5046 PyObject
* _obj2
= 0;
5047 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5061 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5062 if (_arg2
== NULL
) {
5070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5071 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5073 wxPyEndAllowThreads(__tstate
);
5074 if (PyErr_Occurred()) return NULL
;
5075 } Py_INCREF(Py_None
);
5076 _resultobj
= Py_None
;
5083 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5084 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5085 PyObject
* _resultobj
;
5089 long _arg3
= (long ) 0;
5090 long _arg4
= (long ) 0;
5091 int _arg5
= (int ) wxODDEVEN_RULE
;
5092 PyObject
* _argo0
= 0;
5094 PyObject
* _obj2
= 0;
5095 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5109 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5110 if (_arg2
== NULL
) {
5118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5119 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5121 wxPyEndAllowThreads(__tstate
);
5122 if (PyErr_Occurred()) return NULL
;
5123 } Py_INCREF(Py_None
);
5124 _resultobj
= Py_None
;
5131 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5132 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5133 PyObject
* _resultobj
;
5137 PyObject
* _argo0
= 0;
5138 char *_kwnames
[] = { "self","x","y", NULL
};
5141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5152 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5154 wxPyEndAllowThreads(__tstate
);
5155 if (PyErr_Occurred()) return NULL
;
5156 } Py_INCREF(Py_None
);
5157 _resultobj
= Py_None
;
5161 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5162 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5163 PyObject
* _resultobj
;
5169 PyObject
* _argo0
= 0;
5170 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5184 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5186 wxPyEndAllowThreads(__tstate
);
5187 if (PyErr_Occurred()) return NULL
;
5188 } Py_INCREF(Py_None
);
5189 _resultobj
= Py_None
;
5193 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
5194 static PyObject
*_wrap_wxDC_DrawRectangleRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5195 PyObject
* _resultobj
;
5198 PyObject
* _argo0
= 0;
5200 PyObject
* _obj1
= 0;
5201 char *_kwnames
[] = { "self","rect", NULL
};
5204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawRectangleRect",_kwnames
,&_argo0
,&_obj1
))
5207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
5215 if (! wxRect_helper(_obj1
, &_arg1
))
5219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5220 wxDC_DrawRectangleRect(_arg0
,*_arg1
);
5222 wxPyEndAllowThreads(__tstate
);
5223 if (PyErr_Occurred()) return NULL
;
5224 } Py_INCREF(Py_None
);
5225 _resultobj
= Py_None
;
5229 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5230 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5231 PyObject
* _resultobj
;
5237 PyObject
* _argo0
= 0;
5238 PyObject
* _obj1
= 0;
5239 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5252 _arg1
= wxString_in_helper(_obj1
);
5257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5258 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5260 wxPyEndAllowThreads(__tstate
);
5261 if (PyErr_Occurred()) return NULL
;
5262 } Py_INCREF(Py_None
);
5263 _resultobj
= Py_None
;
5271 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5272 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5273 PyObject
* _resultobj
;
5279 long _arg5
= (long ) 20;
5280 PyObject
* _argo0
= 0;
5281 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5295 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5297 wxPyEndAllowThreads(__tstate
);
5298 if (PyErr_Occurred()) return NULL
;
5299 } Py_INCREF(Py_None
);
5300 _resultobj
= Py_None
;
5304 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5305 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5306 PyObject
* _resultobj
;
5310 PyObject
* _argo0
= 0;
5312 PyObject
* _obj2
= 0;
5313 char *_kwnames
[] = { "self","points", NULL
};
5316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5327 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5328 if (_arg2
== NULL
) {
5336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5337 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5339 wxPyEndAllowThreads(__tstate
);
5340 if (PyErr_Occurred()) return NULL
;
5341 } Py_INCREF(Py_None
);
5342 _resultobj
= Py_None
;
5349 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5350 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5351 PyObject
* _resultobj
;
5356 PyObject
* _argo0
= 0;
5357 PyObject
* _obj1
= 0;
5358 char *_kwnames
[] = { "self","text","x","y", NULL
};
5361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5371 _arg1
= wxString_in_helper(_obj1
);
5376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5377 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5379 wxPyEndAllowThreads(__tstate
);
5380 if (PyErr_Occurred()) return NULL
;
5381 } Py_INCREF(Py_None
);
5382 _resultobj
= Py_None
;
5390 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5391 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5392 PyObject
* _resultobj
;
5394 PyObject
* _argo0
= 0;
5395 char *_kwnames
[] = { "self", NULL
};
5398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5411 wxPyEndAllowThreads(__tstate
);
5412 if (PyErr_Occurred()) return NULL
;
5413 } Py_INCREF(Py_None
);
5414 _resultobj
= Py_None
;
5418 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5419 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5420 PyObject
* _resultobj
;
5422 PyObject
* _argo0
= 0;
5423 char *_kwnames
[] = { "self", NULL
};
5426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5437 wxDC_EndDrawing(_arg0
);
5439 wxPyEndAllowThreads(__tstate
);
5440 if (PyErr_Occurred()) return NULL
;
5441 } Py_INCREF(Py_None
);
5442 _resultobj
= Py_None
;
5446 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5447 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5448 PyObject
* _resultobj
;
5450 PyObject
* _argo0
= 0;
5451 char *_kwnames
[] = { "self", NULL
};
5454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5465 wxDC_EndPage(_arg0
);
5467 wxPyEndAllowThreads(__tstate
);
5468 if (PyErr_Occurred()) return NULL
;
5469 } Py_INCREF(Py_None
);
5470 _resultobj
= Py_None
;
5474 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5475 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5476 PyObject
* _resultobj
;
5482 int _arg4
= (int ) wxFLOOD_SURFACE
;
5483 PyObject
* _argo0
= 0;
5485 PyObject
* _obj3
= 0;
5486 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5500 if (! wxColour_helper(_obj3
, &_arg3
))
5504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5505 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5507 wxPyEndAllowThreads(__tstate
);
5508 if (PyErr_Occurred()) return NULL
;
5509 } _resultobj
= Py_BuildValue("i",_result
);
5513 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5514 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5515 PyObject
* _resultobj
;
5518 PyObject
* _argo0
= 0;
5519 char *_kwnames
[] = { "self", NULL
};
5523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5534 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
5536 wxPyEndAllowThreads(__tstate
);
5537 if (PyErr_Occurred()) return NULL
;
5538 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5539 _resultobj
= Py_BuildValue("s",_ptemp
);
5543 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5544 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5545 PyObject
* _resultobj
;
5548 PyObject
* _argo0
= 0;
5549 char *_kwnames
[] = { "self", NULL
};
5553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5564 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
5566 wxPyEndAllowThreads(__tstate
);
5567 if (PyErr_Occurred()) return NULL
;
5568 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5569 _resultobj
= Py_BuildValue("s",_ptemp
);
5573 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5574 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5575 PyObject
* _resultobj
;
5578 PyObject
* _argo0
= 0;
5579 char *_kwnames
[] = { "self", NULL
};
5582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5593 _result
= (long )wxDC_GetCharHeight(_arg0
);
5595 wxPyEndAllowThreads(__tstate
);
5596 if (PyErr_Occurred()) return NULL
;
5597 } _resultobj
= Py_BuildValue("l",_result
);
5601 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5602 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5603 PyObject
* _resultobj
;
5606 PyObject
* _argo0
= 0;
5607 char *_kwnames
[] = { "self", NULL
};
5610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5621 _result
= (long )wxDC_GetCharWidth(_arg0
);
5623 wxPyEndAllowThreads(__tstate
);
5624 if (PyErr_Occurred()) return NULL
;
5625 } _resultobj
= Py_BuildValue("l",_result
);
5629 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5630 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5631 PyObject
* _resultobj
;
5641 PyObject
* _argo0
= 0;
5642 char *_kwnames
[] = { "self", NULL
};
5657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5668 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5670 wxPyEndAllowThreads(__tstate
);
5671 if (PyErr_Occurred()) return NULL
;
5672 } Py_INCREF(Py_None
);
5673 _resultobj
= Py_None
;
5676 o
= PyInt_FromLong((long) (*_arg1
));
5677 _resultobj
= t_output_helper(_resultobj
, o
);
5681 o
= PyInt_FromLong((long) (*_arg2
));
5682 _resultobj
= t_output_helper(_resultobj
, o
);
5686 o
= PyInt_FromLong((long) (*_arg3
));
5687 _resultobj
= t_output_helper(_resultobj
, o
);
5691 o
= PyInt_FromLong((long) (*_arg4
));
5692 _resultobj
= t_output_helper(_resultobj
, o
);
5697 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5698 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5699 PyObject
* _resultobj
;
5702 PyObject
* _argo0
= 0;
5703 char *_kwnames
[] = { "self", NULL
};
5707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5718 _result
= new wxFont (wxDC_GetFont(_arg0
));
5720 wxPyEndAllowThreads(__tstate
);
5721 if (PyErr_Occurred()) return NULL
;
5722 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
5723 _resultobj
= Py_BuildValue("s",_ptemp
);
5727 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5728 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5729 PyObject
* _resultobj
;
5732 PyObject
* _argo0
= 0;
5733 char *_kwnames
[] = { "self", NULL
};
5736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5747 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5749 wxPyEndAllowThreads(__tstate
);
5750 if (PyErr_Occurred()) return NULL
;
5751 } _resultobj
= Py_BuildValue("i",_result
);
5755 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5756 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5757 PyObject
* _resultobj
;
5763 PyObject
* _argo0
= 0;
5764 char *_kwnames
[] = { "self", NULL
};
5773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5784 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5786 wxPyEndAllowThreads(__tstate
);
5787 if (PyErr_Occurred()) return NULL
;
5788 } Py_INCREF(Py_None
);
5789 _resultobj
= Py_None
;
5792 o
= PyFloat_FromDouble((double) (*_arg1
));
5793 _resultobj
= t_output_helper(_resultobj
, o
);
5797 o
= PyFloat_FromDouble((double) (*_arg2
));
5798 _resultobj
= t_output_helper(_resultobj
, o
);
5803 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5804 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5805 PyObject
* _resultobj
;
5808 PyObject
* _argo0
= 0;
5809 char *_kwnames
[] = { "self", NULL
};
5812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5823 _result
= (int )wxDC_GetMapMode(_arg0
);
5825 wxPyEndAllowThreads(__tstate
);
5826 if (PyErr_Occurred()) return NULL
;
5827 } _resultobj
= Py_BuildValue("i",_result
);
5831 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5832 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5833 PyObject
* _resultobj
;
5836 PyObject
* _argo0
= 0;
5837 char *_kwnames
[] = { "self", NULL
};
5840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
5843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5851 _result
= (bool )wxDC_GetOptimization(_arg0
);
5853 wxPyEndAllowThreads(__tstate
);
5854 if (PyErr_Occurred()) return NULL
;
5855 } _resultobj
= Py_BuildValue("i",_result
);
5859 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5860 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5861 PyObject
* _resultobj
;
5864 PyObject
* _argo0
= 0;
5865 char *_kwnames
[] = { "self", NULL
};
5869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
5872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5880 _result
= new wxPen (wxDC_GetPen(_arg0
));
5882 wxPyEndAllowThreads(__tstate
);
5883 if (PyErr_Occurred()) return NULL
;
5884 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
5885 _resultobj
= Py_BuildValue("s",_ptemp
);
5889 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
5890 wxColour
* wc
= new wxColour();
5891 self
->GetPixel(x
, y
, wc
);
5894 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5895 PyObject
* _resultobj
;
5900 PyObject
* _argo0
= 0;
5901 char *_kwnames
[] = { "self","x","y", NULL
};
5905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5916 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
5918 wxPyEndAllowThreads(__tstate
);
5919 if (PyErr_Occurred()) return NULL
;
5921 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5922 _resultobj
= Py_BuildValue("s",_ptemp
);
5925 _resultobj
= Py_None
;
5930 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
5931 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5932 PyObject
* _resultobj
;
5938 PyObject
* _argo0
= 0;
5939 char *_kwnames
[] = { "self", NULL
};
5948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_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_GetSizeTuple. Expected _wxDC_p.");
5958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5959 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
5961 wxPyEndAllowThreads(__tstate
);
5962 if (PyErr_Occurred()) return NULL
;
5963 } Py_INCREF(Py_None
);
5964 _resultobj
= Py_None
;
5967 o
= PyInt_FromLong((long) (*_arg1
));
5968 _resultobj
= t_output_helper(_resultobj
, o
);
5972 o
= PyInt_FromLong((long) (*_arg2
));
5973 _resultobj
= t_output_helper(_resultobj
, o
);
5978 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
5979 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5980 PyObject
* _resultobj
;
5983 PyObject
* _argo0
= 0;
5984 char *_kwnames
[] = { "self", NULL
};
5988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
5991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
5998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5999 _result
= new wxSize (wxDC_GetSize(_arg0
));
6001 wxPyEndAllowThreads(__tstate
);
6002 if (PyErr_Occurred()) return NULL
;
6003 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6004 _resultobj
= Py_BuildValue("s",_ptemp
);
6008 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6009 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6010 PyObject
* _resultobj
;
6013 PyObject
* _argo0
= 0;
6014 char *_kwnames
[] = { "self", NULL
};
6018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6029 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6031 wxPyEndAllowThreads(__tstate
);
6032 if (PyErr_Occurred()) return NULL
;
6033 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6034 _resultobj
= Py_BuildValue("s",_ptemp
);
6038 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6039 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6040 PyObject
* _resultobj
;
6043 PyObject
* _argo0
= 0;
6044 char *_kwnames
[] = { "self", NULL
};
6048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
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_GetTextBackground. Expected _wxDC_p.");
6058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6059 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6061 wxPyEndAllowThreads(__tstate
);
6062 if (PyErr_Occurred()) return NULL
;
6063 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6064 _resultobj
= Py_BuildValue("s",_ptemp
);
6068 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6069 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6070 PyObject
* _resultobj
;
6077 PyObject
* _argo0
= 0;
6078 PyObject
* _obj1
= 0;
6079 char *_kwnames
[] = { "self","string", NULL
};
6088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6098 _arg1
= wxString_in_helper(_obj1
);
6103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6104 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6106 wxPyEndAllowThreads(__tstate
);
6107 if (PyErr_Occurred()) return NULL
;
6108 } Py_INCREF(Py_None
);
6109 _resultobj
= Py_None
;
6112 o
= PyInt_FromLong((long) (*_arg2
));
6113 _resultobj
= t_output_helper(_resultobj
, o
);
6117 o
= PyInt_FromLong((long) (*_arg3
));
6118 _resultobj
= t_output_helper(_resultobj
, o
);
6127 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6128 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6129 PyObject
* _resultobj
;
6140 wxFont
* _arg6
= (wxFont
*) NULL
;
6141 PyObject
* _argo0
= 0;
6142 PyObject
* _obj1
= 0;
6143 PyObject
* _argo6
= 0;
6144 char *_kwnames
[] = { "self","string","font", NULL
};
6159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6169 _arg1
= wxString_in_helper(_obj1
);
6174 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6175 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6182 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6184 wxPyEndAllowThreads(__tstate
);
6185 if (PyErr_Occurred()) return NULL
;
6186 } Py_INCREF(Py_None
);
6187 _resultobj
= Py_None
;
6190 o
= PyInt_FromLong((long) (*_arg2
));
6191 _resultobj
= t_output_helper(_resultobj
, o
);
6195 o
= PyInt_FromLong((long) (*_arg3
));
6196 _resultobj
= t_output_helper(_resultobj
, o
);
6200 o
= PyInt_FromLong((long) (*_arg4
));
6201 _resultobj
= t_output_helper(_resultobj
, o
);
6205 o
= PyInt_FromLong((long) (*_arg5
));
6206 _resultobj
= t_output_helper(_resultobj
, o
);
6215 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6216 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6217 PyObject
* _resultobj
;
6220 PyObject
* _argo0
= 0;
6221 char *_kwnames
[] = { "self", NULL
};
6225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6235 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6236 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6238 wxPyEndAllowThreads(__tstate
);
6239 if (PyErr_Occurred()) return NULL
;
6240 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6241 _resultobj
= Py_BuildValue("s",_ptemp
);
6245 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6246 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6247 PyObject
* _resultobj
;
6253 PyObject
* _argo0
= 0;
6254 char *_kwnames
[] = { "self", NULL
};
6263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
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_GetUserScale. Expected _wxDC_p.");
6273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6274 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6276 wxPyEndAllowThreads(__tstate
);
6277 if (PyErr_Occurred()) return NULL
;
6278 } Py_INCREF(Py_None
);
6279 _resultobj
= Py_None
;
6282 o
= PyFloat_FromDouble((double) (*_arg1
));
6283 _resultobj
= t_output_helper(_resultobj
, o
);
6287 o
= PyFloat_FromDouble((double) (*_arg2
));
6288 _resultobj
= t_output_helper(_resultobj
, o
);
6293 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6294 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6295 PyObject
* _resultobj
;
6299 PyObject
* _argo0
= 0;
6300 char *_kwnames
[] = { "self","x", NULL
};
6303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6314 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6316 wxPyEndAllowThreads(__tstate
);
6317 if (PyErr_Occurred()) return NULL
;
6318 } _resultobj
= Py_BuildValue("l",_result
);
6322 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6323 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6324 PyObject
* _resultobj
;
6328 PyObject
* _argo0
= 0;
6329 char *_kwnames
[] = { "self","x", NULL
};
6332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6343 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6345 wxPyEndAllowThreads(__tstate
);
6346 if (PyErr_Occurred()) return NULL
;
6347 } _resultobj
= Py_BuildValue("l",_result
);
6351 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6352 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6353 PyObject
* _resultobj
;
6357 PyObject
* _argo0
= 0;
6358 char *_kwnames
[] = { "self","y", NULL
};
6361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
6364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6372 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6374 wxPyEndAllowThreads(__tstate
);
6375 if (PyErr_Occurred()) return NULL
;
6376 } _resultobj
= Py_BuildValue("l",_result
);
6380 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6381 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6382 PyObject
* _resultobj
;
6386 PyObject
* _argo0
= 0;
6387 char *_kwnames
[] = { "self","y", NULL
};
6390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
6393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6401 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6403 wxPyEndAllowThreads(__tstate
);
6404 if (PyErr_Occurred()) return NULL
;
6405 } _resultobj
= Py_BuildValue("l",_result
);
6409 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6410 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6411 PyObject
* _resultobj
;
6414 PyObject
* _argo0
= 0;
6415 char *_kwnames
[] = { "self", NULL
};
6418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6429 _result
= (long )wxDC_MaxX(_arg0
);
6431 wxPyEndAllowThreads(__tstate
);
6432 if (PyErr_Occurred()) return NULL
;
6433 } _resultobj
= Py_BuildValue("l",_result
);
6437 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6438 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6439 PyObject
* _resultobj
;
6442 PyObject
* _argo0
= 0;
6443 char *_kwnames
[] = { "self", NULL
};
6446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6457 _result
= (long )wxDC_MaxY(_arg0
);
6459 wxPyEndAllowThreads(__tstate
);
6460 if (PyErr_Occurred()) return NULL
;
6461 } _resultobj
= Py_BuildValue("l",_result
);
6465 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6466 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6467 PyObject
* _resultobj
;
6470 PyObject
* _argo0
= 0;
6471 char *_kwnames
[] = { "self", NULL
};
6474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6485 _result
= (long )wxDC_MinX(_arg0
);
6487 wxPyEndAllowThreads(__tstate
);
6488 if (PyErr_Occurred()) return NULL
;
6489 } _resultobj
= Py_BuildValue("l",_result
);
6493 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6494 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6495 PyObject
* _resultobj
;
6498 PyObject
* _argo0
= 0;
6499 char *_kwnames
[] = { "self", NULL
};
6502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6513 _result
= (long )wxDC_MinY(_arg0
);
6515 wxPyEndAllowThreads(__tstate
);
6516 if (PyErr_Occurred()) return NULL
;
6517 } _resultobj
= Py_BuildValue("l",_result
);
6521 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6522 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6523 PyObject
* _resultobj
;
6526 PyObject
* _argo0
= 0;
6527 char *_kwnames
[] = { "self", NULL
};
6530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6541 _result
= (bool )wxDC_Ok(_arg0
);
6543 wxPyEndAllowThreads(__tstate
);
6544 if (PyErr_Occurred()) return NULL
;
6545 } _resultobj
= Py_BuildValue("i",_result
);
6549 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6550 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6551 PyObject
* _resultobj
;
6555 PyObject
* _argo0
= 0;
6556 char *_kwnames
[] = { "self","x","y", NULL
};
6559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6570 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6572 wxPyEndAllowThreads(__tstate
);
6573 if (PyErr_Occurred()) return NULL
;
6574 } Py_INCREF(Py_None
);
6575 _resultobj
= Py_None
;
6579 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6580 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6581 PyObject
* _resultobj
;
6584 PyObject
* _argo0
= 0;
6585 PyObject
* _argo1
= 0;
6586 char *_kwnames
[] = { "self","brush", NULL
};
6589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6599 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6600 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6607 wxDC_SetBackground(_arg0
,*_arg1
);
6609 wxPyEndAllowThreads(__tstate
);
6610 if (PyErr_Occurred()) return NULL
;
6611 } Py_INCREF(Py_None
);
6612 _resultobj
= Py_None
;
6616 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6617 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6618 PyObject
* _resultobj
;
6621 PyObject
* _argo0
= 0;
6622 char *_kwnames
[] = { "self","mode", NULL
};
6625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6636 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6638 wxPyEndAllowThreads(__tstate
);
6639 if (PyErr_Occurred()) return NULL
;
6640 } Py_INCREF(Py_None
);
6641 _resultobj
= Py_None
;
6645 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6646 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6647 PyObject
* _resultobj
;
6653 PyObject
* _argo0
= 0;
6654 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6668 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6670 wxPyEndAllowThreads(__tstate
);
6671 if (PyErr_Occurred()) return NULL
;
6672 } Py_INCREF(Py_None
);
6673 _resultobj
= Py_None
;
6677 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6678 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6679 PyObject
* _resultobj
;
6682 PyObject
* _argo0
= 0;
6683 PyObject
* _argo1
= 0;
6684 char *_kwnames
[] = { "self","region", NULL
};
6687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
6690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
6697 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6698 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
6699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
6704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6705 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
6707 wxPyEndAllowThreads(__tstate
);
6708 if (PyErr_Occurred()) return NULL
;
6709 } Py_INCREF(Py_None
);
6710 _resultobj
= Py_None
;
6714 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6715 static PyObject
*_wrap_wxDC_SetClippingRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6716 PyObject
* _resultobj
;
6719 PyObject
* _argo0
= 0;
6721 PyObject
* _obj1
= 0;
6722 char *_kwnames
[] = { "self","rect", NULL
};
6725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRect",_kwnames
,&_argo0
,&_obj1
))
6728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
6736 if (! wxRect_helper(_obj1
, &_arg1
))
6740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6741 wxDC_SetClippingRect(_arg0
,*_arg1
);
6743 wxPyEndAllowThreads(__tstate
);
6744 if (PyErr_Occurred()) return NULL
;
6745 } Py_INCREF(Py_None
);
6746 _resultobj
= Py_None
;
6750 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6751 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6752 PyObject
* _resultobj
;
6755 PyObject
* _argo0
= 0;
6756 PyObject
* _argo1
= 0;
6757 char *_kwnames
[] = { "self","colourMap", NULL
};
6760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6770 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6771 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6777 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6778 wxDC_SetPalette(_arg0
,*_arg1
);
6780 wxPyEndAllowThreads(__tstate
);
6781 if (PyErr_Occurred()) return NULL
;
6782 } Py_INCREF(Py_None
);
6783 _resultobj
= Py_None
;
6787 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6788 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6789 PyObject
* _resultobj
;
6792 PyObject
* _argo0
= 0;
6793 PyObject
* _argo1
= 0;
6794 char *_kwnames
[] = { "self","brush", NULL
};
6797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6807 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6808 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6815 wxDC_SetBrush(_arg0
,*_arg1
);
6817 wxPyEndAllowThreads(__tstate
);
6818 if (PyErr_Occurred()) return NULL
;
6819 } Py_INCREF(Py_None
);
6820 _resultobj
= Py_None
;
6824 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6825 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6826 PyObject
* _resultobj
;
6829 PyObject
* _argo0
= 0;
6830 PyObject
* _argo1
= 0;
6831 char *_kwnames
[] = { "self","font", NULL
};
6834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6844 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6845 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6851 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6852 wxDC_SetFont(_arg0
,*_arg1
);
6854 wxPyEndAllowThreads(__tstate
);
6855 if (PyErr_Occurred()) return NULL
;
6856 } Py_INCREF(Py_None
);
6857 _resultobj
= Py_None
;
6861 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
6862 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6863 PyObject
* _resultobj
;
6866 PyObject
* _argo0
= 0;
6867 char *_kwnames
[] = { "self","function", NULL
};
6870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
6873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6880 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6881 wxDC_SetLogicalFunction(_arg0
,_arg1
);
6883 wxPyEndAllowThreads(__tstate
);
6884 if (PyErr_Occurred()) return NULL
;
6885 } Py_INCREF(Py_None
);
6886 _resultobj
= Py_None
;
6890 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6891 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6892 PyObject
* _resultobj
;
6896 PyObject
* _argo0
= 0;
6897 char *_kwnames
[] = { "self","x","y", NULL
};
6900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6910 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6911 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
6913 wxPyEndAllowThreads(__tstate
);
6914 if (PyErr_Occurred()) return NULL
;
6915 } Py_INCREF(Py_None
);
6916 _resultobj
= Py_None
;
6920 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
6921 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6922 PyObject
* _resultobj
;
6925 PyObject
* _argo0
= 0;
6926 char *_kwnames
[] = { "self","mode", NULL
};
6929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
6932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6940 wxDC_SetMapMode(_arg0
,_arg1
);
6942 wxPyEndAllowThreads(__tstate
);
6943 if (PyErr_Occurred()) return NULL
;
6944 } Py_INCREF(Py_None
);
6945 _resultobj
= Py_None
;
6949 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
6950 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6951 PyObject
* _resultobj
;
6954 PyObject
* _argo0
= 0;
6956 char *_kwnames
[] = { "self","optimize", NULL
};
6959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
6962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6968 _arg1
= (bool ) tempbool1
;
6970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6971 wxDC_SetOptimization(_arg0
,_arg1
);
6973 wxPyEndAllowThreads(__tstate
);
6974 if (PyErr_Occurred()) return NULL
;
6975 } Py_INCREF(Py_None
);
6976 _resultobj
= Py_None
;
6980 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
6981 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6982 PyObject
* _resultobj
;
6985 PyObject
* _argo0
= 0;
6986 PyObject
* _argo1
= 0;
6987 char *_kwnames
[] = { "self","pen", NULL
};
6990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
6993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7000 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7001 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7008 wxDC_SetPen(_arg0
,*_arg1
);
7010 wxPyEndAllowThreads(__tstate
);
7011 if (PyErr_Occurred()) return NULL
;
7012 } Py_INCREF(Py_None
);
7013 _resultobj
= Py_None
;
7017 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7018 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7019 PyObject
* _resultobj
;
7022 PyObject
* _argo0
= 0;
7024 PyObject
* _obj1
= 0;
7025 char *_kwnames
[] = { "self","colour", NULL
};
7028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7039 if (! wxColour_helper(_obj1
, &_arg1
))
7043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7044 wxDC_SetTextBackground(_arg0
,*_arg1
);
7046 wxPyEndAllowThreads(__tstate
);
7047 if (PyErr_Occurred()) return NULL
;
7048 } Py_INCREF(Py_None
);
7049 _resultobj
= Py_None
;
7053 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7054 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7055 PyObject
* _resultobj
;
7058 PyObject
* _argo0
= 0;
7060 PyObject
* _obj1
= 0;
7061 char *_kwnames
[] = { "self","colour", NULL
};
7064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7075 if (! wxColour_helper(_obj1
, &_arg1
))
7079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7080 wxDC_SetTextForeground(_arg0
,*_arg1
);
7082 wxPyEndAllowThreads(__tstate
);
7083 if (PyErr_Occurred()) return NULL
;
7084 } Py_INCREF(Py_None
);
7085 _resultobj
= Py_None
;
7089 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7090 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7091 PyObject
* _resultobj
;
7095 PyObject
* _argo0
= 0;
7096 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7110 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7112 wxPyEndAllowThreads(__tstate
);
7113 if (PyErr_Occurred()) return NULL
;
7114 } Py_INCREF(Py_None
);
7115 _resultobj
= Py_None
;
7119 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7120 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7121 PyObject
* _resultobj
;
7125 PyObject
* _argo0
= 0;
7126 PyObject
* _obj1
= 0;
7127 char *_kwnames
[] = { "self","message", NULL
};
7130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7140 _arg1
= wxString_in_helper(_obj1
);
7145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7146 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7148 wxPyEndAllowThreads(__tstate
);
7149 if (PyErr_Occurred()) return NULL
;
7150 } _resultobj
= Py_BuildValue("i",_result
);
7158 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7159 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7160 PyObject
* _resultobj
;
7162 PyObject
* _argo0
= 0;
7163 char *_kwnames
[] = { "self", NULL
};
7166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7177 wxDC_StartPage(_arg0
);
7179 wxPyEndAllowThreads(__tstate
);
7180 if (PyErr_Occurred()) return NULL
;
7181 } Py_INCREF(Py_None
);
7182 _resultobj
= Py_None
;
7186 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7187 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7188 PyObject
* _resultobj
;
7193 int _arg4
= (int ) FALSE
;
7194 PyObject
* _argo0
= 0;
7195 PyObject
* _argo1
= 0;
7196 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7209 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7210 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7217 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7219 wxPyEndAllowThreads(__tstate
);
7220 if (PyErr_Occurred()) return NULL
;
7221 } Py_INCREF(Py_None
);
7222 _resultobj
= Py_None
;
7226 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7227 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7228 PyObject
* _resultobj
;
7231 PyObject
* _argo0
= 0;
7232 char *_kwnames
[] = { "self", NULL
};
7235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7246 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7248 wxPyEndAllowThreads(__tstate
);
7249 if (PyErr_Occurred()) return NULL
;
7250 } _resultobj
= Py_BuildValue("i",_result
);
7254 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7255 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7256 PyObject
* _resultobj
;
7259 PyObject
* _argo0
= 0;
7260 char *_kwnames
[] = { "self", NULL
};
7263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7274 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7276 wxPyEndAllowThreads(__tstate
);
7277 if (PyErr_Occurred()) return NULL
;
7278 } _resultobj
= Py_BuildValue("i",_result
);
7282 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7283 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7284 PyObject
* _resultobj
;
7287 PyObject
* _argo0
= 0;
7288 char *_kwnames
[] = { "self", NULL
};
7291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7302 _result
= (int )wxDC_GetDepth(_arg0
);
7304 wxPyEndAllowThreads(__tstate
);
7305 if (PyErr_Occurred()) return NULL
;
7306 } _resultobj
= Py_BuildValue("i",_result
);
7310 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7311 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7312 PyObject
* _resultobj
;
7315 PyObject
* _argo0
= 0;
7316 char *_kwnames
[] = { "self", NULL
};
7320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7331 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7333 wxPyEndAllowThreads(__tstate
);
7334 if (PyErr_Occurred()) return NULL
;
7335 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7336 _resultobj
= Py_BuildValue("s",_ptemp
);
7340 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7341 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7342 PyObject
* _resultobj
;
7348 PyObject
* _argo0
= 0;
7349 char *_kwnames
[] = { "self", NULL
};
7358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
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_GetLogicalOrigin. Expected _wxDC_p.");
7368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7369 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7371 wxPyEndAllowThreads(__tstate
);
7372 if (PyErr_Occurred()) return NULL
;
7373 } Py_INCREF(Py_None
);
7374 _resultobj
= Py_None
;
7377 o
= PyInt_FromLong((long) (*_arg1
));
7378 _resultobj
= t_output_helper(_resultobj
, o
);
7382 o
= PyInt_FromLong((long) (*_arg2
));
7383 _resultobj
= t_output_helper(_resultobj
, o
);
7388 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7389 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
* _resultobj
;
7394 PyObject
* _argo0
= 0;
7395 char *_kwnames
[] = { "self","x","y", NULL
};
7398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7409 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7411 wxPyEndAllowThreads(__tstate
);
7412 if (PyErr_Occurred()) return NULL
;
7413 } Py_INCREF(Py_None
);
7414 _resultobj
= Py_None
;
7418 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7419 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7420 PyObject
* _resultobj
;
7426 PyObject
* _argo0
= 0;
7427 char *_kwnames
[] = { "self", NULL
};
7436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7447 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7449 wxPyEndAllowThreads(__tstate
);
7450 if (PyErr_Occurred()) return NULL
;
7451 } Py_INCREF(Py_None
);
7452 _resultobj
= Py_None
;
7455 o
= PyInt_FromLong((long) (*_arg1
));
7456 _resultobj
= t_output_helper(_resultobj
, o
);
7460 o
= PyInt_FromLong((long) (*_arg2
));
7461 _resultobj
= t_output_helper(_resultobj
, o
);
7466 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7467 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7468 PyObject
* _resultobj
;
7472 PyObject
* _argo0
= 0;
7475 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7487 _arg1
= (bool ) tempbool1
;
7488 _arg2
= (bool ) tempbool2
;
7490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7491 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7493 wxPyEndAllowThreads(__tstate
);
7494 if (PyErr_Occurred()) return NULL
;
7495 } Py_INCREF(Py_None
);
7496 _resultobj
= Py_None
;
7500 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7501 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7502 PyObject
* _resultobj
;
7506 PyObject
* _argo0
= 0;
7507 char *_kwnames
[] = { "self","x","y", NULL
};
7510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7521 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7523 wxPyEndAllowThreads(__tstate
);
7524 if (PyErr_Occurred()) return NULL
;
7525 } Py_INCREF(Py_None
);
7526 _resultobj
= Py_None
;
7530 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7531 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7532 PyObject
* _resultobj
;
7534 PyObject
* _argo0
= 0;
7535 char *_kwnames
[] = { "self", NULL
};
7538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7549 wxDC_ResetBoundingBox(_arg0
);
7551 wxPyEndAllowThreads(__tstate
);
7552 if (PyErr_Occurred()) return NULL
;
7553 } Py_INCREF(Py_None
);
7554 _resultobj
= Py_None
;
7558 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7559 PyObject
* _resultobj
;
7569 PyObject
* _argo0
= 0;
7570 char *_kwnames
[] = { "self", NULL
};
7585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
7588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
7595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7596 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7598 wxPyEndAllowThreads(__tstate
);
7599 if (PyErr_Occurred()) return NULL
;
7600 } Py_INCREF(Py_None
);
7601 _resultobj
= Py_None
;
7604 o
= PyInt_FromLong((long) (*_arg1
));
7605 _resultobj
= t_output_helper(_resultobj
, o
);
7609 o
= PyInt_FromLong((long) (*_arg2
));
7610 _resultobj
= t_output_helper(_resultobj
, o
);
7614 o
= PyInt_FromLong((long) (*_arg3
));
7615 _resultobj
= t_output_helper(_resultobj
, o
);
7619 o
= PyInt_FromLong((long) (*_arg4
));
7620 _resultobj
= t_output_helper(_resultobj
, o
);
7625 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
7626 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
7627 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
7635 if (!PySequence_Check(pyPoints
)) {
7638 if (!PySequence_Check(pyPens
)) {
7641 numObjs
= PySequence_Length(pyPoints
);
7642 numPens
= PySequence_Length(pyPens
);
7644 for (i
= 0; i
< numObjs
; i
++) {
7648 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
7651 obj
= PySequence_GetItem(pyPens
, i
);
7653 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
7664 // Get the point coordinants
7666 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
7669 obj
= PySequence_GetItem(pyPoints
, i
);
7671 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
7677 // Now draw the point
7678 self
->DrawPoint(x1
, y1
);
7688 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
7691 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
7694 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7695 PyObject
* _resultobj
;
7700 PyObject
* _argo0
= 0;
7701 PyObject
* _obj1
= 0;
7702 PyObject
* _obj2
= 0;
7703 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
7706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
7709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
7722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7723 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
7725 wxPyEndAllowThreads(__tstate
);
7726 if (PyErr_Occurred()) return NULL
;
7728 _resultobj
= _result
;
7733 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
7734 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
7735 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
7743 if (!PySequence_Check(pyLines
)) {
7746 if (!PySequence_Check(pyPens
)) {
7749 numObjs
= PySequence_Length(pyLines
);
7750 numPens
= PySequence_Length(pyPens
);
7752 for (i
= 0; i
< numObjs
; i
++) {
7756 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
7759 obj
= PySequence_GetItem(pyPens
, i
);
7761 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
7772 // Get the line coordinants
7774 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
7777 obj
= PySequence_GetItem(pyLines
, i
);
7779 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
7785 // Now draw the line
7786 self
->DrawLine(x1
, y1
, x2
, y2
);
7796 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
7799 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
7802 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7803 PyObject
* _resultobj
;
7808 PyObject
* _argo0
= 0;
7809 PyObject
* _obj1
= 0;
7810 PyObject
* _obj2
= 0;
7811 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
7814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
7817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
7830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7831 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
7833 wxPyEndAllowThreads(__tstate
);
7834 if (PyErr_Occurred()) return NULL
;
7836 _resultobj
= _result
;
7841 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
7844 src
= (wxMemoryDC
*) ptr
;
7845 dest
= (wxDC
*) src
;
7846 return (void *) dest
;
7849 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
7852 src
= (wxMemoryDC
*) ptr
;
7853 dest
= (wxObject
*) src
;
7854 return (void *) dest
;
7857 #define new_wxMemoryDC() (new wxMemoryDC())
7858 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7859 PyObject
* _resultobj
;
7860 wxMemoryDC
* _result
;
7861 char *_kwnames
[] = { NULL
};
7865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
7868 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7869 _result
= (wxMemoryDC
*)new_wxMemoryDC();
7871 wxPyEndAllowThreads(__tstate
);
7872 if (PyErr_Occurred()) return NULL
;
7874 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
7875 _resultobj
= Py_BuildValue("s",_ptemp
);
7878 _resultobj
= Py_None
;
7883 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7884 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7885 PyObject
* _resultobj
;
7888 PyObject
* _argo0
= 0;
7889 PyObject
* _argo1
= 0;
7890 char *_kwnames
[] = { "self","bitmap", NULL
};
7893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
7896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
7898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7903 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7904 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7910 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7911 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
7913 wxPyEndAllowThreads(__tstate
);
7914 if (PyErr_Occurred()) return NULL
;
7915 } Py_INCREF(Py_None
);
7916 _resultobj
= Py_None
;
7920 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
7923 src
= (wxBufferedDC
*) ptr
;
7924 dest
= (wxMemoryDC
*) src
;
7925 return (void *) dest
;
7928 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
7931 src
= (wxBufferedDC
*) ptr
;
7932 dest
= (wxDC
*) src
;
7933 return (void *) dest
;
7936 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
7939 src
= (wxBufferedDC
*) ptr
;
7940 dest
= (wxObject
*) src
;
7941 return (void *) dest
;
7944 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7945 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7946 PyObject
* _resultobj
;
7947 wxBufferedDC
* _result
;
7950 PyObject
* _argo0
= 0;
7951 PyObject
* _argo1
= 0;
7952 char *_kwnames
[] = { "dc","buffer", NULL
};
7956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
7959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
7966 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7967 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
7973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7974 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
7976 wxPyEndAllowThreads(__tstate
);
7977 if (PyErr_Occurred()) return NULL
;
7979 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
7980 _resultobj
= Py_BuildValue("s",_ptemp
);
7983 _resultobj
= Py_None
;
7988 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7989 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7990 PyObject
* _resultobj
;
7991 wxBufferedDC
* _result
;
7994 PyObject
* _argo0
= 0;
7996 PyObject
* _obj1
= 0;
7997 char *_kwnames
[] = { "dc","area", NULL
};
8001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
8004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8012 if (! wxSize_helper(_obj1
, &_arg1
))
8016 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8017 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
8019 wxPyEndAllowThreads(__tstate
);
8020 if (PyErr_Occurred()) return NULL
;
8022 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8023 _resultobj
= Py_BuildValue("s",_ptemp
);
8026 _resultobj
= Py_None
;
8031 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
8032 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8033 PyObject
* _resultobj
;
8034 wxBufferedDC
* _arg0
;
8035 PyObject
* _argo0
= 0;
8036 char *_kwnames
[] = { "self", NULL
};
8039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
8042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
8044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
8049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8050 wxBufferedDC_UnMask(_arg0
);
8052 wxPyEndAllowThreads(__tstate
);
8053 if (PyErr_Occurred()) return NULL
;
8054 } Py_INCREF(Py_None
);
8055 _resultobj
= Py_None
;
8059 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
8060 wxBufferedPaintDC
*src
;
8062 src
= (wxBufferedPaintDC
*) ptr
;
8063 dest
= (wxBufferedDC
*) src
;
8064 return (void *) dest
;
8067 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
8068 wxBufferedPaintDC
*src
;
8070 src
= (wxBufferedPaintDC
*) ptr
;
8071 dest
= (wxMemoryDC
*) src
;
8072 return (void *) dest
;
8075 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
8076 wxBufferedPaintDC
*src
;
8078 src
= (wxBufferedPaintDC
*) ptr
;
8079 dest
= (wxDC
*) src
;
8080 return (void *) dest
;
8083 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
8084 wxBufferedPaintDC
*src
;
8086 src
= (wxBufferedPaintDC
*) ptr
;
8087 dest
= (wxObject
*) src
;
8088 return (void *) dest
;
8091 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
8092 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8093 PyObject
* _resultobj
;
8094 wxBufferedPaintDC
* _result
;
8096 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
8097 PyObject
* _argo0
= 0;
8098 PyObject
* _argo1
= 0;
8099 char *_kwnames
[] = { "window","buffer", NULL
};
8103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
8106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8113 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8114 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8121 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
8123 wxPyEndAllowThreads(__tstate
);
8124 if (PyErr_Occurred()) return NULL
;
8126 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
8127 _resultobj
= Py_BuildValue("s",_ptemp
);
8130 _resultobj
= Py_None
;
8135 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8138 src
= (wxScreenDC
*) ptr
;
8139 dest
= (wxDC
*) src
;
8140 return (void *) dest
;
8143 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8146 src
= (wxScreenDC
*) ptr
;
8147 dest
= (wxObject
*) src
;
8148 return (void *) dest
;
8151 #define new_wxScreenDC() (new wxScreenDC())
8152 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8153 PyObject
* _resultobj
;
8154 wxScreenDC
* _result
;
8155 char *_kwnames
[] = { NULL
};
8159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8163 _result
= (wxScreenDC
*)new_wxScreenDC();
8165 wxPyEndAllowThreads(__tstate
);
8166 if (PyErr_Occurred()) return NULL
;
8168 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8169 _resultobj
= Py_BuildValue("s",_ptemp
);
8172 _resultobj
= Py_None
;
8177 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8178 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8179 PyObject
* _resultobj
;
8183 PyObject
* _argo0
= 0;
8184 PyObject
* _argo1
= 0;
8185 char *_kwnames
[] = { "self","window", NULL
};
8188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8198 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8199 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8206 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8208 wxPyEndAllowThreads(__tstate
);
8209 if (PyErr_Occurred()) return NULL
;
8210 } _resultobj
= Py_BuildValue("i",_result
);
8214 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8215 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8216 PyObject
* _resultobj
;
8219 wxRect
* _arg1
= (wxRect
*) NULL
;
8220 PyObject
* _argo0
= 0;
8222 PyObject
* _obj1
= 0;
8223 char *_kwnames
[] = { "self","rect", NULL
};
8226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8238 if (! wxRect_helper(_obj1
, &_arg1
))
8242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8243 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8245 wxPyEndAllowThreads(__tstate
);
8246 if (PyErr_Occurred()) return NULL
;
8247 } _resultobj
= Py_BuildValue("i",_result
);
8251 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8252 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8253 PyObject
* _resultobj
;
8256 PyObject
* _argo0
= 0;
8257 char *_kwnames
[] = { "self", NULL
};
8260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8271 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8273 wxPyEndAllowThreads(__tstate
);
8274 if (PyErr_Occurred()) return NULL
;
8275 } _resultobj
= Py_BuildValue("i",_result
);
8279 static void *SwigwxClientDCTowxDC(void *ptr
) {
8282 src
= (wxClientDC
*) ptr
;
8283 dest
= (wxDC
*) src
;
8284 return (void *) dest
;
8287 static void *SwigwxClientDCTowxObject(void *ptr
) {
8290 src
= (wxClientDC
*) ptr
;
8291 dest
= (wxObject
*) src
;
8292 return (void *) dest
;
8295 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8296 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8297 PyObject
* _resultobj
;
8298 wxClientDC
* _result
;
8300 PyObject
* _argo0
= 0;
8301 char *_kwnames
[] = { "win", NULL
};
8305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8316 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8318 wxPyEndAllowThreads(__tstate
);
8319 if (PyErr_Occurred()) return NULL
;
8321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8322 _resultobj
= Py_BuildValue("s",_ptemp
);
8325 _resultobj
= Py_None
;
8330 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8333 src
= (wxPaintDC
*) ptr
;
8334 dest
= (wxDC
*) src
;
8335 return (void *) dest
;
8338 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8341 src
= (wxPaintDC
*) ptr
;
8342 dest
= (wxObject
*) src
;
8343 return (void *) dest
;
8346 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8347 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
* _resultobj
;
8349 wxPaintDC
* _result
;
8351 PyObject
* _argo0
= 0;
8352 char *_kwnames
[] = { "win", NULL
};
8356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8367 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8369 wxPyEndAllowThreads(__tstate
);
8370 if (PyErr_Occurred()) return NULL
;
8372 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8373 _resultobj
= Py_BuildValue("s",_ptemp
);
8376 _resultobj
= Py_None
;
8381 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8384 src
= (wxWindowDC
*) ptr
;
8385 dest
= (wxDC
*) src
;
8386 return (void *) dest
;
8389 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8392 src
= (wxWindowDC
*) ptr
;
8393 dest
= (wxObject
*) src
;
8394 return (void *) dest
;
8397 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8398 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8399 PyObject
* _resultobj
;
8400 wxWindowDC
* _result
;
8402 PyObject
* _argo0
= 0;
8403 char *_kwnames
[] = { "win", NULL
};
8407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8418 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8420 wxPyEndAllowThreads(__tstate
);
8421 if (PyErr_Occurred()) return NULL
;
8423 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8424 _resultobj
= Py_BuildValue("s",_ptemp
);
8427 _resultobj
= Py_None
;
8432 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8435 src
= (wxPalette
*) ptr
;
8436 dest
= (wxGDIObject
*) src
;
8437 return (void *) dest
;
8440 static void *SwigwxPaletteTowxObject(void *ptr
) {
8443 src
= (wxPalette
*) ptr
;
8444 dest
= (wxObject
*) src
;
8445 return (void *) dest
;
8448 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8449 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8450 PyObject
* _resultobj
;
8451 wxPalette
* _result
;
8456 PyObject
* _obj1
= 0;
8457 PyObject
* _obj2
= 0;
8458 PyObject
* _obj3
= 0;
8459 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8466 _arg1
= byte_LIST_helper(_obj1
);
8467 if (_arg1
== NULL
) {
8472 _arg2
= byte_LIST_helper(_obj2
);
8473 if (_arg2
== NULL
) {
8479 _arg3
= byte_LIST_helper(_obj3
);
8480 if (_arg3
== NULL
) {
8486 _arg0
= PyList_Size(_obj1
);
8493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8494 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8496 wxPyEndAllowThreads(__tstate
);
8497 if (PyErr_Occurred()) return NULL
;
8499 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8500 _resultobj
= Py_BuildValue("s",_ptemp
);
8503 _resultobj
= Py_None
;
8517 #define delete_wxPalette(_swigobj) (delete _swigobj)
8518 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8519 PyObject
* _resultobj
;
8521 PyObject
* _argo0
= 0;
8522 char *_kwnames
[] = { "self", NULL
};
8525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8536 delete_wxPalette(_arg0
);
8538 wxPyEndAllowThreads(__tstate
);
8539 if (PyErr_Occurred()) return NULL
;
8540 } Py_INCREF(Py_None
);
8541 _resultobj
= Py_None
;
8545 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8546 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8547 PyObject
* _resultobj
;
8553 PyObject
* _argo0
= 0;
8554 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8568 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8570 wxPyEndAllowThreads(__tstate
);
8571 if (PyErr_Occurred()) return NULL
;
8572 } _resultobj
= Py_BuildValue("i",_result
);
8576 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8577 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8578 PyObject
* _resultobj
;
8588 PyObject
* _argo0
= 0;
8589 char *_kwnames
[] = { "self","pixel", NULL
};
8593 _arg2
= (byte
*)&temp
;
8596 _arg3
= (byte
*)&temp0
;
8599 _arg4
= (byte
*)&temp1
;
8601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
8604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8612 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8614 wxPyEndAllowThreads(__tstate
);
8615 if (PyErr_Occurred()) return NULL
;
8616 } _resultobj
= Py_BuildValue("i",_result
);
8619 o
= PyInt_FromLong((long) (*_arg2
));
8620 _resultobj
= t_output_helper(_resultobj
, o
);
8624 o
= PyInt_FromLong((long) (*_arg3
));
8625 _resultobj
= t_output_helper(_resultobj
, o
);
8629 o
= PyInt_FromLong((long) (*_arg4
));
8630 _resultobj
= t_output_helper(_resultobj
, o
);
8635 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8636 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8637 PyObject
* _resultobj
;
8640 PyObject
* _argo0
= 0;
8641 char *_kwnames
[] = { "self", NULL
};
8644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8655 _result
= (bool )wxPalette_Ok(_arg0
);
8657 wxPyEndAllowThreads(__tstate
);
8658 if (PyErr_Occurred()) return NULL
;
8659 } _resultobj
= Py_BuildValue("i",_result
);
8663 static void *SwigwxImageListTowxObject(void *ptr
) {
8666 src
= (wxImageList
*) ptr
;
8667 dest
= (wxObject
*) src
;
8668 return (void *) dest
;
8671 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8672 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8673 PyObject
* _resultobj
;
8674 wxImageList
* _result
;
8677 int _arg2
= (int ) TRUE
;
8678 int _arg3
= (int ) 1;
8679 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8687 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8689 wxPyEndAllowThreads(__tstate
);
8690 if (PyErr_Occurred()) return NULL
;
8692 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8693 _resultobj
= Py_BuildValue("s",_ptemp
);
8696 _resultobj
= Py_None
;
8701 #define delete_wxImageList(_swigobj) (delete _swigobj)
8702 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8703 PyObject
* _resultobj
;
8704 wxImageList
* _arg0
;
8705 PyObject
* _argo0
= 0;
8706 char *_kwnames
[] = { "self", NULL
};
8709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8720 delete_wxImageList(_arg0
);
8722 wxPyEndAllowThreads(__tstate
);
8723 if (PyErr_Occurred()) return NULL
;
8724 } Py_INCREF(Py_None
);
8725 _resultobj
= Py_None
;
8729 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8730 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8731 PyObject
* _resultobj
;
8733 wxImageList
* _arg0
;
8735 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8736 PyObject
* _argo0
= 0;
8737 PyObject
* _argo1
= 0;
8738 PyObject
* _argo2
= 0;
8739 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8752 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8753 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8759 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8760 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8767 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8769 wxPyEndAllowThreads(__tstate
);
8770 if (PyErr_Occurred()) return NULL
;
8771 } _resultobj
= Py_BuildValue("i",_result
);
8775 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8776 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8777 PyObject
* _resultobj
;
8779 wxImageList
* _arg0
;
8782 PyObject
* _argo0
= 0;
8783 PyObject
* _argo1
= 0;
8785 PyObject
* _obj2
= 0;
8786 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
8789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8799 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8800 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8807 if (! wxColour_helper(_obj2
, &_arg2
))
8811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8812 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
8814 wxPyEndAllowThreads(__tstate
);
8815 if (PyErr_Occurred()) return NULL
;
8816 } _resultobj
= Py_BuildValue("i",_result
);
8820 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8821 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8822 PyObject
* _resultobj
;
8824 wxImageList
* _arg0
;
8826 PyObject
* _argo0
= 0;
8827 PyObject
* _argo1
= 0;
8828 char *_kwnames
[] = { "self","icon", NULL
};
8831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
8834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8841 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8842 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
8843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8849 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
8851 wxPyEndAllowThreads(__tstate
);
8852 if (PyErr_Occurred()) return NULL
;
8853 } _resultobj
= Py_BuildValue("i",_result
);
8857 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8858 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8859 PyObject
* _resultobj
;
8861 wxImageList
* _arg0
;
8864 PyObject
* _argo0
= 0;
8865 PyObject
* _argo2
= 0;
8866 char *_kwnames
[] = { "self","index","bitmap", NULL
};
8869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
8872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8879 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8880 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8887 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
8889 wxPyEndAllowThreads(__tstate
);
8890 if (PyErr_Occurred()) return NULL
;
8891 } _resultobj
= Py_BuildValue("i",_result
);
8895 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8896 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8897 PyObject
* _resultobj
;
8899 wxImageList
* _arg0
;
8904 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
8905 bool _arg6
= (bool ) FALSE
;
8906 PyObject
* _argo0
= 0;
8907 PyObject
* _argo2
= 0;
8908 int tempbool6
= (int) FALSE
;
8909 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
8912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
8915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8922 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8923 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
8924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8928 _arg6
= (bool ) tempbool6
;
8930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8931 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8933 wxPyEndAllowThreads(__tstate
);
8934 if (PyErr_Occurred()) return NULL
;
8935 } _resultobj
= Py_BuildValue("i",_result
);
8939 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8940 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8941 PyObject
* _resultobj
;
8943 wxImageList
* _arg0
;
8944 PyObject
* _argo0
= 0;
8945 char *_kwnames
[] = { "self", NULL
};
8948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
8951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8959 _result
= (int )wxImageList_GetImageCount(_arg0
);
8961 wxPyEndAllowThreads(__tstate
);
8962 if (PyErr_Occurred()) return NULL
;
8963 } _resultobj
= Py_BuildValue("i",_result
);
8967 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8968 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8969 PyObject
* _resultobj
;
8971 wxImageList
* _arg0
;
8973 PyObject
* _argo0
= 0;
8974 char *_kwnames
[] = { "self","index", NULL
};
8977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
8980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8988 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
8990 wxPyEndAllowThreads(__tstate
);
8991 if (PyErr_Occurred()) return NULL
;
8992 } _resultobj
= Py_BuildValue("i",_result
);
8996 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8997 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8998 PyObject
* _resultobj
;
9000 wxImageList
* _arg0
;
9001 PyObject
* _argo0
= 0;
9002 char *_kwnames
[] = { "self", NULL
};
9005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9016 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9018 wxPyEndAllowThreads(__tstate
);
9019 if (PyErr_Occurred()) return NULL
;
9020 } _resultobj
= Py_BuildValue("i",_result
);
9024 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9025 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9026 PyObject
* _resultobj
;
9027 wxImageList
* _arg0
;
9033 PyObject
* _argo0
= 0;
9034 char *_kwnames
[] = { "self","index", NULL
};
9043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9054 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9056 wxPyEndAllowThreads(__tstate
);
9057 if (PyErr_Occurred()) return NULL
;
9058 } Py_INCREF(Py_None
);
9059 _resultobj
= Py_None
;
9062 o
= PyInt_FromLong((long) (*_arg2
));
9063 _resultobj
= t_output_helper(_resultobj
, o
);
9067 o
= PyInt_FromLong((long) (*_arg3
));
9068 _resultobj
= t_output_helper(_resultobj
, o
);
9073 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9076 src
= (wxRegion
*) ptr
;
9077 dest
= (wxGDIObject
*) src
;
9078 return (void *) dest
;
9081 static void *SwigwxRegionTowxObject(void *ptr
) {
9084 src
= (wxRegion
*) ptr
;
9085 dest
= (wxObject
*) src
;
9086 return (void *) dest
;
9089 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9090 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9091 PyObject
* _resultobj
;
9093 long _arg0
= (long ) 0;
9094 long _arg1
= (long ) 0;
9095 long _arg2
= (long ) 0;
9096 long _arg3
= (long ) 0;
9097 char *_kwnames
[] = { "x","y","width","height", NULL
};
9101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9105 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9107 wxPyEndAllowThreads(__tstate
);
9108 if (PyErr_Occurred()) return NULL
;
9110 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9111 _resultobj
= Py_BuildValue("s",_ptemp
);
9114 _resultobj
= Py_None
;
9119 #define delete_wxRegion(_swigobj) (delete _swigobj)
9120 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9121 PyObject
* _resultobj
;
9123 PyObject
* _argo0
= 0;
9124 char *_kwnames
[] = { "self", NULL
};
9127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9138 delete_wxRegion(_arg0
);
9140 wxPyEndAllowThreads(__tstate
);
9141 if (PyErr_Occurred()) return NULL
;
9142 } Py_INCREF(Py_None
);
9143 _resultobj
= Py_None
;
9147 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9148 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9149 PyObject
* _resultobj
;
9151 PyObject
* _argo0
= 0;
9152 char *_kwnames
[] = { "self", NULL
};
9155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9166 wxRegion_Clear(_arg0
);
9168 wxPyEndAllowThreads(__tstate
);
9169 if (PyErr_Occurred()) return NULL
;
9170 } Py_INCREF(Py_None
);
9171 _resultobj
= Py_None
;
9175 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
9176 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9177 PyObject
* _resultobj
;
9182 PyObject
* _argo0
= 0;
9183 char *_kwnames
[] = { "self","x","y", NULL
};
9186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
9196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9197 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
9199 wxPyEndAllowThreads(__tstate
);
9200 if (PyErr_Occurred()) return NULL
;
9201 } _resultobj
= Py_BuildValue("i",_result
);
9205 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9206 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9207 PyObject
* _resultobj
;
9208 wxRegionContain _result
;
9212 PyObject
* _argo0
= 0;
9213 char *_kwnames
[] = { "self","x","y", NULL
};
9216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9227 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9229 wxPyEndAllowThreads(__tstate
);
9230 if (PyErr_Occurred()) return NULL
;
9231 } _resultobj
= Py_BuildValue("i",_result
);
9235 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9236 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9237 PyObject
* _resultobj
;
9238 wxRegionContain _result
;
9241 PyObject
* _argo0
= 0;
9243 PyObject
* _obj1
= 0;
9244 char *_kwnames
[] = { "self","pt", NULL
};
9247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_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_ContainsPoint. Expected _wxRegion_p.");
9258 if (! wxPoint_helper(_obj1
, &_arg1
))
9262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9263 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9265 wxPyEndAllowThreads(__tstate
);
9266 if (PyErr_Occurred()) return NULL
;
9267 } _resultobj
= Py_BuildValue("i",_result
);
9271 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9272 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9273 PyObject
* _resultobj
;
9274 wxRegionContain _result
;
9277 PyObject
* _argo0
= 0;
9279 PyObject
* _obj1
= 0;
9280 char *_kwnames
[] = { "self","rect", NULL
};
9283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9294 if (! wxRect_helper(_obj1
, &_arg1
))
9298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9299 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9301 wxPyEndAllowThreads(__tstate
);
9302 if (PyErr_Occurred()) return NULL
;
9303 } _resultobj
= Py_BuildValue("i",_result
);
9307 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9308 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9309 PyObject
* _resultobj
;
9310 wxRegionContain _result
;
9316 PyObject
* _argo0
= 0;
9317 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9331 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9333 wxPyEndAllowThreads(__tstate
);
9334 if (PyErr_Occurred()) return NULL
;
9335 } _resultobj
= Py_BuildValue("i",_result
);
9339 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9340 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9341 PyObject
* _resultobj
;
9344 PyObject
* _argo0
= 0;
9345 char *_kwnames
[] = { "self", NULL
};
9349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9360 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9362 wxPyEndAllowThreads(__tstate
);
9363 if (PyErr_Occurred()) return NULL
;
9364 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9365 _resultobj
= Py_BuildValue("s",_ptemp
);
9369 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9370 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9371 PyObject
* _resultobj
;
9378 PyObject
* _argo0
= 0;
9379 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9393 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9395 wxPyEndAllowThreads(__tstate
);
9396 if (PyErr_Occurred()) return NULL
;
9397 } _resultobj
= Py_BuildValue("i",_result
);
9401 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9402 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9403 PyObject
* _resultobj
;
9407 PyObject
* _argo0
= 0;
9409 PyObject
* _obj1
= 0;
9410 char *_kwnames
[] = { "self","rect", NULL
};
9413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9424 if (! wxRect_helper(_obj1
, &_arg1
))
9428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9429 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9431 wxPyEndAllowThreads(__tstate
);
9432 if (PyErr_Occurred()) return NULL
;
9433 } _resultobj
= Py_BuildValue("i",_result
);
9437 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9438 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9439 PyObject
* _resultobj
;
9443 PyObject
* _argo0
= 0;
9444 PyObject
* _argo1
= 0;
9445 char *_kwnames
[] = { "self","region", NULL
};
9448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9458 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9459 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9466 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9468 wxPyEndAllowThreads(__tstate
);
9469 if (PyErr_Occurred()) return NULL
;
9470 } _resultobj
= Py_BuildValue("i",_result
);
9474 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9475 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9476 PyObject
* _resultobj
;
9479 PyObject
* _argo0
= 0;
9480 char *_kwnames
[] = { "self", NULL
};
9483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9494 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9496 wxPyEndAllowThreads(__tstate
);
9497 if (PyErr_Occurred()) return NULL
;
9498 } _resultobj
= Py_BuildValue("i",_result
);
9502 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9503 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9504 PyObject
* _resultobj
;
9511 PyObject
* _argo0
= 0;
9512 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9526 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9528 wxPyEndAllowThreads(__tstate
);
9529 if (PyErr_Occurred()) return NULL
;
9530 } _resultobj
= Py_BuildValue("i",_result
);
9534 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9535 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9536 PyObject
* _resultobj
;
9540 PyObject
* _argo0
= 0;
9542 PyObject
* _obj1
= 0;
9543 char *_kwnames
[] = { "self","rect", NULL
};
9546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9557 if (! wxRect_helper(_obj1
, &_arg1
))
9561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9562 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9564 wxPyEndAllowThreads(__tstate
);
9565 if (PyErr_Occurred()) return NULL
;
9566 } _resultobj
= Py_BuildValue("i",_result
);
9570 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9571 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9572 PyObject
* _resultobj
;
9576 PyObject
* _argo0
= 0;
9577 PyObject
* _argo1
= 0;
9578 char *_kwnames
[] = { "self","region", NULL
};
9581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9591 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9592 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9599 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9601 wxPyEndAllowThreads(__tstate
);
9602 if (PyErr_Occurred()) return NULL
;
9603 } _resultobj
= Py_BuildValue("i",_result
);
9607 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9608 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9609 PyObject
* _resultobj
;
9616 PyObject
* _argo0
= 0;
9617 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9631 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9633 wxPyEndAllowThreads(__tstate
);
9634 if (PyErr_Occurred()) return NULL
;
9635 } _resultobj
= Py_BuildValue("i",_result
);
9639 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9640 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9641 PyObject
* _resultobj
;
9645 PyObject
* _argo0
= 0;
9647 PyObject
* _obj1
= 0;
9648 char *_kwnames
[] = { "self","rect", NULL
};
9651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9662 if (! wxRect_helper(_obj1
, &_arg1
))
9666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9667 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9669 wxPyEndAllowThreads(__tstate
);
9670 if (PyErr_Occurred()) return NULL
;
9671 } _resultobj
= Py_BuildValue("i",_result
);
9675 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9676 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9677 PyObject
* _resultobj
;
9681 PyObject
* _argo0
= 0;
9682 PyObject
* _argo1
= 0;
9683 char *_kwnames
[] = { "self","region", NULL
};
9686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9696 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9697 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9704 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9706 wxPyEndAllowThreads(__tstate
);
9707 if (PyErr_Occurred()) return NULL
;
9708 } _resultobj
= Py_BuildValue("i",_result
);
9712 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9713 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9714 PyObject
* _resultobj
;
9721 PyObject
* _argo0
= 0;
9722 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9736 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9738 wxPyEndAllowThreads(__tstate
);
9739 if (PyErr_Occurred()) return NULL
;
9740 } _resultobj
= Py_BuildValue("i",_result
);
9744 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9745 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9746 PyObject
* _resultobj
;
9750 PyObject
* _argo0
= 0;
9752 PyObject
* _obj1
= 0;
9753 char *_kwnames
[] = { "self","rect", NULL
};
9756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9767 if (! wxRect_helper(_obj1
, &_arg1
))
9771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9772 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9774 wxPyEndAllowThreads(__tstate
);
9775 if (PyErr_Occurred()) return NULL
;
9776 } _resultobj
= Py_BuildValue("i",_result
);
9780 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9781 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9782 PyObject
* _resultobj
;
9786 PyObject
* _argo0
= 0;
9787 PyObject
* _argo1
= 0;
9788 char *_kwnames
[] = { "self","region", NULL
};
9791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9801 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9802 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9809 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9811 wxPyEndAllowThreads(__tstate
);
9812 if (PyErr_Occurred()) return NULL
;
9813 } _resultobj
= Py_BuildValue("i",_result
);
9817 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9818 wxRegionIterator
*src
;
9820 src
= (wxRegionIterator
*) ptr
;
9821 dest
= (wxObject
*) src
;
9822 return (void *) dest
;
9825 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9826 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9827 PyObject
* _resultobj
;
9828 wxRegionIterator
* _result
;
9830 PyObject
* _argo0
= 0;
9831 char *_kwnames
[] = { "region", NULL
};
9835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
9838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9846 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
9848 wxPyEndAllowThreads(__tstate
);
9849 if (PyErr_Occurred()) return NULL
;
9851 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
9852 _resultobj
= Py_BuildValue("s",_ptemp
);
9855 _resultobj
= Py_None
;
9860 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9861 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9862 PyObject
* _resultobj
;
9863 wxRegionIterator
* _arg0
;
9864 PyObject
* _argo0
= 0;
9865 char *_kwnames
[] = { "self", NULL
};
9868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
9871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9879 delete_wxRegionIterator(_arg0
);
9881 wxPyEndAllowThreads(__tstate
);
9882 if (PyErr_Occurred()) return NULL
;
9883 } Py_INCREF(Py_None
);
9884 _resultobj
= Py_None
;
9888 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9889 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9890 PyObject
* _resultobj
;
9892 wxRegionIterator
* _arg0
;
9893 PyObject
* _argo0
= 0;
9894 char *_kwnames
[] = { "self", NULL
};
9897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
9900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9908 _result
= (long )wxRegionIterator_GetX(_arg0
);
9910 wxPyEndAllowThreads(__tstate
);
9911 if (PyErr_Occurred()) return NULL
;
9912 } _resultobj
= Py_BuildValue("l",_result
);
9916 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9917 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9918 PyObject
* _resultobj
;
9920 wxRegionIterator
* _arg0
;
9921 PyObject
* _argo0
= 0;
9922 char *_kwnames
[] = { "self", NULL
};
9925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
9928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9936 _result
= (long )wxRegionIterator_GetY(_arg0
);
9938 wxPyEndAllowThreads(__tstate
);
9939 if (PyErr_Occurred()) return NULL
;
9940 } _resultobj
= Py_BuildValue("l",_result
);
9944 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9945 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9946 PyObject
* _resultobj
;
9948 wxRegionIterator
* _arg0
;
9949 PyObject
* _argo0
= 0;
9950 char *_kwnames
[] = { "self", NULL
};
9953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
9956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9964 _result
= (long )wxRegionIterator_GetW(_arg0
);
9966 wxPyEndAllowThreads(__tstate
);
9967 if (PyErr_Occurred()) return NULL
;
9968 } _resultobj
= Py_BuildValue("l",_result
);
9972 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9973 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9974 PyObject
* _resultobj
;
9976 wxRegionIterator
* _arg0
;
9977 PyObject
* _argo0
= 0;
9978 char *_kwnames
[] = { "self", NULL
};
9981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
9984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
9986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9992 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
9994 wxPyEndAllowThreads(__tstate
);
9995 if (PyErr_Occurred()) return NULL
;
9996 } _resultobj
= Py_BuildValue("l",_result
);
10000 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10001 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10002 PyObject
* _resultobj
;
10004 wxRegionIterator
* _arg0
;
10005 PyObject
* _argo0
= 0;
10006 char *_kwnames
[] = { "self", NULL
};
10009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10020 _result
= (long )wxRegionIterator_GetH(_arg0
);
10022 wxPyEndAllowThreads(__tstate
);
10023 if (PyErr_Occurred()) return NULL
;
10024 } _resultobj
= Py_BuildValue("l",_result
);
10028 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10029 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10030 PyObject
* _resultobj
;
10032 wxRegionIterator
* _arg0
;
10033 PyObject
* _argo0
= 0;
10034 char *_kwnames
[] = { "self", NULL
};
10037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10048 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
10050 wxPyEndAllowThreads(__tstate
);
10051 if (PyErr_Occurred()) return NULL
;
10052 } _resultobj
= Py_BuildValue("l",_result
);
10056 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10057 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10058 PyObject
* _resultobj
;
10060 wxRegionIterator
* _arg0
;
10061 PyObject
* _argo0
= 0;
10062 char *_kwnames
[] = { "self", NULL
};
10066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10077 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10079 wxPyEndAllowThreads(__tstate
);
10080 if (PyErr_Occurred()) return NULL
;
10081 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10082 _resultobj
= Py_BuildValue("s",_ptemp
);
10086 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10087 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10088 PyObject
* _resultobj
;
10090 wxRegionIterator
* _arg0
;
10091 PyObject
* _argo0
= 0;
10092 char *_kwnames
[] = { "self", NULL
};
10095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10106 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10108 wxPyEndAllowThreads(__tstate
);
10109 if (PyErr_Occurred()) return NULL
;
10110 } _resultobj
= Py_BuildValue("i",_result
);
10114 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10115 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10116 PyObject
* _resultobj
;
10117 wxRegionIterator
* _arg0
;
10118 PyObject
* _argo0
= 0;
10119 char *_kwnames
[] = { "self", NULL
};
10122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10133 wxRegionIterator_Reset(_arg0
);
10135 wxPyEndAllowThreads(__tstate
);
10136 if (PyErr_Occurred()) return NULL
;
10137 } Py_INCREF(Py_None
);
10138 _resultobj
= Py_None
;
10142 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10145 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10146 PyObject
* _resultobj
;
10147 wxRegionIterator
* _arg0
;
10148 PyObject
* _argo0
= 0;
10149 char *_kwnames
[] = { "self", NULL
};
10152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10163 wxRegionIterator_Next(_arg0
);
10165 wxPyEndAllowThreads(__tstate
);
10166 if (PyErr_Occurred()) return NULL
;
10167 } Py_INCREF(Py_None
);
10168 _resultobj
= Py_None
;
10172 static PyMethodDef gdicMethods
[] = {
10173 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10174 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10175 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10176 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10177 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10178 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10179 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10180 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10181 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10182 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10183 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10184 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10185 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10186 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10187 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10188 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10189 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10190 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10191 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10192 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10193 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10194 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10195 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10196 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10197 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10198 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10199 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10200 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10201 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10202 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10203 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
10204 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10205 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10206 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10207 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10208 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10209 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10210 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10211 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10212 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10213 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10214 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10215 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10216 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10217 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10218 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10219 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10220 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10221 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10222 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10223 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10224 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10225 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10226 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10227 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10228 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10229 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10230 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10231 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
10232 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
10233 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
10234 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10235 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10236 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
10237 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
10238 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10239 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10240 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10241 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10242 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10243 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10244 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10245 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10246 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10247 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10248 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10249 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10250 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10251 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10252 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10253 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10254 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10255 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10256 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10257 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10258 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10259 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10260 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10261 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10262 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10263 { "wxDC_SetClippingRect", (PyCFunction
) _wrap_wxDC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
},
10264 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
10265 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10266 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10267 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10268 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10269 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10270 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10271 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10272 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10273 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10274 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10275 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10276 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10277 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10278 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10279 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10280 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10281 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10282 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10283 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10284 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10285 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10286 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10287 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10288 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10289 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10290 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10291 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10292 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10293 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10294 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10295 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10296 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10297 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10298 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10299 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10300 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10301 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10302 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10303 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10304 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10305 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10306 { "wxDC_DrawRectangleRect", (PyCFunction
) _wrap_wxDC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
},
10307 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10308 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10309 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10310 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10311 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10312 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
10313 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
10314 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10315 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10316 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10317 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10318 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10319 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10320 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10321 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10322 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10323 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10324 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10325 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10326 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10327 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10328 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10329 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10330 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10331 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10332 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10333 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10334 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10335 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10336 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10337 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10338 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10339 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10340 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10341 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10342 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10343 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10344 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10345 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10346 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10391 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10392 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10393 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10394 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10395 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10396 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10397 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10398 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10399 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10400 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10401 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10402 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10403 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10404 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10405 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10406 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10407 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10408 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10409 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10410 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10411 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10412 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10413 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10414 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10415 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10416 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10417 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10418 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10419 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10420 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10421 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10422 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10423 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10424 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10425 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
10426 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10427 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10428 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10435 * This table is used by the pointer type-checker
10437 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10438 { "_signed_long","_long",0},
10439 { "_wxPrintQuality","_wxCoord",0},
10440 { "_wxPrintQuality","_int",0},
10441 { "_wxPrintQuality","_signed_int",0},
10442 { "_wxPrintQuality","_unsigned_int",0},
10443 { "_wxPrintQuality","_wxWindowID",0},
10444 { "_wxPrintQuality","_uint",0},
10445 { "_wxPrintQuality","_EBool",0},
10446 { "_wxPrintQuality","_size_t",0},
10447 { "_wxPrintQuality","_time_t",0},
10448 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
10449 { "_byte","_unsigned_char",0},
10450 { "_long","_unsigned_long",0},
10451 { "_long","_signed_long",0},
10452 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10453 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10454 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10455 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
10456 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10457 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10458 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10459 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10460 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10461 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10462 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10463 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10464 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
10465 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
10466 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10467 { "_size_t","_wxCoord",0},
10468 { "_size_t","_wxPrintQuality",0},
10469 { "_size_t","_time_t",0},
10470 { "_size_t","_unsigned_int",0},
10471 { "_size_t","_int",0},
10472 { "_size_t","_wxWindowID",0},
10473 { "_size_t","_uint",0},
10474 { "_uint","_wxCoord",0},
10475 { "_uint","_wxPrintQuality",0},
10476 { "_uint","_time_t",0},
10477 { "_uint","_size_t",0},
10478 { "_uint","_unsigned_int",0},
10479 { "_uint","_int",0},
10480 { "_uint","_wxWindowID",0},
10481 { "_wxChar","_char",0},
10482 { "_char","_wxChar",0},
10483 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
10484 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10485 { "_EBool","_wxCoord",0},
10486 { "_EBool","_wxPrintQuality",0},
10487 { "_EBool","_signed_int",0},
10488 { "_EBool","_int",0},
10489 { "_EBool","_wxWindowID",0},
10490 { "_unsigned_long","_long",0},
10491 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10492 { "_signed_int","_wxCoord",0},
10493 { "_signed_int","_wxPrintQuality",0},
10494 { "_signed_int","_EBool",0},
10495 { "_signed_int","_wxWindowID",0},
10496 { "_signed_int","_int",0},
10497 { "_WXTYPE","_short",0},
10498 { "_WXTYPE","_signed_short",0},
10499 { "_WXTYPE","_unsigned_short",0},
10500 { "_unsigned_short","_WXTYPE",0},
10501 { "_unsigned_short","_short",0},
10502 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10503 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10504 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10505 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10506 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10507 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10508 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10509 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10510 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
10511 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
10512 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10513 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10514 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
10515 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10516 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10517 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
10518 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10519 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10520 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10521 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10522 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10523 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10524 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10525 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10526 { "_signed_short","_WXTYPE",0},
10527 { "_signed_short","_short",0},
10528 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
10529 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
10530 { "_unsigned_char","_byte",0},
10531 { "_unsigned_int","_wxCoord",0},
10532 { "_unsigned_int","_wxPrintQuality",0},
10533 { "_unsigned_int","_time_t",0},
10534 { "_unsigned_int","_size_t",0},
10535 { "_unsigned_int","_uint",0},
10536 { "_unsigned_int","_wxWindowID",0},
10537 { "_unsigned_int","_int",0},
10538 { "_short","_WXTYPE",0},
10539 { "_short","_unsigned_short",0},
10540 { "_short","_signed_short",0},
10541 { "_wxWindowID","_wxCoord",0},
10542 { "_wxWindowID","_wxPrintQuality",0},
10543 { "_wxWindowID","_time_t",0},
10544 { "_wxWindowID","_size_t",0},
10545 { "_wxWindowID","_EBool",0},
10546 { "_wxWindowID","_uint",0},
10547 { "_wxWindowID","_int",0},
10548 { "_wxWindowID","_signed_int",0},
10549 { "_wxWindowID","_unsigned_int",0},
10550 { "_int","_wxCoord",0},
10551 { "_int","_wxPrintQuality",0},
10552 { "_int","_time_t",0},
10553 { "_int","_size_t",0},
10554 { "_int","_EBool",0},
10555 { "_int","_uint",0},
10556 { "_int","_wxWindowID",0},
10557 { "_int","_unsigned_int",0},
10558 { "_int","_signed_int",0},
10559 { "_time_t","_wxCoord",0},
10560 { "_time_t","_wxPrintQuality",0},
10561 { "_time_t","_unsigned_int",0},
10562 { "_time_t","_int",0},
10563 { "_time_t","_wxWindowID",0},
10564 { "_time_t","_uint",0},
10565 { "_time_t","_size_t",0},
10566 { "_wxCoord","_int",0},
10567 { "_wxCoord","_signed_int",0},
10568 { "_wxCoord","_unsigned_int",0},
10569 { "_wxCoord","_wxWindowID",0},
10570 { "_wxCoord","_uint",0},
10571 { "_wxCoord","_EBool",0},
10572 { "_wxCoord","_size_t",0},
10573 { "_wxCoord","_time_t",0},
10574 { "_wxCoord","_wxPrintQuality",0},
10577 static PyObject
*SWIG_globals
;
10581 SWIGEXPORT(void) initgdic() {
10583 SWIG_globals
= SWIG_newvarlink();
10584 m
= Py_InitModule("gdic", gdicMethods
);
10585 d
= PyModule_GetDict(m
);
10586 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10587 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10588 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10589 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10590 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10591 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10592 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10593 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10594 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10595 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10596 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10597 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10598 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10599 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10600 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10601 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10602 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10603 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10604 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10605 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10606 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10607 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10608 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10609 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10610 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10611 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10612 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10613 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10614 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10615 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10616 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10617 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10618 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10619 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10620 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10621 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10622 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10623 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10624 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10625 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10626 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10627 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10628 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10629 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10630 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10631 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10632 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10633 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10634 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10635 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10636 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10637 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10638 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10639 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10640 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10641 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10642 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10645 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10646 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);