2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initgdic
55 #define SWIG_name "gdic"
58 #include <wx/imaglist.h>
59 #include <wx/fontmap.h>
60 #include <wx/fontenc.h>
61 #include <wx/fontmap.h>
62 #include <wx/fontutil.h>
63 #include <wx/dcbuffer.h>
64 #include <wx/dcmirror.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
);
184 wxIcon
* wxIconFromLocation(const wxIconLocation
& loc
) {
185 wxIcon
* icon
= new wxIcon(loc
);
189 wxCursor
* wxPyStockCursor(int id
) {
190 return new wxCursor(id
);
193 wxCursor
* wxCursorFromImage(const wxImage
& image
) {
194 return new wxCursor(image
);
197 wxCursor
* wxCursorFromBits(PyObject
* bits
, int width
, int height
,
198 int hotSpotX
=-1, int hotSpotY
=-1,
199 PyObject
* maskBits
=0) {
201 char* maskbuf
= NULL
;
203 PyString_AsStringAndSize(bits
, &bitsbuf
, &length
);
205 PyString_AsStringAndSize(maskBits
, &maskbuf
, &length
);
206 return new wxCursor(bitsbuf
, width
, height
, hotSpotX
, hotSpotY
, maskbuf
);
208 // Alternate 'constructor'
209 wxColour
* wxNamedColour(const wxString
& colorName
) {
210 return new wxColour(colorName
);
213 class wxPyPen
: public wxPen
{
215 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
216 : wxPen(colour
, width
, style
)
223 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
226 m_dash
= new wxDash
[nb_dashes
];
227 for (int i
=0; i
<nb_dashes
; i
++) {
230 wxPen::SetDashes(nb_dashes
, m_dash
);
237 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
243 // Alternate 'constructor'
244 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
245 return new wxMemoryDC(oldDC
);
248 #include <wx/metafile.h>
251 extern wxFont
* wxNORMAL_FONT
;
252 extern wxFont
* wxSMALL_FONT
;
253 extern wxFont
* wxITALIC_FONT
;
254 extern wxFont
* wxSWISS_FONT
;
255 extern wxPen
* wxRED_PEN
;
256 extern wxPen
* wxCYAN_PEN
;
257 extern wxPen
* wxGREEN_PEN
;
258 extern wxPen
* wxBLACK_PEN
;
259 extern wxPen
* wxWHITE_PEN
;
260 extern wxPen
* wxTRANSPARENT_PEN
;
261 extern wxPen
* wxBLACK_DASHED_PEN
;
262 extern wxPen
* wxGREY_PEN
;
263 extern wxPen
* wxMEDIUM_GREY_PEN
;
264 extern wxPen
* wxLIGHT_GREY_PEN
;
265 extern wxBrush
* wxBLUE_BRUSH
;
266 extern wxBrush
* wxGREEN_BRUSH
;
267 extern wxBrush
* wxWHITE_BRUSH
;
268 extern wxBrush
* wxBLACK_BRUSH
;
269 extern wxBrush
* wxTRANSPARENT_BRUSH
;
270 extern wxBrush
* wxCYAN_BRUSH
;
271 extern wxBrush
* wxRED_BRUSH
;
272 extern wxBrush
* wxGREY_BRUSH
;
273 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
274 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
275 extern wxColour
* wxBLACK
;
276 extern wxColour
* wxWHITE
;
277 extern wxColour
* wxRED
;
278 extern wxColour
* wxBLUE
;
279 extern wxColour
* wxGREEN
;
280 extern wxColour
* wxCYAN
;
281 extern wxColour
* wxLIGHT_GREY
;
282 extern wxCursor
* wxSTANDARD_CURSOR
;
283 extern wxCursor
* wxHOURGLASS_CURSOR
;
284 extern wxCursor
* wxCROSS_CURSOR
;
285 extern wxBitmap wxNullBitmap
;
286 extern wxIcon wxNullIcon
;
287 extern wxCursor wxNullCursor
;
288 extern wxPen wxNullPen
;
289 extern wxBrush wxNullBrush
;
290 extern wxPalette wxNullPalette
;
291 extern wxFont wxNullFont
;
292 extern wxColour wxNullColour
;
293 extern wxFontList
* wxTheFontList
;
294 extern wxPenList
* wxThePenList
;
295 extern wxBrushList
* wxTheBrushList
;
296 extern wxColourDatabase
* wxTheColourDatabase
;
302 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
303 PyObject
* _resultobj
;
307 int _arg2
= (int ) -1;
308 char *_kwnames
[] = { "width","height","depth", NULL
};
312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
316 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
318 wxPyEndAllowThreads(__tstate
);
319 if (PyErr_Occurred()) return NULL
;
321 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
322 _resultobj
= Py_BuildValue("s",_ptemp
);
325 _resultobj
= Py_None
;
330 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
331 PyObject
* _resultobj
;
334 PyObject
* _obj0
= 0;
335 char *_kwnames
[] = { "listOfStrings", NULL
};
339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
346 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
348 wxPyEndAllowThreads(__tstate
);
349 if (PyErr_Occurred()) return NULL
;
351 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
352 _resultobj
= Py_BuildValue("s",_ptemp
);
355 _resultobj
= Py_None
;
360 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
361 PyObject
* _resultobj
;
364 PyObject
* _argo0
= 0;
365 char *_kwnames
[] = { "icon", NULL
};
369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
372 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
379 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
381 wxPyEndAllowThreads(__tstate
);
382 if (PyErr_Occurred()) return NULL
;
384 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
385 _resultobj
= Py_BuildValue("s",_ptemp
);
388 _resultobj
= Py_None
;
393 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
394 PyObject
* _resultobj
;
399 int _arg3
= (int ) 1;
400 PyObject
* _obj0
= 0;
401 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxBitmapFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
412 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
414 wxPyEndAllowThreads(__tstate
);
415 if (PyErr_Occurred()) return NULL
;
417 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
418 _resultobj
= Py_BuildValue("s",_ptemp
);
421 _resultobj
= Py_None
;
426 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
427 PyObject
* _resultobj
;
431 PyObject
* _argo0
= 0;
433 PyObject
* _obj1
= 0;
434 char *_kwnames
[] = { "bitmap","colour", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
441 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
448 if (! wxColour_helper(_obj1
, &_arg1
))
452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
453 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
455 wxPyEndAllowThreads(__tstate
);
456 if (PyErr_Occurred()) return NULL
;
458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
459 _resultobj
= Py_BuildValue("s",_ptemp
);
462 _resultobj
= Py_None
;
467 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
468 PyObject
* _resultobj
;
470 char *_kwnames
[] = { NULL
};
474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
478 _result
= (wxIcon
*)wxEmptyIcon();
480 wxPyEndAllowThreads(__tstate
);
481 if (PyErr_Occurred()) return NULL
;
483 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
484 _resultobj
= Py_BuildValue("s",_ptemp
);
487 _resultobj
= Py_None
;
492 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
493 PyObject
* _resultobj
;
496 PyObject
* _obj0
= 0;
497 char *_kwnames
[] = { "listOfStrings", NULL
};
501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
507 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
508 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
510 wxPyEndAllowThreads(__tstate
);
511 if (PyErr_Occurred()) return NULL
;
513 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
514 _resultobj
= Py_BuildValue("s",_ptemp
);
517 _resultobj
= Py_None
;
522 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
523 PyObject
* _resultobj
;
526 PyObject
* _argo0
= 0;
527 char *_kwnames
[] = { "bmp", NULL
};
531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
534 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
541 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
543 wxPyEndAllowThreads(__tstate
);
544 if (PyErr_Occurred()) return NULL
;
546 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
547 _resultobj
= Py_BuildValue("s",_ptemp
);
550 _resultobj
= Py_None
;
555 static PyObject
*_wrap_wxIconFromLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
556 PyObject
* _resultobj
;
558 wxIconLocation
* _arg0
;
559 PyObject
* _argo0
= 0;
560 char *_kwnames
[] = { "loc", NULL
};
564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromLocation",_kwnames
,&_argo0
))
567 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromLocation. Expected _wxIconLocation_p.");
573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
574 _result
= (wxIcon
*)wxIconFromLocation(*_arg0
);
576 wxPyEndAllowThreads(__tstate
);
577 if (PyErr_Occurred()) return NULL
;
579 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
580 _resultobj
= Py_BuildValue("s",_ptemp
);
583 _resultobj
= Py_None
;
588 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
589 PyObject
* _resultobj
;
592 char *_kwnames
[] = { "id", NULL
};
596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
600 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
602 wxPyEndAllowThreads(__tstate
);
603 if (PyErr_Occurred()) return NULL
;
605 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
606 _resultobj
= Py_BuildValue("s",_ptemp
);
609 _resultobj
= Py_None
;
614 static PyObject
*_wrap_wxCursorFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
615 PyObject
* _resultobj
;
618 PyObject
* _argo0
= 0;
619 char *_kwnames
[] = { "image", NULL
};
623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursorFromImage",_kwnames
,&_argo0
))
626 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
633 _result
= (wxCursor
*)wxCursorFromImage(*_arg0
);
635 wxPyEndAllowThreads(__tstate
);
636 if (PyErr_Occurred()) return NULL
;
638 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
639 _resultobj
= Py_BuildValue("s",_ptemp
);
642 _resultobj
= Py_None
;
647 static PyObject
*_wrap_wxCursorFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
648 PyObject
* _resultobj
;
653 int _arg3
= (int ) -1;
654 int _arg4
= (int ) -1;
655 PyObject
* _arg5
= (PyObject
*) 0;
656 PyObject
* _obj0
= 0;
657 PyObject
* _obj5
= 0;
658 char *_kwnames
[] = { "bits","width","height","hotSpotX","hotSpotY","maskBits", NULL
};
662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|iiO:wxCursorFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_obj5
))
672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
673 _result
= (wxCursor
*)wxCursorFromBits(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
675 wxPyEndAllowThreads(__tstate
);
676 if (PyErr_Occurred()) return NULL
;
678 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
679 _resultobj
= Py_BuildValue("s",_ptemp
);
682 _resultobj
= Py_None
;
687 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
688 PyObject
* _resultobj
;
691 PyObject
* _obj0
= 0;
692 char *_kwnames
[] = { "colorName", NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
699 _arg0
= wxString_in_helper(_obj0
);
704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
705 _result
= (wxColour
*)wxNamedColour(*_arg0
);
707 wxPyEndAllowThreads(__tstate
);
708 if (PyErr_Occurred()) return NULL
;
710 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
711 _resultobj
= Py_BuildValue("s",_ptemp
);
714 _resultobj
= Py_None
;
723 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
724 PyObject
* _resultobj
;
725 wxMemoryDC
* _result
;
727 PyObject
* _argo0
= 0;
728 char *_kwnames
[] = { "oldDC", NULL
};
732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
743 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
745 wxPyEndAllowThreads(__tstate
);
746 if (PyErr_Occurred()) return NULL
;
748 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
749 _resultobj
= Py_BuildValue("s",_ptemp
);
752 _resultobj
= Py_None
;
757 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
759 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
763 static PyObject
*_wrap_wxNORMAL_FONT_get() {
767 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
768 pyobj
= PyString_FromString(ptemp
);
772 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
774 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
778 static PyObject
*_wrap_wxSMALL_FONT_get() {
782 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
783 pyobj
= PyString_FromString(ptemp
);
787 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
789 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
793 static PyObject
*_wrap_wxITALIC_FONT_get() {
797 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
798 pyobj
= PyString_FromString(ptemp
);
802 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
804 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
808 static PyObject
*_wrap_wxSWISS_FONT_get() {
812 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
813 pyobj
= PyString_FromString(ptemp
);
817 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
819 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
823 static PyObject
*_wrap_wxRED_PEN_get() {
827 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
828 pyobj
= PyString_FromString(ptemp
);
832 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
834 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
838 static PyObject
*_wrap_wxCYAN_PEN_get() {
842 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
843 pyobj
= PyString_FromString(ptemp
);
847 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
849 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
853 static PyObject
*_wrap_wxGREEN_PEN_get() {
857 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
858 pyobj
= PyString_FromString(ptemp
);
862 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
864 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
868 static PyObject
*_wrap_wxBLACK_PEN_get() {
872 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
873 pyobj
= PyString_FromString(ptemp
);
877 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
879 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
883 static PyObject
*_wrap_wxWHITE_PEN_get() {
887 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
888 pyobj
= PyString_FromString(ptemp
);
892 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
894 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
898 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
902 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
903 pyobj
= PyString_FromString(ptemp
);
907 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
909 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
913 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
917 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
918 pyobj
= PyString_FromString(ptemp
);
922 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
924 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
928 static PyObject
*_wrap_wxGREY_PEN_get() {
932 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
933 pyobj
= PyString_FromString(ptemp
);
937 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
939 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
943 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
947 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
948 pyobj
= PyString_FromString(ptemp
);
952 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
954 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
958 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
962 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
963 pyobj
= PyString_FromString(ptemp
);
967 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
969 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
973 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
977 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
978 pyobj
= PyString_FromString(ptemp
);
982 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
984 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
988 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
992 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
993 pyobj
= PyString_FromString(ptemp
);
997 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
999 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
1003 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
1007 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
1008 pyobj
= PyString_FromString(ptemp
);
1012 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
1014 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
1018 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
1022 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
1023 pyobj
= PyString_FromString(ptemp
);
1027 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
1029 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
1033 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
1037 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
1038 pyobj
= PyString_FromString(ptemp
);
1042 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
1044 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
1048 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
1052 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
1053 pyobj
= PyString_FromString(ptemp
);
1057 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
1059 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
1063 static PyObject
*_wrap_wxRED_BRUSH_get() {
1067 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
1068 pyobj
= PyString_FromString(ptemp
);
1072 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
1074 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
1078 static PyObject
*_wrap_wxGREY_BRUSH_get() {
1082 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
1083 pyobj
= PyString_FromString(ptemp
);
1087 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
1089 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
1093 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
1097 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
1098 pyobj
= PyString_FromString(ptemp
);
1102 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
1104 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
1108 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
1112 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
1113 pyobj
= PyString_FromString(ptemp
);
1117 static int _wrap_wxBLACK_set(PyObject
*val
) {
1119 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
1123 static PyObject
*_wrap_wxBLACK_get() {
1127 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1128 pyobj
= PyString_FromString(ptemp
);
1132 static int _wrap_wxWHITE_set(PyObject
*val
) {
1134 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1138 static PyObject
*_wrap_wxWHITE_get() {
1142 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1143 pyobj
= PyString_FromString(ptemp
);
1147 static int _wrap_wxRED_set(PyObject
*val
) {
1149 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1153 static PyObject
*_wrap_wxRED_get() {
1157 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1158 pyobj
= PyString_FromString(ptemp
);
1162 static int _wrap_wxBLUE_set(PyObject
*val
) {
1164 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1168 static PyObject
*_wrap_wxBLUE_get() {
1172 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1173 pyobj
= PyString_FromString(ptemp
);
1177 static int _wrap_wxGREEN_set(PyObject
*val
) {
1179 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1183 static PyObject
*_wrap_wxGREEN_get() {
1187 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1188 pyobj
= PyString_FromString(ptemp
);
1192 static int _wrap_wxCYAN_set(PyObject
*val
) {
1194 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1198 static PyObject
*_wrap_wxCYAN_get() {
1202 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1203 pyobj
= PyString_FromString(ptemp
);
1207 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1209 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1213 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1217 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1218 pyobj
= PyString_FromString(ptemp
);
1222 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1224 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1228 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1232 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1233 pyobj
= PyString_FromString(ptemp
);
1237 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1239 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1243 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1247 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1248 pyobj
= PyString_FromString(ptemp
);
1252 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1254 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1258 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1262 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1263 pyobj
= PyString_FromString(ptemp
);
1267 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1269 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1273 static PyObject
*_wrap_wxNullBitmap_get() {
1277 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1278 pyobj
= PyString_FromString(ptemp
);
1282 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1284 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1288 static PyObject
*_wrap_wxNullIcon_get() {
1292 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1293 pyobj
= PyString_FromString(ptemp
);
1297 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1299 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1303 static PyObject
*_wrap_wxNullCursor_get() {
1307 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1308 pyobj
= PyString_FromString(ptemp
);
1312 static int _wrap_wxNullPen_set(PyObject
*val
) {
1314 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1318 static PyObject
*_wrap_wxNullPen_get() {
1322 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1323 pyobj
= PyString_FromString(ptemp
);
1327 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1329 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1333 static PyObject
*_wrap_wxNullBrush_get() {
1337 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1338 pyobj
= PyString_FromString(ptemp
);
1342 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1344 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1348 static PyObject
*_wrap_wxNullPalette_get() {
1352 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1353 pyobj
= PyString_FromString(ptemp
);
1357 static int _wrap_wxNullFont_set(PyObject
*val
) {
1359 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1363 static PyObject
*_wrap_wxNullFont_get() {
1367 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1368 pyobj
= PyString_FromString(ptemp
);
1372 static int _wrap_wxNullColour_set(PyObject
*val
) {
1374 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1378 static PyObject
*_wrap_wxNullColour_get() {
1382 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1383 pyobj
= PyString_FromString(ptemp
);
1387 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1389 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1393 static PyObject
*_wrap_wxTheFontList_get() {
1397 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1398 pyobj
= PyString_FromString(ptemp
);
1402 static int _wrap_wxThePenList_set(PyObject
*val
) {
1404 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1408 static PyObject
*_wrap_wxThePenList_get() {
1412 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1413 pyobj
= PyString_FromString(ptemp
);
1417 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1419 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1423 static PyObject
*_wrap_wxTheBrushList_get() {
1427 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1428 pyobj
= PyString_FromString(ptemp
);
1432 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1434 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1438 static PyObject
*_wrap_wxTheColourDatabase_get() {
1442 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1443 pyobj
= PyString_FromString(ptemp
);
1447 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1450 src
= (wxGDIObject
*) ptr
;
1451 dest
= (wxObject
*) src
;
1452 return (void *) dest
;
1455 #define new_wxGDIObject() (new wxGDIObject())
1456 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1457 PyObject
* _resultobj
;
1458 wxGDIObject
* _result
;
1459 char *_kwnames
[] = { NULL
};
1463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1467 _result
= (wxGDIObject
*)new_wxGDIObject();
1469 wxPyEndAllowThreads(__tstate
);
1470 if (PyErr_Occurred()) return NULL
;
1472 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1473 _resultobj
= Py_BuildValue("s",_ptemp
);
1476 _resultobj
= Py_None
;
1481 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1482 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1483 PyObject
* _resultobj
;
1484 wxGDIObject
* _arg0
;
1485 PyObject
* _argo0
= 0;
1486 char *_kwnames
[] = { "self", NULL
};
1489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1500 delete_wxGDIObject(_arg0
);
1502 wxPyEndAllowThreads(__tstate
);
1503 if (PyErr_Occurred()) return NULL
;
1504 } Py_INCREF(Py_None
);
1505 _resultobj
= Py_None
;
1509 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1510 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1511 PyObject
* _resultobj
;
1513 wxGDIObject
* _arg0
;
1514 PyObject
* _argo0
= 0;
1515 char *_kwnames
[] = { "self", NULL
};
1518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1529 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1531 wxPyEndAllowThreads(__tstate
);
1532 if (PyErr_Occurred()) return NULL
;
1533 } _resultobj
= Py_BuildValue("i",_result
);
1537 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1538 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1539 PyObject
* _resultobj
;
1540 wxGDIObject
* _arg0
;
1542 PyObject
* _argo0
= 0;
1544 char *_kwnames
[] = { "self","visible", NULL
};
1547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1556 _arg1
= (bool ) tempbool1
;
1558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1559 wxGDIObject_SetVisible(_arg0
,_arg1
);
1561 wxPyEndAllowThreads(__tstate
);
1562 if (PyErr_Occurred()) return NULL
;
1563 } Py_INCREF(Py_None
);
1564 _resultobj
= Py_None
;
1568 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1569 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1570 PyObject
* _resultobj
;
1572 wxGDIObject
* _arg0
;
1573 PyObject
* _argo0
= 0;
1574 char *_kwnames
[] = { "self", NULL
};
1577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1588 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1590 wxPyEndAllowThreads(__tstate
);
1591 if (PyErr_Occurred()) return NULL
;
1592 } _resultobj
= Py_BuildValue("i",_result
);
1596 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1599 src
= (wxBitmap
*) ptr
;
1600 dest
= (wxGDIObject
*) src
;
1601 return (void *) dest
;
1604 static void *SwigwxBitmapTowxObject(void *ptr
) {
1607 src
= (wxBitmap
*) ptr
;
1608 dest
= (wxObject
*) src
;
1609 return (void *) dest
;
1612 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1613 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1614 PyObject
* _resultobj
;
1617 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1618 PyObject
* _obj0
= 0;
1619 char *_kwnames
[] = { "name","type", NULL
};
1623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1626 _arg0
= wxString_in_helper(_obj0
);
1631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1632 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1634 wxPyEndAllowThreads(__tstate
);
1635 if (PyErr_Occurred()) return NULL
;
1637 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1638 _resultobj
= Py_BuildValue("s",_ptemp
);
1641 _resultobj
= Py_None
;
1650 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1651 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1652 PyObject
* _resultobj
;
1654 PyObject
* _argo0
= 0;
1655 char *_kwnames
[] = { "self", NULL
};
1658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1669 delete_wxBitmap(_arg0
);
1671 wxPyEndAllowThreads(__tstate
);
1672 if (PyErr_Occurred()) return NULL
;
1673 } Py_INCREF(Py_None
);
1674 _resultobj
= Py_None
;
1678 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1679 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1680 PyObject
* _resultobj
;
1681 wxPalette
* _result
;
1683 PyObject
* _argo0
= 0;
1684 char *_kwnames
[] = { "self", NULL
};
1688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1699 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1701 wxPyEndAllowThreads(__tstate
);
1702 if (PyErr_Occurred()) return NULL
;
1704 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1705 _resultobj
= Py_BuildValue("s",_ptemp
);
1708 _resultobj
= Py_None
;
1713 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1714 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1715 PyObject
* _resultobj
;
1718 PyObject
* _argo0
= 0;
1719 char *_kwnames
[] = { "self", NULL
};
1723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1734 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1736 wxPyEndAllowThreads(__tstate
);
1737 if (PyErr_Occurred()) return NULL
;
1739 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1740 _resultobj
= Py_BuildValue("s",_ptemp
);
1743 _resultobj
= Py_None
;
1748 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1749 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1750 PyObject
* _resultobj
;
1754 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1755 PyObject
* _argo0
= 0;
1756 PyObject
* _obj1
= 0;
1757 char *_kwnames
[] = { "self","name","type", NULL
};
1760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1770 _arg1
= wxString_in_helper(_obj1
);
1775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1776 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1778 wxPyEndAllowThreads(__tstate
);
1779 if (PyErr_Occurred()) return NULL
;
1780 } _resultobj
= Py_BuildValue("i",_result
);
1788 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1789 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1790 PyObject
* _resultobj
;
1795 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1796 PyObject
* _argo0
= 0;
1797 PyObject
* _obj1
= 0;
1798 PyObject
* _argo3
= 0;
1799 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1812 _arg1
= wxString_in_helper(_obj1
);
1817 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1818 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1825 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1827 wxPyEndAllowThreads(__tstate
);
1828 if (PyErr_Occurred()) return NULL
;
1829 } _resultobj
= Py_BuildValue("i",_result
);
1837 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1838 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1839 PyObject
* _resultobj
;
1842 PyObject
* _argo0
= 0;
1843 PyObject
* _argo1
= 0;
1844 char *_kwnames
[] = { "self","mask", NULL
};
1847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1857 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1858 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1865 wxBitmap_SetMask(_arg0
,_arg1
);
1867 wxPyEndAllowThreads(__tstate
);
1868 if (PyErr_Occurred()) return NULL
;
1869 } Py_INCREF(Py_None
);
1870 _resultobj
= Py_None
;
1874 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1875 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1876 PyObject
* _resultobj
;
1879 PyObject
* _argo0
= 0;
1880 PyObject
* _argo1
= 0;
1881 char *_kwnames
[] = { "self","palette", NULL
};
1884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1894 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1901 wxBitmap_SetPalette(_arg0
,*_arg1
);
1903 wxPyEndAllowThreads(__tstate
);
1904 if (PyErr_Occurred()) return NULL
;
1905 } Py_INCREF(Py_None
);
1906 _resultobj
= Py_None
;
1910 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1911 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1912 PyObject
* _resultobj
;
1915 PyObject
* _argo0
= 0;
1916 char *_kwnames
[] = { "self", NULL
};
1919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1930 _result
= (long )wxBitmap_GetHandle(_arg0
);
1932 wxPyEndAllowThreads(__tstate
);
1933 if (PyErr_Occurred()) return NULL
;
1934 } _resultobj
= Py_BuildValue("l",_result
);
1938 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1939 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1940 PyObject
* _resultobj
;
1943 PyObject
* _argo0
= 0;
1944 char *_kwnames
[] = { "self","handle", NULL
};
1947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1958 wxBitmap_SetHandle(_arg0
,_arg1
);
1960 wxPyEndAllowThreads(__tstate
);
1961 if (PyErr_Occurred()) return NULL
;
1962 } Py_INCREF(Py_None
);
1963 _resultobj
= Py_None
;
1967 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1968 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1969 PyObject
* _resultobj
;
1972 PyObject
* _argo0
= 0;
1973 char *_kwnames
[] = { "self", NULL
};
1976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1987 _result
= (bool )wxBitmap_Ok(_arg0
);
1989 wxPyEndAllowThreads(__tstate
);
1990 if (PyErr_Occurred()) return NULL
;
1991 } _resultobj
= Py_BuildValue("i",_result
);
1995 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1996 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1997 PyObject
* _resultobj
;
2000 PyObject
* _argo0
= 0;
2001 char *_kwnames
[] = { "self", NULL
};
2004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
2007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
2014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2015 _result
= (int )wxBitmap_GetWidth(_arg0
);
2017 wxPyEndAllowThreads(__tstate
);
2018 if (PyErr_Occurred()) return NULL
;
2019 } _resultobj
= Py_BuildValue("i",_result
);
2023 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
2024 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2025 PyObject
* _resultobj
;
2028 PyObject
* _argo0
= 0;
2029 char *_kwnames
[] = { "self", NULL
};
2032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
2035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
2042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2043 _result
= (int )wxBitmap_GetHeight(_arg0
);
2045 wxPyEndAllowThreads(__tstate
);
2046 if (PyErr_Occurred()) return NULL
;
2047 } _resultobj
= Py_BuildValue("i",_result
);
2051 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
2052 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2053 PyObject
* _resultobj
;
2056 PyObject
* _argo0
= 0;
2057 char *_kwnames
[] = { "self", NULL
};
2060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
2063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
2070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2071 _result
= (int )wxBitmap_GetDepth(_arg0
);
2073 wxPyEndAllowThreads(__tstate
);
2074 if (PyErr_Occurred()) return NULL
;
2075 } _resultobj
= Py_BuildValue("i",_result
);
2079 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2080 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2081 PyObject
* _resultobj
;
2084 PyObject
* _argo0
= 0;
2085 char *_kwnames
[] = { "self","w", NULL
};
2088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
2098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2099 wxBitmap_SetWidth(_arg0
,_arg1
);
2101 wxPyEndAllowThreads(__tstate
);
2102 if (PyErr_Occurred()) return NULL
;
2103 } Py_INCREF(Py_None
);
2104 _resultobj
= Py_None
;
2108 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2109 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2110 PyObject
* _resultobj
;
2113 PyObject
* _argo0
= 0;
2114 char *_kwnames
[] = { "self","h", NULL
};
2117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2128 wxBitmap_SetHeight(_arg0
,_arg1
);
2130 wxPyEndAllowThreads(__tstate
);
2131 if (PyErr_Occurred()) return NULL
;
2132 } Py_INCREF(Py_None
);
2133 _resultobj
= Py_None
;
2137 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2138 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2139 PyObject
* _resultobj
;
2142 PyObject
* _argo0
= 0;
2143 char *_kwnames
[] = { "self","d", NULL
};
2146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2157 wxBitmap_SetDepth(_arg0
,_arg1
);
2159 wxPyEndAllowThreads(__tstate
);
2160 if (PyErr_Occurred()) return NULL
;
2161 } Py_INCREF(Py_None
);
2162 _resultobj
= Py_None
;
2166 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2167 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2168 PyObject
* _resultobj
;
2171 PyObject
* _argo0
= 0;
2173 PyObject
* _obj1
= 0;
2174 char *_kwnames
[] = { "self","size", NULL
};
2177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2188 if (! wxSize_helper(_obj1
, &_arg1
))
2192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2193 wxBitmap_SetSize(_arg0
,*_arg1
);
2195 wxPyEndAllowThreads(__tstate
);
2196 if (PyErr_Occurred()) return NULL
;
2197 } Py_INCREF(Py_None
);
2198 _resultobj
= Py_None
;
2202 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2203 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
* _resultobj
;
2208 PyObject
* _argo0
= 0;
2210 PyObject
* _obj1
= 0;
2211 char *_kwnames
[] = { "self","rect", NULL
};
2215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2226 if (! wxRect_helper(_obj1
, &_arg1
))
2230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2231 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2233 wxPyEndAllowThreads(__tstate
);
2234 if (PyErr_Occurred()) return NULL
;
2235 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2236 _resultobj
= Py_BuildValue("s",_ptemp
);
2240 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2241 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2246 PyObject
* _argo0
= 0;
2247 PyObject
* _argo1
= 0;
2248 char *_kwnames
[] = { "self","icon", NULL
};
2251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2261 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2268 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2270 wxPyEndAllowThreads(__tstate
);
2271 if (PyErr_Occurred()) return NULL
;
2272 } _resultobj
= Py_BuildValue("i",_result
);
2276 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2277 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2282 PyObject
* _argo0
= 0;
2283 PyObject
* _argo1
= 0;
2284 char *_kwnames
[] = { "self","cursor", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2297 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2304 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2306 wxPyEndAllowThreads(__tstate
);
2307 if (PyErr_Occurred()) return NULL
;
2308 } _resultobj
= Py_BuildValue("i",_result
);
2312 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2313 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2314 PyObject
* _resultobj
;
2317 PyObject
* _argo0
= 0;
2318 char *_kwnames
[] = { "self", NULL
};
2321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2332 _result
= (int )wxBitmap_GetQuality(_arg0
);
2334 wxPyEndAllowThreads(__tstate
);
2335 if (PyErr_Occurred()) return NULL
;
2336 } _resultobj
= Py_BuildValue("i",_result
);
2340 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2341 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2342 PyObject
* _resultobj
;
2345 PyObject
* _argo0
= 0;
2346 char *_kwnames
[] = { "self","q", NULL
};
2349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2360 wxBitmap_SetQuality(_arg0
,_arg1
);
2362 wxPyEndAllowThreads(__tstate
);
2363 if (PyErr_Occurred()) return NULL
;
2364 } Py_INCREF(Py_None
);
2365 _resultobj
= Py_None
;
2369 static void *SwigwxMaskTowxObject(void *ptr
) {
2372 src
= (wxMask
*) ptr
;
2373 dest
= (wxObject
*) src
;
2374 return (void *) dest
;
2377 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2378 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2379 PyObject
* _resultobj
;
2382 PyObject
* _argo0
= 0;
2383 char *_kwnames
[] = { "bitmap", NULL
};
2387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2390 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2397 _result
= (wxMask
*)new_wxMask(*_arg0
);
2399 wxPyEndAllowThreads(__tstate
);
2400 if (PyErr_Occurred()) return NULL
;
2402 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2403 _resultobj
= Py_BuildValue("s",_ptemp
);
2406 _resultobj
= Py_None
;
2411 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2412 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2413 PyObject
* _resultobj
;
2415 PyObject
* _argo0
= 0;
2416 char *_kwnames
[] = { "self", NULL
};
2419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2430 wxMask_Destroy(_arg0
);
2432 wxPyEndAllowThreads(__tstate
);
2433 if (PyErr_Occurred()) return NULL
;
2434 } Py_INCREF(Py_None
);
2435 _resultobj
= Py_None
;
2439 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2442 src
= (wxIcon
*) ptr
;
2443 dest
= (wxGDIObject
*) src
;
2444 return (void *) dest
;
2447 static void *SwigwxIconTowxObject(void *ptr
) {
2450 src
= (wxIcon
*) ptr
;
2451 dest
= (wxObject
*) src
;
2452 return (void *) dest
;
2455 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2456 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2457 PyObject
* _resultobj
;
2461 int _arg2
= (int ) -1;
2462 int _arg3
= (int ) -1;
2463 PyObject
* _obj0
= 0;
2464 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2471 _arg0
= wxString_in_helper(_obj0
);
2476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2477 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2479 wxPyEndAllowThreads(__tstate
);
2480 if (PyErr_Occurred()) return NULL
;
2482 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2483 _resultobj
= Py_BuildValue("s",_ptemp
);
2486 _resultobj
= Py_None
;
2495 #define delete_wxIcon(_swigobj) (delete _swigobj)
2496 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2497 PyObject
* _resultobj
;
2499 PyObject
* _argo0
= 0;
2500 char *_kwnames
[] = { "self", NULL
};
2503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2514 delete_wxIcon(_arg0
);
2516 wxPyEndAllowThreads(__tstate
);
2517 if (PyErr_Occurred()) return NULL
;
2518 } Py_INCREF(Py_None
);
2519 _resultobj
= Py_None
;
2523 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2524 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2525 PyObject
* _resultobj
;
2530 PyObject
* _argo0
= 0;
2531 PyObject
* _obj1
= 0;
2532 char *_kwnames
[] = { "self","name","flags", NULL
};
2535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2545 _arg1
= wxString_in_helper(_obj1
);
2550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2551 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2553 wxPyEndAllowThreads(__tstate
);
2554 if (PyErr_Occurred()) return NULL
;
2555 } _resultobj
= Py_BuildValue("i",_result
);
2563 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2564 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2565 PyObject
* _resultobj
;
2568 PyObject
* _argo0
= 0;
2569 char *_kwnames
[] = { "self", NULL
};
2572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2583 _result
= (long )wxIcon_GetHandle(_arg0
);
2585 wxPyEndAllowThreads(__tstate
);
2586 if (PyErr_Occurred()) return NULL
;
2587 } _resultobj
= Py_BuildValue("l",_result
);
2591 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2592 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2593 PyObject
* _resultobj
;
2596 PyObject
* _argo0
= 0;
2597 char *_kwnames
[] = { "self","handle", NULL
};
2600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2611 wxIcon_SetHandle(_arg0
,_arg1
);
2613 wxPyEndAllowThreads(__tstate
);
2614 if (PyErr_Occurred()) return NULL
;
2615 } Py_INCREF(Py_None
);
2616 _resultobj
= Py_None
;
2620 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2621 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2622 PyObject
* _resultobj
;
2625 PyObject
* _argo0
= 0;
2626 char *_kwnames
[] = { "self", NULL
};
2629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2640 _result
= (bool )wxIcon_Ok(_arg0
);
2642 wxPyEndAllowThreads(__tstate
);
2643 if (PyErr_Occurred()) return NULL
;
2644 } _resultobj
= Py_BuildValue("i",_result
);
2648 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2649 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2650 PyObject
* _resultobj
;
2653 PyObject
* _argo0
= 0;
2654 char *_kwnames
[] = { "self", NULL
};
2657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2668 _result
= (int )wxIcon_GetWidth(_arg0
);
2670 wxPyEndAllowThreads(__tstate
);
2671 if (PyErr_Occurred()) return NULL
;
2672 } _resultobj
= Py_BuildValue("i",_result
);
2676 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2677 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2678 PyObject
* _resultobj
;
2681 PyObject
* _argo0
= 0;
2682 char *_kwnames
[] = { "self", NULL
};
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2696 _result
= (int )wxIcon_GetHeight(_arg0
);
2698 wxPyEndAllowThreads(__tstate
);
2699 if (PyErr_Occurred()) return NULL
;
2700 } _resultobj
= Py_BuildValue("i",_result
);
2704 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2705 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2706 PyObject
* _resultobj
;
2709 PyObject
* _argo0
= 0;
2710 char *_kwnames
[] = { "self", NULL
};
2713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2724 _result
= (int )wxIcon_GetDepth(_arg0
);
2726 wxPyEndAllowThreads(__tstate
);
2727 if (PyErr_Occurred()) return NULL
;
2728 } _resultobj
= Py_BuildValue("i",_result
);
2732 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2733 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2734 PyObject
* _resultobj
;
2737 PyObject
* _argo0
= 0;
2738 char *_kwnames
[] = { "self","w", NULL
};
2741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2752 wxIcon_SetWidth(_arg0
,_arg1
);
2754 wxPyEndAllowThreads(__tstate
);
2755 if (PyErr_Occurred()) return NULL
;
2756 } Py_INCREF(Py_None
);
2757 _resultobj
= Py_None
;
2761 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2762 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2763 PyObject
* _resultobj
;
2766 PyObject
* _argo0
= 0;
2767 char *_kwnames
[] = { "self","h", NULL
};
2770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2781 wxIcon_SetHeight(_arg0
,_arg1
);
2783 wxPyEndAllowThreads(__tstate
);
2784 if (PyErr_Occurred()) return NULL
;
2785 } Py_INCREF(Py_None
);
2786 _resultobj
= Py_None
;
2790 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2791 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2792 PyObject
* _resultobj
;
2795 PyObject
* _argo0
= 0;
2796 char *_kwnames
[] = { "self","d", NULL
};
2799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2809 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2810 wxIcon_SetDepth(_arg0
,_arg1
);
2812 wxPyEndAllowThreads(__tstate
);
2813 if (PyErr_Occurred()) return NULL
;
2814 } Py_INCREF(Py_None
);
2815 _resultobj
= Py_None
;
2819 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2820 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
* _resultobj
;
2824 PyObject
* _argo0
= 0;
2826 PyObject
* _obj1
= 0;
2827 char *_kwnames
[] = { "self","size", NULL
};
2830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2841 if (! wxSize_helper(_obj1
, &_arg1
))
2845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2846 wxIcon_SetSize(_arg0
,*_arg1
);
2848 wxPyEndAllowThreads(__tstate
);
2849 if (PyErr_Occurred()) return NULL
;
2850 } Py_INCREF(Py_None
);
2851 _resultobj
= Py_None
;
2855 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2856 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2857 PyObject
* _resultobj
;
2860 PyObject
* _argo0
= 0;
2861 PyObject
* _argo1
= 0;
2862 char *_kwnames
[] = { "self","bmp", NULL
};
2865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2875 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2882 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2884 wxPyEndAllowThreads(__tstate
);
2885 if (PyErr_Occurred()) return NULL
;
2886 } Py_INCREF(Py_None
);
2887 _resultobj
= Py_None
;
2891 static wxIconLocation
*new_wxIconLocation(const wxString
*filename
,int num
) {
2893 return new wxIconLocation(*filename
, num
);
2895 return new wxIconLocation(*filename
);
2899 static PyObject
*_wrap_new_wxIconLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2900 PyObject
* _resultobj
;
2901 wxIconLocation
* _result
;
2902 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
2903 int _arg1
= (int ) 0;
2904 PyObject
* _obj0
= 0;
2905 char *_kwnames
[] = { "filename","num", NULL
};
2909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Oi:new_wxIconLocation",_kwnames
,&_obj0
,&_arg1
))
2913 _arg0
= wxString_in_helper(_obj0
);
2918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2919 _result
= (wxIconLocation
*)new_wxIconLocation(_arg0
,_arg1
);
2921 wxPyEndAllowThreads(__tstate
);
2922 if (PyErr_Occurred()) return NULL
;
2924 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconLocation_p");
2925 _resultobj
= Py_BuildValue("s",_ptemp
);
2928 _resultobj
= Py_None
;
2937 #define delete_wxIconLocation(_swigobj) (delete _swigobj)
2938 static PyObject
*_wrap_delete_wxIconLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2939 PyObject
* _resultobj
;
2940 wxIconLocation
* _arg0
;
2941 PyObject
* _argo0
= 0;
2942 char *_kwnames
[] = { "self", NULL
};
2945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconLocation",_kwnames
,&_argo0
))
2948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconLocation. Expected _wxIconLocation_p.");
2955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2956 delete_wxIconLocation(_arg0
);
2958 wxPyEndAllowThreads(__tstate
);
2959 if (PyErr_Occurred()) return NULL
;
2960 } Py_INCREF(Py_None
);
2961 _resultobj
= Py_None
;
2965 #define wxIconLocation_IsOk(_swigobj) (_swigobj->IsOk())
2966 static PyObject
*_wrap_wxIconLocation_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2967 PyObject
* _resultobj
;
2969 wxIconLocation
* _arg0
;
2970 PyObject
* _argo0
= 0;
2971 char *_kwnames
[] = { "self", NULL
};
2974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconLocation_IsOk",_kwnames
,&_argo0
))
2977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_IsOk. Expected _wxIconLocation_p.");
2984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2985 _result
= (bool )wxIconLocation_IsOk(_arg0
);
2987 wxPyEndAllowThreads(__tstate
);
2988 if (PyErr_Occurred()) return NULL
;
2989 } _resultobj
= Py_BuildValue("i",_result
);
2993 #define wxIconLocation_SetFileName(_swigobj,_swigarg0) (_swigobj->SetFileName(_swigarg0))
2994 static PyObject
*_wrap_wxIconLocation_SetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2995 PyObject
* _resultobj
;
2996 wxIconLocation
* _arg0
;
2998 PyObject
* _argo0
= 0;
2999 PyObject
* _obj1
= 0;
3000 char *_kwnames
[] = { "self","filename", NULL
};
3003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconLocation_SetFileName",_kwnames
,&_argo0
,&_obj1
))
3006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
3008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_SetFileName. Expected _wxIconLocation_p.");
3013 _arg1
= wxString_in_helper(_obj1
);
3018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3019 wxIconLocation_SetFileName(_arg0
,*_arg1
);
3021 wxPyEndAllowThreads(__tstate
);
3022 if (PyErr_Occurred()) return NULL
;
3023 } Py_INCREF(Py_None
);
3024 _resultobj
= Py_None
;
3032 #define wxIconLocation_GetFileName(_swigobj) (_swigobj->GetFileName())
3033 static PyObject
*_wrap_wxIconLocation_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3034 PyObject
* _resultobj
;
3036 wxIconLocation
* _arg0
;
3037 PyObject
* _argo0
= 0;
3038 char *_kwnames
[] = { "self", NULL
};
3041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconLocation_GetFileName",_kwnames
,&_argo0
))
3044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
3046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_GetFileName. Expected _wxIconLocation_p.");
3051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3052 const wxString
& _result_ref
= wxIconLocation_GetFileName(_arg0
);
3053 _result
= (wxString
*) &_result_ref
;
3055 wxPyEndAllowThreads(__tstate
);
3056 if (PyErr_Occurred()) return NULL
;
3059 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3061 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3067 static void wxIconLocation_SetIndex(wxIconLocation
*self
,int num
) {
3069 self
->SetIndex(num
);
3074 static PyObject
*_wrap_wxIconLocation_SetIndex(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3075 PyObject
* _resultobj
;
3076 wxIconLocation
* _arg0
;
3078 PyObject
* _argo0
= 0;
3079 char *_kwnames
[] = { "self","num", NULL
};
3082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIconLocation_SetIndex",_kwnames
,&_argo0
,&_arg1
))
3085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
3087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_SetIndex. Expected _wxIconLocation_p.");
3092 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3093 wxIconLocation_SetIndex(_arg0
,_arg1
);
3095 wxPyEndAllowThreads(__tstate
);
3096 if (PyErr_Occurred()) return NULL
;
3097 } Py_INCREF(Py_None
);
3098 _resultobj
= Py_None
;
3102 static int wxIconLocation_GetIndex(wxIconLocation
*self
) {
3104 return self
->GetIndex();
3109 static PyObject
*_wrap_wxIconLocation_GetIndex(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3110 PyObject
* _resultobj
;
3112 wxIconLocation
* _arg0
;
3113 PyObject
* _argo0
= 0;
3114 char *_kwnames
[] = { "self", NULL
};
3117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconLocation_GetIndex",_kwnames
,&_argo0
))
3120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
3122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_GetIndex. Expected _wxIconLocation_p.");
3127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3128 _result
= (int )wxIconLocation_GetIndex(_arg0
);
3130 wxPyEndAllowThreads(__tstate
);
3131 if (PyErr_Occurred()) return NULL
;
3132 } _resultobj
= Py_BuildValue("i",_result
);
3136 #define new_wxIconBundle() (new wxIconBundle())
3137 static PyObject
*_wrap_new_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3138 PyObject
* _resultobj
;
3139 wxIconBundle
* _result
;
3140 char *_kwnames
[] = { NULL
};
3144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxIconBundle",_kwnames
))
3147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3148 _result
= (wxIconBundle
*)new_wxIconBundle();
3150 wxPyEndAllowThreads(__tstate
);
3151 if (PyErr_Occurred()) return NULL
;
3153 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
3154 _resultobj
= Py_BuildValue("s",_ptemp
);
3157 _resultobj
= Py_None
;
3162 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
3163 static PyObject
*_wrap_new_wxIconBundleFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
* _resultobj
;
3165 wxIconBundle
* _result
;
3168 PyObject
* _obj0
= 0;
3169 char *_kwnames
[] = { "file","type", NULL
};
3173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxIconBundleFromFile",_kwnames
,&_obj0
,&_arg1
))
3176 _arg0
= wxString_in_helper(_obj0
);
3181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3182 _result
= (wxIconBundle
*)new_wxIconBundleFromFile(*_arg0
,_arg1
);
3184 wxPyEndAllowThreads(__tstate
);
3185 if (PyErr_Occurred()) return NULL
;
3187 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
3188 _resultobj
= Py_BuildValue("s",_ptemp
);
3191 _resultobj
= Py_None
;
3200 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
3201 static PyObject
*_wrap_new_wxIconBundleFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3202 PyObject
* _resultobj
;
3203 wxIconBundle
* _result
;
3205 PyObject
* _argo0
= 0;
3206 char *_kwnames
[] = { "icon", NULL
};
3210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxIconBundleFromIcon",_kwnames
,&_argo0
))
3213 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
3214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
3219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3220 _result
= (wxIconBundle
*)new_wxIconBundleFromIcon(*_arg0
);
3222 wxPyEndAllowThreads(__tstate
);
3223 if (PyErr_Occurred()) return NULL
;
3225 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
3226 _resultobj
= Py_BuildValue("s",_ptemp
);
3229 _resultobj
= Py_None
;
3234 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
3235 static PyObject
*_wrap_delete_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3236 PyObject
* _resultobj
;
3237 wxIconBundle
* _arg0
;
3238 PyObject
* _argo0
= 0;
3239 char *_kwnames
[] = { "self", NULL
};
3242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconBundle",_kwnames
,&_argo0
))
3245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
3247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
3252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3253 delete_wxIconBundle(_arg0
);
3255 wxPyEndAllowThreads(__tstate
);
3256 if (PyErr_Occurred()) return NULL
;
3257 } Py_INCREF(Py_None
);
3258 _resultobj
= Py_None
;
3262 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
3263 static PyObject
*_wrap_wxIconBundle_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3264 PyObject
* _resultobj
;
3265 wxIconBundle
* _arg0
;
3267 PyObject
* _argo0
= 0;
3268 PyObject
* _argo1
= 0;
3269 char *_kwnames
[] = { "self","icon", NULL
};
3272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_AddIcon",_kwnames
,&_argo0
,&_argo1
))
3275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
3277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
3282 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
3283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
3288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3289 wxIconBundle_AddIcon(_arg0
,*_arg1
);
3291 wxPyEndAllowThreads(__tstate
);
3292 if (PyErr_Occurred()) return NULL
;
3293 } Py_INCREF(Py_None
);
3294 _resultobj
= Py_None
;
3298 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
3299 static PyObject
*_wrap_wxIconBundle_AddIconFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3300 PyObject
* _resultobj
;
3301 wxIconBundle
* _arg0
;
3304 PyObject
* _argo0
= 0;
3305 PyObject
* _obj1
= 0;
3306 char *_kwnames
[] = { "self","file","type", NULL
};
3309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIconBundle_AddIconFromFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
3312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
3314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
3319 _arg1
= wxString_in_helper(_obj1
);
3324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3325 wxIconBundle_AddIconFromFile(_arg0
,*_arg1
,_arg2
);
3327 wxPyEndAllowThreads(__tstate
);
3328 if (PyErr_Occurred()) return NULL
;
3329 } Py_INCREF(Py_None
);
3330 _resultobj
= Py_None
;
3338 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
3339 static PyObject
*_wrap_wxIconBundle_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3340 PyObject
* _resultobj
;
3342 wxIconBundle
* _arg0
;
3344 PyObject
* _argo0
= 0;
3346 PyObject
* _obj1
= 0;
3347 char *_kwnames
[] = { "self","size", NULL
};
3351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_GetIcon",_kwnames
,&_argo0
,&_obj1
))
3354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
3356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
3362 if (! wxSize_helper(_obj1
, &_arg1
))
3366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3367 const wxIcon
& _result_ref
= wxIconBundle_GetIcon(_arg0
,*_arg1
);
3368 _result
= (wxIcon
*) &_result_ref
;
3370 wxPyEndAllowThreads(__tstate
);
3371 if (PyErr_Occurred()) return NULL
;
3373 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
3374 _resultobj
= Py_BuildValue("s",_ptemp
);
3377 _resultobj
= Py_None
;
3382 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
3385 src
= (wxCursor
*) ptr
;
3386 dest
= (wxGDIObject
*) src
;
3387 return (void *) dest
;
3390 static void *SwigwxCursorTowxObject(void *ptr
) {
3393 src
= (wxCursor
*) ptr
;
3394 dest
= (wxObject
*) src
;
3395 return (void *) dest
;
3398 static wxCursor
*new_wxCursor(const wxString
*cursorName
,long flags
,int hotSpotX
,int hotSpotY
) {
3400 wxCHECK_MSG(FALSE
, NULL
,
3401 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
3403 return new wxCursor(*cursorName
, flags
, hotSpotX
, hotSpotY
);
3407 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3408 PyObject
* _resultobj
;
3412 int _arg2
= (int ) 0;
3413 int _arg3
= (int ) 0;
3414 PyObject
* _obj0
= 0;
3415 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
3419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3422 _arg0
= wxString_in_helper(_obj0
);
3427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3428 _result
= (wxCursor
*)new_wxCursor(_arg0
,_arg1
,_arg2
,_arg3
);
3430 wxPyEndAllowThreads(__tstate
);
3431 if (PyErr_Occurred()) return NULL
;
3433 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
3434 _resultobj
= Py_BuildValue("s",_ptemp
);
3437 _resultobj
= Py_None
;
3446 #define delete_wxCursor(_swigobj) (delete _swigobj)
3447 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3448 PyObject
* _resultobj
;
3450 PyObject
* _argo0
= 0;
3451 char *_kwnames
[] = { "self", NULL
};
3454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
3457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
3464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3465 delete_wxCursor(_arg0
);
3467 wxPyEndAllowThreads(__tstate
);
3468 if (PyErr_Occurred()) return NULL
;
3469 } Py_INCREF(Py_None
);
3470 _resultobj
= Py_None
;
3474 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
3475 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3476 PyObject
* _resultobj
;
3479 PyObject
* _argo0
= 0;
3480 char *_kwnames
[] = { "self", NULL
};
3483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
3486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
3493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3494 _result
= (long )wxCursor_GetHandle(_arg0
);
3496 wxPyEndAllowThreads(__tstate
);
3497 if (PyErr_Occurred()) return NULL
;
3498 } _resultobj
= Py_BuildValue("l",_result
);
3502 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
3503 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3504 PyObject
* _resultobj
;
3507 PyObject
* _argo0
= 0;
3508 char *_kwnames
[] = { "self","handle", NULL
};
3511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
3514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
3521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3522 wxCursor_SetHandle(_arg0
,_arg1
);
3524 wxPyEndAllowThreads(__tstate
);
3525 if (PyErr_Occurred()) return NULL
;
3526 } Py_INCREF(Py_None
);
3527 _resultobj
= Py_None
;
3531 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
3532 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3533 PyObject
* _resultobj
;
3536 PyObject
* _argo0
= 0;
3537 char *_kwnames
[] = { "self", NULL
};
3540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
3543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3551 _result
= (bool )wxCursor_Ok(_arg0
);
3553 wxPyEndAllowThreads(__tstate
);
3554 if (PyErr_Occurred()) return NULL
;
3555 } _resultobj
= Py_BuildValue("i",_result
);
3559 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3560 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3561 PyObject
* _resultobj
;
3564 PyObject
* _argo0
= 0;
3565 char *_kwnames
[] = { "self", NULL
};
3568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
3571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3579 _result
= (int )wxCursor_GetWidth(_arg0
);
3581 wxPyEndAllowThreads(__tstate
);
3582 if (PyErr_Occurred()) return NULL
;
3583 } _resultobj
= Py_BuildValue("i",_result
);
3587 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3588 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3589 PyObject
* _resultobj
;
3592 PyObject
* _argo0
= 0;
3593 char *_kwnames
[] = { "self", NULL
};
3596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3607 _result
= (int )wxCursor_GetHeight(_arg0
);
3609 wxPyEndAllowThreads(__tstate
);
3610 if (PyErr_Occurred()) return NULL
;
3611 } _resultobj
= Py_BuildValue("i",_result
);
3615 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3616 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3617 PyObject
* _resultobj
;
3620 PyObject
* _argo0
= 0;
3621 char *_kwnames
[] = { "self", NULL
};
3624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3635 _result
= (int )wxCursor_GetDepth(_arg0
);
3637 wxPyEndAllowThreads(__tstate
);
3638 if (PyErr_Occurred()) return NULL
;
3639 } _resultobj
= Py_BuildValue("i",_result
);
3643 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3644 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3645 PyObject
* _resultobj
;
3648 PyObject
* _argo0
= 0;
3649 char *_kwnames
[] = { "self","w", NULL
};
3652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3663 wxCursor_SetWidth(_arg0
,_arg1
);
3665 wxPyEndAllowThreads(__tstate
);
3666 if (PyErr_Occurred()) return NULL
;
3667 } Py_INCREF(Py_None
);
3668 _resultobj
= Py_None
;
3672 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3673 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3674 PyObject
* _resultobj
;
3677 PyObject
* _argo0
= 0;
3678 char *_kwnames
[] = { "self","h", NULL
};
3681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3692 wxCursor_SetHeight(_arg0
,_arg1
);
3694 wxPyEndAllowThreads(__tstate
);
3695 if (PyErr_Occurred()) return NULL
;
3696 } Py_INCREF(Py_None
);
3697 _resultobj
= Py_None
;
3701 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3702 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3703 PyObject
* _resultobj
;
3706 PyObject
* _argo0
= 0;
3707 char *_kwnames
[] = { "self","d", NULL
};
3710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3721 wxCursor_SetDepth(_arg0
,_arg1
);
3723 wxPyEndAllowThreads(__tstate
);
3724 if (PyErr_Occurred()) return NULL
;
3725 } Py_INCREF(Py_None
);
3726 _resultobj
= Py_None
;
3730 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3731 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3732 PyObject
* _resultobj
;
3735 PyObject
* _argo0
= 0;
3737 PyObject
* _obj1
= 0;
3738 char *_kwnames
[] = { "self","size", NULL
};
3741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3752 if (! wxSize_helper(_obj1
, &_arg1
))
3756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3757 wxCursor_SetSize(_arg0
,*_arg1
);
3759 wxPyEndAllowThreads(__tstate
);
3760 if (PyErr_Occurred()) return NULL
;
3761 } Py_INCREF(Py_None
);
3762 _resultobj
= Py_None
;
3766 static void *SwigwxColourTowxObject(void *ptr
) {
3769 src
= (wxColour
*) ptr
;
3770 dest
= (wxObject
*) src
;
3771 return (void *) dest
;
3774 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3775 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3776 PyObject
* _resultobj
;
3778 unsigned char _arg0
= (unsigned char ) 0;
3779 unsigned char _arg1
= (unsigned char ) 0;
3780 unsigned char _arg2
= (unsigned char ) 0;
3781 char *_kwnames
[] = { "red","green","blue", NULL
};
3785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3789 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3791 wxPyEndAllowThreads(__tstate
);
3792 if (PyErr_Occurred()) return NULL
;
3794 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3795 _resultobj
= Py_BuildValue("s",_ptemp
);
3798 _resultobj
= Py_None
;
3803 #define delete_wxColour(_swigobj) (delete _swigobj)
3804 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3805 PyObject
* _resultobj
;
3808 PyObject
* _obj0
= 0;
3809 char *_kwnames
[] = { "self", NULL
};
3812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3816 if (! wxColour_helper(_obj0
, &_arg0
))
3820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3821 delete_wxColour(_arg0
);
3823 wxPyEndAllowThreads(__tstate
);
3824 if (PyErr_Occurred()) return NULL
;
3825 } Py_INCREF(Py_None
);
3826 _resultobj
= Py_None
;
3830 #define wxColour_Red(_swigobj) (_swigobj->Red())
3831 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3832 PyObject
* _resultobj
;
3833 unsigned char _result
;
3836 PyObject
* _obj0
= 0;
3837 char *_kwnames
[] = { "self", NULL
};
3840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3844 if (! wxColour_helper(_obj0
, &_arg0
))
3848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3849 _result
= (unsigned char )wxColour_Red(_arg0
);
3851 wxPyEndAllowThreads(__tstate
);
3852 if (PyErr_Occurred()) return NULL
;
3853 } _resultobj
= Py_BuildValue("b",_result
);
3857 #define wxColour_Green(_swigobj) (_swigobj->Green())
3858 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3859 PyObject
* _resultobj
;
3860 unsigned char _result
;
3863 PyObject
* _obj0
= 0;
3864 char *_kwnames
[] = { "self", NULL
};
3867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3871 if (! wxColour_helper(_obj0
, &_arg0
))
3875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3876 _result
= (unsigned char )wxColour_Green(_arg0
);
3878 wxPyEndAllowThreads(__tstate
);
3879 if (PyErr_Occurred()) return NULL
;
3880 } _resultobj
= Py_BuildValue("b",_result
);
3884 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3885 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3886 PyObject
* _resultobj
;
3887 unsigned char _result
;
3890 PyObject
* _obj0
= 0;
3891 char *_kwnames
[] = { "self", NULL
};
3894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3898 if (! wxColour_helper(_obj0
, &_arg0
))
3902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3903 _result
= (unsigned char )wxColour_Blue(_arg0
);
3905 wxPyEndAllowThreads(__tstate
);
3906 if (PyErr_Occurred()) return NULL
;
3907 } _resultobj
= Py_BuildValue("b",_result
);
3911 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3912 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3913 PyObject
* _resultobj
;
3917 PyObject
* _obj0
= 0;
3918 char *_kwnames
[] = { "self", NULL
};
3921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3925 if (! wxColour_helper(_obj0
, &_arg0
))
3929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3930 _result
= (bool )wxColour_Ok(_arg0
);
3932 wxPyEndAllowThreads(__tstate
);
3933 if (PyErr_Occurred()) return NULL
;
3934 } _resultobj
= Py_BuildValue("i",_result
);
3938 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3939 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3940 PyObject
* _resultobj
;
3942 unsigned char _arg1
;
3943 unsigned char _arg2
;
3944 unsigned char _arg3
;
3946 PyObject
* _obj0
= 0;
3947 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3954 if (! wxColour_helper(_obj0
, &_arg0
))
3958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3959 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3961 wxPyEndAllowThreads(__tstate
);
3962 if (PyErr_Occurred()) return NULL
;
3963 } Py_INCREF(Py_None
);
3964 _resultobj
= Py_None
;
3968 static PyObject
* wxColour_Get(wxColour
*self
) {
3969 PyObject
* rv
= PyTuple_New(3);
3975 green
= self
->Green();
3976 blue
= self
->Blue();
3978 PyTuple_SetItem(rv
, 0, PyInt_FromLong(red
));
3979 PyTuple_SetItem(rv
, 1, PyInt_FromLong(green
));
3980 PyTuple_SetItem(rv
, 2, PyInt_FromLong(blue
));
3983 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3984 PyObject
* _resultobj
;
3988 PyObject
* _obj0
= 0;
3989 char *_kwnames
[] = { "self", NULL
};
3992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3996 if (! wxColour_helper(_obj0
, &_arg0
))
4000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4001 _result
= (PyObject
*)wxColour_Get(_arg0
);
4003 wxPyEndAllowThreads(__tstate
);
4004 if (PyErr_Occurred()) return NULL
;
4006 _resultobj
= _result
;
4011 static bool wxColour___eq__(wxColour
*self
,PyObject
* obj
) {
4013 wxColour
* ptr
= &tmp
;
4014 if (obj
== Py_None
) return FALSE
;
4015 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
4016 if (! success
) return FALSE
;
4017 return *self
== *ptr
;
4019 static PyObject
*_wrap_wxColour___eq__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4020 PyObject
* _resultobj
;
4025 PyObject
* _obj0
= 0;
4026 PyObject
* _obj1
= 0;
4027 char *_kwnames
[] = { "self","obj", NULL
};
4030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___eq__",_kwnames
,&_obj0
,&_obj1
))
4034 if (! wxColour_helper(_obj0
, &_arg0
))
4041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4042 _result
= (bool )wxColour___eq__(_arg0
,_arg1
);
4044 wxPyEndAllowThreads(__tstate
);
4045 if (PyErr_Occurred()) return NULL
;
4046 } _resultobj
= Py_BuildValue("i",_result
);
4050 static bool wxColour___ne__(wxColour
*self
,PyObject
* obj
) {
4052 wxColour
* ptr
= &tmp
;
4053 if (obj
== Py_None
) return TRUE
;
4054 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
4055 if (! success
) return TRUE
;
4056 return *self
!= *ptr
;
4058 static PyObject
*_wrap_wxColour___ne__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4059 PyObject
* _resultobj
;
4064 PyObject
* _obj0
= 0;
4065 PyObject
* _obj1
= 0;
4066 char *_kwnames
[] = { "self","obj", NULL
};
4069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___ne__",_kwnames
,&_obj0
,&_obj1
))
4073 if (! wxColour_helper(_obj0
, &_arg0
))
4080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4081 _result
= (bool )wxColour___ne__(_arg0
,_arg1
);
4083 wxPyEndAllowThreads(__tstate
);
4084 if (PyErr_Occurred()) return NULL
;
4085 } _resultobj
= Py_BuildValue("i",_result
);
4089 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4090 wxColourDatabase
*src
;
4092 src
= (wxColourDatabase
*) ptr
;
4093 dest
= (wxObject
*) src
;
4094 return (void *) dest
;
4097 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4098 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4099 PyObject
* _resultobj
;
4101 wxColourDatabase
* _arg0
;
4103 PyObject
* _argo0
= 0;
4104 PyObject
* _obj1
= 0;
4105 char *_kwnames
[] = { "self","colour", NULL
};
4109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4119 _arg1
= wxString_in_helper(_obj1
);
4124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4125 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4127 wxPyEndAllowThreads(__tstate
);
4128 if (PyErr_Occurred()) return NULL
;
4130 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4131 _resultobj
= Py_BuildValue("s",_ptemp
);
4134 _resultobj
= Py_None
;
4143 #define wxColourDatabase_FindColourNoAdd(_swigobj,_swigarg0) (_swigobj->FindColourNoAdd(_swigarg0))
4144 static PyObject
*_wrap_wxColourDatabase_FindColourNoAdd(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4145 PyObject
* _resultobj
;
4147 wxColourDatabase
* _arg0
;
4149 PyObject
* _argo0
= 0;
4150 PyObject
* _obj1
= 0;
4151 char *_kwnames
[] = { "self","colour", NULL
};
4155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColourNoAdd",_kwnames
,&_argo0
,&_obj1
))
4158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColourNoAdd. Expected _wxColourDatabase_p.");
4165 _arg1
= wxString_in_helper(_obj1
);
4170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4171 _result
= (wxColour
*)wxColourDatabase_FindColourNoAdd(_arg0
,*_arg1
);
4173 wxPyEndAllowThreads(__tstate
);
4174 if (PyErr_Occurred()) return NULL
;
4176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4177 _resultobj
= Py_BuildValue("s",_ptemp
);
4180 _resultobj
= Py_None
;
4189 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4190 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4191 PyObject
* _resultobj
;
4193 wxColourDatabase
* _arg0
;
4195 PyObject
* _argo0
= 0;
4197 PyObject
* _obj1
= 0;
4198 char *_kwnames
[] = { "self","colour", NULL
};
4201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4212 if (! wxColour_helper(_obj1
, &_arg1
))
4216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4217 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4219 wxPyEndAllowThreads(__tstate
);
4220 if (PyErr_Occurred()) return NULL
;
4223 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
4225 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4234 static void wxColourDatabase_AddColour(wxColourDatabase
*self
,const wxString
& name
,wxColour
* colour
) {
4235 // make a copy since the python one will be GC'd
4236 wxColour
* c
= new wxColour(*colour
);
4237 self
->AddColour(name
, c
);
4239 static PyObject
*_wrap_wxColourDatabase_AddColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4240 PyObject
* _resultobj
;
4241 wxColourDatabase
* _arg0
;
4244 PyObject
* _argo0
= 0;
4245 PyObject
* _obj1
= 0;
4247 PyObject
* _obj2
= 0;
4248 char *_kwnames
[] = { "self","name","colour", NULL
};
4251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxColourDatabase_AddColour",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
4254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_AddColour. Expected _wxColourDatabase_p.");
4261 _arg1
= wxString_in_helper(_obj1
);
4267 if (! wxColour_helper(_obj2
, &_arg2
))
4271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4272 wxColourDatabase_AddColour(_arg0
,*_arg1
,_arg2
);
4274 wxPyEndAllowThreads(__tstate
);
4275 if (PyErr_Occurred()) return NULL
;
4276 } Py_INCREF(Py_None
);
4277 _resultobj
= Py_None
;
4285 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4286 wxColour
* c
= new wxColour(red
, green
, blue
);
4287 self
->AddColour(name
, c
);
4289 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4290 PyObject
* _resultobj
;
4291 wxColourDatabase
* _arg0
;
4296 PyObject
* _argo0
= 0;
4297 PyObject
* _obj1
= 0;
4298 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4311 _arg1
= wxString_in_helper(_obj1
);
4316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4317 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4319 wxPyEndAllowThreads(__tstate
);
4320 if (PyErr_Occurred()) return NULL
;
4321 } Py_INCREF(Py_None
);
4322 _resultobj
= Py_None
;
4330 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4333 src
= (wxPen
*) ptr
;
4334 dest
= (wxGDIObject
*) src
;
4335 return (void *) dest
;
4338 static void *SwigwxPenTowxObject(void *ptr
) {
4341 src
= (wxPen
*) ptr
;
4342 dest
= (wxObject
*) src
;
4343 return (void *) dest
;
4346 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4347 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4348 PyObject
* _resultobj
;
4351 int _arg1
= (int ) 1;
4352 int _arg2
= (int ) wxSOLID
;
4354 PyObject
* _obj0
= 0;
4355 char *_kwnames
[] = { "colour","width","style", NULL
};
4359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4363 if (! wxColour_helper(_obj0
, &_arg0
))
4367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4368 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
4370 wxPyEndAllowThreads(__tstate
);
4371 if (PyErr_Occurred()) return NULL
;
4373 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4374 _resultobj
= Py_BuildValue("s",_ptemp
);
4377 _resultobj
= Py_None
;
4382 #define delete_wxPen(_swigobj) (delete _swigobj)
4383 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4384 PyObject
* _resultobj
;
4386 PyObject
* _argo0
= 0;
4387 char *_kwnames
[] = { "self", NULL
};
4390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
4393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4401 delete_wxPen(_arg0
);
4403 wxPyEndAllowThreads(__tstate
);
4404 if (PyErr_Occurred()) return NULL
;
4405 } Py_INCREF(Py_None
);
4406 _resultobj
= Py_None
;
4410 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4411 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4412 PyObject
* _resultobj
;
4415 PyObject
* _argo0
= 0;
4416 char *_kwnames
[] = { "self", NULL
};
4419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4430 _result
= (int )wxPen_GetCap(_arg0
);
4432 wxPyEndAllowThreads(__tstate
);
4433 if (PyErr_Occurred()) return NULL
;
4434 } _resultobj
= Py_BuildValue("i",_result
);
4438 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4439 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4440 PyObject
* _resultobj
;
4443 PyObject
* _argo0
= 0;
4444 char *_kwnames
[] = { "self", NULL
};
4448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4459 _result
= new wxColour (wxPen_GetColour(_arg0
));
4461 wxPyEndAllowThreads(__tstate
);
4462 if (PyErr_Occurred()) return NULL
;
4463 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4464 _resultobj
= Py_BuildValue("s",_ptemp
);
4468 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4469 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4470 PyObject
* _resultobj
;
4473 PyObject
* _argo0
= 0;
4474 char *_kwnames
[] = { "self", NULL
};
4477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4488 _result
= (int )wxPen_GetJoin(_arg0
);
4490 wxPyEndAllowThreads(__tstate
);
4491 if (PyErr_Occurred()) return NULL
;
4492 } _resultobj
= Py_BuildValue("i",_result
);
4496 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4497 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4498 PyObject
* _resultobj
;
4501 PyObject
* _argo0
= 0;
4502 char *_kwnames
[] = { "self", NULL
};
4505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4516 _result
= (int )wxPen_GetStyle(_arg0
);
4518 wxPyEndAllowThreads(__tstate
);
4519 if (PyErr_Occurred()) return NULL
;
4520 } _resultobj
= Py_BuildValue("i",_result
);
4524 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4525 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4526 PyObject
* _resultobj
;
4529 PyObject
* _argo0
= 0;
4530 char *_kwnames
[] = { "self", NULL
};
4533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4544 _result
= (int )wxPen_GetWidth(_arg0
);
4546 wxPyEndAllowThreads(__tstate
);
4547 if (PyErr_Occurred()) return NULL
;
4548 } _resultobj
= Py_BuildValue("i",_result
);
4552 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4553 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4554 PyObject
* _resultobj
;
4557 PyObject
* _argo0
= 0;
4558 char *_kwnames
[] = { "self", NULL
};
4561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4572 _result
= (bool )wxPen_Ok(_arg0
);
4574 wxPyEndAllowThreads(__tstate
);
4575 if (PyErr_Occurred()) return NULL
;
4576 } _resultobj
= Py_BuildValue("i",_result
);
4580 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4581 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4582 PyObject
* _resultobj
;
4585 PyObject
* _argo0
= 0;
4586 char *_kwnames
[] = { "self","cap_style", NULL
};
4589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4600 wxPen_SetCap(_arg0
,_arg1
);
4602 wxPyEndAllowThreads(__tstate
);
4603 if (PyErr_Occurred()) return NULL
;
4604 } Py_INCREF(Py_None
);
4605 _resultobj
= Py_None
;
4609 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4610 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4611 PyObject
* _resultobj
;
4614 PyObject
* _argo0
= 0;
4616 PyObject
* _obj1
= 0;
4617 char *_kwnames
[] = { "self","colour", NULL
};
4620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4631 if (! wxColour_helper(_obj1
, &_arg1
))
4635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4636 wxPen_SetColour(_arg0
,*_arg1
);
4638 wxPyEndAllowThreads(__tstate
);
4639 if (PyErr_Occurred()) return NULL
;
4640 } Py_INCREF(Py_None
);
4641 _resultobj
= Py_None
;
4645 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4646 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4647 PyObject
* _resultobj
;
4650 PyObject
* _argo0
= 0;
4651 char *_kwnames
[] = { "self","join_style", NULL
};
4654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4665 wxPen_SetJoin(_arg0
,_arg1
);
4667 wxPyEndAllowThreads(__tstate
);
4668 if (PyErr_Occurred()) return NULL
;
4669 } Py_INCREF(Py_None
);
4670 _resultobj
= Py_None
;
4674 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4675 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4676 PyObject
* _resultobj
;
4679 PyObject
* _argo0
= 0;
4680 char *_kwnames
[] = { "self","style", NULL
};
4683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4694 wxPen_SetStyle(_arg0
,_arg1
);
4696 wxPyEndAllowThreads(__tstate
);
4697 if (PyErr_Occurred()) return NULL
;
4698 } Py_INCREF(Py_None
);
4699 _resultobj
= Py_None
;
4703 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4704 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4705 PyObject
* _resultobj
;
4708 PyObject
* _argo0
= 0;
4709 char *_kwnames
[] = { "self","width", NULL
};
4712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4723 wxPen_SetWidth(_arg0
,_arg1
);
4725 wxPyEndAllowThreads(__tstate
);
4726 if (PyErr_Occurred()) return NULL
;
4727 } Py_INCREF(Py_None
);
4728 _resultobj
= Py_None
;
4732 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4733 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4734 PyObject
* _resultobj
;
4738 PyObject
* _argo0
= 0;
4739 PyObject
* _obj2
= 0;
4740 char *_kwnames
[] = { "self","choices", NULL
};
4743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4754 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4755 if (_arg2
== NULL
) {
4761 _arg1
= PyList_Size(_obj2
);
4768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4769 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4771 wxPyEndAllowThreads(__tstate
);
4772 if (PyErr_Occurred()) return NULL
;
4773 } Py_INCREF(Py_None
);
4774 _resultobj
= Py_None
;
4781 static PyObject
* wxPen_GetDashes(wxPen
*self
) {
4783 int count
= self
->GetDashes(&dashes
);
4784 wxPyBeginBlockThreads();
4785 PyObject
* retval
= PyList_New(0);
4786 for (int x
=0; x
<count
; x
++)
4787 PyList_Append(retval
, PyInt_FromLong(dashes
[x
]));
4788 wxPyEndBlockThreads();
4791 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4792 PyObject
* _resultobj
;
4795 PyObject
* _argo0
= 0;
4796 char *_kwnames
[] = { "self", NULL
};
4799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetDashes",_kwnames
,&_argo0
))
4802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4809 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4810 _result
= (PyObject
*)wxPen_GetDashes(_arg0
);
4812 wxPyEndAllowThreads(__tstate
);
4813 if (PyErr_Occurred()) return NULL
;
4815 _resultobj
= _result
;
4820 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4821 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4822 PyObject
* _resultobj
;
4825 PyObject
* _argo0
= 0;
4826 char *_kwnames
[] = { "self", NULL
};
4830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4841 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4843 wxPyEndAllowThreads(__tstate
);
4844 if (PyErr_Occurred()) return NULL
;
4846 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4847 _resultobj
= Py_BuildValue("s",_ptemp
);
4850 _resultobj
= Py_None
;
4855 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4856 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4857 PyObject
* _resultobj
;
4860 PyObject
* _argo0
= 0;
4861 PyObject
* _argo1
= 0;
4862 char *_kwnames
[] = { "self","stipple", NULL
};
4865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4875 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4882 wxPen_SetStipple(_arg0
,*_arg1
);
4884 wxPyEndAllowThreads(__tstate
);
4885 if (PyErr_Occurred()) return NULL
;
4886 } Py_INCREF(Py_None
);
4887 _resultobj
= Py_None
;
4891 static void *SwigwxPyPenTowxPen(void *ptr
) {
4894 src
= (wxPyPen
*) ptr
;
4895 dest
= (wxPen
*) src
;
4896 return (void *) dest
;
4899 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
4902 src
= (wxPyPen
*) ptr
;
4903 dest
= (wxGDIObject
*) src
;
4904 return (void *) dest
;
4907 static void *SwigwxPyPenTowxObject(void *ptr
) {
4910 src
= (wxPyPen
*) ptr
;
4911 dest
= (wxObject
*) src
;
4912 return (void *) dest
;
4915 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4916 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4917 PyObject
* _resultobj
;
4920 int _arg1
= (int ) 1;
4921 int _arg2
= (int ) wxSOLID
;
4923 PyObject
* _obj0
= 0;
4924 char *_kwnames
[] = { "colour","width","style", NULL
};
4928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4932 if (! wxColour_helper(_obj0
, &_arg0
))
4936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4937 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
4939 wxPyEndAllowThreads(__tstate
);
4940 if (PyErr_Occurred()) return NULL
;
4942 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
4943 _resultobj
= Py_BuildValue("s",_ptemp
);
4946 _resultobj
= Py_None
;
4951 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4952 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4953 PyObject
* _resultobj
;
4955 PyObject
* _argo0
= 0;
4956 char *_kwnames
[] = { "self", NULL
};
4959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
4962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4970 delete_wxPyPen(_arg0
);
4972 wxPyEndAllowThreads(__tstate
);
4973 if (PyErr_Occurred()) return NULL
;
4974 } Py_INCREF(Py_None
);
4975 _resultobj
= Py_None
;
4979 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4980 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4981 PyObject
* _resultobj
;
4985 PyObject
* _argo0
= 0;
4986 PyObject
* _obj2
= 0;
4987 char *_kwnames
[] = { "self","choices", NULL
};
4990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5001 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5002 if (_arg2
== NULL
) {
5008 _arg1
= PyList_Size(_obj2
);
5015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5016 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5018 wxPyEndAllowThreads(__tstate
);
5019 if (PyErr_Occurred()) return NULL
;
5020 } Py_INCREF(Py_None
);
5021 _resultobj
= Py_None
;
5028 static void *SwigwxPenListTowxObject(void *ptr
) {
5031 src
= (wxPenList
*) ptr
;
5032 dest
= (wxObject
*) src
;
5033 return (void *) dest
;
5036 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5037 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5041 PyObject
* _argo0
= 0;
5042 PyObject
* _argo1
= 0;
5043 char *_kwnames
[] = { "self","pen", NULL
};
5046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5056 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5057 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5064 wxPenList_AddPen(_arg0
,_arg1
);
5066 wxPyEndAllowThreads(__tstate
);
5067 if (PyErr_Occurred()) return NULL
;
5068 } Py_INCREF(Py_None
);
5069 _resultobj
= Py_None
;
5073 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5074 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5075 PyObject
* _resultobj
;
5081 PyObject
* _argo0
= 0;
5083 PyObject
* _obj1
= 0;
5084 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5099 if (! wxColour_helper(_obj1
, &_arg1
))
5103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5104 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5106 wxPyEndAllowThreads(__tstate
);
5107 if (PyErr_Occurred()) return NULL
;
5109 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5110 _resultobj
= Py_BuildValue("s",_ptemp
);
5113 _resultobj
= Py_None
;
5118 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5119 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5120 PyObject
* _resultobj
;
5123 PyObject
* _argo0
= 0;
5124 PyObject
* _argo1
= 0;
5125 char *_kwnames
[] = { "self","pen", NULL
};
5128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5138 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5139 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5146 wxPenList_RemovePen(_arg0
,_arg1
);
5148 wxPyEndAllowThreads(__tstate
);
5149 if (PyErr_Occurred()) return NULL
;
5150 } Py_INCREF(Py_None
);
5151 _resultobj
= Py_None
;
5155 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5156 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5157 PyObject
* _resultobj
;
5160 PyObject
* _argo0
= 0;
5161 char *_kwnames
[] = { "self", NULL
};
5164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5175 _result
= (int )wxPenList_GetCount(_arg0
);
5177 wxPyEndAllowThreads(__tstate
);
5178 if (PyErr_Occurred()) return NULL
;
5179 } _resultobj
= Py_BuildValue("i",_result
);
5183 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5186 src
= (wxBrush
*) ptr
;
5187 dest
= (wxGDIObject
*) src
;
5188 return (void *) dest
;
5191 static void *SwigwxBrushTowxObject(void *ptr
) {
5194 src
= (wxBrush
*) ptr
;
5195 dest
= (wxObject
*) src
;
5196 return (void *) dest
;
5199 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5200 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5201 PyObject
* _resultobj
;
5204 int _arg1
= (int ) wxSOLID
;
5206 PyObject
* _obj0
= 0;
5207 char *_kwnames
[] = { "colour","style", NULL
};
5211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5215 if (! wxColour_helper(_obj0
, &_arg0
))
5219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5220 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5222 wxPyEndAllowThreads(__tstate
);
5223 if (PyErr_Occurred()) return NULL
;
5225 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5226 _resultobj
= Py_BuildValue("s",_ptemp
);
5229 _resultobj
= Py_None
;
5234 #define delete_wxBrush(_swigobj) (delete _swigobj)
5235 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5236 PyObject
* _resultobj
;
5238 PyObject
* _argo0
= 0;
5239 char *_kwnames
[] = { "self", NULL
};
5242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5253 delete_wxBrush(_arg0
);
5255 wxPyEndAllowThreads(__tstate
);
5256 if (PyErr_Occurred()) return NULL
;
5257 } Py_INCREF(Py_None
);
5258 _resultobj
= Py_None
;
5262 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5263 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5264 PyObject
* _resultobj
;
5267 PyObject
* _argo0
= 0;
5268 char *_kwnames
[] = { "self", NULL
};
5272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5283 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5285 wxPyEndAllowThreads(__tstate
);
5286 if (PyErr_Occurred()) return NULL
;
5287 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5288 _resultobj
= Py_BuildValue("s",_ptemp
);
5292 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5293 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5294 PyObject
* _resultobj
;
5297 PyObject
* _argo0
= 0;
5298 char *_kwnames
[] = { "self", NULL
};
5302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5313 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5315 wxPyEndAllowThreads(__tstate
);
5316 if (PyErr_Occurred()) return NULL
;
5318 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5319 _resultobj
= Py_BuildValue("s",_ptemp
);
5322 _resultobj
= Py_None
;
5327 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5328 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5329 PyObject
* _resultobj
;
5332 PyObject
* _argo0
= 0;
5333 char *_kwnames
[] = { "self", NULL
};
5336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5347 _result
= (int )wxBrush_GetStyle(_arg0
);
5349 wxPyEndAllowThreads(__tstate
);
5350 if (PyErr_Occurred()) return NULL
;
5351 } _resultobj
= Py_BuildValue("i",_result
);
5355 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5356 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5357 PyObject
* _resultobj
;
5360 PyObject
* _argo0
= 0;
5361 char *_kwnames
[] = { "self", NULL
};
5364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5375 _result
= (bool )wxBrush_Ok(_arg0
);
5377 wxPyEndAllowThreads(__tstate
);
5378 if (PyErr_Occurred()) return NULL
;
5379 } _resultobj
= Py_BuildValue("i",_result
);
5383 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5384 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5385 PyObject
* _resultobj
;
5388 PyObject
* _argo0
= 0;
5390 PyObject
* _obj1
= 0;
5391 char *_kwnames
[] = { "self","colour", NULL
};
5394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5405 if (! wxColour_helper(_obj1
, &_arg1
))
5409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5410 wxBrush_SetColour(_arg0
,*_arg1
);
5412 wxPyEndAllowThreads(__tstate
);
5413 if (PyErr_Occurred()) return NULL
;
5414 } Py_INCREF(Py_None
);
5415 _resultobj
= Py_None
;
5419 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5420 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5421 PyObject
* _resultobj
;
5424 PyObject
* _argo0
= 0;
5425 PyObject
* _argo1
= 0;
5426 char *_kwnames
[] = { "self","bitmap", NULL
};
5429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5439 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5446 wxBrush_SetStipple(_arg0
,*_arg1
);
5448 wxPyEndAllowThreads(__tstate
);
5449 if (PyErr_Occurred()) return NULL
;
5450 } Py_INCREF(Py_None
);
5451 _resultobj
= Py_None
;
5455 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5456 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5457 PyObject
* _resultobj
;
5460 PyObject
* _argo0
= 0;
5461 char *_kwnames
[] = { "self","style", NULL
};
5464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5475 wxBrush_SetStyle(_arg0
,_arg1
);
5477 wxPyEndAllowThreads(__tstate
);
5478 if (PyErr_Occurred()) return NULL
;
5479 } Py_INCREF(Py_None
);
5480 _resultobj
= Py_None
;
5484 static void *SwigwxBrushListTowxObject(void *ptr
) {
5487 src
= (wxBrushList
*) ptr
;
5488 dest
= (wxObject
*) src
;
5489 return (void *) dest
;
5492 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5493 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5494 PyObject
* _resultobj
;
5495 wxBrushList
* _arg0
;
5497 PyObject
* _argo0
= 0;
5498 PyObject
* _argo1
= 0;
5499 char *_kwnames
[] = { "self","brush", NULL
};
5502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5512 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5513 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5520 wxBrushList_AddBrush(_arg0
,_arg1
);
5522 wxPyEndAllowThreads(__tstate
);
5523 if (PyErr_Occurred()) return NULL
;
5524 } Py_INCREF(Py_None
);
5525 _resultobj
= Py_None
;
5529 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5530 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5531 PyObject
* _resultobj
;
5533 wxBrushList
* _arg0
;
5536 PyObject
* _argo0
= 0;
5538 PyObject
* _obj1
= 0;
5539 char *_kwnames
[] = { "self","colour","style", NULL
};
5543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5554 if (! wxColour_helper(_obj1
, &_arg1
))
5558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5559 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5561 wxPyEndAllowThreads(__tstate
);
5562 if (PyErr_Occurred()) return NULL
;
5564 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5565 _resultobj
= Py_BuildValue("s",_ptemp
);
5568 _resultobj
= Py_None
;
5573 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5574 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5575 PyObject
* _resultobj
;
5576 wxBrushList
* _arg0
;
5578 PyObject
* _argo0
= 0;
5579 PyObject
* _argo1
= 0;
5580 char *_kwnames
[] = { "self","brush", NULL
};
5583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5593 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5594 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5601 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5603 wxPyEndAllowThreads(__tstate
);
5604 if (PyErr_Occurred()) return NULL
;
5605 } Py_INCREF(Py_None
);
5606 _resultobj
= Py_None
;
5610 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
5611 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5612 PyObject
* _resultobj
;
5614 wxBrushList
* _arg0
;
5615 PyObject
* _argo0
= 0;
5616 char *_kwnames
[] = { "self", NULL
};
5619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
5622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
5629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5630 _result
= (int )wxBrushList_GetCount(_arg0
);
5632 wxPyEndAllowThreads(__tstate
);
5633 if (PyErr_Occurred()) return NULL
;
5634 } _resultobj
= Py_BuildValue("i",_result
);
5638 static void *SwigwxDCTowxObject(void *ptr
) {
5642 dest
= (wxObject
*) src
;
5643 return (void *) dest
;
5646 #define delete_wxDC(_swigobj) (delete _swigobj)
5647 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5648 PyObject
* _resultobj
;
5650 PyObject
* _argo0
= 0;
5651 char *_kwnames
[] = { "self", NULL
};
5654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5667 wxPyEndAllowThreads(__tstate
);
5668 if (PyErr_Occurred()) return NULL
;
5669 } Py_INCREF(Py_None
);
5670 _resultobj
= Py_None
;
5674 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5675 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5676 PyObject
* _resultobj
;
5678 PyObject
* _argo0
= 0;
5679 char *_kwnames
[] = { "self", NULL
};
5682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5693 wxDC_BeginDrawing(_arg0
);
5695 wxPyEndAllowThreads(__tstate
);
5696 if (PyErr_Occurred()) return NULL
;
5697 } Py_INCREF(Py_None
);
5698 _resultobj
= Py_None
;
5702 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5703 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5704 PyObject
* _resultobj
;
5714 int _arg8
= (int ) wxCOPY
;
5715 int _arg9
= (int ) FALSE
;
5716 PyObject
* _argo0
= 0;
5717 PyObject
* _argo5
= 0;
5718 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiiOii|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5731 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5732 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5739 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5741 wxPyEndAllowThreads(__tstate
);
5742 if (PyErr_Occurred()) return NULL
;
5743 } _resultobj
= Py_BuildValue("i",_result
);
5747 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5748 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5749 PyObject
* _resultobj
;
5751 PyObject
* _argo0
= 0;
5752 char *_kwnames
[] = { "self", NULL
};
5755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5768 wxPyEndAllowThreads(__tstate
);
5769 if (PyErr_Occurred()) return NULL
;
5770 } Py_INCREF(Py_None
);
5771 _resultobj
= Py_None
;
5775 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5776 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5777 PyObject
* _resultobj
;
5781 PyObject
* _argo0
= 0;
5782 char *_kwnames
[] = { "self","x","y", NULL
};
5785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5795 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5796 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5798 wxPyEndAllowThreads(__tstate
);
5799 if (PyErr_Occurred()) return NULL
;
5800 } Py_INCREF(Py_None
);
5801 _resultobj
= Py_None
;
5805 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5806 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5807 PyObject
* _resultobj
;
5809 PyObject
* _argo0
= 0;
5810 char *_kwnames
[] = { "self", NULL
};
5813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5824 wxDC_DestroyClippingRegion(_arg0
);
5826 wxPyEndAllowThreads(__tstate
);
5827 if (PyErr_Occurred()) return NULL
;
5828 } Py_INCREF(Py_None
);
5829 _resultobj
= Py_None
;
5833 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5834 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5835 PyObject
* _resultobj
;
5839 PyObject
* _argo0
= 0;
5840 char *_kwnames
[] = { "self","x", NULL
};
5843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5854 _result
= (wxCoord
)wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5856 wxPyEndAllowThreads(__tstate
);
5857 if (PyErr_Occurred()) return NULL
;
5858 } _resultobj
= Py_BuildValue("i",_result
);
5862 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5863 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5864 PyObject
* _resultobj
;
5868 PyObject
* _argo0
= 0;
5869 char *_kwnames
[] = { "self","x", NULL
};
5872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5883 _result
= (wxCoord
)wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5885 wxPyEndAllowThreads(__tstate
);
5886 if (PyErr_Occurred()) return NULL
;
5887 } _resultobj
= Py_BuildValue("i",_result
);
5891 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5892 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5893 PyObject
* _resultobj
;
5897 PyObject
* _argo0
= 0;
5898 char *_kwnames
[] = { "self","y", NULL
};
5901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5912 _result
= (wxCoord
)wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5914 wxPyEndAllowThreads(__tstate
);
5915 if (PyErr_Occurred()) return NULL
;
5916 } _resultobj
= Py_BuildValue("i",_result
);
5920 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5921 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5922 PyObject
* _resultobj
;
5926 PyObject
* _argo0
= 0;
5927 char *_kwnames
[] = { "self","y", NULL
};
5930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5941 _result
= (wxCoord
)wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5943 wxPyEndAllowThreads(__tstate
);
5944 if (PyErr_Occurred()) return NULL
;
5945 } _resultobj
= Py_BuildValue("i",_result
);
5949 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5950 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5951 PyObject
* _resultobj
;
5959 PyObject
* _argo0
= 0;
5960 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5974 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5976 wxPyEndAllowThreads(__tstate
);
5977 if (PyErr_Occurred()) return NULL
;
5978 } Py_INCREF(Py_None
);
5979 _resultobj
= Py_None
;
5983 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5984 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5985 PyObject
* _resultobj
;
5990 PyObject
* _argo0
= 0;
5991 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6005 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6007 wxPyEndAllowThreads(__tstate
);
6008 if (PyErr_Occurred()) return NULL
;
6009 } Py_INCREF(Py_None
);
6010 _resultobj
= Py_None
;
6014 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6015 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6016 PyObject
* _resultobj
;
6022 PyObject
* _argo0
= 0;
6023 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6037 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6039 wxPyEndAllowThreads(__tstate
);
6040 if (PyErr_Occurred()) return NULL
;
6041 } Py_INCREF(Py_None
);
6042 _resultobj
= Py_None
;
6046 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6047 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6048 PyObject
* _resultobj
;
6056 PyObject
* _argo0
= 0;
6057 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6071 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6073 wxPyEndAllowThreads(__tstate
);
6074 if (PyErr_Occurred()) return NULL
;
6075 } Py_INCREF(Py_None
);
6076 _resultobj
= Py_None
;
6080 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6081 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6082 PyObject
* _resultobj
;
6087 PyObject
* _argo0
= 0;
6088 PyObject
* _argo1
= 0;
6089 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6102 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6109 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6111 wxPyEndAllowThreads(__tstate
);
6112 if (PyErr_Occurred()) return NULL
;
6113 } Py_INCREF(Py_None
);
6114 _resultobj
= Py_None
;
6118 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6119 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6120 PyObject
* _resultobj
;
6124 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6125 int _arg4
= (int ) -1;
6126 PyObject
* _argo0
= 0;
6127 PyObject
* _obj1
= 0;
6129 PyObject
* _obj2
= 0;
6130 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
6133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
6136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6143 _arg1
= wxString_in_helper(_obj1
);
6149 if (! wxRect_helper(_obj2
, &_arg2
))
6153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6154 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
6156 wxPyEndAllowThreads(__tstate
);
6157 if (PyErr_Occurred()) return NULL
;
6158 } Py_INCREF(Py_None
);
6159 _resultobj
= Py_None
;
6167 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
6169 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
6172 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6173 PyObject
* _resultobj
;
6179 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6180 int _arg5
= (int ) -1;
6181 PyObject
* _argo0
= 0;
6182 PyObject
* _obj1
= 0;
6183 PyObject
* _argo2
= 0;
6185 PyObject
* _obj3
= 0;
6186 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
6190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
6193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6200 _arg1
= wxString_in_helper(_obj1
);
6205 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
6206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6212 if (! wxRect_helper(_obj3
, &_arg3
))
6216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6217 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
6219 wxPyEndAllowThreads(__tstate
);
6220 if (PyErr_Occurred()) return NULL
;
6221 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
6222 _resultobj
= Py_BuildValue("s",_ptemp
);
6230 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6231 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6232 PyObject
* _resultobj
;
6238 PyObject
* _argo0
= 0;
6239 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6253 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6255 wxPyEndAllowThreads(__tstate
);
6256 if (PyErr_Occurred()) return NULL
;
6257 } Py_INCREF(Py_None
);
6258 _resultobj
= Py_None
;
6262 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6263 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6264 PyObject
* _resultobj
;
6268 wxCoord _arg3
= (wxCoord
) 0;
6269 wxCoord _arg4
= (wxCoord
) 0;
6270 PyObject
* _argo0
= 0;
6272 PyObject
* _obj2
= 0;
6273 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ii:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6287 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6288 if (_arg2
== NULL
) {
6296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6297 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6299 wxPyEndAllowThreads(__tstate
);
6300 if (PyErr_Occurred()) return NULL
;
6301 } Py_INCREF(Py_None
);
6302 _resultobj
= Py_None
;
6309 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6310 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6311 PyObject
* _resultobj
;
6315 wxCoord _arg3
= (wxCoord
) 0;
6316 wxCoord _arg4
= (wxCoord
) 0;
6317 int _arg5
= (int ) wxODDEVEN_RULE
;
6318 PyObject
* _argo0
= 0;
6320 PyObject
* _obj2
= 0;
6321 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iii:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6335 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6336 if (_arg2
== NULL
) {
6344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6345 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6347 wxPyEndAllowThreads(__tstate
);
6348 if (PyErr_Occurred()) return NULL
;
6349 } Py_INCREF(Py_None
);
6350 _resultobj
= Py_None
;
6357 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6358 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6359 PyObject
* _resultobj
;
6363 PyObject
* _argo0
= 0;
6364 char *_kwnames
[] = { "self","x","y", NULL
};
6367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6378 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6380 wxPyEndAllowThreads(__tstate
);
6381 if (PyErr_Occurred()) return NULL
;
6382 } Py_INCREF(Py_None
);
6383 _resultobj
= Py_None
;
6387 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6388 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6389 PyObject
* _resultobj
;
6395 PyObject
* _argo0
= 0;
6396 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6410 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6412 wxPyEndAllowThreads(__tstate
);
6413 if (PyErr_Occurred()) return NULL
;
6414 } Py_INCREF(Py_None
);
6415 _resultobj
= Py_None
;
6419 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
6420 static PyObject
*_wrap_wxDC_DrawRectangleRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6421 PyObject
* _resultobj
;
6424 PyObject
* _argo0
= 0;
6426 PyObject
* _obj1
= 0;
6427 char *_kwnames
[] = { "self","rect", NULL
};
6430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawRectangleRect",_kwnames
,&_argo0
,&_obj1
))
6433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
6441 if (! wxRect_helper(_obj1
, &_arg1
))
6445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6446 wxDC_DrawRectangleRect(_arg0
,*_arg1
);
6448 wxPyEndAllowThreads(__tstate
);
6449 if (PyErr_Occurred()) return NULL
;
6450 } Py_INCREF(Py_None
);
6451 _resultobj
= Py_None
;
6455 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6456 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6457 PyObject
* _resultobj
;
6463 PyObject
* _argo0
= 0;
6464 PyObject
* _obj1
= 0;
6465 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6478 _arg1
= wxString_in_helper(_obj1
);
6483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6484 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6486 wxPyEndAllowThreads(__tstate
);
6487 if (PyErr_Occurred()) return NULL
;
6488 } Py_INCREF(Py_None
);
6489 _resultobj
= Py_None
;
6497 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6498 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6499 PyObject
* _resultobj
;
6505 wxCoord _arg5
= (wxCoord
) 20;
6506 PyObject
* _argo0
= 0;
6507 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6521 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6523 wxPyEndAllowThreads(__tstate
);
6524 if (PyErr_Occurred()) return NULL
;
6525 } Py_INCREF(Py_None
);
6526 _resultobj
= Py_None
;
6530 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6531 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6532 PyObject
* _resultobj
;
6536 PyObject
* _argo0
= 0;
6538 PyObject
* _obj2
= 0;
6539 char *_kwnames
[] = { "self","points", NULL
};
6542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6553 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6554 if (_arg2
== NULL
) {
6562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6563 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6565 wxPyEndAllowThreads(__tstate
);
6566 if (PyErr_Occurred()) return NULL
;
6567 } Py_INCREF(Py_None
);
6568 _resultobj
= Py_None
;
6575 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6576 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6577 PyObject
* _resultobj
;
6582 PyObject
* _argo0
= 0;
6583 PyObject
* _obj1
= 0;
6584 char *_kwnames
[] = { "self","text","x","y", NULL
};
6587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6597 _arg1
= wxString_in_helper(_obj1
);
6602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6603 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6605 wxPyEndAllowThreads(__tstate
);
6606 if (PyErr_Occurred()) return NULL
;
6607 } Py_INCREF(Py_None
);
6608 _resultobj
= Py_None
;
6616 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6617 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6618 PyObject
* _resultobj
;
6620 PyObject
* _argo0
= 0;
6621 char *_kwnames
[] = { "self", NULL
};
6624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6637 wxPyEndAllowThreads(__tstate
);
6638 if (PyErr_Occurred()) return NULL
;
6639 } Py_INCREF(Py_None
);
6640 _resultobj
= Py_None
;
6644 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6645 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6646 PyObject
* _resultobj
;
6648 PyObject
* _argo0
= 0;
6649 char *_kwnames
[] = { "self", NULL
};
6652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6663 wxDC_EndDrawing(_arg0
);
6665 wxPyEndAllowThreads(__tstate
);
6666 if (PyErr_Occurred()) return NULL
;
6667 } Py_INCREF(Py_None
);
6668 _resultobj
= Py_None
;
6672 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6673 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6674 PyObject
* _resultobj
;
6676 PyObject
* _argo0
= 0;
6677 char *_kwnames
[] = { "self", NULL
};
6680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6691 wxDC_EndPage(_arg0
);
6693 wxPyEndAllowThreads(__tstate
);
6694 if (PyErr_Occurred()) return NULL
;
6695 } Py_INCREF(Py_None
);
6696 _resultobj
= Py_None
;
6700 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6701 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6702 PyObject
* _resultobj
;
6708 int _arg4
= (int ) wxFLOOD_SURFACE
;
6709 PyObject
* _argo0
= 0;
6711 PyObject
* _obj3
= 0;
6712 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6726 if (! wxColour_helper(_obj3
, &_arg3
))
6730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6731 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6733 wxPyEndAllowThreads(__tstate
);
6734 if (PyErr_Occurred()) return NULL
;
6735 } _resultobj
= Py_BuildValue("i",_result
);
6739 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6740 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6741 PyObject
* _resultobj
;
6744 PyObject
* _argo0
= 0;
6745 char *_kwnames
[] = { "self", NULL
};
6749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6759 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6760 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
6762 wxPyEndAllowThreads(__tstate
);
6763 if (PyErr_Occurred()) return NULL
;
6764 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
6765 _resultobj
= Py_BuildValue("s",_ptemp
);
6769 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6770 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6771 PyObject
* _resultobj
;
6774 PyObject
* _argo0
= 0;
6775 char *_kwnames
[] = { "self", NULL
};
6779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6790 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
6792 wxPyEndAllowThreads(__tstate
);
6793 if (PyErr_Occurred()) return NULL
;
6794 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
6795 _resultobj
= Py_BuildValue("s",_ptemp
);
6799 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6800 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6801 PyObject
* _resultobj
;
6804 PyObject
* _argo0
= 0;
6805 char *_kwnames
[] = { "self", NULL
};
6808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6819 _result
= (wxCoord
)wxDC_GetCharHeight(_arg0
);
6821 wxPyEndAllowThreads(__tstate
);
6822 if (PyErr_Occurred()) return NULL
;
6823 } _resultobj
= Py_BuildValue("i",_result
);
6827 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6828 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6829 PyObject
* _resultobj
;
6832 PyObject
* _argo0
= 0;
6833 char *_kwnames
[] = { "self", NULL
};
6836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6847 _result
= (wxCoord
)wxDC_GetCharWidth(_arg0
);
6849 wxPyEndAllowThreads(__tstate
);
6850 if (PyErr_Occurred()) return NULL
;
6851 } _resultobj
= Py_BuildValue("i",_result
);
6855 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6856 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6857 PyObject
* _resultobj
;
6867 PyObject
* _argo0
= 0;
6868 char *_kwnames
[] = { "self", NULL
};
6883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6894 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6896 wxPyEndAllowThreads(__tstate
);
6897 if (PyErr_Occurred()) return NULL
;
6898 } Py_INCREF(Py_None
);
6899 _resultobj
= Py_None
;
6902 o
= PyInt_FromLong((long) (*_arg1
));
6903 _resultobj
= t_output_helper(_resultobj
, o
);
6907 o
= PyInt_FromLong((long) (*_arg2
));
6908 _resultobj
= t_output_helper(_resultobj
, o
);
6912 o
= PyInt_FromLong((long) (*_arg3
));
6913 _resultobj
= t_output_helper(_resultobj
, o
);
6917 o
= PyInt_FromLong((long) (*_arg4
));
6918 _resultobj
= t_output_helper(_resultobj
, o
);
6923 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6924 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6925 PyObject
* _resultobj
;
6928 PyObject
* _argo0
= 0;
6929 char *_kwnames
[] = { "self", NULL
};
6933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6944 _result
= new wxFont (wxDC_GetFont(_arg0
));
6946 wxPyEndAllowThreads(__tstate
);
6947 if (PyErr_Occurred()) return NULL
;
6948 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
6949 _resultobj
= Py_BuildValue("s",_ptemp
);
6953 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6954 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6955 PyObject
* _resultobj
;
6958 PyObject
* _argo0
= 0;
6959 char *_kwnames
[] = { "self", NULL
};
6962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6973 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6975 wxPyEndAllowThreads(__tstate
);
6976 if (PyErr_Occurred()) return NULL
;
6977 } _resultobj
= Py_BuildValue("i",_result
);
6981 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6982 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6983 PyObject
* _resultobj
;
6989 PyObject
* _argo0
= 0;
6990 char *_kwnames
[] = { "self", NULL
};
6999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7010 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7012 wxPyEndAllowThreads(__tstate
);
7013 if (PyErr_Occurred()) return NULL
;
7014 } Py_INCREF(Py_None
);
7015 _resultobj
= Py_None
;
7018 o
= PyFloat_FromDouble((double) (*_arg1
));
7019 _resultobj
= t_output_helper(_resultobj
, o
);
7023 o
= PyFloat_FromDouble((double) (*_arg2
));
7024 _resultobj
= t_output_helper(_resultobj
, o
);
7029 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7030 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7031 PyObject
* _resultobj
;
7034 PyObject
* _argo0
= 0;
7035 char *_kwnames
[] = { "self", NULL
};
7038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7048 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7049 _result
= (int )wxDC_GetMapMode(_arg0
);
7051 wxPyEndAllowThreads(__tstate
);
7052 if (PyErr_Occurred()) return NULL
;
7053 } _resultobj
= Py_BuildValue("i",_result
);
7057 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7058 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7059 PyObject
* _resultobj
;
7062 PyObject
* _argo0
= 0;
7063 char *_kwnames
[] = { "self", NULL
};
7066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7077 _result
= (bool )wxDC_GetOptimization(_arg0
);
7079 wxPyEndAllowThreads(__tstate
);
7080 if (PyErr_Occurred()) return NULL
;
7081 } _resultobj
= Py_BuildValue("i",_result
);
7085 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7086 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7087 PyObject
* _resultobj
;
7090 PyObject
* _argo0
= 0;
7091 char *_kwnames
[] = { "self", NULL
};
7095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7106 _result
= new wxPen (wxDC_GetPen(_arg0
));
7108 wxPyEndAllowThreads(__tstate
);
7109 if (PyErr_Occurred()) return NULL
;
7110 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7111 _resultobj
= Py_BuildValue("s",_ptemp
);
7115 static wxColour
* wxDC_GetPixel(wxDC
*self
,wxCoord x
,wxCoord y
) {
7116 wxColour
* wc
= new wxColour();
7117 self
->GetPixel(x
, y
, wc
);
7120 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7121 PyObject
* _resultobj
;
7126 PyObject
* _argo0
= 0;
7127 char *_kwnames
[] = { "self","x","y", NULL
};
7131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7142 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7144 wxPyEndAllowThreads(__tstate
);
7145 if (PyErr_Occurred()) return NULL
;
7147 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7148 _resultobj
= Py_BuildValue("s",_ptemp
);
7151 _resultobj
= Py_None
;
7156 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7157 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7158 PyObject
* _resultobj
;
7164 PyObject
* _argo0
= 0;
7165 char *_kwnames
[] = { "self", NULL
};
7174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7185 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7187 wxPyEndAllowThreads(__tstate
);
7188 if (PyErr_Occurred()) return NULL
;
7189 } Py_INCREF(Py_None
);
7190 _resultobj
= Py_None
;
7193 o
= PyInt_FromLong((long) (*_arg1
));
7194 _resultobj
= t_output_helper(_resultobj
, o
);
7198 o
= PyInt_FromLong((long) (*_arg2
));
7199 _resultobj
= t_output_helper(_resultobj
, o
);
7204 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7205 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7206 PyObject
* _resultobj
;
7209 PyObject
* _argo0
= 0;
7210 char *_kwnames
[] = { "self", NULL
};
7214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7225 _result
= new wxSize (wxDC_GetSize(_arg0
));
7227 wxPyEndAllowThreads(__tstate
);
7228 if (PyErr_Occurred()) return NULL
;
7229 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7230 _resultobj
= Py_BuildValue("s",_ptemp
);
7234 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7235 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7236 PyObject
* _resultobj
;
7239 PyObject
* _argo0
= 0;
7240 char *_kwnames
[] = { "self", NULL
};
7244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7255 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7257 wxPyEndAllowThreads(__tstate
);
7258 if (PyErr_Occurred()) return NULL
;
7259 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7260 _resultobj
= Py_BuildValue("s",_ptemp
);
7264 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7265 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7266 PyObject
* _resultobj
;
7269 PyObject
* _argo0
= 0;
7270 char *_kwnames
[] = { "self", NULL
};
7274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7285 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7287 wxPyEndAllowThreads(__tstate
);
7288 if (PyErr_Occurred()) return NULL
;
7289 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7290 _resultobj
= Py_BuildValue("s",_ptemp
);
7294 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7295 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7296 PyObject
* _resultobj
;
7303 PyObject
* _argo0
= 0;
7304 PyObject
* _obj1
= 0;
7305 char *_kwnames
[] = { "self","string", NULL
};
7314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7324 _arg1
= wxString_in_helper(_obj1
);
7329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7330 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7332 wxPyEndAllowThreads(__tstate
);
7333 if (PyErr_Occurred()) return NULL
;
7334 } Py_INCREF(Py_None
);
7335 _resultobj
= Py_None
;
7338 o
= PyInt_FromLong((long) (*_arg2
));
7339 _resultobj
= t_output_helper(_resultobj
, o
);
7343 o
= PyInt_FromLong((long) (*_arg3
));
7344 _resultobj
= t_output_helper(_resultobj
, o
);
7353 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7354 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7355 PyObject
* _resultobj
;
7366 wxFont
* _arg6
= (wxFont
*) NULL
;
7367 PyObject
* _argo0
= 0;
7368 PyObject
* _obj1
= 0;
7369 PyObject
* _argo6
= 0;
7370 char *_kwnames
[] = { "self","string","font", NULL
};
7385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7395 _arg1
= wxString_in_helper(_obj1
);
7400 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7401 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
7402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7408 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
7410 wxPyEndAllowThreads(__tstate
);
7411 if (PyErr_Occurred()) return NULL
;
7412 } Py_INCREF(Py_None
);
7413 _resultobj
= Py_None
;
7416 o
= PyInt_FromLong((long) (*_arg2
));
7417 _resultobj
= t_output_helper(_resultobj
, o
);
7421 o
= PyInt_FromLong((long) (*_arg3
));
7422 _resultobj
= t_output_helper(_resultobj
, o
);
7426 o
= PyInt_FromLong((long) (*_arg4
));
7427 _resultobj
= t_output_helper(_resultobj
, o
);
7431 o
= PyInt_FromLong((long) (*_arg5
));
7432 _resultobj
= t_output_helper(_resultobj
, o
);
7441 #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7442 static PyObject
*_wrap_wxDC_GetMultiLineTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7443 PyObject
* _resultobj
;
7452 wxFont
* _arg5
= (wxFont
*) NULL
;
7453 PyObject
* _argo0
= 0;
7454 PyObject
* _obj1
= 0;
7455 PyObject
* _argo5
= 0;
7456 char *_kwnames
[] = { "self","text","font", NULL
};
7468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo5
))
7471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
7478 _arg1
= wxString_in_helper(_obj1
);
7483 if (_argo5
== Py_None
) { _arg5
= NULL
; }
7484 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxFont_p")) {
7485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
7490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7491 wxDC_GetMultiLineTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7493 wxPyEndAllowThreads(__tstate
);
7494 if (PyErr_Occurred()) return NULL
;
7495 } Py_INCREF(Py_None
);
7496 _resultobj
= Py_None
;
7499 o
= PyInt_FromLong((long) (*_arg2
));
7500 _resultobj
= t_output_helper(_resultobj
, o
);
7504 o
= PyInt_FromLong((long) (*_arg3
));
7505 _resultobj
= t_output_helper(_resultobj
, o
);
7509 o
= PyInt_FromLong((long) (*_arg4
));
7510 _resultobj
= t_output_helper(_resultobj
, o
);
7519 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7520 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7521 PyObject
* _resultobj
;
7524 PyObject
* _argo0
= 0;
7525 char *_kwnames
[] = { "self", NULL
};
7529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7539 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7540 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7542 wxPyEndAllowThreads(__tstate
);
7543 if (PyErr_Occurred()) return NULL
;
7544 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7545 _resultobj
= Py_BuildValue("s",_ptemp
);
7549 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7550 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7551 PyObject
* _resultobj
;
7557 PyObject
* _argo0
= 0;
7558 char *_kwnames
[] = { "self", NULL
};
7567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7578 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7580 wxPyEndAllowThreads(__tstate
);
7581 if (PyErr_Occurred()) return NULL
;
7582 } Py_INCREF(Py_None
);
7583 _resultobj
= Py_None
;
7586 o
= PyFloat_FromDouble((double) (*_arg1
));
7587 _resultobj
= t_output_helper(_resultobj
, o
);
7591 o
= PyFloat_FromDouble((double) (*_arg2
));
7592 _resultobj
= t_output_helper(_resultobj
, o
);
7597 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7598 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7599 PyObject
* _resultobj
;
7603 PyObject
* _argo0
= 0;
7604 char *_kwnames
[] = { "self","x", NULL
};
7607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7618 _result
= (wxCoord
)wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7620 wxPyEndAllowThreads(__tstate
);
7621 if (PyErr_Occurred()) return NULL
;
7622 } _resultobj
= Py_BuildValue("i",_result
);
7626 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7627 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7628 PyObject
* _resultobj
;
7632 PyObject
* _argo0
= 0;
7633 char *_kwnames
[] = { "self","x", NULL
};
7636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7647 _result
= (wxCoord
)wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7649 wxPyEndAllowThreads(__tstate
);
7650 if (PyErr_Occurred()) return NULL
;
7651 } _resultobj
= Py_BuildValue("i",_result
);
7655 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7656 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7657 PyObject
* _resultobj
;
7661 PyObject
* _argo0
= 0;
7662 char *_kwnames
[] = { "self","y", NULL
};
7665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7676 _result
= (wxCoord
)wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7678 wxPyEndAllowThreads(__tstate
);
7679 if (PyErr_Occurred()) return NULL
;
7680 } _resultobj
= Py_BuildValue("i",_result
);
7684 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7685 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7686 PyObject
* _resultobj
;
7690 PyObject
* _argo0
= 0;
7691 char *_kwnames
[] = { "self","y", NULL
};
7694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7705 _result
= (wxCoord
)wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7707 wxPyEndAllowThreads(__tstate
);
7708 if (PyErr_Occurred()) return NULL
;
7709 } _resultobj
= Py_BuildValue("i",_result
);
7713 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7714 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7715 PyObject
* _resultobj
;
7718 PyObject
* _argo0
= 0;
7719 char *_kwnames
[] = { "self", NULL
};
7722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7733 _result
= (wxCoord
)wxDC_MaxX(_arg0
);
7735 wxPyEndAllowThreads(__tstate
);
7736 if (PyErr_Occurred()) return NULL
;
7737 } _resultobj
= Py_BuildValue("i",_result
);
7741 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7742 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7743 PyObject
* _resultobj
;
7746 PyObject
* _argo0
= 0;
7747 char *_kwnames
[] = { "self", NULL
};
7750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7761 _result
= (wxCoord
)wxDC_MaxY(_arg0
);
7763 wxPyEndAllowThreads(__tstate
);
7764 if (PyErr_Occurred()) return NULL
;
7765 } _resultobj
= Py_BuildValue("i",_result
);
7769 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7770 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7771 PyObject
* _resultobj
;
7774 PyObject
* _argo0
= 0;
7775 char *_kwnames
[] = { "self", NULL
};
7778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7789 _result
= (wxCoord
)wxDC_MinX(_arg0
);
7791 wxPyEndAllowThreads(__tstate
);
7792 if (PyErr_Occurred()) return NULL
;
7793 } _resultobj
= Py_BuildValue("i",_result
);
7797 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7798 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7799 PyObject
* _resultobj
;
7802 PyObject
* _argo0
= 0;
7803 char *_kwnames
[] = { "self", NULL
};
7806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7817 _result
= (wxCoord
)wxDC_MinY(_arg0
);
7819 wxPyEndAllowThreads(__tstate
);
7820 if (PyErr_Occurred()) return NULL
;
7821 } _resultobj
= Py_BuildValue("i",_result
);
7825 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7826 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7827 PyObject
* _resultobj
;
7830 PyObject
* _argo0
= 0;
7831 char *_kwnames
[] = { "self", NULL
};
7834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7845 _result
= (bool )wxDC_Ok(_arg0
);
7847 wxPyEndAllowThreads(__tstate
);
7848 if (PyErr_Occurred()) return NULL
;
7849 } _resultobj
= Py_BuildValue("i",_result
);
7853 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7854 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7855 PyObject
* _resultobj
;
7859 PyObject
* _argo0
= 0;
7860 char *_kwnames
[] = { "self","x","y", NULL
};
7863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7874 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7876 wxPyEndAllowThreads(__tstate
);
7877 if (PyErr_Occurred()) return NULL
;
7878 } Py_INCREF(Py_None
);
7879 _resultobj
= Py_None
;
7883 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7884 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7885 PyObject
* _resultobj
;
7888 PyObject
* _argo0
= 0;
7889 PyObject
* _argo1
= 0;
7890 char *_kwnames
[] = { "self","brush", NULL
};
7893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7903 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7910 wxDC_SetBackground(_arg0
,*_arg1
);
7912 wxPyEndAllowThreads(__tstate
);
7913 if (PyErr_Occurred()) return NULL
;
7914 } Py_INCREF(Py_None
);
7915 _resultobj
= Py_None
;
7919 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7920 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7921 PyObject
* _resultobj
;
7924 PyObject
* _argo0
= 0;
7925 char *_kwnames
[] = { "self","mode", NULL
};
7928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7938 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7939 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7941 wxPyEndAllowThreads(__tstate
);
7942 if (PyErr_Occurred()) return NULL
;
7943 } Py_INCREF(Py_None
);
7944 _resultobj
= Py_None
;
7948 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7949 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7950 PyObject
* _resultobj
;
7956 PyObject
* _argo0
= 0;
7957 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7971 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7973 wxPyEndAllowThreads(__tstate
);
7974 if (PyErr_Occurred()) return NULL
;
7975 } Py_INCREF(Py_None
);
7976 _resultobj
= Py_None
;
7980 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7981 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7982 PyObject
* _resultobj
;
7985 PyObject
* _argo0
= 0;
7986 PyObject
* _argo1
= 0;
7987 char *_kwnames
[] = { "self","region", NULL
};
7990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
7993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8000 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8006 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8007 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8009 wxPyEndAllowThreads(__tstate
);
8010 if (PyErr_Occurred()) return NULL
;
8011 } Py_INCREF(Py_None
);
8012 _resultobj
= Py_None
;
8016 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8017 static PyObject
*_wrap_wxDC_SetClippingRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8018 PyObject
* _resultobj
;
8021 PyObject
* _argo0
= 0;
8023 PyObject
* _obj1
= 0;
8024 char *_kwnames
[] = { "self","rect", NULL
};
8027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRect",_kwnames
,&_argo0
,&_obj1
))
8030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
8038 if (! wxRect_helper(_obj1
, &_arg1
))
8042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8043 wxDC_SetClippingRect(_arg0
,*_arg1
);
8045 wxPyEndAllowThreads(__tstate
);
8046 if (PyErr_Occurred()) return NULL
;
8047 } Py_INCREF(Py_None
);
8048 _resultobj
= Py_None
;
8052 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8053 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8054 PyObject
* _resultobj
;
8057 PyObject
* _argo0
= 0;
8058 PyObject
* _argo1
= 0;
8059 char *_kwnames
[] = { "self","colourMap", NULL
};
8062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8072 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8079 wxDC_SetPalette(_arg0
,*_arg1
);
8081 wxPyEndAllowThreads(__tstate
);
8082 if (PyErr_Occurred()) return NULL
;
8083 } Py_INCREF(Py_None
);
8084 _resultobj
= Py_None
;
8088 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8089 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8090 PyObject
* _resultobj
;
8093 PyObject
* _argo0
= 0;
8094 PyObject
* _argo1
= 0;
8095 char *_kwnames
[] = { "self","brush", NULL
};
8098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8108 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8115 wxDC_SetBrush(_arg0
,*_arg1
);
8117 wxPyEndAllowThreads(__tstate
);
8118 if (PyErr_Occurred()) return NULL
;
8119 } Py_INCREF(Py_None
);
8120 _resultobj
= Py_None
;
8124 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8125 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8126 PyObject
* _resultobj
;
8129 PyObject
* _argo0
= 0;
8130 PyObject
* _argo1
= 0;
8131 char *_kwnames
[] = { "self","font", NULL
};
8134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8144 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8151 wxDC_SetFont(_arg0
,*_arg1
);
8153 wxPyEndAllowThreads(__tstate
);
8154 if (PyErr_Occurred()) return NULL
;
8155 } Py_INCREF(Py_None
);
8156 _resultobj
= Py_None
;
8160 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8161 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8162 PyObject
* _resultobj
;
8165 PyObject
* _argo0
= 0;
8166 char *_kwnames
[] = { "self","function", NULL
};
8169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8180 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8182 wxPyEndAllowThreads(__tstate
);
8183 if (PyErr_Occurred()) return NULL
;
8184 } Py_INCREF(Py_None
);
8185 _resultobj
= Py_None
;
8189 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8190 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8191 PyObject
* _resultobj
;
8195 PyObject
* _argo0
= 0;
8196 char *_kwnames
[] = { "self","x","y", NULL
};
8199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8210 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8212 wxPyEndAllowThreads(__tstate
);
8213 if (PyErr_Occurred()) return NULL
;
8214 } Py_INCREF(Py_None
);
8215 _resultobj
= Py_None
;
8219 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8220 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8221 PyObject
* _resultobj
;
8224 PyObject
* _argo0
= 0;
8225 char *_kwnames
[] = { "self","mode", NULL
};
8228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8239 wxDC_SetMapMode(_arg0
,_arg1
);
8241 wxPyEndAllowThreads(__tstate
);
8242 if (PyErr_Occurred()) return NULL
;
8243 } Py_INCREF(Py_None
);
8244 _resultobj
= Py_None
;
8248 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8249 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8250 PyObject
* _resultobj
;
8253 PyObject
* _argo0
= 0;
8255 char *_kwnames
[] = { "self","optimize", NULL
};
8258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8267 _arg1
= (bool ) tempbool1
;
8269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8270 wxDC_SetOptimization(_arg0
,_arg1
);
8272 wxPyEndAllowThreads(__tstate
);
8273 if (PyErr_Occurred()) return NULL
;
8274 } Py_INCREF(Py_None
);
8275 _resultobj
= Py_None
;
8279 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8280 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8281 PyObject
* _resultobj
;
8284 PyObject
* _argo0
= 0;
8285 PyObject
* _argo1
= 0;
8286 char *_kwnames
[] = { "self","pen", NULL
};
8289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8299 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8306 wxDC_SetPen(_arg0
,*_arg1
);
8308 wxPyEndAllowThreads(__tstate
);
8309 if (PyErr_Occurred()) return NULL
;
8310 } Py_INCREF(Py_None
);
8311 _resultobj
= Py_None
;
8315 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8316 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8317 PyObject
* _resultobj
;
8320 PyObject
* _argo0
= 0;
8322 PyObject
* _obj1
= 0;
8323 char *_kwnames
[] = { "self","colour", NULL
};
8326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8337 if (! wxColour_helper(_obj1
, &_arg1
))
8341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8342 wxDC_SetTextBackground(_arg0
,*_arg1
);
8344 wxPyEndAllowThreads(__tstate
);
8345 if (PyErr_Occurred()) return NULL
;
8346 } Py_INCREF(Py_None
);
8347 _resultobj
= Py_None
;
8351 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8352 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8353 PyObject
* _resultobj
;
8356 PyObject
* _argo0
= 0;
8358 PyObject
* _obj1
= 0;
8359 char *_kwnames
[] = { "self","colour", NULL
};
8362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8373 if (! wxColour_helper(_obj1
, &_arg1
))
8377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8378 wxDC_SetTextForeground(_arg0
,*_arg1
);
8380 wxPyEndAllowThreads(__tstate
);
8381 if (PyErr_Occurred()) return NULL
;
8382 } Py_INCREF(Py_None
);
8383 _resultobj
= Py_None
;
8387 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8388 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8389 PyObject
* _resultobj
;
8393 PyObject
* _argo0
= 0;
8394 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8408 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8410 wxPyEndAllowThreads(__tstate
);
8411 if (PyErr_Occurred()) return NULL
;
8412 } Py_INCREF(Py_None
);
8413 _resultobj
= Py_None
;
8417 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8418 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8419 PyObject
* _resultobj
;
8423 PyObject
* _argo0
= 0;
8424 PyObject
* _obj1
= 0;
8425 char *_kwnames
[] = { "self","message", NULL
};
8428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8438 _arg1
= wxString_in_helper(_obj1
);
8443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8444 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8446 wxPyEndAllowThreads(__tstate
);
8447 if (PyErr_Occurred()) return NULL
;
8448 } _resultobj
= Py_BuildValue("i",_result
);
8456 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8457 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8458 PyObject
* _resultobj
;
8460 PyObject
* _argo0
= 0;
8461 char *_kwnames
[] = { "self", NULL
};
8464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8475 wxDC_StartPage(_arg0
);
8477 wxPyEndAllowThreads(__tstate
);
8478 if (PyErr_Occurred()) return NULL
;
8479 } Py_INCREF(Py_None
);
8480 _resultobj
= Py_None
;
8484 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8485 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8486 PyObject
* _resultobj
;
8491 int _arg4
= (int ) FALSE
;
8492 PyObject
* _argo0
= 0;
8493 PyObject
* _argo1
= 0;
8494 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8507 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8514 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8516 wxPyEndAllowThreads(__tstate
);
8517 if (PyErr_Occurred()) return NULL
;
8518 } Py_INCREF(Py_None
);
8519 _resultobj
= Py_None
;
8523 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8524 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8525 PyObject
* _resultobj
;
8528 PyObject
* _argo0
= 0;
8529 char *_kwnames
[] = { "self", NULL
};
8532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8543 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8545 wxPyEndAllowThreads(__tstate
);
8546 if (PyErr_Occurred()) return NULL
;
8547 } _resultobj
= Py_BuildValue("i",_result
);
8551 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8552 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8553 PyObject
* _resultobj
;
8556 PyObject
* _argo0
= 0;
8557 char *_kwnames
[] = { "self", NULL
};
8560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8571 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8573 wxPyEndAllowThreads(__tstate
);
8574 if (PyErr_Occurred()) return NULL
;
8575 } _resultobj
= Py_BuildValue("i",_result
);
8579 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8580 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8581 PyObject
* _resultobj
;
8584 PyObject
* _argo0
= 0;
8585 char *_kwnames
[] = { "self", NULL
};
8588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8599 _result
= (int )wxDC_GetDepth(_arg0
);
8601 wxPyEndAllowThreads(__tstate
);
8602 if (PyErr_Occurred()) return NULL
;
8603 } _resultobj
= Py_BuildValue("i",_result
);
8607 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8608 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8609 PyObject
* _resultobj
;
8612 PyObject
* _argo0
= 0;
8613 char *_kwnames
[] = { "self", NULL
};
8617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8628 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8630 wxPyEndAllowThreads(__tstate
);
8631 if (PyErr_Occurred()) return NULL
;
8632 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8633 _resultobj
= Py_BuildValue("s",_ptemp
);
8637 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8638 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8639 PyObject
* _resultobj
;
8645 PyObject
* _argo0
= 0;
8646 char *_kwnames
[] = { "self", NULL
};
8655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8666 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8668 wxPyEndAllowThreads(__tstate
);
8669 if (PyErr_Occurred()) return NULL
;
8670 } Py_INCREF(Py_None
);
8671 _resultobj
= Py_None
;
8674 o
= PyInt_FromLong((long) (*_arg1
));
8675 _resultobj
= t_output_helper(_resultobj
, o
);
8679 o
= PyInt_FromLong((long) (*_arg2
));
8680 _resultobj
= t_output_helper(_resultobj
, o
);
8685 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8686 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8687 PyObject
* _resultobj
;
8691 PyObject
* _argo0
= 0;
8692 char *_kwnames
[] = { "self","x","y", NULL
};
8695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8706 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8708 wxPyEndAllowThreads(__tstate
);
8709 if (PyErr_Occurred()) return NULL
;
8710 } Py_INCREF(Py_None
);
8711 _resultobj
= Py_None
;
8715 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8716 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8717 PyObject
* _resultobj
;
8723 PyObject
* _argo0
= 0;
8724 char *_kwnames
[] = { "self", NULL
};
8733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8744 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8746 wxPyEndAllowThreads(__tstate
);
8747 if (PyErr_Occurred()) return NULL
;
8748 } Py_INCREF(Py_None
);
8749 _resultobj
= Py_None
;
8752 o
= PyInt_FromLong((long) (*_arg1
));
8753 _resultobj
= t_output_helper(_resultobj
, o
);
8757 o
= PyInt_FromLong((long) (*_arg2
));
8758 _resultobj
= t_output_helper(_resultobj
, o
);
8763 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8764 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8765 PyObject
* _resultobj
;
8769 PyObject
* _argo0
= 0;
8772 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8784 _arg1
= (bool ) tempbool1
;
8785 _arg2
= (bool ) tempbool2
;
8787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8788 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8790 wxPyEndAllowThreads(__tstate
);
8791 if (PyErr_Occurred()) return NULL
;
8792 } Py_INCREF(Py_None
);
8793 _resultobj
= Py_None
;
8797 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8798 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8799 PyObject
* _resultobj
;
8803 PyObject
* _argo0
= 0;
8804 char *_kwnames
[] = { "self","x","y", NULL
};
8807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8818 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8820 wxPyEndAllowThreads(__tstate
);
8821 if (PyErr_Occurred()) return NULL
;
8822 } Py_INCREF(Py_None
);
8823 _resultobj
= Py_None
;
8827 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8828 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8829 PyObject
* _resultobj
;
8831 PyObject
* _argo0
= 0;
8832 char *_kwnames
[] = { "self", NULL
};
8835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8846 wxDC_ResetBoundingBox(_arg0
);
8848 wxPyEndAllowThreads(__tstate
);
8849 if (PyErr_Occurred()) return NULL
;
8850 } Py_INCREF(Py_None
);
8851 _resultobj
= Py_None
;
8855 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8856 PyObject
* _resultobj
;
8866 PyObject
* _argo0
= 0;
8867 char *_kwnames
[] = { "self", NULL
};
8882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
8885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8893 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8895 wxPyEndAllowThreads(__tstate
);
8896 if (PyErr_Occurred()) return NULL
;
8897 } Py_INCREF(Py_None
);
8898 _resultobj
= Py_None
;
8901 o
= PyInt_FromLong((long) (*_arg1
));
8902 _resultobj
= t_output_helper(_resultobj
, o
);
8906 o
= PyInt_FromLong((long) (*_arg2
));
8907 _resultobj
= t_output_helper(_resultobj
, o
);
8911 o
= PyInt_FromLong((long) (*_arg3
));
8912 _resultobj
= t_output_helper(_resultobj
, o
);
8916 o
= PyInt_FromLong((long) (*_arg4
));
8917 _resultobj
= t_output_helper(_resultobj
, o
);
8922 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
8923 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8924 PyObject
* _resultobj
;
8927 PyObject
* _argo0
= 0;
8928 char *_kwnames
[] = { "self", NULL
};
8931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
8934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
8941 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8942 _result
= (long )wxDC_GetHDC(_arg0
);
8944 wxPyEndAllowThreads(__tstate
);
8945 if (PyErr_Occurred()) return NULL
;
8946 } _resultobj
= Py_BuildValue("l",_result
);
8950 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8951 return wxPyDrawXXXList(*self
, wxPyDrawXXXPoint
, pyCoords
, pyPens
, pyBrushes
);
8953 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8954 PyObject
* _resultobj
;
8960 PyObject
* _argo0
= 0;
8961 PyObject
* _obj1
= 0;
8962 PyObject
* _obj2
= 0;
8963 PyObject
* _obj3
= 0;
8964 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8987 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
,_arg3
);
8989 wxPyEndAllowThreads(__tstate
);
8990 if (PyErr_Occurred()) return NULL
;
8992 _resultobj
= _result
;
8997 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8998 return wxPyDrawXXXList(*self
, wxPyDrawXXXLine
, pyCoords
, pyPens
, pyBrushes
);
9000 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9001 PyObject
* _resultobj
;
9007 PyObject
* _argo0
= 0;
9008 PyObject
* _obj1
= 0;
9009 PyObject
* _obj2
= 0;
9010 PyObject
* _obj3
= 0;
9011 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
9014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
9017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9034 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
,_arg3
);
9036 wxPyEndAllowThreads(__tstate
);
9037 if (PyErr_Occurred()) return NULL
;
9039 _resultobj
= _result
;
9044 static PyObject
* wxDC__DrawRectangleList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
9045 return wxPyDrawXXXList(*self
, wxPyDrawXXXRectangle
, pyCoords
, pyPens
, pyBrushes
);
9047 static PyObject
*_wrap_wxDC__DrawRectangleList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9048 PyObject
* _resultobj
;
9054 PyObject
* _argo0
= 0;
9055 PyObject
* _obj1
= 0;
9056 PyObject
* _obj2
= 0;
9057 PyObject
* _obj3
= 0;
9058 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
9061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawRectangleList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
9064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
9080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9081 _result
= (PyObject
*)wxDC__DrawRectangleList(_arg0
,_arg1
,_arg2
,_arg3
);
9083 wxPyEndAllowThreads(__tstate
);
9084 if (PyErr_Occurred()) return NULL
;
9086 _resultobj
= _result
;
9091 static PyObject
* wxDC__DrawEllipseList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
9092 return wxPyDrawXXXList(*self
, wxPyDrawXXXEllipse
, pyCoords
, pyPens
, pyBrushes
);
9094 static PyObject
*_wrap_wxDC__DrawEllipseList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9095 PyObject
* _resultobj
;
9101 PyObject
* _argo0
= 0;
9102 PyObject
* _obj1
= 0;
9103 PyObject
* _obj2
= 0;
9104 PyObject
* _obj3
= 0;
9105 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
9108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawEllipseList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
9111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
9127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9128 _result
= (PyObject
*)wxDC__DrawEllipseList(_arg0
,_arg1
,_arg2
,_arg3
);
9130 wxPyEndAllowThreads(__tstate
);
9131 if (PyErr_Occurred()) return NULL
;
9133 _resultobj
= _result
;
9138 static PyObject
* wxDC__DrawPolygonList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
9139 return wxPyDrawXXXList(*self
, wxPyDrawXXXPolygon
, pyCoords
, pyPens
, pyBrushes
);
9141 static PyObject
*_wrap_wxDC__DrawPolygonList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9142 PyObject
* _resultobj
;
9148 PyObject
* _argo0
= 0;
9149 PyObject
* _obj1
= 0;
9150 PyObject
* _obj2
= 0;
9151 PyObject
* _obj3
= 0;
9152 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
9155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPolygonList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
9158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
9174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9175 _result
= (PyObject
*)wxDC__DrawPolygonList(_arg0
,_arg1
,_arg2
,_arg3
);
9177 wxPyEndAllowThreads(__tstate
);
9178 if (PyErr_Occurred()) return NULL
;
9180 _resultobj
= _result
;
9185 static PyObject
* wxDC__DrawTextList(wxDC
*self
,PyObject
* textList
,PyObject
* pyPoints
,PyObject
* foregroundList
,PyObject
* backgroundList
) {
9186 return wxPyDrawTextList(*self
, textList
, pyPoints
, foregroundList
, backgroundList
);
9188 static PyObject
*_wrap_wxDC__DrawTextList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9189 PyObject
* _resultobj
;
9196 PyObject
* _argo0
= 0;
9197 PyObject
* _obj1
= 0;
9198 PyObject
* _obj2
= 0;
9199 PyObject
* _obj3
= 0;
9200 PyObject
* _obj4
= 0;
9201 char *_kwnames
[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL
};
9204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:wxDC__DrawTextList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
,&_obj4
))
9207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
9226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9227 _result
= (PyObject
*)wxDC__DrawTextList(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9229 wxPyEndAllowThreads(__tstate
);
9230 if (PyErr_Occurred()) return NULL
;
9232 _resultobj
= _result
;
9237 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9240 src
= (wxMemoryDC
*) ptr
;
9241 dest
= (wxDC
*) src
;
9242 return (void *) dest
;
9245 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9248 src
= (wxMemoryDC
*) ptr
;
9249 dest
= (wxObject
*) src
;
9250 return (void *) dest
;
9253 #define new_wxMemoryDC() (new wxMemoryDC())
9254 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9255 PyObject
* _resultobj
;
9256 wxMemoryDC
* _result
;
9257 char *_kwnames
[] = { NULL
};
9261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9265 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9267 wxPyEndAllowThreads(__tstate
);
9268 if (PyErr_Occurred()) return NULL
;
9270 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9271 _resultobj
= Py_BuildValue("s",_ptemp
);
9274 _resultobj
= Py_None
;
9279 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9280 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9281 PyObject
* _resultobj
;
9284 PyObject
* _argo0
= 0;
9285 PyObject
* _argo1
= 0;
9286 char *_kwnames
[] = { "self","bitmap", NULL
};
9289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9299 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9306 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9308 wxPyEndAllowThreads(__tstate
);
9309 if (PyErr_Occurred()) return NULL
;
9310 } Py_INCREF(Py_None
);
9311 _resultobj
= Py_None
;
9315 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
9318 src
= (wxBufferedDC
*) ptr
;
9319 dest
= (wxMemoryDC
*) src
;
9320 return (void *) dest
;
9323 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
9326 src
= (wxBufferedDC
*) ptr
;
9327 dest
= (wxDC
*) src
;
9328 return (void *) dest
;
9331 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
9334 src
= (wxBufferedDC
*) ptr
;
9335 dest
= (wxObject
*) src
;
9336 return (void *) dest
;
9339 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9340 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9341 PyObject
* _resultobj
;
9342 wxBufferedDC
* _result
;
9345 PyObject
* _argo0
= 0;
9346 PyObject
* _argo1
= 0;
9347 char *_kwnames
[] = { "dc","buffer", NULL
};
9351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
9354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
9361 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
9367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9368 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
9370 wxPyEndAllowThreads(__tstate
);
9371 if (PyErr_Occurred()) return NULL
;
9373 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
9374 _resultobj
= Py_BuildValue("s",_ptemp
);
9377 _resultobj
= Py_None
;
9382 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9383 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9384 PyObject
* _resultobj
;
9385 wxBufferedDC
* _result
;
9388 PyObject
* _argo0
= 0;
9390 PyObject
* _obj1
= 0;
9391 char *_kwnames
[] = { "dc","area", NULL
};
9395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
9398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
9406 if (! wxSize_helper(_obj1
, &_arg1
))
9410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9411 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
9413 wxPyEndAllowThreads(__tstate
);
9414 if (PyErr_Occurred()) return NULL
;
9416 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
9417 _resultobj
= Py_BuildValue("s",_ptemp
);
9420 _resultobj
= Py_None
;
9425 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
9426 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9427 PyObject
* _resultobj
;
9428 wxBufferedDC
* _arg0
;
9429 PyObject
* _argo0
= 0;
9430 char *_kwnames
[] = { "self", NULL
};
9433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
9436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
9438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
9443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9444 wxBufferedDC_UnMask(_arg0
);
9446 wxPyEndAllowThreads(__tstate
);
9447 if (PyErr_Occurred()) return NULL
;
9448 } Py_INCREF(Py_None
);
9449 _resultobj
= Py_None
;
9453 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
9454 wxBufferedPaintDC
*src
;
9456 src
= (wxBufferedPaintDC
*) ptr
;
9457 dest
= (wxBufferedDC
*) src
;
9458 return (void *) dest
;
9461 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
9462 wxBufferedPaintDC
*src
;
9464 src
= (wxBufferedPaintDC
*) ptr
;
9465 dest
= (wxMemoryDC
*) src
;
9466 return (void *) dest
;
9469 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
9470 wxBufferedPaintDC
*src
;
9472 src
= (wxBufferedPaintDC
*) ptr
;
9473 dest
= (wxDC
*) src
;
9474 return (void *) dest
;
9477 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
9478 wxBufferedPaintDC
*src
;
9480 src
= (wxBufferedPaintDC
*) ptr
;
9481 dest
= (wxObject
*) src
;
9482 return (void *) dest
;
9485 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
9486 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9487 PyObject
* _resultobj
;
9488 wxBufferedPaintDC
* _result
;
9490 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
9491 PyObject
* _argo0
= 0;
9492 PyObject
* _argo1
= 0;
9493 char *_kwnames
[] = { "window","buffer", NULL
};
9497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
9500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
9507 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
9513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9514 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
9516 wxPyEndAllowThreads(__tstate
);
9517 if (PyErr_Occurred()) return NULL
;
9519 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
9520 _resultobj
= Py_BuildValue("s",_ptemp
);
9523 _resultobj
= Py_None
;
9528 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9531 src
= (wxScreenDC
*) ptr
;
9532 dest
= (wxDC
*) src
;
9533 return (void *) dest
;
9536 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9539 src
= (wxScreenDC
*) ptr
;
9540 dest
= (wxObject
*) src
;
9541 return (void *) dest
;
9544 #define new_wxScreenDC() (new wxScreenDC())
9545 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9546 PyObject
* _resultobj
;
9547 wxScreenDC
* _result
;
9548 char *_kwnames
[] = { NULL
};
9552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9556 _result
= (wxScreenDC
*)new_wxScreenDC();
9558 wxPyEndAllowThreads(__tstate
);
9559 if (PyErr_Occurred()) return NULL
;
9561 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9562 _resultobj
= Py_BuildValue("s",_ptemp
);
9565 _resultobj
= Py_None
;
9570 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9571 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9572 PyObject
* _resultobj
;
9576 PyObject
* _argo0
= 0;
9577 PyObject
* _argo1
= 0;
9578 char *_kwnames
[] = { "self","window", NULL
};
9581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9591 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9592 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9599 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9601 wxPyEndAllowThreads(__tstate
);
9602 if (PyErr_Occurred()) return NULL
;
9603 } _resultobj
= Py_BuildValue("i",_result
);
9607 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9608 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9609 PyObject
* _resultobj
;
9612 wxRect
* _arg1
= (wxRect
*) NULL
;
9613 PyObject
* _argo0
= 0;
9615 PyObject
* _obj1
= 0;
9616 char *_kwnames
[] = { "self","rect", NULL
};
9619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9631 if (! wxRect_helper(_obj1
, &_arg1
))
9635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9636 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9638 wxPyEndAllowThreads(__tstate
);
9639 if (PyErr_Occurred()) return NULL
;
9640 } _resultobj
= Py_BuildValue("i",_result
);
9644 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9645 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9646 PyObject
* _resultobj
;
9649 PyObject
* _argo0
= 0;
9650 char *_kwnames
[] = { "self", NULL
};
9653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9664 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9666 wxPyEndAllowThreads(__tstate
);
9667 if (PyErr_Occurred()) return NULL
;
9668 } _resultobj
= Py_BuildValue("i",_result
);
9672 static void *SwigwxClientDCTowxDC(void *ptr
) {
9675 src
= (wxClientDC
*) ptr
;
9676 dest
= (wxDC
*) src
;
9677 return (void *) dest
;
9680 static void *SwigwxClientDCTowxObject(void *ptr
) {
9683 src
= (wxClientDC
*) ptr
;
9684 dest
= (wxObject
*) src
;
9685 return (void *) dest
;
9688 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9689 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9690 PyObject
* _resultobj
;
9691 wxClientDC
* _result
;
9693 PyObject
* _argo0
= 0;
9694 char *_kwnames
[] = { "win", NULL
};
9698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9701 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9702 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9709 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9711 wxPyEndAllowThreads(__tstate
);
9712 if (PyErr_Occurred()) return NULL
;
9714 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9715 _resultobj
= Py_BuildValue("s",_ptemp
);
9718 _resultobj
= Py_None
;
9723 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9726 src
= (wxPaintDC
*) ptr
;
9727 dest
= (wxDC
*) src
;
9728 return (void *) dest
;
9731 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9734 src
= (wxPaintDC
*) ptr
;
9735 dest
= (wxObject
*) src
;
9736 return (void *) dest
;
9739 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9740 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9741 PyObject
* _resultobj
;
9742 wxPaintDC
* _result
;
9744 PyObject
* _argo0
= 0;
9745 char *_kwnames
[] = { "win", NULL
};
9749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9759 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9760 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9762 wxPyEndAllowThreads(__tstate
);
9763 if (PyErr_Occurred()) return NULL
;
9765 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9766 _resultobj
= Py_BuildValue("s",_ptemp
);
9769 _resultobj
= Py_None
;
9774 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9777 src
= (wxWindowDC
*) ptr
;
9778 dest
= (wxDC
*) src
;
9779 return (void *) dest
;
9782 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9785 src
= (wxWindowDC
*) ptr
;
9786 dest
= (wxObject
*) src
;
9787 return (void *) dest
;
9790 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9791 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9792 PyObject
* _resultobj
;
9793 wxWindowDC
* _result
;
9795 PyObject
* _argo0
= 0;
9796 char *_kwnames
[] = { "win", NULL
};
9800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9811 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9813 wxPyEndAllowThreads(__tstate
);
9814 if (PyErr_Occurred()) return NULL
;
9816 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9817 _resultobj
= Py_BuildValue("s",_ptemp
);
9820 _resultobj
= Py_None
;
9825 static void *SwigwxMirrorDCTowxDC(void *ptr
) {
9828 src
= (wxMirrorDC
*) ptr
;
9829 dest
= (wxDC
*) src
;
9830 return (void *) dest
;
9833 static void *SwigwxMirrorDCTowxObject(void *ptr
) {
9836 src
= (wxMirrorDC
*) ptr
;
9837 dest
= (wxObject
*) src
;
9838 return (void *) dest
;
9841 #define new_wxMirrorDC(_swigarg0,_swigarg1) (new wxMirrorDC(_swigarg0,_swigarg1))
9842 static PyObject
*_wrap_new_wxMirrorDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9843 PyObject
* _resultobj
;
9844 wxMirrorDC
* _result
;
9847 PyObject
* _argo0
= 0;
9849 char *_kwnames
[] = { "dc","mirror", NULL
};
9853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxMirrorDC",_kwnames
,&_argo0
,&tempbool1
))
9856 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMirrorDC. Expected _wxDC_p.");
9861 _arg1
= (bool ) tempbool1
;
9863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9864 _result
= (wxMirrorDC
*)new_wxMirrorDC(*_arg0
,_arg1
);
9866 wxPyEndAllowThreads(__tstate
);
9867 if (PyErr_Occurred()) return NULL
;
9869 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMirrorDC_p");
9870 _resultobj
= Py_BuildValue("s",_ptemp
);
9873 _resultobj
= Py_None
;
9878 static void *SwigwxMetaFileTowxObject(void *ptr
) {
9881 src
= (wxMetaFile
*) ptr
;
9882 dest
= (wxObject
*) src
;
9883 return (void *) dest
;
9886 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
9887 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9888 PyObject
* _resultobj
;
9889 wxMetaFile
* _result
;
9890 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
9891 PyObject
* _obj0
= 0;
9892 char *_kwnames
[] = { "filename", NULL
};
9896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
9900 _arg0
= wxString_in_helper(_obj0
);
9905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9906 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
9908 wxPyEndAllowThreads(__tstate
);
9909 if (PyErr_Occurred()) return NULL
;
9911 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9912 _resultobj
= Py_BuildValue("s",_ptemp
);
9915 _resultobj
= Py_None
;
9924 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
9925 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9926 PyObject
* _resultobj
;
9928 PyObject
* _argo0
= 0;
9929 char *_kwnames
[] = { "self", NULL
};
9932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
9935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
9942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9943 delete_wxMetaFile(_arg0
);
9945 wxPyEndAllowThreads(__tstate
);
9946 if (PyErr_Occurred()) return NULL
;
9947 } Py_INCREF(Py_None
);
9948 _resultobj
= Py_None
;
9952 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
9953 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9954 PyObject
* _resultobj
;
9957 PyObject
* _argo0
= 0;
9958 char *_kwnames
[] = { "self", NULL
};
9961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
9964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
9971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9972 _result
= (bool )wxMetaFile_Ok(_arg0
);
9974 wxPyEndAllowThreads(__tstate
);
9975 if (PyErr_Occurred()) return NULL
;
9976 } _resultobj
= Py_BuildValue("i",_result
);
9980 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
9981 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9982 PyObject
* _resultobj
;
9985 int _arg1
= (int ) 0;
9986 int _arg2
= (int ) 0;
9987 PyObject
* _argo0
= 0;
9988 char *_kwnames
[] = { "self","width","height", NULL
};
9991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10002 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
10004 wxPyEndAllowThreads(__tstate
);
10005 if (PyErr_Occurred()) return NULL
;
10006 } _resultobj
= Py_BuildValue("i",_result
);
10010 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10011 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10012 PyObject
* _resultobj
;
10014 wxMetaFile
* _arg0
;
10015 PyObject
* _argo0
= 0;
10016 char *_kwnames
[] = { "self", NULL
};
10020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
10023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10031 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
10033 wxPyEndAllowThreads(__tstate
);
10034 if (PyErr_Occurred()) return NULL
;
10035 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
10036 _resultobj
= Py_BuildValue("s",_ptemp
);
10040 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10041 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10042 PyObject
* _resultobj
;
10044 wxMetaFile
* _arg0
;
10045 PyObject
* _argo0
= 0;
10046 char *_kwnames
[] = { "self", NULL
};
10049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
10052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10060 _result
= (int )wxMetaFile_GetWidth(_arg0
);
10062 wxPyEndAllowThreads(__tstate
);
10063 if (PyErr_Occurred()) return NULL
;
10064 } _resultobj
= Py_BuildValue("i",_result
);
10068 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10069 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10070 PyObject
* _resultobj
;
10072 wxMetaFile
* _arg0
;
10073 PyObject
* _argo0
= 0;
10074 char *_kwnames
[] = { "self", NULL
};
10077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
10080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10088 _result
= (int )wxMetaFile_GetHeight(_arg0
);
10090 wxPyEndAllowThreads(__tstate
);
10091 if (PyErr_Occurred()) return NULL
;
10092 } _resultobj
= Py_BuildValue("i",_result
);
10096 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10097 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10098 PyObject
* _resultobj
;
10099 wxString
* _result
;
10100 wxMetaFile
* _arg0
;
10101 PyObject
* _argo0
= 0;
10102 char *_kwnames
[] = { "self", NULL
};
10105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
10108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
10110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10116 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
10117 _result
= (wxString
*) &_result_ref
;
10119 wxPyEndAllowThreads(__tstate
);
10120 if (PyErr_Occurred()) return NULL
;
10123 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
10125 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10131 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
10134 src
= (wxMetaFileDC
*) ptr
;
10135 dest
= (wxDC
*) src
;
10136 return (void *) dest
;
10139 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
10142 src
= (wxMetaFileDC
*) ptr
;
10143 dest
= (wxObject
*) src
;
10144 return (void *) dest
;
10147 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10148 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10149 PyObject
* _resultobj
;
10150 wxMetaFileDC
* _result
;
10151 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
10152 int _arg1
= (int ) 0;
10153 int _arg2
= (int ) 0;
10154 wxString
* _arg3
= (wxString
*) &wxPyEmptyString
;
10155 PyObject
* _obj0
= 0;
10156 PyObject
* _obj3
= 0;
10157 char *_kwnames
[] = { "filename","width","height","description", NULL
};
10161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
10165 _arg0
= wxString_in_helper(_obj0
);
10171 _arg3
= wxString_in_helper(_obj3
);
10176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10177 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
10179 wxPyEndAllowThreads(__tstate
);
10180 if (PyErr_Occurred()) return NULL
;
10182 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
10183 _resultobj
= Py_BuildValue("s",_ptemp
);
10185 Py_INCREF(Py_None
);
10186 _resultobj
= Py_None
;
10199 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10200 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10201 PyObject
* _resultobj
;
10202 wxMetaFile
* _result
;
10203 wxMetaFileDC
* _arg0
;
10204 PyObject
* _argo0
= 0;
10205 char *_kwnames
[] = { "self", NULL
};
10209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
10212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
10214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10220 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
10222 wxPyEndAllowThreads(__tstate
);
10223 if (PyErr_Occurred()) return NULL
;
10225 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
10226 _resultobj
= Py_BuildValue("s",_ptemp
);
10228 Py_INCREF(Py_None
);
10229 _resultobj
= Py_None
;
10234 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
10237 src
= (wxPalette
*) ptr
;
10238 dest
= (wxGDIObject
*) src
;
10239 return (void *) dest
;
10242 static void *SwigwxPaletteTowxObject(void *ptr
) {
10245 src
= (wxPalette
*) ptr
;
10246 dest
= (wxObject
*) src
;
10247 return (void *) dest
;
10250 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10251 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10252 PyObject
* _resultobj
;
10253 wxPalette
* _result
;
10258 PyObject
* _obj1
= 0;
10259 PyObject
* _obj2
= 0;
10260 PyObject
* _obj3
= 0;
10261 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10268 _arg1
= byte_LIST_helper(_obj1
);
10269 if (_arg1
== NULL
) {
10274 _arg2
= byte_LIST_helper(_obj2
);
10275 if (_arg2
== NULL
) {
10281 _arg3
= byte_LIST_helper(_obj3
);
10282 if (_arg3
== NULL
) {
10288 _arg0
= PyList_Size(_obj1
);
10295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10296 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10298 wxPyEndAllowThreads(__tstate
);
10299 if (PyErr_Occurred()) return NULL
;
10301 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10302 _resultobj
= Py_BuildValue("s",_ptemp
);
10304 Py_INCREF(Py_None
);
10305 _resultobj
= Py_None
;
10319 #define delete_wxPalette(_swigobj) (delete _swigobj)
10320 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10321 PyObject
* _resultobj
;
10323 PyObject
* _argo0
= 0;
10324 char *_kwnames
[] = { "self", NULL
};
10327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10338 delete_wxPalette(_arg0
);
10340 wxPyEndAllowThreads(__tstate
);
10341 if (PyErr_Occurred()) return NULL
;
10342 } Py_INCREF(Py_None
);
10343 _resultobj
= Py_None
;
10347 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10348 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10349 PyObject
* _resultobj
;
10355 PyObject
* _argo0
= 0;
10356 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10370 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10372 wxPyEndAllowThreads(__tstate
);
10373 if (PyErr_Occurred()) return NULL
;
10374 } _resultobj
= Py_BuildValue("i",_result
);
10378 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10379 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10380 PyObject
* _resultobj
;
10390 PyObject
* _argo0
= 0;
10391 char *_kwnames
[] = { "self","pixel", NULL
};
10395 _arg2
= (byte
*)&temp
;
10398 _arg3
= (byte
*)&temp0
;
10401 _arg4
= (byte
*)&temp1
;
10403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
10406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10414 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10416 wxPyEndAllowThreads(__tstate
);
10417 if (PyErr_Occurred()) return NULL
;
10418 } _resultobj
= Py_BuildValue("i",_result
);
10421 o
= PyInt_FromLong((long) (*_arg2
));
10422 _resultobj
= t_output_helper(_resultobj
, o
);
10426 o
= PyInt_FromLong((long) (*_arg3
));
10427 _resultobj
= t_output_helper(_resultobj
, o
);
10431 o
= PyInt_FromLong((long) (*_arg4
));
10432 _resultobj
= t_output_helper(_resultobj
, o
);
10437 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10438 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10439 PyObject
* _resultobj
;
10442 PyObject
* _argo0
= 0;
10443 char *_kwnames
[] = { "self", NULL
};
10446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10457 _result
= (bool )wxPalette_Ok(_arg0
);
10459 wxPyEndAllowThreads(__tstate
);
10460 if (PyErr_Occurred()) return NULL
;
10461 } _resultobj
= Py_BuildValue("i",_result
);
10465 static void *SwigwxImageListTowxObject(void *ptr
) {
10468 src
= (wxImageList
*) ptr
;
10469 dest
= (wxObject
*) src
;
10470 return (void *) dest
;
10473 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10474 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10475 PyObject
* _resultobj
;
10476 wxImageList
* _result
;
10479 int _arg2
= (int ) TRUE
;
10480 int _arg3
= (int ) 1;
10481 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10489 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10491 wxPyEndAllowThreads(__tstate
);
10492 if (PyErr_Occurred()) return NULL
;
10494 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10495 _resultobj
= Py_BuildValue("s",_ptemp
);
10497 Py_INCREF(Py_None
);
10498 _resultobj
= Py_None
;
10503 #define delete_wxImageList(_swigobj) (delete _swigobj)
10504 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10505 PyObject
* _resultobj
;
10506 wxImageList
* _arg0
;
10507 PyObject
* _argo0
= 0;
10508 char *_kwnames
[] = { "self", NULL
};
10511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10522 delete_wxImageList(_arg0
);
10524 wxPyEndAllowThreads(__tstate
);
10525 if (PyErr_Occurred()) return NULL
;
10526 } Py_INCREF(Py_None
);
10527 _resultobj
= Py_None
;
10531 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10532 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10533 PyObject
* _resultobj
;
10535 wxImageList
* _arg0
;
10537 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10538 PyObject
* _argo0
= 0;
10539 PyObject
* _argo1
= 0;
10540 PyObject
* _argo2
= 0;
10541 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10554 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10560 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10567 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10569 wxPyEndAllowThreads(__tstate
);
10570 if (PyErr_Occurred()) return NULL
;
10571 } _resultobj
= Py_BuildValue("i",_result
);
10575 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10576 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10577 PyObject
* _resultobj
;
10579 wxImageList
* _arg0
;
10582 PyObject
* _argo0
= 0;
10583 PyObject
* _argo1
= 0;
10585 PyObject
* _obj2
= 0;
10586 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10599 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10606 if (! wxColour_helper(_obj2
, &_arg2
))
10610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10611 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10613 wxPyEndAllowThreads(__tstate
);
10614 if (PyErr_Occurred()) return NULL
;
10615 } _resultobj
= Py_BuildValue("i",_result
);
10619 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10620 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10621 PyObject
* _resultobj
;
10623 wxImageList
* _arg0
;
10625 PyObject
* _argo0
= 0;
10626 PyObject
* _argo1
= 0;
10627 char *_kwnames
[] = { "self","icon", NULL
};
10630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10640 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10647 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10649 wxPyEndAllowThreads(__tstate
);
10650 if (PyErr_Occurred()) return NULL
;
10651 } _resultobj
= Py_BuildValue("i",_result
);
10655 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10656 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10657 PyObject
* _resultobj
;
10659 wxImageList
* _arg0
;
10662 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
10663 PyObject
* _argo0
= 0;
10664 PyObject
* _argo2
= 0;
10665 PyObject
* _argo3
= 0;
10666 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
10669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
10672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10679 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10685 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
10686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10692 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
10694 wxPyEndAllowThreads(__tstate
);
10695 if (PyErr_Occurred()) return NULL
;
10696 } _resultobj
= Py_BuildValue("i",_result
);
10700 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10701 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10702 PyObject
* _resultobj
;
10704 wxImageList
* _arg0
;
10709 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10710 bool _arg6
= (bool ) FALSE
;
10711 PyObject
* _argo0
= 0;
10712 PyObject
* _argo2
= 0;
10713 int tempbool6
= (int) FALSE
;
10714 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10727 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10732 _arg6
= (bool ) tempbool6
;
10734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10735 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10737 wxPyEndAllowThreads(__tstate
);
10738 if (PyErr_Occurred()) return NULL
;
10739 } _resultobj
= Py_BuildValue("i",_result
);
10743 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10744 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10745 PyObject
* _resultobj
;
10747 wxImageList
* _arg0
;
10748 PyObject
* _argo0
= 0;
10749 char *_kwnames
[] = { "self", NULL
};
10752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10763 _result
= (int )wxImageList_GetImageCount(_arg0
);
10765 wxPyEndAllowThreads(__tstate
);
10766 if (PyErr_Occurred()) return NULL
;
10767 } _resultobj
= Py_BuildValue("i",_result
);
10771 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10772 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10773 PyObject
* _resultobj
;
10775 wxImageList
* _arg0
;
10777 PyObject
* _argo0
= 0;
10778 char *_kwnames
[] = { "self","index", NULL
};
10781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10792 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10794 wxPyEndAllowThreads(__tstate
);
10795 if (PyErr_Occurred()) return NULL
;
10796 } _resultobj
= Py_BuildValue("i",_result
);
10800 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10801 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10802 PyObject
* _resultobj
;
10804 wxImageList
* _arg0
;
10805 PyObject
* _argo0
= 0;
10806 char *_kwnames
[] = { "self", NULL
};
10809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10820 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10822 wxPyEndAllowThreads(__tstate
);
10823 if (PyErr_Occurred()) return NULL
;
10824 } _resultobj
= Py_BuildValue("i",_result
);
10828 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10829 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10830 PyObject
* _resultobj
;
10831 wxImageList
* _arg0
;
10837 PyObject
* _argo0
= 0;
10838 char *_kwnames
[] = { "self","index", NULL
};
10847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10858 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10860 wxPyEndAllowThreads(__tstate
);
10861 if (PyErr_Occurred()) return NULL
;
10862 } Py_INCREF(Py_None
);
10863 _resultobj
= Py_None
;
10866 o
= PyInt_FromLong((long) (*_arg2
));
10867 _resultobj
= t_output_helper(_resultobj
, o
);
10871 o
= PyInt_FromLong((long) (*_arg3
));
10872 _resultobj
= t_output_helper(_resultobj
, o
);
10877 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10880 src
= (wxRegion
*) ptr
;
10881 dest
= (wxGDIObject
*) src
;
10882 return (void *) dest
;
10885 static void *SwigwxRegionTowxObject(void *ptr
) {
10888 src
= (wxRegion
*) ptr
;
10889 dest
= (wxObject
*) src
;
10890 return (void *) dest
;
10893 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10894 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10895 PyObject
* _resultobj
;
10896 wxRegion
* _result
;
10897 wxCoord _arg0
= (wxCoord
) 0;
10898 wxCoord _arg1
= (wxCoord
) 0;
10899 wxCoord _arg2
= (wxCoord
) 0;
10900 wxCoord _arg3
= (wxCoord
) 0;
10901 char *_kwnames
[] = { "x","y","width","height", NULL
};
10905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10909 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10911 wxPyEndAllowThreads(__tstate
);
10912 if (PyErr_Occurred()) return NULL
;
10914 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10915 _resultobj
= Py_BuildValue("s",_ptemp
);
10917 Py_INCREF(Py_None
);
10918 _resultobj
= Py_None
;
10923 #define new_wxRegionFromPoints(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10924 static PyObject
*_wrap_new_wxRegionFromPoints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10925 PyObject
* _resultobj
;
10926 wxRegion
* _result
;
10929 int _arg2
= (int ) wxWINDING_RULE
;
10931 PyObject
* _obj1
= 0;
10932 char *_kwnames
[] = { "points","fillStyle", NULL
};
10936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxRegionFromPoints",_kwnames
,&_obj1
,&_arg2
))
10940 _arg1
= wxPoint_LIST_helper(_obj1
, &NPOINTS
);
10941 if (_arg1
== NULL
) {
10949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10950 _result
= (wxRegion
*)new_wxRegionFromPoints(_arg0
,_arg1
,_arg2
);
10952 wxPyEndAllowThreads(__tstate
);
10953 if (PyErr_Occurred()) return NULL
;
10955 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10956 _resultobj
= Py_BuildValue("s",_ptemp
);
10958 Py_INCREF(Py_None
);
10959 _resultobj
= Py_None
;
10967 #define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10968 static PyObject
*_wrap_new_wxRegionFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10969 PyObject
* _resultobj
;
10970 wxRegion
* _result
;
10972 wxColour
* _arg1
= (wxColour
*) &wxNullColour
;
10973 int _arg2
= (int ) 0;
10974 PyObject
* _argo0
= 0;
10976 PyObject
* _obj1
= 0;
10977 char *_kwnames
[] = { "bmp","transColour","tolerance", NULL
};
10981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|Oi:new_wxRegionFromBitmap",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
10984 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
10985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p.");
10992 if (! wxColour_helper(_obj1
, &_arg1
))
10996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10997 _result
= (wxRegion
*)new_wxRegionFromBitmap(*_arg0
,*_arg1
,_arg2
);
10999 wxPyEndAllowThreads(__tstate
);
11000 if (PyErr_Occurred()) return NULL
;
11002 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
11003 _resultobj
= Py_BuildValue("s",_ptemp
);
11005 Py_INCREF(Py_None
);
11006 _resultobj
= Py_None
;
11011 #define delete_wxRegion(_swigobj) (delete _swigobj)
11012 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11013 PyObject
* _resultobj
;
11015 PyObject
* _argo0
= 0;
11016 char *_kwnames
[] = { "self", NULL
};
11019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
11022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11030 delete_wxRegion(_arg0
);
11032 wxPyEndAllowThreads(__tstate
);
11033 if (PyErr_Occurred()) return NULL
;
11034 } Py_INCREF(Py_None
);
11035 _resultobj
= Py_None
;
11039 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11040 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11041 PyObject
* _resultobj
;
11043 PyObject
* _argo0
= 0;
11044 char *_kwnames
[] = { "self", NULL
};
11047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
11050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11058 wxRegion_Clear(_arg0
);
11060 wxPyEndAllowThreads(__tstate
);
11061 if (PyErr_Occurred()) return NULL
;
11062 } Py_INCREF(Py_None
);
11063 _resultobj
= Py_None
;
11067 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
11068 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11069 PyObject
* _resultobj
;
11074 PyObject
* _argo0
= 0;
11075 char *_kwnames
[] = { "self","x","y", NULL
};
11078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
11088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11089 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
11091 wxPyEndAllowThreads(__tstate
);
11092 if (PyErr_Occurred()) return NULL
;
11093 } _resultobj
= Py_BuildValue("i",_result
);
11097 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11098 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11099 PyObject
* _resultobj
;
11100 wxRegionContain _result
;
11104 PyObject
* _argo0
= 0;
11105 char *_kwnames
[] = { "self","x","y", NULL
};
11108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
11111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11119 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
11121 wxPyEndAllowThreads(__tstate
);
11122 if (PyErr_Occurred()) return NULL
;
11123 } _resultobj
= Py_BuildValue("i",_result
);
11127 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11128 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11129 PyObject
* _resultobj
;
11130 wxRegionContain _result
;
11133 PyObject
* _argo0
= 0;
11135 PyObject
* _obj1
= 0;
11136 char *_kwnames
[] = { "self","pt", NULL
};
11139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
11142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11150 if (! wxPoint_helper(_obj1
, &_arg1
))
11154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11155 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
11157 wxPyEndAllowThreads(__tstate
);
11158 if (PyErr_Occurred()) return NULL
;
11159 } _resultobj
= Py_BuildValue("i",_result
);
11163 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11164 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11165 PyObject
* _resultobj
;
11166 wxRegionContain _result
;
11169 PyObject
* _argo0
= 0;
11171 PyObject
* _obj1
= 0;
11172 char *_kwnames
[] = { "self","rect", NULL
};
11175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
11178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11186 if (! wxRect_helper(_obj1
, &_arg1
))
11190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11191 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
11193 wxPyEndAllowThreads(__tstate
);
11194 if (PyErr_Occurred()) return NULL
;
11195 } _resultobj
= Py_BuildValue("i",_result
);
11199 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11200 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11201 PyObject
* _resultobj
;
11202 wxRegionContain _result
;
11208 PyObject
* _argo0
= 0;
11209 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
11212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11223 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11225 wxPyEndAllowThreads(__tstate
);
11226 if (PyErr_Occurred()) return NULL
;
11227 } _resultobj
= Py_BuildValue("i",_result
);
11231 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11232 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11233 PyObject
* _resultobj
;
11236 PyObject
* _argo0
= 0;
11237 char *_kwnames
[] = { "self", NULL
};
11241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
11244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11252 _result
= new wxRect (wxRegion_GetBox(_arg0
));
11254 wxPyEndAllowThreads(__tstate
);
11255 if (PyErr_Occurred()) return NULL
;
11256 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11257 _resultobj
= Py_BuildValue("s",_ptemp
);
11261 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11262 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11263 PyObject
* _resultobj
;
11270 PyObject
* _argo0
= 0;
11271 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11285 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11287 wxPyEndAllowThreads(__tstate
);
11288 if (PyErr_Occurred()) return NULL
;
11289 } _resultobj
= Py_BuildValue("i",_result
);
11293 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11294 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11295 PyObject
* _resultobj
;
11299 PyObject
* _argo0
= 0;
11301 PyObject
* _obj1
= 0;
11302 char *_kwnames
[] = { "self","rect", NULL
};
11305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
11308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11316 if (! wxRect_helper(_obj1
, &_arg1
))
11320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11321 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
11323 wxPyEndAllowThreads(__tstate
);
11324 if (PyErr_Occurred()) return NULL
;
11325 } _resultobj
= Py_BuildValue("i",_result
);
11329 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11330 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11331 PyObject
* _resultobj
;
11335 PyObject
* _argo0
= 0;
11336 PyObject
* _argo1
= 0;
11337 char *_kwnames
[] = { "self","region", NULL
};
11340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
11343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11350 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11357 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11359 wxPyEndAllowThreads(__tstate
);
11360 if (PyErr_Occurred()) return NULL
;
11361 } _resultobj
= Py_BuildValue("i",_result
);
11365 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11366 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11367 PyObject
* _resultobj
;
11370 PyObject
* _argo0
= 0;
11371 char *_kwnames
[] = { "self", NULL
};
11374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11384 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11385 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11387 wxPyEndAllowThreads(__tstate
);
11388 if (PyErr_Occurred()) return NULL
;
11389 } _resultobj
= Py_BuildValue("i",_result
);
11393 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11394 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11395 PyObject
* _resultobj
;
11402 PyObject
* _argo0
= 0;
11403 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11417 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11419 wxPyEndAllowThreads(__tstate
);
11420 if (PyErr_Occurred()) return NULL
;
11421 } _resultobj
= Py_BuildValue("i",_result
);
11425 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11426 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11427 PyObject
* _resultobj
;
11431 PyObject
* _argo0
= 0;
11433 PyObject
* _obj1
= 0;
11434 char *_kwnames
[] = { "self","rect", NULL
};
11437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11448 if (! wxRect_helper(_obj1
, &_arg1
))
11452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11453 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11455 wxPyEndAllowThreads(__tstate
);
11456 if (PyErr_Occurred()) return NULL
;
11457 } _resultobj
= Py_BuildValue("i",_result
);
11461 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11462 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11463 PyObject
* _resultobj
;
11467 PyObject
* _argo0
= 0;
11468 PyObject
* _argo1
= 0;
11469 char *_kwnames
[] = { "self","region", NULL
};
11472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11482 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11489 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11491 wxPyEndAllowThreads(__tstate
);
11492 if (PyErr_Occurred()) return NULL
;
11493 } _resultobj
= Py_BuildValue("i",_result
);
11497 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11498 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11499 PyObject
* _resultobj
;
11506 PyObject
* _argo0
= 0;
11507 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11521 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11523 wxPyEndAllowThreads(__tstate
);
11524 if (PyErr_Occurred()) return NULL
;
11525 } _resultobj
= Py_BuildValue("i",_result
);
11529 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11530 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11531 PyObject
* _resultobj
;
11535 PyObject
* _argo0
= 0;
11537 PyObject
* _obj1
= 0;
11538 char *_kwnames
[] = { "self","rect", NULL
};
11541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11552 if (! wxRect_helper(_obj1
, &_arg1
))
11556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11557 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11559 wxPyEndAllowThreads(__tstate
);
11560 if (PyErr_Occurred()) return NULL
;
11561 } _resultobj
= Py_BuildValue("i",_result
);
11565 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11566 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11567 PyObject
* _resultobj
;
11571 PyObject
* _argo0
= 0;
11572 PyObject
* _argo1
= 0;
11573 char *_kwnames
[] = { "self","region", NULL
};
11576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11586 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11593 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11595 wxPyEndAllowThreads(__tstate
);
11596 if (PyErr_Occurred()) return NULL
;
11597 } _resultobj
= Py_BuildValue("i",_result
);
11601 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11602 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11603 PyObject
* _resultobj
;
11610 PyObject
* _argo0
= 0;
11611 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11625 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11627 wxPyEndAllowThreads(__tstate
);
11628 if (PyErr_Occurred()) return NULL
;
11629 } _resultobj
= Py_BuildValue("i",_result
);
11633 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11634 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11635 PyObject
* _resultobj
;
11639 PyObject
* _argo0
= 0;
11641 PyObject
* _obj1
= 0;
11642 char *_kwnames
[] = { "self","rect", NULL
};
11645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11656 if (! wxRect_helper(_obj1
, &_arg1
))
11660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11661 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11663 wxPyEndAllowThreads(__tstate
);
11664 if (PyErr_Occurred()) return NULL
;
11665 } _resultobj
= Py_BuildValue("i",_result
);
11669 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11670 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11671 PyObject
* _resultobj
;
11675 PyObject
* _argo0
= 0;
11676 PyObject
* _argo1
= 0;
11677 char *_kwnames
[] = { "self","region", NULL
};
11680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11690 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11697 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11699 wxPyEndAllowThreads(__tstate
);
11700 if (PyErr_Occurred()) return NULL
;
11701 } _resultobj
= Py_BuildValue("i",_result
);
11705 #define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
11706 static PyObject
*_wrap_wxRegion_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11707 PyObject
* _resultobj
;
11708 wxBitmap
* _result
;
11710 PyObject
* _argo0
= 0;
11711 char *_kwnames
[] = { "self", NULL
};
11715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_ConvertToBitmap",_kwnames
,&_argo0
))
11718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ConvertToBitmap. Expected _wxRegion_p.");
11725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11726 _result
= new wxBitmap (wxRegion_ConvertToBitmap(_arg0
));
11728 wxPyEndAllowThreads(__tstate
);
11729 if (PyErr_Occurred()) return NULL
;
11730 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
11731 _resultobj
= Py_BuildValue("s",_ptemp
);
11735 #define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2))
11736 static PyObject
*_wrap_wxRegion_UnionBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11737 PyObject
* _resultobj
;
11741 wxColour
* _arg2
= (wxColour
*) &wxNullColour
;
11742 int _arg3
= (int ) 0;
11743 PyObject
* _argo0
= 0;
11744 PyObject
* _argo1
= 0;
11746 PyObject
* _obj2
= 0;
11747 char *_kwnames
[] = { "self","bmp","transColour","tolerance", NULL
};
11750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|Oi:wxRegion_UnionBitmap",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_arg3
))
11753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionBitmap. Expected _wxRegion_p.");
11760 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
11761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p.");
11768 if (! wxColour_helper(_obj2
, &_arg2
))
11772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11773 _result
= (bool )wxRegion_UnionBitmap(_arg0
,*_arg1
,*_arg2
,_arg3
);
11775 wxPyEndAllowThreads(__tstate
);
11776 if (PyErr_Occurred()) return NULL
;
11777 } _resultobj
= Py_BuildValue("i",_result
);
11781 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11782 wxRegionIterator
*src
;
11784 src
= (wxRegionIterator
*) ptr
;
11785 dest
= (wxObject
*) src
;
11786 return (void *) dest
;
11789 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11790 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11791 PyObject
* _resultobj
;
11792 wxRegionIterator
* _result
;
11794 PyObject
* _argo0
= 0;
11795 char *_kwnames
[] = { "region", NULL
};
11799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11802 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11809 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11811 wxPyEndAllowThreads(__tstate
);
11812 if (PyErr_Occurred()) return NULL
;
11814 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11815 _resultobj
= Py_BuildValue("s",_ptemp
);
11817 Py_INCREF(Py_None
);
11818 _resultobj
= Py_None
;
11823 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11824 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11825 PyObject
* _resultobj
;
11826 wxRegionIterator
* _arg0
;
11827 PyObject
* _argo0
= 0;
11828 char *_kwnames
[] = { "self", NULL
};
11831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11842 delete_wxRegionIterator(_arg0
);
11844 wxPyEndAllowThreads(__tstate
);
11845 if (PyErr_Occurred()) return NULL
;
11846 } Py_INCREF(Py_None
);
11847 _resultobj
= Py_None
;
11851 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11852 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11853 PyObject
* _resultobj
;
11855 wxRegionIterator
* _arg0
;
11856 PyObject
* _argo0
= 0;
11857 char *_kwnames
[] = { "self", NULL
};
11860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11871 _result
= (wxCoord
)wxRegionIterator_GetX(_arg0
);
11873 wxPyEndAllowThreads(__tstate
);
11874 if (PyErr_Occurred()) return NULL
;
11875 } _resultobj
= Py_BuildValue("i",_result
);
11879 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11880 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11881 PyObject
* _resultobj
;
11883 wxRegionIterator
* _arg0
;
11884 PyObject
* _argo0
= 0;
11885 char *_kwnames
[] = { "self", NULL
};
11888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11899 _result
= (wxCoord
)wxRegionIterator_GetY(_arg0
);
11901 wxPyEndAllowThreads(__tstate
);
11902 if (PyErr_Occurred()) return NULL
;
11903 } _resultobj
= Py_BuildValue("i",_result
);
11907 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11908 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11909 PyObject
* _resultobj
;
11911 wxRegionIterator
* _arg0
;
11912 PyObject
* _argo0
= 0;
11913 char *_kwnames
[] = { "self", NULL
};
11916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11927 _result
= (wxCoord
)wxRegionIterator_GetW(_arg0
);
11929 wxPyEndAllowThreads(__tstate
);
11930 if (PyErr_Occurred()) return NULL
;
11931 } _resultobj
= Py_BuildValue("i",_result
);
11935 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11936 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11937 PyObject
* _resultobj
;
11939 wxRegionIterator
* _arg0
;
11940 PyObject
* _argo0
= 0;
11941 char *_kwnames
[] = { "self", NULL
};
11944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11955 _result
= (wxCoord
)wxRegionIterator_GetWidth(_arg0
);
11957 wxPyEndAllowThreads(__tstate
);
11958 if (PyErr_Occurred()) return NULL
;
11959 } _resultobj
= Py_BuildValue("i",_result
);
11963 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11964 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11965 PyObject
* _resultobj
;
11967 wxRegionIterator
* _arg0
;
11968 PyObject
* _argo0
= 0;
11969 char *_kwnames
[] = { "self", NULL
};
11972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11983 _result
= (wxCoord
)wxRegionIterator_GetH(_arg0
);
11985 wxPyEndAllowThreads(__tstate
);
11986 if (PyErr_Occurred()) return NULL
;
11987 } _resultobj
= Py_BuildValue("i",_result
);
11991 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11992 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11993 PyObject
* _resultobj
;
11995 wxRegionIterator
* _arg0
;
11996 PyObject
* _argo0
= 0;
11997 char *_kwnames
[] = { "self", NULL
};
12000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
12003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12011 _result
= (wxCoord
)wxRegionIterator_GetHeight(_arg0
);
12013 wxPyEndAllowThreads(__tstate
);
12014 if (PyErr_Occurred()) return NULL
;
12015 } _resultobj
= Py_BuildValue("i",_result
);
12019 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12020 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12021 PyObject
* _resultobj
;
12023 wxRegionIterator
* _arg0
;
12024 PyObject
* _argo0
= 0;
12025 char *_kwnames
[] = { "self", NULL
};
12029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
12032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12040 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
12042 wxPyEndAllowThreads(__tstate
);
12043 if (PyErr_Occurred()) return NULL
;
12044 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
12045 _resultobj
= Py_BuildValue("s",_ptemp
);
12049 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12050 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12051 PyObject
* _resultobj
;
12053 wxRegionIterator
* _arg0
;
12054 PyObject
* _argo0
= 0;
12055 char *_kwnames
[] = { "self", NULL
};
12058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
12061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12069 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
12071 wxPyEndAllowThreads(__tstate
);
12072 if (PyErr_Occurred()) return NULL
;
12073 } _resultobj
= Py_BuildValue("i",_result
);
12077 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12078 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12079 PyObject
* _resultobj
;
12080 wxRegionIterator
* _arg0
;
12081 PyObject
* _argo0
= 0;
12082 char *_kwnames
[] = { "self", NULL
};
12085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
12088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12096 wxRegionIterator_Reset(_arg0
);
12098 wxPyEndAllowThreads(__tstate
);
12099 if (PyErr_Occurred()) return NULL
;
12100 } Py_INCREF(Py_None
);
12101 _resultobj
= Py_None
;
12105 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
12108 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
12109 PyObject
* _resultobj
;
12110 wxRegionIterator
* _arg0
;
12111 PyObject
* _argo0
= 0;
12112 char *_kwnames
[] = { "self", NULL
};
12115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
12118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
12119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
12120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
12126 wxRegionIterator_Next(_arg0
);
12128 wxPyEndAllowThreads(__tstate
);
12129 if (PyErr_Occurred()) return NULL
;
12130 } Py_INCREF(Py_None
);
12131 _resultobj
= Py_None
;
12135 static PyMethodDef gdicMethods
[] = {
12136 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
12137 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
12138 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
12139 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
12140 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12141 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
12142 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12143 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
12144 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
12145 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
12146 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12147 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
12148 { "wxRegion_UnionBitmap", (PyCFunction
) _wrap_wxRegion_UnionBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12149 { "wxRegion_ConvertToBitmap", (PyCFunction
) _wrap_wxRegion_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12150 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
12151 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
12152 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
12153 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
12154 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
12155 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
12156 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
12157 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
12158 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
12159 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
12160 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
12161 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
12162 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
12163 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
12164 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
12165 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
12166 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
12167 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
12168 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
12169 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12170 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12171 { "new_wxRegionFromBitmap", (PyCFunction
) _wrap_new_wxRegionFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12172 { "new_wxRegionFromPoints", (PyCFunction
) _wrap_new_wxRegionFromPoints
, METH_VARARGS
| METH_KEYWORDS
},
12173 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
12174 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12175 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
12176 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
12177 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
12178 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
12179 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
12180 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
12181 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
12182 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
12183 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12184 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
12185 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12186 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
12187 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12188 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12189 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
12190 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
12191 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
12192 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
12193 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12194 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12195 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12196 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
12197 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12198 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12199 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
12200 { "new_wxMirrorDC", (PyCFunction
) _wrap_new_wxMirrorDC
, METH_VARARGS
| METH_KEYWORDS
},
12201 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
12202 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
12203 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
12204 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12205 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
12206 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
12207 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
12208 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
12209 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
12210 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
12211 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
12212 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
12213 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
12214 { "wxDC__DrawTextList", (PyCFunction
) _wrap_wxDC__DrawTextList
, METH_VARARGS
| METH_KEYWORDS
},
12215 { "wxDC__DrawPolygonList", (PyCFunction
) _wrap_wxDC__DrawPolygonList
, METH_VARARGS
| METH_KEYWORDS
},
12216 { "wxDC__DrawEllipseList", (PyCFunction
) _wrap_wxDC__DrawEllipseList
, METH_VARARGS
| METH_KEYWORDS
},
12217 { "wxDC__DrawRectangleList", (PyCFunction
) _wrap_wxDC__DrawRectangleList
, METH_VARARGS
| METH_KEYWORDS
},
12218 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
12219 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
12220 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
12221 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12222 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12223 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
12224 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
12225 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12226 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12227 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12228 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
12229 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12230 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12231 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12232 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12233 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
12234 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
12235 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12236 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12237 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12238 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
12239 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12240 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12241 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12242 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12243 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
12244 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12245 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12246 { "wxDC_SetClippingRect", (PyCFunction
) _wrap_wxDC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
},
12247 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
12248 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12249 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
12250 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12251 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
12252 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12253 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
12254 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
12255 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
12256 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
12257 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
12258 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
12259 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
12260 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
12261 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
12262 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
12263 { "wxDC_GetMultiLineTextExtent", (PyCFunction
) _wrap_wxDC_GetMultiLineTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12264 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12265 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
12266 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
12267 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
12268 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
12269 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
12270 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
12271 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
12272 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
12273 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
12274 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
12275 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
12276 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
12277 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
12278 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
12279 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
12280 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
12281 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
12282 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
12283 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
12284 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12285 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
12286 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
12287 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
12288 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12289 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
12290 { "wxDC_DrawRectangleRect", (PyCFunction
) _wrap_wxDC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
},
12291 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
12292 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
12293 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
12294 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
12295 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
12296 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
12297 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
12298 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
12299 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
12300 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
12301 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
12302 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
12303 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
12304 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
12305 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
12306 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
12307 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
12308 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
12309 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
12310 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
12311 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
12312 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
12313 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12314 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
12315 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
12316 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
12317 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12318 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12319 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12320 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12321 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12322 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12323 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12324 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12325 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
12326 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
12327 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
12328 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
12329 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
12330 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12331 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12332 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
12333 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12334 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
12335 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12336 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
12337 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12338 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12339 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12340 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
12341 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
12342 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12343 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12344 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
12345 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
12346 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
12347 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
12348 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12349 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
12350 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
12351 { "wxColourDatabase_AddColour", (PyCFunction
) _wrap_wxColourDatabase_AddColour
, METH_VARARGS
| METH_KEYWORDS
},
12352 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
12353 { "wxColourDatabase_FindColourNoAdd", (PyCFunction
) _wrap_wxColourDatabase_FindColourNoAdd
, METH_VARARGS
| METH_KEYWORDS
},
12354 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
12355 { "wxColour___ne__", (PyCFunction
) _wrap_wxColour___ne__
, METH_VARARGS
| METH_KEYWORDS
},
12356 { "wxColour___eq__", (PyCFunction
) _wrap_wxColour___eq__
, METH_VARARGS
| METH_KEYWORDS
},
12357 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
12358 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
12359 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12360 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
12361 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
12362 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
12363 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12364 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
12365 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12366 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12367 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12368 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12369 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12370 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12371 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12372 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12373 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12374 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12375 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12376 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12377 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
12378 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
12379 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
12380 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
12381 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12382 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
12383 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
12384 { "wxIconLocation_GetIndex", (PyCFunction
) _wrap_wxIconLocation_GetIndex
, METH_VARARGS
| METH_KEYWORDS
},
12385 { "wxIconLocation_SetIndex", (PyCFunction
) _wrap_wxIconLocation_SetIndex
, METH_VARARGS
| METH_KEYWORDS
},
12386 { "wxIconLocation_GetFileName", (PyCFunction
) _wrap_wxIconLocation_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
12387 { "wxIconLocation_SetFileName", (PyCFunction
) _wrap_wxIconLocation_SetFileName
, METH_VARARGS
| METH_KEYWORDS
},
12388 { "wxIconLocation_IsOk", (PyCFunction
) _wrap_wxIconLocation_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
12389 { "delete_wxIconLocation", (PyCFunction
) _wrap_delete_wxIconLocation
, METH_VARARGS
| METH_KEYWORDS
},
12390 { "new_wxIconLocation", (PyCFunction
) _wrap_new_wxIconLocation
, METH_VARARGS
| METH_KEYWORDS
},
12391 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12392 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12393 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12394 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12395 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12396 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12397 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12398 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12399 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12400 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12401 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12402 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12403 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12404 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12405 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
12406 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
12407 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
12408 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
12409 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
12410 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12411 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12412 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
12413 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12414 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12415 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12416 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12417 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12418 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12419 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12420 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12421 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
12422 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12423 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
12424 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
12425 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12426 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
12427 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12428 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12429 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12430 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12431 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12432 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12433 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12434 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12435 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12436 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12437 { "wxCursorFromBits", (PyCFunction
) _wrap_wxCursorFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12438 { "wxCursorFromImage", (PyCFunction
) _wrap_wxCursorFromImage
, METH_VARARGS
| METH_KEYWORDS
},
12439 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12440 { "wxIconFromLocation", (PyCFunction
) _wrap_wxIconFromLocation
, METH_VARARGS
| METH_KEYWORDS
},
12441 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12442 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12443 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12444 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12445 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12446 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12447 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12448 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12455 * This table is used by the pointer type-checker
12457 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12458 { "_signed_long","_long",0},
12459 { "_wxPrintQuality","_wxCoord",0},
12460 { "_wxPrintQuality","_int",0},
12461 { "_wxPrintQuality","_signed_int",0},
12462 { "_wxPrintQuality","_unsigned_int",0},
12463 { "_wxPrintQuality","_wxWindowID",0},
12464 { "_wxPrintQuality","_uint",0},
12465 { "_wxPrintQuality","_EBool",0},
12466 { "_wxPrintQuality","_size_t",0},
12467 { "_wxPrintQuality","_time_t",0},
12468 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12469 { "_byte","_unsigned_char",0},
12470 { "_long","_unsigned_long",0},
12471 { "_long","_signed_long",0},
12472 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12473 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12474 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12475 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12476 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12477 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12478 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12479 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12480 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
12481 { "_wxDC","_wxMirrorDC",SwigwxMirrorDCTowxDC
},
12482 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12483 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12484 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12485 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12486 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
12487 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
12488 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12489 { "_size_t","_wxCoord",0},
12490 { "_size_t","_wxPrintQuality",0},
12491 { "_size_t","_time_t",0},
12492 { "_size_t","_unsigned_int",0},
12493 { "_size_t","_int",0},
12494 { "_size_t","_wxWindowID",0},
12495 { "_size_t","_uint",0},
12496 { "_uint","_wxCoord",0},
12497 { "_uint","_wxPrintQuality",0},
12498 { "_uint","_time_t",0},
12499 { "_uint","_size_t",0},
12500 { "_uint","_unsigned_int",0},
12501 { "_uint","_int",0},
12502 { "_uint","_wxWindowID",0},
12503 { "_wxChar","_char",0},
12504 { "_char","_wxChar",0},
12505 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
12506 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12507 { "_EBool","_wxCoord",0},
12508 { "_EBool","_wxPrintQuality",0},
12509 { "_EBool","_signed_int",0},
12510 { "_EBool","_int",0},
12511 { "_EBool","_wxWindowID",0},
12512 { "_unsigned_long","_long",0},
12513 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12514 { "_signed_int","_wxCoord",0},
12515 { "_signed_int","_wxPrintQuality",0},
12516 { "_signed_int","_EBool",0},
12517 { "_signed_int","_wxWindowID",0},
12518 { "_signed_int","_int",0},
12519 { "_WXTYPE","_short",0},
12520 { "_WXTYPE","_signed_short",0},
12521 { "_WXTYPE","_unsigned_short",0},
12522 { "_unsigned_short","_WXTYPE",0},
12523 { "_unsigned_short","_short",0},
12524 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12525 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12526 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12527 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12528 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
12529 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
12530 { "_wxObject","_wxMirrorDC",SwigwxMirrorDCTowxObject
},
12531 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12532 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12533 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12534 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12535 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
12536 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
12537 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12538 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12539 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12540 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12541 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12542 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12543 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12544 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12545 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12546 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12547 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12548 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12549 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12550 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12551 { "_signed_short","_WXTYPE",0},
12552 { "_signed_short","_short",0},
12553 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
12554 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
12555 { "_unsigned_char","_byte",0},
12556 { "_unsigned_int","_wxCoord",0},
12557 { "_unsigned_int","_wxPrintQuality",0},
12558 { "_unsigned_int","_time_t",0},
12559 { "_unsigned_int","_size_t",0},
12560 { "_unsigned_int","_uint",0},
12561 { "_unsigned_int","_wxWindowID",0},
12562 { "_unsigned_int","_int",0},
12563 { "_short","_WXTYPE",0},
12564 { "_short","_unsigned_short",0},
12565 { "_short","_signed_short",0},
12566 { "_wxWindowID","_wxCoord",0},
12567 { "_wxWindowID","_wxPrintQuality",0},
12568 { "_wxWindowID","_time_t",0},
12569 { "_wxWindowID","_size_t",0},
12570 { "_wxWindowID","_EBool",0},
12571 { "_wxWindowID","_uint",0},
12572 { "_wxWindowID","_int",0},
12573 { "_wxWindowID","_signed_int",0},
12574 { "_wxWindowID","_unsigned_int",0},
12575 { "_int","_wxCoord",0},
12576 { "_int","_wxPrintQuality",0},
12577 { "_int","_time_t",0},
12578 { "_int","_size_t",0},
12579 { "_int","_EBool",0},
12580 { "_int","_uint",0},
12581 { "_int","_wxWindowID",0},
12582 { "_int","_unsigned_int",0},
12583 { "_int","_signed_int",0},
12584 { "_time_t","_wxCoord",0},
12585 { "_time_t","_wxPrintQuality",0},
12586 { "_time_t","_unsigned_int",0},
12587 { "_time_t","_int",0},
12588 { "_time_t","_wxWindowID",0},
12589 { "_time_t","_uint",0},
12590 { "_time_t","_size_t",0},
12591 { "_wxCoord","_int",0},
12592 { "_wxCoord","_signed_int",0},
12593 { "_wxCoord","_unsigned_int",0},
12594 { "_wxCoord","_wxWindowID",0},
12595 { "_wxCoord","_uint",0},
12596 { "_wxCoord","_EBool",0},
12597 { "_wxCoord","_size_t",0},
12598 { "_wxCoord","_time_t",0},
12599 { "_wxCoord","_wxPrintQuality",0},
12602 static PyObject
*SWIG_globals
;
12606 SWIGEXPORT(void) initgdic() {
12608 SWIG_globals
= SWIG_newvarlink();
12609 m
= Py_InitModule("gdic", gdicMethods
);
12610 d
= PyModule_GetDict(m
);
12611 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12612 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12613 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12614 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12615 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12616 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12617 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12618 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12619 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12620 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12621 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12622 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12623 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12624 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12625 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12626 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12627 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12628 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12629 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12630 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12631 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12632 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12633 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12634 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12635 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12636 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12637 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12638 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12639 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12640 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12641 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12642 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12643 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12644 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12645 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12646 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12647 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12648 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12649 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12650 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12651 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12652 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12653 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12654 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12655 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12656 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12657 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12658 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12659 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12660 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12661 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12662 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12663 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12664 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12665 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12666 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12667 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12670 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12671 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);