2 * FILE : src/mac/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
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
);
249 extern wxFont
* wxNORMAL_FONT
;
250 extern wxFont
* wxSMALL_FONT
;
251 extern wxFont
* wxITALIC_FONT
;
252 extern wxFont
* wxSWISS_FONT
;
253 extern wxPen
* wxRED_PEN
;
254 extern wxPen
* wxCYAN_PEN
;
255 extern wxPen
* wxGREEN_PEN
;
256 extern wxPen
* wxBLACK_PEN
;
257 extern wxPen
* wxWHITE_PEN
;
258 extern wxPen
* wxTRANSPARENT_PEN
;
259 extern wxPen
* wxBLACK_DASHED_PEN
;
260 extern wxPen
* wxGREY_PEN
;
261 extern wxPen
* wxMEDIUM_GREY_PEN
;
262 extern wxPen
* wxLIGHT_GREY_PEN
;
263 extern wxBrush
* wxBLUE_BRUSH
;
264 extern wxBrush
* wxGREEN_BRUSH
;
265 extern wxBrush
* wxWHITE_BRUSH
;
266 extern wxBrush
* wxBLACK_BRUSH
;
267 extern wxBrush
* wxTRANSPARENT_BRUSH
;
268 extern wxBrush
* wxCYAN_BRUSH
;
269 extern wxBrush
* wxRED_BRUSH
;
270 extern wxBrush
* wxGREY_BRUSH
;
271 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
272 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
273 extern wxColour
* wxBLACK
;
274 extern wxColour
* wxWHITE
;
275 extern wxColour
* wxRED
;
276 extern wxColour
* wxBLUE
;
277 extern wxColour
* wxGREEN
;
278 extern wxColour
* wxCYAN
;
279 extern wxColour
* wxLIGHT_GREY
;
280 extern wxCursor
* wxSTANDARD_CURSOR
;
281 extern wxCursor
* wxHOURGLASS_CURSOR
;
282 extern wxCursor
* wxCROSS_CURSOR
;
283 extern wxBitmap wxNullBitmap
;
284 extern wxIcon wxNullIcon
;
285 extern wxCursor wxNullCursor
;
286 extern wxPen wxNullPen
;
287 extern wxBrush wxNullBrush
;
288 extern wxPalette wxNullPalette
;
289 extern wxFont wxNullFont
;
290 extern wxColour wxNullColour
;
291 extern wxFontList
* wxTheFontList
;
292 extern wxPenList
* wxThePenList
;
293 extern wxBrushList
* wxTheBrushList
;
294 extern wxColourDatabase
* wxTheColourDatabase
;
300 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
301 PyObject
* _resultobj
;
305 int _arg2
= (int ) -1;
306 char *_kwnames
[] = { "width","height","depth", NULL
};
310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
314 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
316 wxPyEndAllowThreads(__tstate
);
317 if (PyErr_Occurred()) return NULL
;
319 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
320 _resultobj
= Py_BuildValue("s",_ptemp
);
323 _resultobj
= Py_None
;
328 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
329 PyObject
* _resultobj
;
332 PyObject
* _obj0
= 0;
333 char *_kwnames
[] = { "listOfStrings", NULL
};
337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
344 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
346 wxPyEndAllowThreads(__tstate
);
347 if (PyErr_Occurred()) return NULL
;
349 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
350 _resultobj
= Py_BuildValue("s",_ptemp
);
353 _resultobj
= Py_None
;
358 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
359 PyObject
* _resultobj
;
362 PyObject
* _argo0
= 0;
363 char *_kwnames
[] = { "icon", NULL
};
367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
370 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
377 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
379 wxPyEndAllowThreads(__tstate
);
380 if (PyErr_Occurred()) return NULL
;
382 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
383 _resultobj
= Py_BuildValue("s",_ptemp
);
386 _resultobj
= Py_None
;
391 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
392 PyObject
* _resultobj
;
397 int _arg3
= (int ) 1;
398 PyObject
* _obj0
= 0;
399 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxBitmapFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
410 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
412 wxPyEndAllowThreads(__tstate
);
413 if (PyErr_Occurred()) return NULL
;
415 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
416 _resultobj
= Py_BuildValue("s",_ptemp
);
419 _resultobj
= Py_None
;
424 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
425 PyObject
* _resultobj
;
429 PyObject
* _argo0
= 0;
431 PyObject
* _obj1
= 0;
432 char *_kwnames
[] = { "bitmap","colour", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
439 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
446 if (! wxColour_helper(_obj1
, &_arg1
))
450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
451 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
453 wxPyEndAllowThreads(__tstate
);
454 if (PyErr_Occurred()) return NULL
;
456 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
457 _resultobj
= Py_BuildValue("s",_ptemp
);
460 _resultobj
= Py_None
;
465 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
466 PyObject
* _resultobj
;
468 char *_kwnames
[] = { NULL
};
472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
476 _result
= (wxIcon
*)wxEmptyIcon();
478 wxPyEndAllowThreads(__tstate
);
479 if (PyErr_Occurred()) return NULL
;
481 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
482 _resultobj
= Py_BuildValue("s",_ptemp
);
485 _resultobj
= Py_None
;
490 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
491 PyObject
* _resultobj
;
494 PyObject
* _obj0
= 0;
495 char *_kwnames
[] = { "listOfStrings", NULL
};
499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
506 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
508 wxPyEndAllowThreads(__tstate
);
509 if (PyErr_Occurred()) return NULL
;
511 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
512 _resultobj
= Py_BuildValue("s",_ptemp
);
515 _resultobj
= Py_None
;
520 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
521 PyObject
* _resultobj
;
524 PyObject
* _argo0
= 0;
525 char *_kwnames
[] = { "bmp", NULL
};
529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
532 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
538 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
539 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
541 wxPyEndAllowThreads(__tstate
);
542 if (PyErr_Occurred()) return NULL
;
544 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
545 _resultobj
= Py_BuildValue("s",_ptemp
);
548 _resultobj
= Py_None
;
553 static PyObject
*_wrap_wxIconFromLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
554 PyObject
* _resultobj
;
556 wxIconLocation
* _arg0
;
557 PyObject
* _argo0
= 0;
558 char *_kwnames
[] = { "loc", NULL
};
562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromLocation",_kwnames
,&_argo0
))
565 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromLocation. Expected _wxIconLocation_p.");
571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
572 _result
= (wxIcon
*)wxIconFromLocation(*_arg0
);
574 wxPyEndAllowThreads(__tstate
);
575 if (PyErr_Occurred()) return NULL
;
577 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
578 _resultobj
= Py_BuildValue("s",_ptemp
);
581 _resultobj
= Py_None
;
586 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
587 PyObject
* _resultobj
;
590 char *_kwnames
[] = { "id", NULL
};
594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
598 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
600 wxPyEndAllowThreads(__tstate
);
601 if (PyErr_Occurred()) return NULL
;
603 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
604 _resultobj
= Py_BuildValue("s",_ptemp
);
607 _resultobj
= Py_None
;
612 static PyObject
*_wrap_wxCursorFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
613 PyObject
* _resultobj
;
616 PyObject
* _argo0
= 0;
617 char *_kwnames
[] = { "image", NULL
};
621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursorFromImage",_kwnames
,&_argo0
))
624 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
631 _result
= (wxCursor
*)wxCursorFromImage(*_arg0
);
633 wxPyEndAllowThreads(__tstate
);
634 if (PyErr_Occurred()) return NULL
;
636 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
637 _resultobj
= Py_BuildValue("s",_ptemp
);
640 _resultobj
= Py_None
;
645 static PyObject
*_wrap_wxCursorFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
646 PyObject
* _resultobj
;
651 int _arg3
= (int ) -1;
652 int _arg4
= (int ) -1;
653 PyObject
* _arg5
= (PyObject
*) 0;
654 PyObject
* _obj0
= 0;
655 PyObject
* _obj5
= 0;
656 char *_kwnames
[] = { "bits","width","height","hotSpotX","hotSpotY","maskBits", NULL
};
660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|iiO:wxCursorFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_obj5
))
670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
671 _result
= (wxCursor
*)wxCursorFromBits(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
673 wxPyEndAllowThreads(__tstate
);
674 if (PyErr_Occurred()) return NULL
;
676 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
677 _resultobj
= Py_BuildValue("s",_ptemp
);
680 _resultobj
= Py_None
;
685 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
686 PyObject
* _resultobj
;
689 PyObject
* _obj0
= 0;
690 char *_kwnames
[] = { "colorName", NULL
};
694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
697 _arg0
= wxString_in_helper(_obj0
);
702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
703 _result
= (wxColour
*)wxNamedColour(*_arg0
);
705 wxPyEndAllowThreads(__tstate
);
706 if (PyErr_Occurred()) return NULL
;
708 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
709 _resultobj
= Py_BuildValue("s",_ptemp
);
712 _resultobj
= Py_None
;
721 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
722 PyObject
* _resultobj
;
723 wxMemoryDC
* _result
;
725 PyObject
* _argo0
= 0;
726 char *_kwnames
[] = { "oldDC", NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
741 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
743 wxPyEndAllowThreads(__tstate
);
744 if (PyErr_Occurred()) return NULL
;
746 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
747 _resultobj
= Py_BuildValue("s",_ptemp
);
750 _resultobj
= Py_None
;
755 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
757 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
761 static PyObject
*_wrap_wxNORMAL_FONT_get() {
765 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
766 pyobj
= PyString_FromString(ptemp
);
770 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
772 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
776 static PyObject
*_wrap_wxSMALL_FONT_get() {
780 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
781 pyobj
= PyString_FromString(ptemp
);
785 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
787 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
791 static PyObject
*_wrap_wxITALIC_FONT_get() {
795 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
796 pyobj
= PyString_FromString(ptemp
);
800 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
802 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
806 static PyObject
*_wrap_wxSWISS_FONT_get() {
810 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
811 pyobj
= PyString_FromString(ptemp
);
815 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
817 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
821 static PyObject
*_wrap_wxRED_PEN_get() {
825 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
826 pyobj
= PyString_FromString(ptemp
);
830 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
832 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
836 static PyObject
*_wrap_wxCYAN_PEN_get() {
840 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
841 pyobj
= PyString_FromString(ptemp
);
845 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
847 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
851 static PyObject
*_wrap_wxGREEN_PEN_get() {
855 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
856 pyobj
= PyString_FromString(ptemp
);
860 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
862 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
866 static PyObject
*_wrap_wxBLACK_PEN_get() {
870 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
871 pyobj
= PyString_FromString(ptemp
);
875 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
877 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
881 static PyObject
*_wrap_wxWHITE_PEN_get() {
885 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
886 pyobj
= PyString_FromString(ptemp
);
890 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
892 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
896 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
900 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
901 pyobj
= PyString_FromString(ptemp
);
905 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
907 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
911 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
915 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
916 pyobj
= PyString_FromString(ptemp
);
920 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
922 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
926 static PyObject
*_wrap_wxGREY_PEN_get() {
930 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
931 pyobj
= PyString_FromString(ptemp
);
935 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
937 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
941 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
945 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
946 pyobj
= PyString_FromString(ptemp
);
950 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
952 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
956 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
960 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
961 pyobj
= PyString_FromString(ptemp
);
965 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
967 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
971 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
975 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
976 pyobj
= PyString_FromString(ptemp
);
980 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
982 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
986 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
990 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
991 pyobj
= PyString_FromString(ptemp
);
995 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
997 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
1001 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
1005 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
1006 pyobj
= PyString_FromString(ptemp
);
1010 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
1012 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
1016 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
1020 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
1021 pyobj
= PyString_FromString(ptemp
);
1025 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
1027 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
1031 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
1035 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
1036 pyobj
= PyString_FromString(ptemp
);
1040 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
1042 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
1046 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
1050 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
1051 pyobj
= PyString_FromString(ptemp
);
1055 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
1057 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
1061 static PyObject
*_wrap_wxRED_BRUSH_get() {
1065 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
1066 pyobj
= PyString_FromString(ptemp
);
1070 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
1072 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
1076 static PyObject
*_wrap_wxGREY_BRUSH_get() {
1080 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
1081 pyobj
= PyString_FromString(ptemp
);
1085 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
1087 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
1091 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
1095 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
1096 pyobj
= PyString_FromString(ptemp
);
1100 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
1102 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
1106 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
1110 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
1111 pyobj
= PyString_FromString(ptemp
);
1115 static int _wrap_wxBLACK_set(PyObject
*val
) {
1117 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
1121 static PyObject
*_wrap_wxBLACK_get() {
1125 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1126 pyobj
= PyString_FromString(ptemp
);
1130 static int _wrap_wxWHITE_set(PyObject
*val
) {
1132 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1136 static PyObject
*_wrap_wxWHITE_get() {
1140 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1141 pyobj
= PyString_FromString(ptemp
);
1145 static int _wrap_wxRED_set(PyObject
*val
) {
1147 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1151 static PyObject
*_wrap_wxRED_get() {
1155 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1156 pyobj
= PyString_FromString(ptemp
);
1160 static int _wrap_wxBLUE_set(PyObject
*val
) {
1162 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1166 static PyObject
*_wrap_wxBLUE_get() {
1170 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1171 pyobj
= PyString_FromString(ptemp
);
1175 static int _wrap_wxGREEN_set(PyObject
*val
) {
1177 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1181 static PyObject
*_wrap_wxGREEN_get() {
1185 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1186 pyobj
= PyString_FromString(ptemp
);
1190 static int _wrap_wxCYAN_set(PyObject
*val
) {
1192 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1196 static PyObject
*_wrap_wxCYAN_get() {
1200 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1201 pyobj
= PyString_FromString(ptemp
);
1205 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1207 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1211 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1215 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1216 pyobj
= PyString_FromString(ptemp
);
1220 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1222 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1226 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1230 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1231 pyobj
= PyString_FromString(ptemp
);
1235 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1237 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1241 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1245 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1246 pyobj
= PyString_FromString(ptemp
);
1250 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1252 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1256 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1260 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1261 pyobj
= PyString_FromString(ptemp
);
1265 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1267 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1271 static PyObject
*_wrap_wxNullBitmap_get() {
1275 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1276 pyobj
= PyString_FromString(ptemp
);
1280 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1282 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1286 static PyObject
*_wrap_wxNullIcon_get() {
1290 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1291 pyobj
= PyString_FromString(ptemp
);
1295 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1297 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1301 static PyObject
*_wrap_wxNullCursor_get() {
1305 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1306 pyobj
= PyString_FromString(ptemp
);
1310 static int _wrap_wxNullPen_set(PyObject
*val
) {
1312 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1316 static PyObject
*_wrap_wxNullPen_get() {
1320 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1321 pyobj
= PyString_FromString(ptemp
);
1325 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1327 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1331 static PyObject
*_wrap_wxNullBrush_get() {
1335 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1336 pyobj
= PyString_FromString(ptemp
);
1340 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1342 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1346 static PyObject
*_wrap_wxNullPalette_get() {
1350 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1351 pyobj
= PyString_FromString(ptemp
);
1355 static int _wrap_wxNullFont_set(PyObject
*val
) {
1357 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1361 static PyObject
*_wrap_wxNullFont_get() {
1365 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1366 pyobj
= PyString_FromString(ptemp
);
1370 static int _wrap_wxNullColour_set(PyObject
*val
) {
1372 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1376 static PyObject
*_wrap_wxNullColour_get() {
1380 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1381 pyobj
= PyString_FromString(ptemp
);
1385 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1387 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1391 static PyObject
*_wrap_wxTheFontList_get() {
1395 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1396 pyobj
= PyString_FromString(ptemp
);
1400 static int _wrap_wxThePenList_set(PyObject
*val
) {
1402 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1406 static PyObject
*_wrap_wxThePenList_get() {
1410 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1411 pyobj
= PyString_FromString(ptemp
);
1415 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1417 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1421 static PyObject
*_wrap_wxTheBrushList_get() {
1425 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1426 pyobj
= PyString_FromString(ptemp
);
1430 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1432 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1436 static PyObject
*_wrap_wxTheColourDatabase_get() {
1440 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1441 pyobj
= PyString_FromString(ptemp
);
1445 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1448 src
= (wxGDIObject
*) ptr
;
1449 dest
= (wxObject
*) src
;
1450 return (void *) dest
;
1453 #define new_wxGDIObject() (new wxGDIObject())
1454 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1455 PyObject
* _resultobj
;
1456 wxGDIObject
* _result
;
1457 char *_kwnames
[] = { NULL
};
1461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1465 _result
= (wxGDIObject
*)new_wxGDIObject();
1467 wxPyEndAllowThreads(__tstate
);
1468 if (PyErr_Occurred()) return NULL
;
1470 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1471 _resultobj
= Py_BuildValue("s",_ptemp
);
1474 _resultobj
= Py_None
;
1479 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1480 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1481 PyObject
* _resultobj
;
1482 wxGDIObject
* _arg0
;
1483 PyObject
* _argo0
= 0;
1484 char *_kwnames
[] = { "self", NULL
};
1487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1498 delete_wxGDIObject(_arg0
);
1500 wxPyEndAllowThreads(__tstate
);
1501 if (PyErr_Occurred()) return NULL
;
1502 } Py_INCREF(Py_None
);
1503 _resultobj
= Py_None
;
1507 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1508 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1509 PyObject
* _resultobj
;
1511 wxGDIObject
* _arg0
;
1512 PyObject
* _argo0
= 0;
1513 char *_kwnames
[] = { "self", NULL
};
1516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1527 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1529 wxPyEndAllowThreads(__tstate
);
1530 if (PyErr_Occurred()) return NULL
;
1531 } _resultobj
= Py_BuildValue("i",_result
);
1535 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1536 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1537 PyObject
* _resultobj
;
1538 wxGDIObject
* _arg0
;
1540 PyObject
* _argo0
= 0;
1542 char *_kwnames
[] = { "self","visible", NULL
};
1545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1554 _arg1
= (bool ) tempbool1
;
1556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1557 wxGDIObject_SetVisible(_arg0
,_arg1
);
1559 wxPyEndAllowThreads(__tstate
);
1560 if (PyErr_Occurred()) return NULL
;
1561 } Py_INCREF(Py_None
);
1562 _resultobj
= Py_None
;
1566 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1567 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1568 PyObject
* _resultobj
;
1570 wxGDIObject
* _arg0
;
1571 PyObject
* _argo0
= 0;
1572 char *_kwnames
[] = { "self", NULL
};
1575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1586 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1588 wxPyEndAllowThreads(__tstate
);
1589 if (PyErr_Occurred()) return NULL
;
1590 } _resultobj
= Py_BuildValue("i",_result
);
1594 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1597 src
= (wxBitmap
*) ptr
;
1598 dest
= (wxGDIObject
*) src
;
1599 return (void *) dest
;
1602 static void *SwigwxBitmapTowxObject(void *ptr
) {
1605 src
= (wxBitmap
*) ptr
;
1606 dest
= (wxObject
*) src
;
1607 return (void *) dest
;
1610 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1611 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1612 PyObject
* _resultobj
;
1615 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1616 PyObject
* _obj0
= 0;
1617 char *_kwnames
[] = { "name","type", NULL
};
1621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1624 _arg0
= wxString_in_helper(_obj0
);
1629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1630 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1632 wxPyEndAllowThreads(__tstate
);
1633 if (PyErr_Occurred()) return NULL
;
1635 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1636 _resultobj
= Py_BuildValue("s",_ptemp
);
1639 _resultobj
= Py_None
;
1648 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1649 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1650 PyObject
* _resultobj
;
1652 PyObject
* _argo0
= 0;
1653 char *_kwnames
[] = { "self", NULL
};
1656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1667 delete_wxBitmap(_arg0
);
1669 wxPyEndAllowThreads(__tstate
);
1670 if (PyErr_Occurred()) return NULL
;
1671 } Py_INCREF(Py_None
);
1672 _resultobj
= Py_None
;
1676 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1677 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1678 PyObject
* _resultobj
;
1679 wxPalette
* _result
;
1681 PyObject
* _argo0
= 0;
1682 char *_kwnames
[] = { "self", NULL
};
1686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1697 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1699 wxPyEndAllowThreads(__tstate
);
1700 if (PyErr_Occurred()) return NULL
;
1702 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1703 _resultobj
= Py_BuildValue("s",_ptemp
);
1706 _resultobj
= Py_None
;
1711 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1712 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1713 PyObject
* _resultobj
;
1716 PyObject
* _argo0
= 0;
1717 char *_kwnames
[] = { "self", NULL
};
1721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1732 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1734 wxPyEndAllowThreads(__tstate
);
1735 if (PyErr_Occurred()) return NULL
;
1737 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1738 _resultobj
= Py_BuildValue("s",_ptemp
);
1741 _resultobj
= Py_None
;
1746 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1747 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
* _resultobj
;
1752 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1753 PyObject
* _argo0
= 0;
1754 PyObject
* _obj1
= 0;
1755 char *_kwnames
[] = { "self","name","type", NULL
};
1758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1768 _arg1
= wxString_in_helper(_obj1
);
1773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1774 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1776 wxPyEndAllowThreads(__tstate
);
1777 if (PyErr_Occurred()) return NULL
;
1778 } _resultobj
= Py_BuildValue("i",_result
);
1786 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1787 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1788 PyObject
* _resultobj
;
1793 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1794 PyObject
* _argo0
= 0;
1795 PyObject
* _obj1
= 0;
1796 PyObject
* _argo3
= 0;
1797 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1810 _arg1
= wxString_in_helper(_obj1
);
1815 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1816 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1823 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1825 wxPyEndAllowThreads(__tstate
);
1826 if (PyErr_Occurred()) return NULL
;
1827 } _resultobj
= Py_BuildValue("i",_result
);
1835 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1836 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1837 PyObject
* _resultobj
;
1840 PyObject
* _argo0
= 0;
1841 PyObject
* _argo1
= 0;
1842 char *_kwnames
[] = { "self","mask", NULL
};
1845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1855 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1856 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1863 wxBitmap_SetMask(_arg0
,_arg1
);
1865 wxPyEndAllowThreads(__tstate
);
1866 if (PyErr_Occurred()) return NULL
;
1867 } Py_INCREF(Py_None
);
1868 _resultobj
= Py_None
;
1872 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1873 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1874 PyObject
* _resultobj
;
1877 PyObject
* _argo0
= 0;
1878 char *_kwnames
[] = { "self", NULL
};
1881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1892 _result
= (bool )wxBitmap_Ok(_arg0
);
1894 wxPyEndAllowThreads(__tstate
);
1895 if (PyErr_Occurred()) return NULL
;
1896 } _resultobj
= Py_BuildValue("i",_result
);
1900 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1901 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
* _resultobj
;
1905 PyObject
* _argo0
= 0;
1906 char *_kwnames
[] = { "self", NULL
};
1909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1920 _result
= (int )wxBitmap_GetWidth(_arg0
);
1922 wxPyEndAllowThreads(__tstate
);
1923 if (PyErr_Occurred()) return NULL
;
1924 } _resultobj
= Py_BuildValue("i",_result
);
1928 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1929 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1930 PyObject
* _resultobj
;
1933 PyObject
* _argo0
= 0;
1934 char *_kwnames
[] = { "self", NULL
};
1937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1948 _result
= (int )wxBitmap_GetHeight(_arg0
);
1950 wxPyEndAllowThreads(__tstate
);
1951 if (PyErr_Occurred()) return NULL
;
1952 } _resultobj
= Py_BuildValue("i",_result
);
1956 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1957 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
* _resultobj
;
1961 PyObject
* _argo0
= 0;
1962 char *_kwnames
[] = { "self", NULL
};
1965 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1968 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1969 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1976 _result
= (int )wxBitmap_GetDepth(_arg0
);
1978 wxPyEndAllowThreads(__tstate
);
1979 if (PyErr_Occurred()) return NULL
;
1980 } _resultobj
= Py_BuildValue("i",_result
);
1984 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1985 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1986 PyObject
* _resultobj
;
1989 PyObject
* _argo0
= 0;
1990 char *_kwnames
[] = { "self","w", NULL
};
1993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
2003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2004 wxBitmap_SetWidth(_arg0
,_arg1
);
2006 wxPyEndAllowThreads(__tstate
);
2007 if (PyErr_Occurred()) return NULL
;
2008 } Py_INCREF(Py_None
);
2009 _resultobj
= Py_None
;
2013 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2014 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2015 PyObject
* _resultobj
;
2018 PyObject
* _argo0
= 0;
2019 char *_kwnames
[] = { "self","h", NULL
};
2022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2033 wxBitmap_SetHeight(_arg0
,_arg1
);
2035 wxPyEndAllowThreads(__tstate
);
2036 if (PyErr_Occurred()) return NULL
;
2037 } Py_INCREF(Py_None
);
2038 _resultobj
= Py_None
;
2042 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2043 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2044 PyObject
* _resultobj
;
2047 PyObject
* _argo0
= 0;
2048 char *_kwnames
[] = { "self","d", NULL
};
2051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2062 wxBitmap_SetDepth(_arg0
,_arg1
);
2064 wxPyEndAllowThreads(__tstate
);
2065 if (PyErr_Occurred()) return NULL
;
2066 } Py_INCREF(Py_None
);
2067 _resultobj
= Py_None
;
2071 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2072 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2073 PyObject
* _resultobj
;
2077 PyObject
* _argo0
= 0;
2079 PyObject
* _obj1
= 0;
2080 char *_kwnames
[] = { "self","rect", NULL
};
2084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2095 if (! wxRect_helper(_obj1
, &_arg1
))
2099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2100 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2102 wxPyEndAllowThreads(__tstate
);
2103 if (PyErr_Occurred()) return NULL
;
2104 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2105 _resultobj
= Py_BuildValue("s",_ptemp
);
2109 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2110 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2111 PyObject
* _resultobj
;
2115 PyObject
* _argo0
= 0;
2116 PyObject
* _argo1
= 0;
2117 char *_kwnames
[] = { "self","icon", NULL
};
2120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2130 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2137 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2139 wxPyEndAllowThreads(__tstate
);
2140 if (PyErr_Occurred()) return NULL
;
2141 } _resultobj
= Py_BuildValue("i",_result
);
2145 static void *SwigwxMaskTowxObject(void *ptr
) {
2148 src
= (wxMask
*) ptr
;
2149 dest
= (wxObject
*) src
;
2150 return (void *) dest
;
2153 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2154 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2158 PyObject
* _argo0
= 0;
2159 char *_kwnames
[] = { "bitmap", NULL
};
2163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2166 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2173 _result
= (wxMask
*)new_wxMask(*_arg0
);
2175 wxPyEndAllowThreads(__tstate
);
2176 if (PyErr_Occurred()) return NULL
;
2178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2179 _resultobj
= Py_BuildValue("s",_ptemp
);
2182 _resultobj
= Py_None
;
2187 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2188 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2189 PyObject
* _resultobj
;
2191 PyObject
* _argo0
= 0;
2192 char *_kwnames
[] = { "self", NULL
};
2195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2206 wxMask_Destroy(_arg0
);
2208 wxPyEndAllowThreads(__tstate
);
2209 if (PyErr_Occurred()) return NULL
;
2210 } Py_INCREF(Py_None
);
2211 _resultobj
= Py_None
;
2215 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2218 src
= (wxIcon
*) ptr
;
2219 dest
= (wxGDIObject
*) src
;
2220 return (void *) dest
;
2223 static void *SwigwxIconTowxObject(void *ptr
) {
2226 src
= (wxIcon
*) ptr
;
2227 dest
= (wxObject
*) src
;
2228 return (void *) dest
;
2231 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2232 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2233 PyObject
* _resultobj
;
2237 int _arg2
= (int ) -1;
2238 int _arg3
= (int ) -1;
2239 PyObject
* _obj0
= 0;
2240 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2247 _arg0
= wxString_in_helper(_obj0
);
2252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2253 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2255 wxPyEndAllowThreads(__tstate
);
2256 if (PyErr_Occurred()) return NULL
;
2258 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2259 _resultobj
= Py_BuildValue("s",_ptemp
);
2262 _resultobj
= Py_None
;
2271 #define delete_wxIcon(_swigobj) (delete _swigobj)
2272 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2273 PyObject
* _resultobj
;
2275 PyObject
* _argo0
= 0;
2276 char *_kwnames
[] = { "self", NULL
};
2279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2290 delete_wxIcon(_arg0
);
2292 wxPyEndAllowThreads(__tstate
);
2293 if (PyErr_Occurred()) return NULL
;
2294 } Py_INCREF(Py_None
);
2295 _resultobj
= Py_None
;
2299 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2300 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2301 PyObject
* _resultobj
;
2304 PyObject
* _argo0
= 0;
2305 char *_kwnames
[] = { "self", NULL
};
2308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2319 _result
= (bool )wxIcon_Ok(_arg0
);
2321 wxPyEndAllowThreads(__tstate
);
2322 if (PyErr_Occurred()) return NULL
;
2323 } _resultobj
= Py_BuildValue("i",_result
);
2327 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2328 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2329 PyObject
* _resultobj
;
2332 PyObject
* _argo0
= 0;
2333 char *_kwnames
[] = { "self", NULL
};
2336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2347 _result
= (int )wxIcon_GetWidth(_arg0
);
2349 wxPyEndAllowThreads(__tstate
);
2350 if (PyErr_Occurred()) return NULL
;
2351 } _resultobj
= Py_BuildValue("i",_result
);
2355 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2356 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2357 PyObject
* _resultobj
;
2360 PyObject
* _argo0
= 0;
2361 char *_kwnames
[] = { "self", NULL
};
2364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2375 _result
= (int )wxIcon_GetHeight(_arg0
);
2377 wxPyEndAllowThreads(__tstate
);
2378 if (PyErr_Occurred()) return NULL
;
2379 } _resultobj
= Py_BuildValue("i",_result
);
2383 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2384 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2385 PyObject
* _resultobj
;
2388 PyObject
* _argo0
= 0;
2389 char *_kwnames
[] = { "self", NULL
};
2392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2403 _result
= (int )wxIcon_GetDepth(_arg0
);
2405 wxPyEndAllowThreads(__tstate
);
2406 if (PyErr_Occurred()) return NULL
;
2407 } _resultobj
= Py_BuildValue("i",_result
);
2411 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2412 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2413 PyObject
* _resultobj
;
2416 PyObject
* _argo0
= 0;
2417 char *_kwnames
[] = { "self","w", NULL
};
2420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2431 wxIcon_SetWidth(_arg0
,_arg1
);
2433 wxPyEndAllowThreads(__tstate
);
2434 if (PyErr_Occurred()) return NULL
;
2435 } Py_INCREF(Py_None
);
2436 _resultobj
= Py_None
;
2440 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2441 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2442 PyObject
* _resultobj
;
2445 PyObject
* _argo0
= 0;
2446 char *_kwnames
[] = { "self","h", NULL
};
2449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2460 wxIcon_SetHeight(_arg0
,_arg1
);
2462 wxPyEndAllowThreads(__tstate
);
2463 if (PyErr_Occurred()) return NULL
;
2464 } Py_INCREF(Py_None
);
2465 _resultobj
= Py_None
;
2469 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2470 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2471 PyObject
* _resultobj
;
2474 PyObject
* _argo0
= 0;
2475 char *_kwnames
[] = { "self","d", NULL
};
2478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2489 wxIcon_SetDepth(_arg0
,_arg1
);
2491 wxPyEndAllowThreads(__tstate
);
2492 if (PyErr_Occurred()) return NULL
;
2493 } Py_INCREF(Py_None
);
2494 _resultobj
= Py_None
;
2498 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2499 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2500 PyObject
* _resultobj
;
2503 PyObject
* _argo0
= 0;
2504 PyObject
* _argo1
= 0;
2505 char *_kwnames
[] = { "self","bmp", NULL
};
2508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2518 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2525 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2527 wxPyEndAllowThreads(__tstate
);
2528 if (PyErr_Occurred()) return NULL
;
2529 } Py_INCREF(Py_None
);
2530 _resultobj
= Py_None
;
2534 static wxIconLocation
*new_wxIconLocation(const wxString
*filename
,int num
) {
2536 return new wxIconLocation(*filename
, num
);
2538 return new wxIconLocation(*filename
);
2542 static PyObject
*_wrap_new_wxIconLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2543 PyObject
* _resultobj
;
2544 wxIconLocation
* _result
;
2545 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
2546 int _arg1
= (int ) 0;
2547 PyObject
* _obj0
= 0;
2548 char *_kwnames
[] = { "filename","num", NULL
};
2552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Oi:new_wxIconLocation",_kwnames
,&_obj0
,&_arg1
))
2556 _arg0
= wxString_in_helper(_obj0
);
2561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2562 _result
= (wxIconLocation
*)new_wxIconLocation(_arg0
,_arg1
);
2564 wxPyEndAllowThreads(__tstate
);
2565 if (PyErr_Occurred()) return NULL
;
2567 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconLocation_p");
2568 _resultobj
= Py_BuildValue("s",_ptemp
);
2571 _resultobj
= Py_None
;
2580 #define delete_wxIconLocation(_swigobj) (delete _swigobj)
2581 static PyObject
*_wrap_delete_wxIconLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2583 wxIconLocation
* _arg0
;
2584 PyObject
* _argo0
= 0;
2585 char *_kwnames
[] = { "self", NULL
};
2588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconLocation",_kwnames
,&_argo0
))
2591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconLocation. Expected _wxIconLocation_p.");
2598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2599 delete_wxIconLocation(_arg0
);
2601 wxPyEndAllowThreads(__tstate
);
2602 if (PyErr_Occurred()) return NULL
;
2603 } Py_INCREF(Py_None
);
2604 _resultobj
= Py_None
;
2608 #define wxIconLocation_IsOk(_swigobj) (_swigobj->IsOk())
2609 static PyObject
*_wrap_wxIconLocation_IsOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2612 wxIconLocation
* _arg0
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconLocation_IsOk",_kwnames
,&_argo0
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_IsOk. Expected _wxIconLocation_p.");
2627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2628 _result
= (bool )wxIconLocation_IsOk(_arg0
);
2630 wxPyEndAllowThreads(__tstate
);
2631 if (PyErr_Occurred()) return NULL
;
2632 } _resultobj
= Py_BuildValue("i",_result
);
2636 #define wxIconLocation_SetFileName(_swigobj,_swigarg0) (_swigobj->SetFileName(_swigarg0))
2637 static PyObject
*_wrap_wxIconLocation_SetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2638 PyObject
* _resultobj
;
2639 wxIconLocation
* _arg0
;
2641 PyObject
* _argo0
= 0;
2642 PyObject
* _obj1
= 0;
2643 char *_kwnames
[] = { "self","filename", NULL
};
2646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconLocation_SetFileName",_kwnames
,&_argo0
,&_obj1
))
2649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_SetFileName. Expected _wxIconLocation_p.");
2656 _arg1
= wxString_in_helper(_obj1
);
2661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2662 wxIconLocation_SetFileName(_arg0
,*_arg1
);
2664 wxPyEndAllowThreads(__tstate
);
2665 if (PyErr_Occurred()) return NULL
;
2666 } Py_INCREF(Py_None
);
2667 _resultobj
= Py_None
;
2675 #define wxIconLocation_GetFileName(_swigobj) (_swigobj->GetFileName())
2676 static PyObject
*_wrap_wxIconLocation_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2677 PyObject
* _resultobj
;
2679 wxIconLocation
* _arg0
;
2680 PyObject
* _argo0
= 0;
2681 char *_kwnames
[] = { "self", NULL
};
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconLocation_GetFileName",_kwnames
,&_argo0
))
2687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_GetFileName. Expected _wxIconLocation_p.");
2694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2695 const wxString
& _result_ref
= wxIconLocation_GetFileName(_arg0
);
2696 _result
= (wxString
*) &_result_ref
;
2698 wxPyEndAllowThreads(__tstate
);
2699 if (PyErr_Occurred()) return NULL
;
2702 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2704 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2710 static void wxIconLocation_SetIndex(wxIconLocation
*self
,int num
) {
2712 self
->SetIndex(num
);
2717 static PyObject
*_wrap_wxIconLocation_SetIndex(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2718 PyObject
* _resultobj
;
2719 wxIconLocation
* _arg0
;
2721 PyObject
* _argo0
= 0;
2722 char *_kwnames
[] = { "self","num", NULL
};
2725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIconLocation_SetIndex",_kwnames
,&_argo0
,&_arg1
))
2728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_SetIndex. Expected _wxIconLocation_p.");
2735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2736 wxIconLocation_SetIndex(_arg0
,_arg1
);
2738 wxPyEndAllowThreads(__tstate
);
2739 if (PyErr_Occurred()) return NULL
;
2740 } Py_INCREF(Py_None
);
2741 _resultobj
= Py_None
;
2745 static int wxIconLocation_GetIndex(wxIconLocation
*self
) {
2747 return self
->GetIndex();
2752 static PyObject
*_wrap_wxIconLocation_GetIndex(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2753 PyObject
* _resultobj
;
2755 wxIconLocation
* _arg0
;
2756 PyObject
* _argo0
= 0;
2757 char *_kwnames
[] = { "self", NULL
};
2760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconLocation_GetIndex",_kwnames
,&_argo0
))
2763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconLocation_p")) {
2765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconLocation_GetIndex. Expected _wxIconLocation_p.");
2770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2771 _result
= (int )wxIconLocation_GetIndex(_arg0
);
2773 wxPyEndAllowThreads(__tstate
);
2774 if (PyErr_Occurred()) return NULL
;
2775 } _resultobj
= Py_BuildValue("i",_result
);
2779 #define new_wxIconBundle() (new wxIconBundle())
2780 static PyObject
*_wrap_new_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2781 PyObject
* _resultobj
;
2782 wxIconBundle
* _result
;
2783 char *_kwnames
[] = { NULL
};
2787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxIconBundle",_kwnames
))
2790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2791 _result
= (wxIconBundle
*)new_wxIconBundle();
2793 wxPyEndAllowThreads(__tstate
);
2794 if (PyErr_Occurred()) return NULL
;
2796 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2797 _resultobj
= Py_BuildValue("s",_ptemp
);
2800 _resultobj
= Py_None
;
2805 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2806 static PyObject
*_wrap_new_wxIconBundleFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2807 PyObject
* _resultobj
;
2808 wxIconBundle
* _result
;
2811 PyObject
* _obj0
= 0;
2812 char *_kwnames
[] = { "file","type", NULL
};
2816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxIconBundleFromFile",_kwnames
,&_obj0
,&_arg1
))
2819 _arg0
= wxString_in_helper(_obj0
);
2824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2825 _result
= (wxIconBundle
*)new_wxIconBundleFromFile(*_arg0
,_arg1
);
2827 wxPyEndAllowThreads(__tstate
);
2828 if (PyErr_Occurred()) return NULL
;
2830 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2831 _resultobj
= Py_BuildValue("s",_ptemp
);
2834 _resultobj
= Py_None
;
2843 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2844 static PyObject
*_wrap_new_wxIconBundleFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2845 PyObject
* _resultobj
;
2846 wxIconBundle
* _result
;
2848 PyObject
* _argo0
= 0;
2849 char *_kwnames
[] = { "icon", NULL
};
2853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxIconBundleFromIcon",_kwnames
,&_argo0
))
2856 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
2862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2863 _result
= (wxIconBundle
*)new_wxIconBundleFromIcon(*_arg0
);
2865 wxPyEndAllowThreads(__tstate
);
2866 if (PyErr_Occurred()) return NULL
;
2868 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2869 _resultobj
= Py_BuildValue("s",_ptemp
);
2872 _resultobj
= Py_None
;
2877 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
2878 static PyObject
*_wrap_delete_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2879 PyObject
* _resultobj
;
2880 wxIconBundle
* _arg0
;
2881 PyObject
* _argo0
= 0;
2882 char *_kwnames
[] = { "self", NULL
};
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconBundle",_kwnames
,&_argo0
))
2888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
2895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2896 delete_wxIconBundle(_arg0
);
2898 wxPyEndAllowThreads(__tstate
);
2899 if (PyErr_Occurred()) return NULL
;
2900 } Py_INCREF(Py_None
);
2901 _resultobj
= Py_None
;
2905 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2906 static PyObject
*_wrap_wxIconBundle_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2907 PyObject
* _resultobj
;
2908 wxIconBundle
* _arg0
;
2910 PyObject
* _argo0
= 0;
2911 PyObject
* _argo1
= 0;
2912 char *_kwnames
[] = { "self","icon", NULL
};
2915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_AddIcon",_kwnames
,&_argo0
,&_argo1
))
2918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
2925 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
2931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2932 wxIconBundle_AddIcon(_arg0
,*_arg1
);
2934 wxPyEndAllowThreads(__tstate
);
2935 if (PyErr_Occurred()) return NULL
;
2936 } Py_INCREF(Py_None
);
2937 _resultobj
= Py_None
;
2941 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2942 static PyObject
*_wrap_wxIconBundle_AddIconFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2943 PyObject
* _resultobj
;
2944 wxIconBundle
* _arg0
;
2947 PyObject
* _argo0
= 0;
2948 PyObject
* _obj1
= 0;
2949 char *_kwnames
[] = { "self","file","type", NULL
};
2952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIconBundle_AddIconFromFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
2962 _arg1
= wxString_in_helper(_obj1
);
2967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2968 wxIconBundle_AddIconFromFile(_arg0
,*_arg1
,_arg2
);
2970 wxPyEndAllowThreads(__tstate
);
2971 if (PyErr_Occurred()) return NULL
;
2972 } Py_INCREF(Py_None
);
2973 _resultobj
= Py_None
;
2981 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
2982 static PyObject
*_wrap_wxIconBundle_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2983 PyObject
* _resultobj
;
2985 wxIconBundle
* _arg0
;
2987 PyObject
* _argo0
= 0;
2989 PyObject
* _obj1
= 0;
2990 char *_kwnames
[] = { "self","size", NULL
};
2994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_GetIcon",_kwnames
,&_argo0
,&_obj1
))
2997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
3005 if (! wxSize_helper(_obj1
, &_arg1
))
3009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3010 const wxIcon
& _result_ref
= wxIconBundle_GetIcon(_arg0
,*_arg1
);
3011 _result
= (wxIcon
*) &_result_ref
;
3013 wxPyEndAllowThreads(__tstate
);
3014 if (PyErr_Occurred()) return NULL
;
3016 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
3017 _resultobj
= Py_BuildValue("s",_ptemp
);
3020 _resultobj
= Py_None
;
3025 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
3028 src
= (wxCursor
*) ptr
;
3029 dest
= (wxGDIObject
*) src
;
3030 return (void *) dest
;
3033 static void *SwigwxCursorTowxObject(void *ptr
) {
3036 src
= (wxCursor
*) ptr
;
3037 dest
= (wxObject
*) src
;
3038 return (void *) dest
;
3041 static wxCursor
*new_wxCursor(const wxString
*cursorName
,long flags
,int hotSpotX
,int hotSpotY
) {
3043 wxCHECK_MSG(FALSE
, NULL
,
3044 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
3046 return new wxCursor(*cursorName
, flags
, hotSpotX
, hotSpotY
);
3050 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3051 PyObject
* _resultobj
;
3055 int _arg2
= (int ) 0;
3056 int _arg3
= (int ) 0;
3057 PyObject
* _obj0
= 0;
3058 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
3062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3065 _arg0
= wxString_in_helper(_obj0
);
3070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3071 _result
= (wxCursor
*)new_wxCursor(_arg0
,_arg1
,_arg2
,_arg3
);
3073 wxPyEndAllowThreads(__tstate
);
3074 if (PyErr_Occurred()) return NULL
;
3076 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
3077 _resultobj
= Py_BuildValue("s",_ptemp
);
3080 _resultobj
= Py_None
;
3089 #define delete_wxCursor(_swigobj) (delete _swigobj)
3090 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3091 PyObject
* _resultobj
;
3093 PyObject
* _argo0
= 0;
3094 char *_kwnames
[] = { "self", NULL
};
3097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
3100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
3107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3108 delete_wxCursor(_arg0
);
3110 wxPyEndAllowThreads(__tstate
);
3111 if (PyErr_Occurred()) return NULL
;
3112 } Py_INCREF(Py_None
);
3113 _resultobj
= Py_None
;
3117 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
3118 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3119 PyObject
* _resultobj
;
3122 PyObject
* _argo0
= 0;
3123 char *_kwnames
[] = { "self", NULL
};
3126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
3129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3137 _result
= (bool )wxCursor_Ok(_arg0
);
3139 wxPyEndAllowThreads(__tstate
);
3140 if (PyErr_Occurred()) return NULL
;
3141 } _resultobj
= Py_BuildValue("i",_result
);
3145 static void *SwigwxColourTowxObject(void *ptr
) {
3148 src
= (wxColour
*) ptr
;
3149 dest
= (wxObject
*) src
;
3150 return (void *) dest
;
3153 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3154 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3155 PyObject
* _resultobj
;
3157 unsigned char _arg0
= (unsigned char ) 0;
3158 unsigned char _arg1
= (unsigned char ) 0;
3159 unsigned char _arg2
= (unsigned char ) 0;
3160 char *_kwnames
[] = { "red","green","blue", NULL
};
3164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3168 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3170 wxPyEndAllowThreads(__tstate
);
3171 if (PyErr_Occurred()) return NULL
;
3173 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3174 _resultobj
= Py_BuildValue("s",_ptemp
);
3177 _resultobj
= Py_None
;
3182 #define delete_wxColour(_swigobj) (delete _swigobj)
3183 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3184 PyObject
* _resultobj
;
3187 PyObject
* _obj0
= 0;
3188 char *_kwnames
[] = { "self", NULL
};
3191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3195 if (! wxColour_helper(_obj0
, &_arg0
))
3199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3200 delete_wxColour(_arg0
);
3202 wxPyEndAllowThreads(__tstate
);
3203 if (PyErr_Occurred()) return NULL
;
3204 } Py_INCREF(Py_None
);
3205 _resultobj
= Py_None
;
3209 #define wxColour_Red(_swigobj) (_swigobj->Red())
3210 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3211 PyObject
* _resultobj
;
3212 unsigned char _result
;
3215 PyObject
* _obj0
= 0;
3216 char *_kwnames
[] = { "self", NULL
};
3219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3223 if (! wxColour_helper(_obj0
, &_arg0
))
3227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3228 _result
= (unsigned char )wxColour_Red(_arg0
);
3230 wxPyEndAllowThreads(__tstate
);
3231 if (PyErr_Occurred()) return NULL
;
3232 } _resultobj
= Py_BuildValue("b",_result
);
3236 #define wxColour_Green(_swigobj) (_swigobj->Green())
3237 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3238 PyObject
* _resultobj
;
3239 unsigned char _result
;
3242 PyObject
* _obj0
= 0;
3243 char *_kwnames
[] = { "self", NULL
};
3246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3250 if (! wxColour_helper(_obj0
, &_arg0
))
3254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3255 _result
= (unsigned char )wxColour_Green(_arg0
);
3257 wxPyEndAllowThreads(__tstate
);
3258 if (PyErr_Occurred()) return NULL
;
3259 } _resultobj
= Py_BuildValue("b",_result
);
3263 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3264 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3265 PyObject
* _resultobj
;
3266 unsigned char _result
;
3269 PyObject
* _obj0
= 0;
3270 char *_kwnames
[] = { "self", NULL
};
3273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3277 if (! wxColour_helper(_obj0
, &_arg0
))
3281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3282 _result
= (unsigned char )wxColour_Blue(_arg0
);
3284 wxPyEndAllowThreads(__tstate
);
3285 if (PyErr_Occurred()) return NULL
;
3286 } _resultobj
= Py_BuildValue("b",_result
);
3290 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3291 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3292 PyObject
* _resultobj
;
3296 PyObject
* _obj0
= 0;
3297 char *_kwnames
[] = { "self", NULL
};
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3304 if (! wxColour_helper(_obj0
, &_arg0
))
3308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3309 _result
= (bool )wxColour_Ok(_arg0
);
3311 wxPyEndAllowThreads(__tstate
);
3312 if (PyErr_Occurred()) return NULL
;
3313 } _resultobj
= Py_BuildValue("i",_result
);
3317 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3318 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3319 PyObject
* _resultobj
;
3321 unsigned char _arg1
;
3322 unsigned char _arg2
;
3323 unsigned char _arg3
;
3325 PyObject
* _obj0
= 0;
3326 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3333 if (! wxColour_helper(_obj0
, &_arg0
))
3337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3338 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3340 wxPyEndAllowThreads(__tstate
);
3341 if (PyErr_Occurred()) return NULL
;
3342 } Py_INCREF(Py_None
);
3343 _resultobj
= Py_None
;
3347 static PyObject
* wxColour_Get(wxColour
*self
) {
3348 PyObject
* rv
= PyTuple_New(3);
3354 green
= self
->Green();
3355 blue
= self
->Blue();
3357 PyTuple_SetItem(rv
, 0, PyInt_FromLong(red
));
3358 PyTuple_SetItem(rv
, 1, PyInt_FromLong(green
));
3359 PyTuple_SetItem(rv
, 2, PyInt_FromLong(blue
));
3362 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3363 PyObject
* _resultobj
;
3367 PyObject
* _obj0
= 0;
3368 char *_kwnames
[] = { "self", NULL
};
3371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3375 if (! wxColour_helper(_obj0
, &_arg0
))
3379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3380 _result
= (PyObject
*)wxColour_Get(_arg0
);
3382 wxPyEndAllowThreads(__tstate
);
3383 if (PyErr_Occurred()) return NULL
;
3385 _resultobj
= _result
;
3390 static bool wxColour___eq__(wxColour
*self
,PyObject
* obj
) {
3392 wxColour
* ptr
= &tmp
;
3393 if (obj
== Py_None
) return FALSE
;
3394 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
3395 if (! success
) return FALSE
;
3396 return *self
== *ptr
;
3398 static PyObject
*_wrap_wxColour___eq__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3399 PyObject
* _resultobj
;
3404 PyObject
* _obj0
= 0;
3405 PyObject
* _obj1
= 0;
3406 char *_kwnames
[] = { "self","obj", NULL
};
3409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___eq__",_kwnames
,&_obj0
,&_obj1
))
3413 if (! wxColour_helper(_obj0
, &_arg0
))
3420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3421 _result
= (bool )wxColour___eq__(_arg0
,_arg1
);
3423 wxPyEndAllowThreads(__tstate
);
3424 if (PyErr_Occurred()) return NULL
;
3425 } _resultobj
= Py_BuildValue("i",_result
);
3429 static bool wxColour___ne__(wxColour
*self
,PyObject
* obj
) {
3431 wxColour
* ptr
= &tmp
;
3432 if (obj
== Py_None
) return TRUE
;
3433 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
3434 if (! success
) return TRUE
;
3435 return *self
!= *ptr
;
3437 static PyObject
*_wrap_wxColour___ne__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3438 PyObject
* _resultobj
;
3443 PyObject
* _obj0
= 0;
3444 PyObject
* _obj1
= 0;
3445 char *_kwnames
[] = { "self","obj", NULL
};
3448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___ne__",_kwnames
,&_obj0
,&_obj1
))
3452 if (! wxColour_helper(_obj0
, &_arg0
))
3459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3460 _result
= (bool )wxColour___ne__(_arg0
,_arg1
);
3462 wxPyEndAllowThreads(__tstate
);
3463 if (PyErr_Occurred()) return NULL
;
3464 } _resultobj
= Py_BuildValue("i",_result
);
3468 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
3469 wxColourDatabase
*src
;
3471 src
= (wxColourDatabase
*) ptr
;
3472 dest
= (wxObject
*) src
;
3473 return (void *) dest
;
3476 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3477 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3478 PyObject
* _resultobj
;
3480 wxColourDatabase
* _arg0
;
3482 PyObject
* _argo0
= 0;
3483 PyObject
* _obj1
= 0;
3484 char *_kwnames
[] = { "self","colour", NULL
};
3488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3498 _arg1
= wxString_in_helper(_obj1
);
3503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3504 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3506 wxPyEndAllowThreads(__tstate
);
3507 if (PyErr_Occurred()) return NULL
;
3509 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3510 _resultobj
= Py_BuildValue("s",_ptemp
);
3513 _resultobj
= Py_None
;
3522 #define wxColourDatabase_FindColourNoAdd(_swigobj,_swigarg0) (_swigobj->FindColourNoAdd(_swigarg0))
3523 static PyObject
*_wrap_wxColourDatabase_FindColourNoAdd(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3524 PyObject
* _resultobj
;
3526 wxColourDatabase
* _arg0
;
3528 PyObject
* _argo0
= 0;
3529 PyObject
* _obj1
= 0;
3530 char *_kwnames
[] = { "self","colour", NULL
};
3534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColourNoAdd",_kwnames
,&_argo0
,&_obj1
))
3537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColourNoAdd. Expected _wxColourDatabase_p.");
3544 _arg1
= wxString_in_helper(_obj1
);
3549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3550 _result
= (wxColour
*)wxColourDatabase_FindColourNoAdd(_arg0
,*_arg1
);
3552 wxPyEndAllowThreads(__tstate
);
3553 if (PyErr_Occurred()) return NULL
;
3555 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3556 _resultobj
= Py_BuildValue("s",_ptemp
);
3559 _resultobj
= Py_None
;
3568 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3569 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3570 PyObject
* _resultobj
;
3572 wxColourDatabase
* _arg0
;
3574 PyObject
* _argo0
= 0;
3576 PyObject
* _obj1
= 0;
3577 char *_kwnames
[] = { "self","colour", NULL
};
3580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3591 if (! wxColour_helper(_obj1
, &_arg1
))
3595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3596 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3598 wxPyEndAllowThreads(__tstate
);
3599 if (PyErr_Occurred()) return NULL
;
3602 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3604 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3613 static void wxColourDatabase_AddColour(wxColourDatabase
*self
,const wxString
& name
,wxColour
* colour
) {
3614 // make a copy since the python one will be GC'd
3615 wxColour
* c
= new wxColour(*colour
);
3616 self
->AddColour(name
, c
);
3618 static PyObject
*_wrap_wxColourDatabase_AddColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3619 PyObject
* _resultobj
;
3620 wxColourDatabase
* _arg0
;
3623 PyObject
* _argo0
= 0;
3624 PyObject
* _obj1
= 0;
3626 PyObject
* _obj2
= 0;
3627 char *_kwnames
[] = { "self","name","colour", NULL
};
3630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxColourDatabase_AddColour",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_AddColour. Expected _wxColourDatabase_p.");
3640 _arg1
= wxString_in_helper(_obj1
);
3646 if (! wxColour_helper(_obj2
, &_arg2
))
3650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3651 wxColourDatabase_AddColour(_arg0
,*_arg1
,_arg2
);
3653 wxPyEndAllowThreads(__tstate
);
3654 if (PyErr_Occurred()) return NULL
;
3655 } Py_INCREF(Py_None
);
3656 _resultobj
= Py_None
;
3664 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3665 wxColour
* c
= new wxColour(red
, green
, blue
);
3666 self
->AddColour(name
, c
);
3668 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3669 PyObject
* _resultobj
;
3670 wxColourDatabase
* _arg0
;
3675 PyObject
* _argo0
= 0;
3676 PyObject
* _obj1
= 0;
3677 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3690 _arg1
= wxString_in_helper(_obj1
);
3695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3696 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3698 wxPyEndAllowThreads(__tstate
);
3699 if (PyErr_Occurred()) return NULL
;
3700 } Py_INCREF(Py_None
);
3701 _resultobj
= Py_None
;
3709 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3712 src
= (wxPen
*) ptr
;
3713 dest
= (wxGDIObject
*) src
;
3714 return (void *) dest
;
3717 static void *SwigwxPenTowxObject(void *ptr
) {
3720 src
= (wxPen
*) ptr
;
3721 dest
= (wxObject
*) src
;
3722 return (void *) dest
;
3725 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3726 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3727 PyObject
* _resultobj
;
3730 int _arg1
= (int ) 1;
3731 int _arg2
= (int ) wxSOLID
;
3733 PyObject
* _obj0
= 0;
3734 char *_kwnames
[] = { "colour","width","style", NULL
};
3738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3742 if (! wxColour_helper(_obj0
, &_arg0
))
3746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3747 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3749 wxPyEndAllowThreads(__tstate
);
3750 if (PyErr_Occurred()) return NULL
;
3752 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3753 _resultobj
= Py_BuildValue("s",_ptemp
);
3756 _resultobj
= Py_None
;
3761 #define delete_wxPen(_swigobj) (delete _swigobj)
3762 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3763 PyObject
* _resultobj
;
3765 PyObject
* _argo0
= 0;
3766 char *_kwnames
[] = { "self", NULL
};
3769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3780 delete_wxPen(_arg0
);
3782 wxPyEndAllowThreads(__tstate
);
3783 if (PyErr_Occurred()) return NULL
;
3784 } Py_INCREF(Py_None
);
3785 _resultobj
= Py_None
;
3789 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3790 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3791 PyObject
* _resultobj
;
3794 PyObject
* _argo0
= 0;
3795 char *_kwnames
[] = { "self", NULL
};
3798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3809 _result
= (int )wxPen_GetCap(_arg0
);
3811 wxPyEndAllowThreads(__tstate
);
3812 if (PyErr_Occurred()) return NULL
;
3813 } _resultobj
= Py_BuildValue("i",_result
);
3817 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3818 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3819 PyObject
* _resultobj
;
3822 PyObject
* _argo0
= 0;
3823 char *_kwnames
[] = { "self", NULL
};
3827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3838 _result
= new wxColour (wxPen_GetColour(_arg0
));
3840 wxPyEndAllowThreads(__tstate
);
3841 if (PyErr_Occurred()) return NULL
;
3842 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
3843 _resultobj
= Py_BuildValue("s",_ptemp
);
3847 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3848 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3849 PyObject
* _resultobj
;
3852 PyObject
* _argo0
= 0;
3853 char *_kwnames
[] = { "self", NULL
};
3856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3867 _result
= (int )wxPen_GetJoin(_arg0
);
3869 wxPyEndAllowThreads(__tstate
);
3870 if (PyErr_Occurred()) return NULL
;
3871 } _resultobj
= Py_BuildValue("i",_result
);
3875 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3876 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3877 PyObject
* _resultobj
;
3880 PyObject
* _argo0
= 0;
3881 char *_kwnames
[] = { "self", NULL
};
3884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3895 _result
= (int )wxPen_GetStyle(_arg0
);
3897 wxPyEndAllowThreads(__tstate
);
3898 if (PyErr_Occurred()) return NULL
;
3899 } _resultobj
= Py_BuildValue("i",_result
);
3903 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3904 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3905 PyObject
* _resultobj
;
3908 PyObject
* _argo0
= 0;
3909 char *_kwnames
[] = { "self", NULL
};
3912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3923 _result
= (int )wxPen_GetWidth(_arg0
);
3925 wxPyEndAllowThreads(__tstate
);
3926 if (PyErr_Occurred()) return NULL
;
3927 } _resultobj
= Py_BuildValue("i",_result
);
3931 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3932 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3933 PyObject
* _resultobj
;
3936 PyObject
* _argo0
= 0;
3937 char *_kwnames
[] = { "self", NULL
};
3940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3951 _result
= (bool )wxPen_Ok(_arg0
);
3953 wxPyEndAllowThreads(__tstate
);
3954 if (PyErr_Occurred()) return NULL
;
3955 } _resultobj
= Py_BuildValue("i",_result
);
3959 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3960 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3961 PyObject
* _resultobj
;
3964 PyObject
* _argo0
= 0;
3965 char *_kwnames
[] = { "self","cap_style", NULL
};
3968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3979 wxPen_SetCap(_arg0
,_arg1
);
3981 wxPyEndAllowThreads(__tstate
);
3982 if (PyErr_Occurred()) return NULL
;
3983 } Py_INCREF(Py_None
);
3984 _resultobj
= Py_None
;
3988 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3989 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3990 PyObject
* _resultobj
;
3993 PyObject
* _argo0
= 0;
3995 PyObject
* _obj1
= 0;
3996 char *_kwnames
[] = { "self","colour", NULL
};
3999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4010 if (! wxColour_helper(_obj1
, &_arg1
))
4014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4015 wxPen_SetColour(_arg0
,*_arg1
);
4017 wxPyEndAllowThreads(__tstate
);
4018 if (PyErr_Occurred()) return NULL
;
4019 } Py_INCREF(Py_None
);
4020 _resultobj
= Py_None
;
4024 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4025 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4026 PyObject
* _resultobj
;
4029 PyObject
* _argo0
= 0;
4030 char *_kwnames
[] = { "self","join_style", NULL
};
4033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4044 wxPen_SetJoin(_arg0
,_arg1
);
4046 wxPyEndAllowThreads(__tstate
);
4047 if (PyErr_Occurred()) return NULL
;
4048 } Py_INCREF(Py_None
);
4049 _resultobj
= Py_None
;
4053 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4054 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4055 PyObject
* _resultobj
;
4058 PyObject
* _argo0
= 0;
4059 char *_kwnames
[] = { "self","style", NULL
};
4062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4073 wxPen_SetStyle(_arg0
,_arg1
);
4075 wxPyEndAllowThreads(__tstate
);
4076 if (PyErr_Occurred()) return NULL
;
4077 } Py_INCREF(Py_None
);
4078 _resultobj
= Py_None
;
4082 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4083 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4084 PyObject
* _resultobj
;
4087 PyObject
* _argo0
= 0;
4088 char *_kwnames
[] = { "self","width", NULL
};
4091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4102 wxPen_SetWidth(_arg0
,_arg1
);
4104 wxPyEndAllowThreads(__tstate
);
4105 if (PyErr_Occurred()) return NULL
;
4106 } Py_INCREF(Py_None
);
4107 _resultobj
= Py_None
;
4111 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4112 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4113 PyObject
* _resultobj
;
4117 PyObject
* _argo0
= 0;
4118 PyObject
* _obj2
= 0;
4119 char *_kwnames
[] = { "self","choices", NULL
};
4122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4133 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4134 if (_arg2
== NULL
) {
4140 _arg1
= PyList_Size(_obj2
);
4147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4148 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4150 wxPyEndAllowThreads(__tstate
);
4151 if (PyErr_Occurred()) return NULL
;
4152 } Py_INCREF(Py_None
);
4153 _resultobj
= Py_None
;
4160 static PyObject
* wxPen_GetDashes(wxPen
*self
) {
4162 int count
= self
->GetDashes(&dashes
);
4163 wxPyBeginBlockThreads();
4164 PyObject
* retval
= PyList_New(0);
4165 for (int x
=0; x
<count
; x
++)
4166 PyList_Append(retval
, PyInt_FromLong(dashes
[x
]));
4167 wxPyEndBlockThreads();
4170 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4171 PyObject
* _resultobj
;
4174 PyObject
* _argo0
= 0;
4175 char *_kwnames
[] = { "self", NULL
};
4178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetDashes",_kwnames
,&_argo0
))
4181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4189 _result
= (PyObject
*)wxPen_GetDashes(_arg0
);
4191 wxPyEndAllowThreads(__tstate
);
4192 if (PyErr_Occurred()) return NULL
;
4194 _resultobj
= _result
;
4199 static void *SwigwxPyPenTowxPen(void *ptr
) {
4202 src
= (wxPyPen
*) ptr
;
4203 dest
= (wxPen
*) src
;
4204 return (void *) dest
;
4207 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
4210 src
= (wxPyPen
*) ptr
;
4211 dest
= (wxGDIObject
*) src
;
4212 return (void *) dest
;
4215 static void *SwigwxPyPenTowxObject(void *ptr
) {
4218 src
= (wxPyPen
*) ptr
;
4219 dest
= (wxObject
*) src
;
4220 return (void *) dest
;
4223 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4224 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4225 PyObject
* _resultobj
;
4228 int _arg1
= (int ) 1;
4229 int _arg2
= (int ) wxSOLID
;
4231 PyObject
* _obj0
= 0;
4232 char *_kwnames
[] = { "colour","width","style", NULL
};
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4240 if (! wxColour_helper(_obj0
, &_arg0
))
4244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4245 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
4247 wxPyEndAllowThreads(__tstate
);
4248 if (PyErr_Occurred()) return NULL
;
4250 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
4251 _resultobj
= Py_BuildValue("s",_ptemp
);
4254 _resultobj
= Py_None
;
4259 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4260 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4261 PyObject
* _resultobj
;
4263 PyObject
* _argo0
= 0;
4264 char *_kwnames
[] = { "self", NULL
};
4267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
4270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4277 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4278 delete_wxPyPen(_arg0
);
4280 wxPyEndAllowThreads(__tstate
);
4281 if (PyErr_Occurred()) return NULL
;
4282 } Py_INCREF(Py_None
);
4283 _resultobj
= Py_None
;
4287 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4288 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4289 PyObject
* _resultobj
;
4293 PyObject
* _argo0
= 0;
4294 PyObject
* _obj2
= 0;
4295 char *_kwnames
[] = { "self","choices", NULL
};
4298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
4309 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4310 if (_arg2
== NULL
) {
4316 _arg1
= PyList_Size(_obj2
);
4323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4324 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
4326 wxPyEndAllowThreads(__tstate
);
4327 if (PyErr_Occurred()) return NULL
;
4328 } Py_INCREF(Py_None
);
4329 _resultobj
= Py_None
;
4336 static void *SwigwxPenListTowxObject(void *ptr
) {
4339 src
= (wxPenList
*) ptr
;
4340 dest
= (wxObject
*) src
;
4341 return (void *) dest
;
4344 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4345 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4346 PyObject
* _resultobj
;
4349 PyObject
* _argo0
= 0;
4350 PyObject
* _argo1
= 0;
4351 char *_kwnames
[] = { "self","pen", NULL
};
4354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4364 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4365 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4372 wxPenList_AddPen(_arg0
,_arg1
);
4374 wxPyEndAllowThreads(__tstate
);
4375 if (PyErr_Occurred()) return NULL
;
4376 } Py_INCREF(Py_None
);
4377 _resultobj
= Py_None
;
4381 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4382 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4383 PyObject
* _resultobj
;
4389 PyObject
* _argo0
= 0;
4391 PyObject
* _obj1
= 0;
4392 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4407 if (! wxColour_helper(_obj1
, &_arg1
))
4411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4412 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4414 wxPyEndAllowThreads(__tstate
);
4415 if (PyErr_Occurred()) return NULL
;
4417 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4418 _resultobj
= Py_BuildValue("s",_ptemp
);
4421 _resultobj
= Py_None
;
4426 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4427 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4428 PyObject
* _resultobj
;
4431 PyObject
* _argo0
= 0;
4432 PyObject
* _argo1
= 0;
4433 char *_kwnames
[] = { "self","pen", NULL
};
4436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4446 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4447 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4454 wxPenList_RemovePen(_arg0
,_arg1
);
4456 wxPyEndAllowThreads(__tstate
);
4457 if (PyErr_Occurred()) return NULL
;
4458 } Py_INCREF(Py_None
);
4459 _resultobj
= Py_None
;
4463 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
4464 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4465 PyObject
* _resultobj
;
4468 PyObject
* _argo0
= 0;
4469 char *_kwnames
[] = { "self", NULL
};
4472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
4475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
4482 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4483 _result
= (int )wxPenList_GetCount(_arg0
);
4485 wxPyEndAllowThreads(__tstate
);
4486 if (PyErr_Occurred()) return NULL
;
4487 } _resultobj
= Py_BuildValue("i",_result
);
4491 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
4494 src
= (wxBrush
*) ptr
;
4495 dest
= (wxGDIObject
*) src
;
4496 return (void *) dest
;
4499 static void *SwigwxBrushTowxObject(void *ptr
) {
4502 src
= (wxBrush
*) ptr
;
4503 dest
= (wxObject
*) src
;
4504 return (void *) dest
;
4507 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4508 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4509 PyObject
* _resultobj
;
4512 int _arg1
= (int ) wxSOLID
;
4514 PyObject
* _obj0
= 0;
4515 char *_kwnames
[] = { "colour","style", NULL
};
4519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4523 if (! wxColour_helper(_obj0
, &_arg0
))
4527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4528 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4530 wxPyEndAllowThreads(__tstate
);
4531 if (PyErr_Occurred()) return NULL
;
4533 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4534 _resultobj
= Py_BuildValue("s",_ptemp
);
4537 _resultobj
= Py_None
;
4542 #define delete_wxBrush(_swigobj) (delete _swigobj)
4543 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4544 PyObject
* _resultobj
;
4546 PyObject
* _argo0
= 0;
4547 char *_kwnames
[] = { "self", NULL
};
4550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4561 delete_wxBrush(_arg0
);
4563 wxPyEndAllowThreads(__tstate
);
4564 if (PyErr_Occurred()) return NULL
;
4565 } Py_INCREF(Py_None
);
4566 _resultobj
= Py_None
;
4570 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4571 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4572 PyObject
* _resultobj
;
4575 PyObject
* _argo0
= 0;
4576 char *_kwnames
[] = { "self", NULL
};
4580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4591 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4593 wxPyEndAllowThreads(__tstate
);
4594 if (PyErr_Occurred()) return NULL
;
4595 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4596 _resultobj
= Py_BuildValue("s",_ptemp
);
4600 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4601 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4602 PyObject
* _resultobj
;
4605 PyObject
* _argo0
= 0;
4606 char *_kwnames
[] = { "self", NULL
};
4610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4621 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4623 wxPyEndAllowThreads(__tstate
);
4624 if (PyErr_Occurred()) return NULL
;
4626 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4627 _resultobj
= Py_BuildValue("s",_ptemp
);
4630 _resultobj
= Py_None
;
4635 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4636 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4637 PyObject
* _resultobj
;
4640 PyObject
* _argo0
= 0;
4641 char *_kwnames
[] = { "self", NULL
};
4644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4655 _result
= (int )wxBrush_GetStyle(_arg0
);
4657 wxPyEndAllowThreads(__tstate
);
4658 if (PyErr_Occurred()) return NULL
;
4659 } _resultobj
= Py_BuildValue("i",_result
);
4663 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4664 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4665 PyObject
* _resultobj
;
4668 PyObject
* _argo0
= 0;
4669 char *_kwnames
[] = { "self", NULL
};
4672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4683 _result
= (bool )wxBrush_Ok(_arg0
);
4685 wxPyEndAllowThreads(__tstate
);
4686 if (PyErr_Occurred()) return NULL
;
4687 } _resultobj
= Py_BuildValue("i",_result
);
4691 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4692 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4693 PyObject
* _resultobj
;
4696 PyObject
* _argo0
= 0;
4698 PyObject
* _obj1
= 0;
4699 char *_kwnames
[] = { "self","colour", NULL
};
4702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4713 if (! wxColour_helper(_obj1
, &_arg1
))
4717 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4718 wxBrush_SetColour(_arg0
,*_arg1
);
4720 wxPyEndAllowThreads(__tstate
);
4721 if (PyErr_Occurred()) return NULL
;
4722 } Py_INCREF(Py_None
);
4723 _resultobj
= Py_None
;
4727 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4728 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4729 PyObject
* _resultobj
;
4732 PyObject
* _argo0
= 0;
4733 PyObject
* _argo1
= 0;
4734 char *_kwnames
[] = { "self","bitmap", NULL
};
4737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4747 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4754 wxBrush_SetStipple(_arg0
,*_arg1
);
4756 wxPyEndAllowThreads(__tstate
);
4757 if (PyErr_Occurred()) return NULL
;
4758 } Py_INCREF(Py_None
);
4759 _resultobj
= Py_None
;
4763 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4764 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4765 PyObject
* _resultobj
;
4768 PyObject
* _argo0
= 0;
4769 char *_kwnames
[] = { "self","style", NULL
};
4772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4783 wxBrush_SetStyle(_arg0
,_arg1
);
4785 wxPyEndAllowThreads(__tstate
);
4786 if (PyErr_Occurred()) return NULL
;
4787 } Py_INCREF(Py_None
);
4788 _resultobj
= Py_None
;
4792 #define wxBrush_GetMacTheme(_swigobj) (_swigobj->GetMacTheme())
4793 static PyObject
*_wrap_wxBrush_GetMacTheme(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4794 PyObject
* _resultobj
;
4797 PyObject
* _argo0
= 0;
4798 char *_kwnames
[] = { "self", NULL
};
4801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetMacTheme",_kwnames
,&_argo0
))
4804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetMacTheme. Expected _wxBrush_p.");
4811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4812 _result
= (short )wxBrush_GetMacTheme(_arg0
);
4814 wxPyEndAllowThreads(__tstate
);
4815 if (PyErr_Occurred()) return NULL
;
4816 } _resultobj
= Py_BuildValue("h",_result
);
4820 #define wxBrush_SetMacTheme(_swigobj,_swigarg0) (_swigobj->SetMacTheme(_swigarg0))
4821 static PyObject
*_wrap_wxBrush_SetMacTheme(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4822 PyObject
* _resultobj
;
4825 PyObject
* _argo0
= 0;
4826 char *_kwnames
[] = { "self","macThemeBrush", NULL
};
4829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxBrush_SetMacTheme",_kwnames
,&_argo0
,&_arg1
))
4832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetMacTheme. Expected _wxBrush_p.");
4839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4840 wxBrush_SetMacTheme(_arg0
,_arg1
);
4842 wxPyEndAllowThreads(__tstate
);
4843 if (PyErr_Occurred()) return NULL
;
4844 } Py_INCREF(Py_None
);
4845 _resultobj
= Py_None
;
4849 static void *SwigwxBrushListTowxObject(void *ptr
) {
4852 src
= (wxBrushList
*) ptr
;
4853 dest
= (wxObject
*) src
;
4854 return (void *) dest
;
4857 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4858 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4859 PyObject
* _resultobj
;
4860 wxBrushList
* _arg0
;
4862 PyObject
* _argo0
= 0;
4863 PyObject
* _argo1
= 0;
4864 char *_kwnames
[] = { "self","brush", NULL
};
4867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4877 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4878 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4885 wxBrushList_AddBrush(_arg0
,_arg1
);
4887 wxPyEndAllowThreads(__tstate
);
4888 if (PyErr_Occurred()) return NULL
;
4889 } Py_INCREF(Py_None
);
4890 _resultobj
= Py_None
;
4894 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4895 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4896 PyObject
* _resultobj
;
4898 wxBrushList
* _arg0
;
4901 PyObject
* _argo0
= 0;
4903 PyObject
* _obj1
= 0;
4904 char *_kwnames
[] = { "self","colour","style", NULL
};
4908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4919 if (! wxColour_helper(_obj1
, &_arg1
))
4923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4924 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4926 wxPyEndAllowThreads(__tstate
);
4927 if (PyErr_Occurred()) return NULL
;
4929 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4930 _resultobj
= Py_BuildValue("s",_ptemp
);
4933 _resultobj
= Py_None
;
4938 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4939 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4940 PyObject
* _resultobj
;
4941 wxBrushList
* _arg0
;
4943 PyObject
* _argo0
= 0;
4944 PyObject
* _argo1
= 0;
4945 char *_kwnames
[] = { "self","brush", NULL
};
4948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4958 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4959 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4966 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4968 wxPyEndAllowThreads(__tstate
);
4969 if (PyErr_Occurred()) return NULL
;
4970 } Py_INCREF(Py_None
);
4971 _resultobj
= Py_None
;
4975 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
4976 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4977 PyObject
* _resultobj
;
4979 wxBrushList
* _arg0
;
4980 PyObject
* _argo0
= 0;
4981 char *_kwnames
[] = { "self", NULL
};
4984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
4987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
4994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4995 _result
= (int )wxBrushList_GetCount(_arg0
);
4997 wxPyEndAllowThreads(__tstate
);
4998 if (PyErr_Occurred()) return NULL
;
4999 } _resultobj
= Py_BuildValue("i",_result
);
5003 static void *SwigwxDCTowxObject(void *ptr
) {
5007 dest
= (wxObject
*) src
;
5008 return (void *) dest
;
5011 #define delete_wxDC(_swigobj) (delete _swigobj)
5012 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5013 PyObject
* _resultobj
;
5015 PyObject
* _argo0
= 0;
5016 char *_kwnames
[] = { "self", NULL
};
5019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5032 wxPyEndAllowThreads(__tstate
);
5033 if (PyErr_Occurred()) return NULL
;
5034 } Py_INCREF(Py_None
);
5035 _resultobj
= Py_None
;
5039 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5040 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5041 PyObject
* _resultobj
;
5043 PyObject
* _argo0
= 0;
5044 char *_kwnames
[] = { "self", NULL
};
5047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5058 wxDC_BeginDrawing(_arg0
);
5060 wxPyEndAllowThreads(__tstate
);
5061 if (PyErr_Occurred()) return NULL
;
5062 } Py_INCREF(Py_None
);
5063 _resultobj
= Py_None
;
5067 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5068 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5069 PyObject
* _resultobj
;
5079 int _arg8
= (int ) wxCOPY
;
5080 int _arg9
= (int ) FALSE
;
5081 PyObject
* _argo0
= 0;
5082 PyObject
* _argo5
= 0;
5083 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiiOii|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5096 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5097 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5104 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5106 wxPyEndAllowThreads(__tstate
);
5107 if (PyErr_Occurred()) return NULL
;
5108 } _resultobj
= Py_BuildValue("i",_result
);
5112 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5113 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5114 PyObject
* _resultobj
;
5116 PyObject
* _argo0
= 0;
5117 char *_kwnames
[] = { "self", NULL
};
5120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5133 wxPyEndAllowThreads(__tstate
);
5134 if (PyErr_Occurred()) return NULL
;
5135 } Py_INCREF(Py_None
);
5136 _resultobj
= Py_None
;
5140 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5141 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5142 PyObject
* _resultobj
;
5146 PyObject
* _argo0
= 0;
5147 char *_kwnames
[] = { "self","x","y", NULL
};
5150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5161 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5163 wxPyEndAllowThreads(__tstate
);
5164 if (PyErr_Occurred()) return NULL
;
5165 } Py_INCREF(Py_None
);
5166 _resultobj
= Py_None
;
5170 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5171 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5172 PyObject
* _resultobj
;
5174 PyObject
* _argo0
= 0;
5175 char *_kwnames
[] = { "self", NULL
};
5178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5189 wxDC_DestroyClippingRegion(_arg0
);
5191 wxPyEndAllowThreads(__tstate
);
5192 if (PyErr_Occurred()) return NULL
;
5193 } Py_INCREF(Py_None
);
5194 _resultobj
= Py_None
;
5198 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5199 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5200 PyObject
* _resultobj
;
5204 PyObject
* _argo0
= 0;
5205 char *_kwnames
[] = { "self","x", NULL
};
5208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5219 _result
= (wxCoord
)wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5221 wxPyEndAllowThreads(__tstate
);
5222 if (PyErr_Occurred()) return NULL
;
5223 } _resultobj
= Py_BuildValue("i",_result
);
5227 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5228 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5229 PyObject
* _resultobj
;
5233 PyObject
* _argo0
= 0;
5234 char *_kwnames
[] = { "self","x", NULL
};
5237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5248 _result
= (wxCoord
)wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5250 wxPyEndAllowThreads(__tstate
);
5251 if (PyErr_Occurred()) return NULL
;
5252 } _resultobj
= Py_BuildValue("i",_result
);
5256 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5257 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5258 PyObject
* _resultobj
;
5262 PyObject
* _argo0
= 0;
5263 char *_kwnames
[] = { "self","y", NULL
};
5266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5277 _result
= (wxCoord
)wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5279 wxPyEndAllowThreads(__tstate
);
5280 if (PyErr_Occurred()) return NULL
;
5281 } _resultobj
= Py_BuildValue("i",_result
);
5285 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5286 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5287 PyObject
* _resultobj
;
5291 PyObject
* _argo0
= 0;
5292 char *_kwnames
[] = { "self","y", NULL
};
5295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5306 _result
= (wxCoord
)wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5308 wxPyEndAllowThreads(__tstate
);
5309 if (PyErr_Occurred()) return NULL
;
5310 } _resultobj
= Py_BuildValue("i",_result
);
5314 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5315 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5316 PyObject
* _resultobj
;
5324 PyObject
* _argo0
= 0;
5325 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5339 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5341 wxPyEndAllowThreads(__tstate
);
5342 if (PyErr_Occurred()) return NULL
;
5343 } Py_INCREF(Py_None
);
5344 _resultobj
= Py_None
;
5348 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5349 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5350 PyObject
* _resultobj
;
5355 PyObject
* _argo0
= 0;
5356 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5370 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5372 wxPyEndAllowThreads(__tstate
);
5373 if (PyErr_Occurred()) return NULL
;
5374 } Py_INCREF(Py_None
);
5375 _resultobj
= Py_None
;
5379 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5380 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5381 PyObject
* _resultobj
;
5387 PyObject
* _argo0
= 0;
5388 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5402 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5404 wxPyEndAllowThreads(__tstate
);
5405 if (PyErr_Occurred()) return NULL
;
5406 } Py_INCREF(Py_None
);
5407 _resultobj
= Py_None
;
5411 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5412 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5413 PyObject
* _resultobj
;
5421 PyObject
* _argo0
= 0;
5422 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5436 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5438 wxPyEndAllowThreads(__tstate
);
5439 if (PyErr_Occurred()) return NULL
;
5440 } Py_INCREF(Py_None
);
5441 _resultobj
= Py_None
;
5445 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5446 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5447 PyObject
* _resultobj
;
5452 PyObject
* _argo0
= 0;
5453 PyObject
* _argo1
= 0;
5454 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5467 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5474 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5476 wxPyEndAllowThreads(__tstate
);
5477 if (PyErr_Occurred()) return NULL
;
5478 } Py_INCREF(Py_None
);
5479 _resultobj
= Py_None
;
5483 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5484 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5485 PyObject
* _resultobj
;
5489 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
5490 int _arg4
= (int ) -1;
5491 PyObject
* _argo0
= 0;
5492 PyObject
* _obj1
= 0;
5494 PyObject
* _obj2
= 0;
5495 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
5498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
5501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
5508 _arg1
= wxString_in_helper(_obj1
);
5514 if (! wxRect_helper(_obj2
, &_arg2
))
5518 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5519 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
5521 wxPyEndAllowThreads(__tstate
);
5522 if (PyErr_Occurred()) return NULL
;
5523 } Py_INCREF(Py_None
);
5524 _resultobj
= Py_None
;
5532 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
5534 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
5537 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5538 PyObject
* _resultobj
;
5544 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
5545 int _arg5
= (int ) -1;
5546 PyObject
* _argo0
= 0;
5547 PyObject
* _obj1
= 0;
5548 PyObject
* _argo2
= 0;
5550 PyObject
* _obj3
= 0;
5551 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
5555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
5558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
5565 _arg1
= wxString_in_helper(_obj1
);
5570 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
5571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
5577 if (! wxRect_helper(_obj3
, &_arg3
))
5581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5582 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
5584 wxPyEndAllowThreads(__tstate
);
5585 if (PyErr_Occurred()) return NULL
;
5586 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
5587 _resultobj
= Py_BuildValue("s",_ptemp
);
5595 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5596 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5597 PyObject
* _resultobj
;
5603 PyObject
* _argo0
= 0;
5604 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5618 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5620 wxPyEndAllowThreads(__tstate
);
5621 if (PyErr_Occurred()) return NULL
;
5622 } Py_INCREF(Py_None
);
5623 _resultobj
= Py_None
;
5627 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5628 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5629 PyObject
* _resultobj
;
5633 wxCoord _arg3
= (wxCoord
) 0;
5634 wxCoord _arg4
= (wxCoord
) 0;
5635 PyObject
* _argo0
= 0;
5637 PyObject
* _obj2
= 0;
5638 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ii:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5652 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5653 if (_arg2
== NULL
) {
5661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5662 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5664 wxPyEndAllowThreads(__tstate
);
5665 if (PyErr_Occurred()) return NULL
;
5666 } Py_INCREF(Py_None
);
5667 _resultobj
= Py_None
;
5674 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5675 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5676 PyObject
* _resultobj
;
5680 wxCoord _arg3
= (wxCoord
) 0;
5681 wxCoord _arg4
= (wxCoord
) 0;
5682 int _arg5
= (int ) wxODDEVEN_RULE
;
5683 PyObject
* _argo0
= 0;
5685 PyObject
* _obj2
= 0;
5686 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iii:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5700 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5701 if (_arg2
== NULL
) {
5709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5710 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5712 wxPyEndAllowThreads(__tstate
);
5713 if (PyErr_Occurred()) return NULL
;
5714 } Py_INCREF(Py_None
);
5715 _resultobj
= Py_None
;
5722 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5723 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5724 PyObject
* _resultobj
;
5728 PyObject
* _argo0
= 0;
5729 char *_kwnames
[] = { "self","x","y", NULL
};
5732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5743 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5745 wxPyEndAllowThreads(__tstate
);
5746 if (PyErr_Occurred()) return NULL
;
5747 } Py_INCREF(Py_None
);
5748 _resultobj
= Py_None
;
5752 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5753 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5754 PyObject
* _resultobj
;
5760 PyObject
* _argo0
= 0;
5761 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5775 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5777 wxPyEndAllowThreads(__tstate
);
5778 if (PyErr_Occurred()) return NULL
;
5779 } Py_INCREF(Py_None
);
5780 _resultobj
= Py_None
;
5784 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
5785 static PyObject
*_wrap_wxDC_DrawRectangleRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5786 PyObject
* _resultobj
;
5789 PyObject
* _argo0
= 0;
5791 PyObject
* _obj1
= 0;
5792 char *_kwnames
[] = { "self","rect", NULL
};
5795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawRectangleRect",_kwnames
,&_argo0
,&_obj1
))
5798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
5806 if (! wxRect_helper(_obj1
, &_arg1
))
5810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5811 wxDC_DrawRectangleRect(_arg0
,*_arg1
);
5813 wxPyEndAllowThreads(__tstate
);
5814 if (PyErr_Occurred()) return NULL
;
5815 } Py_INCREF(Py_None
);
5816 _resultobj
= Py_None
;
5820 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5821 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5822 PyObject
* _resultobj
;
5828 PyObject
* _argo0
= 0;
5829 PyObject
* _obj1
= 0;
5830 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5843 _arg1
= wxString_in_helper(_obj1
);
5848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5849 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5851 wxPyEndAllowThreads(__tstate
);
5852 if (PyErr_Occurred()) return NULL
;
5853 } Py_INCREF(Py_None
);
5854 _resultobj
= Py_None
;
5862 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5863 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5864 PyObject
* _resultobj
;
5870 wxCoord _arg5
= (wxCoord
) 20;
5871 PyObject
* _argo0
= 0;
5872 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5886 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5888 wxPyEndAllowThreads(__tstate
);
5889 if (PyErr_Occurred()) return NULL
;
5890 } Py_INCREF(Py_None
);
5891 _resultobj
= Py_None
;
5895 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5896 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5897 PyObject
* _resultobj
;
5901 PyObject
* _argo0
= 0;
5903 PyObject
* _obj2
= 0;
5904 char *_kwnames
[] = { "self","points", NULL
};
5907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5918 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5919 if (_arg2
== NULL
) {
5927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5928 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5930 wxPyEndAllowThreads(__tstate
);
5931 if (PyErr_Occurred()) return NULL
;
5932 } Py_INCREF(Py_None
);
5933 _resultobj
= Py_None
;
5940 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5941 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5942 PyObject
* _resultobj
;
5947 PyObject
* _argo0
= 0;
5948 PyObject
* _obj1
= 0;
5949 char *_kwnames
[] = { "self","text","x","y", NULL
};
5952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5962 _arg1
= wxString_in_helper(_obj1
);
5967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5968 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5970 wxPyEndAllowThreads(__tstate
);
5971 if (PyErr_Occurred()) return NULL
;
5972 } Py_INCREF(Py_None
);
5973 _resultobj
= Py_None
;
5981 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5982 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5983 PyObject
* _resultobj
;
5985 PyObject
* _argo0
= 0;
5986 char *_kwnames
[] = { "self", NULL
};
5989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6002 wxPyEndAllowThreads(__tstate
);
6003 if (PyErr_Occurred()) return NULL
;
6004 } Py_INCREF(Py_None
);
6005 _resultobj
= Py_None
;
6009 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6010 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6011 PyObject
* _resultobj
;
6013 PyObject
* _argo0
= 0;
6014 char *_kwnames
[] = { "self", NULL
};
6017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6028 wxDC_EndDrawing(_arg0
);
6030 wxPyEndAllowThreads(__tstate
);
6031 if (PyErr_Occurred()) return NULL
;
6032 } Py_INCREF(Py_None
);
6033 _resultobj
= Py_None
;
6037 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6038 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6039 PyObject
* _resultobj
;
6041 PyObject
* _argo0
= 0;
6042 char *_kwnames
[] = { "self", NULL
};
6045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6056 wxDC_EndPage(_arg0
);
6058 wxPyEndAllowThreads(__tstate
);
6059 if (PyErr_Occurred()) return NULL
;
6060 } Py_INCREF(Py_None
);
6061 _resultobj
= Py_None
;
6065 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6066 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6067 PyObject
* _resultobj
;
6073 int _arg4
= (int ) wxFLOOD_SURFACE
;
6074 PyObject
* _argo0
= 0;
6076 PyObject
* _obj3
= 0;
6077 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6091 if (! wxColour_helper(_obj3
, &_arg3
))
6095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6096 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6098 wxPyEndAllowThreads(__tstate
);
6099 if (PyErr_Occurred()) return NULL
;
6100 } _resultobj
= Py_BuildValue("i",_result
);
6104 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6105 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6106 PyObject
* _resultobj
;
6109 PyObject
* _argo0
= 0;
6110 char *_kwnames
[] = { "self", NULL
};
6114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6125 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
6127 wxPyEndAllowThreads(__tstate
);
6128 if (PyErr_Occurred()) return NULL
;
6129 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
6130 _resultobj
= Py_BuildValue("s",_ptemp
);
6134 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6135 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6136 PyObject
* _resultobj
;
6139 PyObject
* _argo0
= 0;
6140 char *_kwnames
[] = { "self", NULL
};
6144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6155 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
6157 wxPyEndAllowThreads(__tstate
);
6158 if (PyErr_Occurred()) return NULL
;
6159 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
6160 _resultobj
= Py_BuildValue("s",_ptemp
);
6164 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6165 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6166 PyObject
* _resultobj
;
6169 PyObject
* _argo0
= 0;
6170 char *_kwnames
[] = { "self", NULL
};
6173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6184 _result
= (wxCoord
)wxDC_GetCharHeight(_arg0
);
6186 wxPyEndAllowThreads(__tstate
);
6187 if (PyErr_Occurred()) return NULL
;
6188 } _resultobj
= Py_BuildValue("i",_result
);
6192 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6193 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6194 PyObject
* _resultobj
;
6197 PyObject
* _argo0
= 0;
6198 char *_kwnames
[] = { "self", NULL
};
6201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6212 _result
= (wxCoord
)wxDC_GetCharWidth(_arg0
);
6214 wxPyEndAllowThreads(__tstate
);
6215 if (PyErr_Occurred()) return NULL
;
6216 } _resultobj
= Py_BuildValue("i",_result
);
6220 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6221 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6222 PyObject
* _resultobj
;
6232 PyObject
* _argo0
= 0;
6233 char *_kwnames
[] = { "self", NULL
};
6248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6259 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6261 wxPyEndAllowThreads(__tstate
);
6262 if (PyErr_Occurred()) return NULL
;
6263 } Py_INCREF(Py_None
);
6264 _resultobj
= Py_None
;
6267 o
= PyInt_FromLong((long) (*_arg1
));
6268 _resultobj
= t_output_helper(_resultobj
, o
);
6272 o
= PyInt_FromLong((long) (*_arg2
));
6273 _resultobj
= t_output_helper(_resultobj
, o
);
6277 o
= PyInt_FromLong((long) (*_arg3
));
6278 _resultobj
= t_output_helper(_resultobj
, o
);
6282 o
= PyInt_FromLong((long) (*_arg4
));
6283 _resultobj
= t_output_helper(_resultobj
, o
);
6288 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6289 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6290 PyObject
* _resultobj
;
6293 PyObject
* _argo0
= 0;
6294 char *_kwnames
[] = { "self", NULL
};
6298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6309 _result
= new wxFont (wxDC_GetFont(_arg0
));
6311 wxPyEndAllowThreads(__tstate
);
6312 if (PyErr_Occurred()) return NULL
;
6313 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
6314 _resultobj
= Py_BuildValue("s",_ptemp
);
6318 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6319 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6320 PyObject
* _resultobj
;
6323 PyObject
* _argo0
= 0;
6324 char *_kwnames
[] = { "self", NULL
};
6327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6338 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6340 wxPyEndAllowThreads(__tstate
);
6341 if (PyErr_Occurred()) return NULL
;
6342 } _resultobj
= Py_BuildValue("i",_result
);
6346 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6347 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6348 PyObject
* _resultobj
;
6354 PyObject
* _argo0
= 0;
6355 char *_kwnames
[] = { "self", NULL
};
6364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6375 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6377 wxPyEndAllowThreads(__tstate
);
6378 if (PyErr_Occurred()) return NULL
;
6379 } Py_INCREF(Py_None
);
6380 _resultobj
= Py_None
;
6383 o
= PyFloat_FromDouble((double) (*_arg1
));
6384 _resultobj
= t_output_helper(_resultobj
, o
);
6388 o
= PyFloat_FromDouble((double) (*_arg2
));
6389 _resultobj
= t_output_helper(_resultobj
, o
);
6394 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6395 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6396 PyObject
* _resultobj
;
6399 PyObject
* _argo0
= 0;
6400 char *_kwnames
[] = { "self", NULL
};
6403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6414 _result
= (int )wxDC_GetMapMode(_arg0
);
6416 wxPyEndAllowThreads(__tstate
);
6417 if (PyErr_Occurred()) return NULL
;
6418 } _resultobj
= Py_BuildValue("i",_result
);
6422 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6423 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6424 PyObject
* _resultobj
;
6427 PyObject
* _argo0
= 0;
6428 char *_kwnames
[] = { "self", NULL
};
6431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6442 _result
= (bool )wxDC_GetOptimization(_arg0
);
6444 wxPyEndAllowThreads(__tstate
);
6445 if (PyErr_Occurred()) return NULL
;
6446 } _resultobj
= Py_BuildValue("i",_result
);
6450 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6451 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6452 PyObject
* _resultobj
;
6455 PyObject
* _argo0
= 0;
6456 char *_kwnames
[] = { "self", NULL
};
6460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6471 _result
= new wxPen (wxDC_GetPen(_arg0
));
6473 wxPyEndAllowThreads(__tstate
);
6474 if (PyErr_Occurred()) return NULL
;
6475 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
6476 _resultobj
= Py_BuildValue("s",_ptemp
);
6480 static wxColour
* wxDC_GetPixel(wxDC
*self
,wxCoord x
,wxCoord y
) {
6481 wxColour
* wc
= new wxColour();
6482 self
->GetPixel(x
, y
, wc
);
6485 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6486 PyObject
* _resultobj
;
6491 PyObject
* _argo0
= 0;
6492 char *_kwnames
[] = { "self","x","y", NULL
};
6496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6507 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6509 wxPyEndAllowThreads(__tstate
);
6510 if (PyErr_Occurred()) return NULL
;
6512 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6513 _resultobj
= Py_BuildValue("s",_ptemp
);
6516 _resultobj
= Py_None
;
6521 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6522 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6523 PyObject
* _resultobj
;
6529 PyObject
* _argo0
= 0;
6530 char *_kwnames
[] = { "self", NULL
};
6539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6550 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6552 wxPyEndAllowThreads(__tstate
);
6553 if (PyErr_Occurred()) return NULL
;
6554 } Py_INCREF(Py_None
);
6555 _resultobj
= Py_None
;
6558 o
= PyInt_FromLong((long) (*_arg1
));
6559 _resultobj
= t_output_helper(_resultobj
, o
);
6563 o
= PyInt_FromLong((long) (*_arg2
));
6564 _resultobj
= t_output_helper(_resultobj
, o
);
6569 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6570 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6571 PyObject
* _resultobj
;
6574 PyObject
* _argo0
= 0;
6575 char *_kwnames
[] = { "self", NULL
};
6579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6590 _result
= new wxSize (wxDC_GetSize(_arg0
));
6592 wxPyEndAllowThreads(__tstate
);
6593 if (PyErr_Occurred()) return NULL
;
6594 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6595 _resultobj
= Py_BuildValue("s",_ptemp
);
6599 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6600 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6601 PyObject
* _resultobj
;
6604 PyObject
* _argo0
= 0;
6605 char *_kwnames
[] = { "self", NULL
};
6609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6620 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6622 wxPyEndAllowThreads(__tstate
);
6623 if (PyErr_Occurred()) return NULL
;
6624 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6625 _resultobj
= Py_BuildValue("s",_ptemp
);
6629 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6630 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6631 PyObject
* _resultobj
;
6634 PyObject
* _argo0
= 0;
6635 char *_kwnames
[] = { "self", NULL
};
6639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6650 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6652 wxPyEndAllowThreads(__tstate
);
6653 if (PyErr_Occurred()) return NULL
;
6654 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6655 _resultobj
= Py_BuildValue("s",_ptemp
);
6659 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6660 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6661 PyObject
* _resultobj
;
6668 PyObject
* _argo0
= 0;
6669 PyObject
* _obj1
= 0;
6670 char *_kwnames
[] = { "self","string", NULL
};
6679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6689 _arg1
= wxString_in_helper(_obj1
);
6694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6695 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6697 wxPyEndAllowThreads(__tstate
);
6698 if (PyErr_Occurred()) return NULL
;
6699 } Py_INCREF(Py_None
);
6700 _resultobj
= Py_None
;
6703 o
= PyInt_FromLong((long) (*_arg2
));
6704 _resultobj
= t_output_helper(_resultobj
, o
);
6708 o
= PyInt_FromLong((long) (*_arg3
));
6709 _resultobj
= t_output_helper(_resultobj
, o
);
6718 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6719 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6720 PyObject
* _resultobj
;
6731 wxFont
* _arg6
= (wxFont
*) NULL
;
6732 PyObject
* _argo0
= 0;
6733 PyObject
* _obj1
= 0;
6734 PyObject
* _argo6
= 0;
6735 char *_kwnames
[] = { "self","string","font", NULL
};
6750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6760 _arg1
= wxString_in_helper(_obj1
);
6765 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6766 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6773 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6775 wxPyEndAllowThreads(__tstate
);
6776 if (PyErr_Occurred()) return NULL
;
6777 } Py_INCREF(Py_None
);
6778 _resultobj
= Py_None
;
6781 o
= PyInt_FromLong((long) (*_arg2
));
6782 _resultobj
= t_output_helper(_resultobj
, o
);
6786 o
= PyInt_FromLong((long) (*_arg3
));
6787 _resultobj
= t_output_helper(_resultobj
, o
);
6791 o
= PyInt_FromLong((long) (*_arg4
));
6792 _resultobj
= t_output_helper(_resultobj
, o
);
6796 o
= PyInt_FromLong((long) (*_arg5
));
6797 _resultobj
= t_output_helper(_resultobj
, o
);
6806 #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6807 static PyObject
*_wrap_wxDC_GetMultiLineTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6808 PyObject
* _resultobj
;
6817 wxFont
* _arg5
= (wxFont
*) NULL
;
6818 PyObject
* _argo0
= 0;
6819 PyObject
* _obj1
= 0;
6820 PyObject
* _argo5
= 0;
6821 char *_kwnames
[] = { "self","text","font", NULL
};
6833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo5
))
6836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
6843 _arg1
= wxString_in_helper(_obj1
);
6848 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6849 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxFont_p")) {
6850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
6855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6856 wxDC_GetMultiLineTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6858 wxPyEndAllowThreads(__tstate
);
6859 if (PyErr_Occurred()) return NULL
;
6860 } Py_INCREF(Py_None
);
6861 _resultobj
= Py_None
;
6864 o
= PyInt_FromLong((long) (*_arg2
));
6865 _resultobj
= t_output_helper(_resultobj
, o
);
6869 o
= PyInt_FromLong((long) (*_arg3
));
6870 _resultobj
= t_output_helper(_resultobj
, o
);
6874 o
= PyInt_FromLong((long) (*_arg4
));
6875 _resultobj
= t_output_helper(_resultobj
, o
);
6884 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6885 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6886 PyObject
* _resultobj
;
6889 PyObject
* _argo0
= 0;
6890 char *_kwnames
[] = { "self", NULL
};
6894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6905 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6907 wxPyEndAllowThreads(__tstate
);
6908 if (PyErr_Occurred()) return NULL
;
6909 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6910 _resultobj
= Py_BuildValue("s",_ptemp
);
6914 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6915 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6916 PyObject
* _resultobj
;
6922 PyObject
* _argo0
= 0;
6923 char *_kwnames
[] = { "self", NULL
};
6932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6943 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6945 wxPyEndAllowThreads(__tstate
);
6946 if (PyErr_Occurred()) return NULL
;
6947 } Py_INCREF(Py_None
);
6948 _resultobj
= Py_None
;
6951 o
= PyFloat_FromDouble((double) (*_arg1
));
6952 _resultobj
= t_output_helper(_resultobj
, o
);
6956 o
= PyFloat_FromDouble((double) (*_arg2
));
6957 _resultobj
= t_output_helper(_resultobj
, o
);
6962 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6963 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6964 PyObject
* _resultobj
;
6968 PyObject
* _argo0
= 0;
6969 char *_kwnames
[] = { "self","x", NULL
};
6972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6983 _result
= (wxCoord
)wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6985 wxPyEndAllowThreads(__tstate
);
6986 if (PyErr_Occurred()) return NULL
;
6987 } _resultobj
= Py_BuildValue("i",_result
);
6991 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6992 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6993 PyObject
* _resultobj
;
6997 PyObject
* _argo0
= 0;
6998 char *_kwnames
[] = { "self","x", NULL
};
7001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7012 _result
= (wxCoord
)wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7014 wxPyEndAllowThreads(__tstate
);
7015 if (PyErr_Occurred()) return NULL
;
7016 } _resultobj
= Py_BuildValue("i",_result
);
7020 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7021 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7022 PyObject
* _resultobj
;
7026 PyObject
* _argo0
= 0;
7027 char *_kwnames
[] = { "self","y", NULL
};
7030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7041 _result
= (wxCoord
)wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7043 wxPyEndAllowThreads(__tstate
);
7044 if (PyErr_Occurred()) return NULL
;
7045 } _resultobj
= Py_BuildValue("i",_result
);
7049 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7050 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7051 PyObject
* _resultobj
;
7055 PyObject
* _argo0
= 0;
7056 char *_kwnames
[] = { "self","y", NULL
};
7059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7070 _result
= (wxCoord
)wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7072 wxPyEndAllowThreads(__tstate
);
7073 if (PyErr_Occurred()) return NULL
;
7074 } _resultobj
= Py_BuildValue("i",_result
);
7078 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7079 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7080 PyObject
* _resultobj
;
7083 PyObject
* _argo0
= 0;
7084 char *_kwnames
[] = { "self", NULL
};
7087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7098 _result
= (wxCoord
)wxDC_MaxX(_arg0
);
7100 wxPyEndAllowThreads(__tstate
);
7101 if (PyErr_Occurred()) return NULL
;
7102 } _resultobj
= Py_BuildValue("i",_result
);
7106 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7107 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7108 PyObject
* _resultobj
;
7111 PyObject
* _argo0
= 0;
7112 char *_kwnames
[] = { "self", NULL
};
7115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7126 _result
= (wxCoord
)wxDC_MaxY(_arg0
);
7128 wxPyEndAllowThreads(__tstate
);
7129 if (PyErr_Occurred()) return NULL
;
7130 } _resultobj
= Py_BuildValue("i",_result
);
7134 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7135 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7136 PyObject
* _resultobj
;
7139 PyObject
* _argo0
= 0;
7140 char *_kwnames
[] = { "self", NULL
};
7143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7154 _result
= (wxCoord
)wxDC_MinX(_arg0
);
7156 wxPyEndAllowThreads(__tstate
);
7157 if (PyErr_Occurred()) return NULL
;
7158 } _resultobj
= Py_BuildValue("i",_result
);
7162 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7163 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7164 PyObject
* _resultobj
;
7167 PyObject
* _argo0
= 0;
7168 char *_kwnames
[] = { "self", NULL
};
7171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7182 _result
= (wxCoord
)wxDC_MinY(_arg0
);
7184 wxPyEndAllowThreads(__tstate
);
7185 if (PyErr_Occurred()) return NULL
;
7186 } _resultobj
= Py_BuildValue("i",_result
);
7190 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7191 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7192 PyObject
* _resultobj
;
7195 PyObject
* _argo0
= 0;
7196 char *_kwnames
[] = { "self", NULL
};
7199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7210 _result
= (bool )wxDC_Ok(_arg0
);
7212 wxPyEndAllowThreads(__tstate
);
7213 if (PyErr_Occurred()) return NULL
;
7214 } _resultobj
= Py_BuildValue("i",_result
);
7218 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7219 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7220 PyObject
* _resultobj
;
7224 PyObject
* _argo0
= 0;
7225 char *_kwnames
[] = { "self","x","y", NULL
};
7228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7239 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7241 wxPyEndAllowThreads(__tstate
);
7242 if (PyErr_Occurred()) return NULL
;
7243 } Py_INCREF(Py_None
);
7244 _resultobj
= Py_None
;
7248 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7249 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7250 PyObject
* _resultobj
;
7253 PyObject
* _argo0
= 0;
7254 PyObject
* _argo1
= 0;
7255 char *_kwnames
[] = { "self","brush", NULL
};
7258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7268 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7275 wxDC_SetBackground(_arg0
,*_arg1
);
7277 wxPyEndAllowThreads(__tstate
);
7278 if (PyErr_Occurred()) return NULL
;
7279 } Py_INCREF(Py_None
);
7280 _resultobj
= Py_None
;
7284 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7285 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7286 PyObject
* _resultobj
;
7289 PyObject
* _argo0
= 0;
7290 char *_kwnames
[] = { "self","mode", NULL
};
7293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7304 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7306 wxPyEndAllowThreads(__tstate
);
7307 if (PyErr_Occurred()) return NULL
;
7308 } Py_INCREF(Py_None
);
7309 _resultobj
= Py_None
;
7313 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7314 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7315 PyObject
* _resultobj
;
7321 PyObject
* _argo0
= 0;
7322 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7336 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7338 wxPyEndAllowThreads(__tstate
);
7339 if (PyErr_Occurred()) return NULL
;
7340 } Py_INCREF(Py_None
);
7341 _resultobj
= Py_None
;
7345 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7346 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7347 PyObject
* _resultobj
;
7350 PyObject
* _argo0
= 0;
7351 PyObject
* _argo1
= 0;
7352 char *_kwnames
[] = { "self","region", NULL
};
7355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
7358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7365 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
7366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
7371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7372 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
7374 wxPyEndAllowThreads(__tstate
);
7375 if (PyErr_Occurred()) return NULL
;
7376 } Py_INCREF(Py_None
);
7377 _resultobj
= Py_None
;
7381 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7382 static PyObject
*_wrap_wxDC_SetClippingRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7383 PyObject
* _resultobj
;
7386 PyObject
* _argo0
= 0;
7388 PyObject
* _obj1
= 0;
7389 char *_kwnames
[] = { "self","rect", NULL
};
7392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRect",_kwnames
,&_argo0
,&_obj1
))
7395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
7403 if (! wxRect_helper(_obj1
, &_arg1
))
7407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7408 wxDC_SetClippingRect(_arg0
,*_arg1
);
7410 wxPyEndAllowThreads(__tstate
);
7411 if (PyErr_Occurred()) return NULL
;
7412 } Py_INCREF(Py_None
);
7413 _resultobj
= Py_None
;
7417 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7418 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7419 PyObject
* _resultobj
;
7422 PyObject
* _argo0
= 0;
7423 PyObject
* _argo1
= 0;
7424 char *_kwnames
[] = { "self","colourMap", NULL
};
7427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7437 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7444 wxDC_SetPalette(_arg0
,*_arg1
);
7446 wxPyEndAllowThreads(__tstate
);
7447 if (PyErr_Occurred()) return NULL
;
7448 } Py_INCREF(Py_None
);
7449 _resultobj
= Py_None
;
7453 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7454 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7455 PyObject
* _resultobj
;
7458 PyObject
* _argo0
= 0;
7459 PyObject
* _argo1
= 0;
7460 char *_kwnames
[] = { "self","brush", NULL
};
7463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7473 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7480 wxDC_SetBrush(_arg0
,*_arg1
);
7482 wxPyEndAllowThreads(__tstate
);
7483 if (PyErr_Occurred()) return NULL
;
7484 } Py_INCREF(Py_None
);
7485 _resultobj
= Py_None
;
7489 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7490 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7491 PyObject
* _resultobj
;
7494 PyObject
* _argo0
= 0;
7495 PyObject
* _argo1
= 0;
7496 char *_kwnames
[] = { "self","font", NULL
};
7499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7509 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7516 wxDC_SetFont(_arg0
,*_arg1
);
7518 wxPyEndAllowThreads(__tstate
);
7519 if (PyErr_Occurred()) return NULL
;
7520 } Py_INCREF(Py_None
);
7521 _resultobj
= Py_None
;
7525 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7526 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7527 PyObject
* _resultobj
;
7530 PyObject
* _argo0
= 0;
7531 char *_kwnames
[] = { "self","function", NULL
};
7534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7545 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7547 wxPyEndAllowThreads(__tstate
);
7548 if (PyErr_Occurred()) return NULL
;
7549 } Py_INCREF(Py_None
);
7550 _resultobj
= Py_None
;
7554 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7555 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7556 PyObject
* _resultobj
;
7560 PyObject
* _argo0
= 0;
7561 char *_kwnames
[] = { "self","x","y", NULL
};
7564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7575 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7577 wxPyEndAllowThreads(__tstate
);
7578 if (PyErr_Occurred()) return NULL
;
7579 } Py_INCREF(Py_None
);
7580 _resultobj
= Py_None
;
7584 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7585 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7586 PyObject
* _resultobj
;
7589 PyObject
* _argo0
= 0;
7590 char *_kwnames
[] = { "self","mode", NULL
};
7593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7604 wxDC_SetMapMode(_arg0
,_arg1
);
7606 wxPyEndAllowThreads(__tstate
);
7607 if (PyErr_Occurred()) return NULL
;
7608 } Py_INCREF(Py_None
);
7609 _resultobj
= Py_None
;
7613 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7614 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7615 PyObject
* _resultobj
;
7618 PyObject
* _argo0
= 0;
7620 char *_kwnames
[] = { "self","optimize", NULL
};
7623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7632 _arg1
= (bool ) tempbool1
;
7634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7635 wxDC_SetOptimization(_arg0
,_arg1
);
7637 wxPyEndAllowThreads(__tstate
);
7638 if (PyErr_Occurred()) return NULL
;
7639 } Py_INCREF(Py_None
);
7640 _resultobj
= Py_None
;
7644 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7645 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7646 PyObject
* _resultobj
;
7649 PyObject
* _argo0
= 0;
7650 PyObject
* _argo1
= 0;
7651 char *_kwnames
[] = { "self","pen", NULL
};
7654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7664 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7671 wxDC_SetPen(_arg0
,*_arg1
);
7673 wxPyEndAllowThreads(__tstate
);
7674 if (PyErr_Occurred()) return NULL
;
7675 } Py_INCREF(Py_None
);
7676 _resultobj
= Py_None
;
7680 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7681 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7682 PyObject
* _resultobj
;
7685 PyObject
* _argo0
= 0;
7687 PyObject
* _obj1
= 0;
7688 char *_kwnames
[] = { "self","colour", NULL
};
7691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7702 if (! wxColour_helper(_obj1
, &_arg1
))
7706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7707 wxDC_SetTextBackground(_arg0
,*_arg1
);
7709 wxPyEndAllowThreads(__tstate
);
7710 if (PyErr_Occurred()) return NULL
;
7711 } Py_INCREF(Py_None
);
7712 _resultobj
= Py_None
;
7716 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7717 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7718 PyObject
* _resultobj
;
7721 PyObject
* _argo0
= 0;
7723 PyObject
* _obj1
= 0;
7724 char *_kwnames
[] = { "self","colour", NULL
};
7727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7738 if (! wxColour_helper(_obj1
, &_arg1
))
7742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7743 wxDC_SetTextForeground(_arg0
,*_arg1
);
7745 wxPyEndAllowThreads(__tstate
);
7746 if (PyErr_Occurred()) return NULL
;
7747 } Py_INCREF(Py_None
);
7748 _resultobj
= Py_None
;
7752 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7753 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7754 PyObject
* _resultobj
;
7758 PyObject
* _argo0
= 0;
7759 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7773 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7775 wxPyEndAllowThreads(__tstate
);
7776 if (PyErr_Occurred()) return NULL
;
7777 } Py_INCREF(Py_None
);
7778 _resultobj
= Py_None
;
7782 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7783 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7784 PyObject
* _resultobj
;
7788 PyObject
* _argo0
= 0;
7789 PyObject
* _obj1
= 0;
7790 char *_kwnames
[] = { "self","message", NULL
};
7793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7803 _arg1
= wxString_in_helper(_obj1
);
7808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7809 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7811 wxPyEndAllowThreads(__tstate
);
7812 if (PyErr_Occurred()) return NULL
;
7813 } _resultobj
= Py_BuildValue("i",_result
);
7821 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7822 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7823 PyObject
* _resultobj
;
7825 PyObject
* _argo0
= 0;
7826 char *_kwnames
[] = { "self", NULL
};
7829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7840 wxDC_StartPage(_arg0
);
7842 wxPyEndAllowThreads(__tstate
);
7843 if (PyErr_Occurred()) return NULL
;
7844 } Py_INCREF(Py_None
);
7845 _resultobj
= Py_None
;
7849 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7850 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7851 PyObject
* _resultobj
;
7856 int _arg4
= (int ) FALSE
;
7857 PyObject
* _argo0
= 0;
7858 PyObject
* _argo1
= 0;
7859 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7872 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7879 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7881 wxPyEndAllowThreads(__tstate
);
7882 if (PyErr_Occurred()) return NULL
;
7883 } Py_INCREF(Py_None
);
7884 _resultobj
= Py_None
;
7888 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7889 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7890 PyObject
* _resultobj
;
7893 PyObject
* _argo0
= 0;
7894 char *_kwnames
[] = { "self", NULL
};
7897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7908 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7910 wxPyEndAllowThreads(__tstate
);
7911 if (PyErr_Occurred()) return NULL
;
7912 } _resultobj
= Py_BuildValue("i",_result
);
7916 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7917 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7918 PyObject
* _resultobj
;
7921 PyObject
* _argo0
= 0;
7922 char *_kwnames
[] = { "self", NULL
};
7925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7936 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7938 wxPyEndAllowThreads(__tstate
);
7939 if (PyErr_Occurred()) return NULL
;
7940 } _resultobj
= Py_BuildValue("i",_result
);
7944 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7945 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7946 PyObject
* _resultobj
;
7949 PyObject
* _argo0
= 0;
7950 char *_kwnames
[] = { "self", NULL
};
7953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7964 _result
= (int )wxDC_GetDepth(_arg0
);
7966 wxPyEndAllowThreads(__tstate
);
7967 if (PyErr_Occurred()) return NULL
;
7968 } _resultobj
= Py_BuildValue("i",_result
);
7972 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7973 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7974 PyObject
* _resultobj
;
7977 PyObject
* _argo0
= 0;
7978 char *_kwnames
[] = { "self", NULL
};
7982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7993 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7995 wxPyEndAllowThreads(__tstate
);
7996 if (PyErr_Occurred()) return NULL
;
7997 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7998 _resultobj
= Py_BuildValue("s",_ptemp
);
8002 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8003 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8004 PyObject
* _resultobj
;
8010 PyObject
* _argo0
= 0;
8011 char *_kwnames
[] = { "self", NULL
};
8020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8031 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8033 wxPyEndAllowThreads(__tstate
);
8034 if (PyErr_Occurred()) return NULL
;
8035 } Py_INCREF(Py_None
);
8036 _resultobj
= Py_None
;
8039 o
= PyInt_FromLong((long) (*_arg1
));
8040 _resultobj
= t_output_helper(_resultobj
, o
);
8044 o
= PyInt_FromLong((long) (*_arg2
));
8045 _resultobj
= t_output_helper(_resultobj
, o
);
8050 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8051 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8052 PyObject
* _resultobj
;
8056 PyObject
* _argo0
= 0;
8057 char *_kwnames
[] = { "self","x","y", NULL
};
8060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8071 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8073 wxPyEndAllowThreads(__tstate
);
8074 if (PyErr_Occurred()) return NULL
;
8075 } Py_INCREF(Py_None
);
8076 _resultobj
= Py_None
;
8080 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8081 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8082 PyObject
* _resultobj
;
8088 PyObject
* _argo0
= 0;
8089 char *_kwnames
[] = { "self", NULL
};
8098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
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_GetDeviceOrigin. Expected _wxDC_p.");
8108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8109 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8111 wxPyEndAllowThreads(__tstate
);
8112 if (PyErr_Occurred()) return NULL
;
8113 } Py_INCREF(Py_None
);
8114 _resultobj
= Py_None
;
8117 o
= PyInt_FromLong((long) (*_arg1
));
8118 _resultobj
= t_output_helper(_resultobj
, o
);
8122 o
= PyInt_FromLong((long) (*_arg2
));
8123 _resultobj
= t_output_helper(_resultobj
, o
);
8128 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8129 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8130 PyObject
* _resultobj
;
8134 PyObject
* _argo0
= 0;
8137 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8149 _arg1
= (bool ) tempbool1
;
8150 _arg2
= (bool ) tempbool2
;
8152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8153 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8155 wxPyEndAllowThreads(__tstate
);
8156 if (PyErr_Occurred()) return NULL
;
8157 } Py_INCREF(Py_None
);
8158 _resultobj
= Py_None
;
8162 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8163 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8164 PyObject
* _resultobj
;
8168 PyObject
* _argo0
= 0;
8169 char *_kwnames
[] = { "self","x","y", NULL
};
8172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8183 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8185 wxPyEndAllowThreads(__tstate
);
8186 if (PyErr_Occurred()) return NULL
;
8187 } Py_INCREF(Py_None
);
8188 _resultobj
= Py_None
;
8192 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8193 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8194 PyObject
* _resultobj
;
8196 PyObject
* _argo0
= 0;
8197 char *_kwnames
[] = { "self", NULL
};
8200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8211 wxDC_ResetBoundingBox(_arg0
);
8213 wxPyEndAllowThreads(__tstate
);
8214 if (PyErr_Occurred()) return NULL
;
8215 } Py_INCREF(Py_None
);
8216 _resultobj
= Py_None
;
8220 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8221 PyObject
* _resultobj
;
8231 PyObject
* _argo0
= 0;
8232 char *_kwnames
[] = { "self", NULL
};
8247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
8250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8258 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8260 wxPyEndAllowThreads(__tstate
);
8261 if (PyErr_Occurred()) return NULL
;
8262 } Py_INCREF(Py_None
);
8263 _resultobj
= Py_None
;
8266 o
= PyInt_FromLong((long) (*_arg1
));
8267 _resultobj
= t_output_helper(_resultobj
, o
);
8271 o
= PyInt_FromLong((long) (*_arg2
));
8272 _resultobj
= t_output_helper(_resultobj
, o
);
8276 o
= PyInt_FromLong((long) (*_arg3
));
8277 _resultobj
= t_output_helper(_resultobj
, o
);
8281 o
= PyInt_FromLong((long) (*_arg4
));
8282 _resultobj
= t_output_helper(_resultobj
, o
);
8287 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8288 return wxPyDrawXXXList(*self
, wxPyDrawXXXPoint
, pyCoords
, pyPens
, pyBrushes
);
8290 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8291 PyObject
* _resultobj
;
8297 PyObject
* _argo0
= 0;
8298 PyObject
* _obj1
= 0;
8299 PyObject
* _obj2
= 0;
8300 PyObject
* _obj3
= 0;
8301 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8307 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8308 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8324 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
,_arg3
);
8326 wxPyEndAllowThreads(__tstate
);
8327 if (PyErr_Occurred()) return NULL
;
8329 _resultobj
= _result
;
8334 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8335 return wxPyDrawXXXList(*self
, wxPyDrawXXXLine
, pyCoords
, pyPens
, pyBrushes
);
8337 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8338 PyObject
* _resultobj
;
8344 PyObject
* _argo0
= 0;
8345 PyObject
* _obj1
= 0;
8346 PyObject
* _obj2
= 0;
8347 PyObject
* _obj3
= 0;
8348 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
8370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8371 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
,_arg3
);
8373 wxPyEndAllowThreads(__tstate
);
8374 if (PyErr_Occurred()) return NULL
;
8376 _resultobj
= _result
;
8381 static PyObject
* wxDC__DrawRectangleList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8382 return wxPyDrawXXXList(*self
, wxPyDrawXXXRectangle
, pyCoords
, pyPens
, pyBrushes
);
8384 static PyObject
*_wrap_wxDC__DrawRectangleList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8385 PyObject
* _resultobj
;
8391 PyObject
* _argo0
= 0;
8392 PyObject
* _obj1
= 0;
8393 PyObject
* _obj2
= 0;
8394 PyObject
* _obj3
= 0;
8395 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawRectangleList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
8417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8418 _result
= (PyObject
*)wxDC__DrawRectangleList(_arg0
,_arg1
,_arg2
,_arg3
);
8420 wxPyEndAllowThreads(__tstate
);
8421 if (PyErr_Occurred()) return NULL
;
8423 _resultobj
= _result
;
8428 static PyObject
* wxDC__DrawEllipseList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8429 return wxPyDrawXXXList(*self
, wxPyDrawXXXEllipse
, pyCoords
, pyPens
, pyBrushes
);
8431 static PyObject
*_wrap_wxDC__DrawEllipseList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8432 PyObject
* _resultobj
;
8438 PyObject
* _argo0
= 0;
8439 PyObject
* _obj1
= 0;
8440 PyObject
* _obj2
= 0;
8441 PyObject
* _obj3
= 0;
8442 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawEllipseList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
8464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8465 _result
= (PyObject
*)wxDC__DrawEllipseList(_arg0
,_arg1
,_arg2
,_arg3
);
8467 wxPyEndAllowThreads(__tstate
);
8468 if (PyErr_Occurred()) return NULL
;
8470 _resultobj
= _result
;
8475 static PyObject
* wxDC__DrawPolygonList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8476 return wxPyDrawXXXList(*self
, wxPyDrawXXXPolygon
, pyCoords
, pyPens
, pyBrushes
);
8478 static PyObject
*_wrap_wxDC__DrawPolygonList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8479 PyObject
* _resultobj
;
8485 PyObject
* _argo0
= 0;
8486 PyObject
* _obj1
= 0;
8487 PyObject
* _obj2
= 0;
8488 PyObject
* _obj3
= 0;
8489 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPolygonList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
8511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8512 _result
= (PyObject
*)wxDC__DrawPolygonList(_arg0
,_arg1
,_arg2
,_arg3
);
8514 wxPyEndAllowThreads(__tstate
);
8515 if (PyErr_Occurred()) return NULL
;
8517 _resultobj
= _result
;
8522 static PyObject
* wxDC__DrawTextList(wxDC
*self
,PyObject
* textList
,PyObject
* pyPoints
,PyObject
* foregroundList
,PyObject
* backgroundList
) {
8523 return wxPyDrawTextList(*self
, textList
, pyPoints
, foregroundList
, backgroundList
);
8525 static PyObject
*_wrap_wxDC__DrawTextList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8526 PyObject
* _resultobj
;
8533 PyObject
* _argo0
= 0;
8534 PyObject
* _obj1
= 0;
8535 PyObject
* _obj2
= 0;
8536 PyObject
* _obj3
= 0;
8537 PyObject
* _obj4
= 0;
8538 char *_kwnames
[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL
};
8541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:wxDC__DrawTextList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
,&_obj4
))
8544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
8563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8564 _result
= (PyObject
*)wxDC__DrawTextList(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8566 wxPyEndAllowThreads(__tstate
);
8567 if (PyErr_Occurred()) return NULL
;
8569 _resultobj
= _result
;
8574 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8577 src
= (wxMemoryDC
*) ptr
;
8578 dest
= (wxDC
*) src
;
8579 return (void *) dest
;
8582 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8585 src
= (wxMemoryDC
*) ptr
;
8586 dest
= (wxObject
*) src
;
8587 return (void *) dest
;
8590 #define new_wxMemoryDC() (new wxMemoryDC())
8591 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8592 PyObject
* _resultobj
;
8593 wxMemoryDC
* _result
;
8594 char *_kwnames
[] = { NULL
};
8598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8602 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8604 wxPyEndAllowThreads(__tstate
);
8605 if (PyErr_Occurred()) return NULL
;
8607 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8608 _resultobj
= Py_BuildValue("s",_ptemp
);
8611 _resultobj
= Py_None
;
8616 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8617 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8618 PyObject
* _resultobj
;
8621 PyObject
* _argo0
= 0;
8622 PyObject
* _argo1
= 0;
8623 char *_kwnames
[] = { "self","bitmap", NULL
};
8626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8636 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8643 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8645 wxPyEndAllowThreads(__tstate
);
8646 if (PyErr_Occurred()) return NULL
;
8647 } Py_INCREF(Py_None
);
8648 _resultobj
= Py_None
;
8652 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
8655 src
= (wxBufferedDC
*) ptr
;
8656 dest
= (wxMemoryDC
*) src
;
8657 return (void *) dest
;
8660 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
8663 src
= (wxBufferedDC
*) ptr
;
8664 dest
= (wxDC
*) src
;
8665 return (void *) dest
;
8668 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
8671 src
= (wxBufferedDC
*) ptr
;
8672 dest
= (wxObject
*) src
;
8673 return (void *) dest
;
8676 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8677 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8678 PyObject
* _resultobj
;
8679 wxBufferedDC
* _result
;
8682 PyObject
* _argo0
= 0;
8683 PyObject
* _argo1
= 0;
8684 char *_kwnames
[] = { "dc","buffer", NULL
};
8688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
8691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
8698 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
8704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8705 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
8707 wxPyEndAllowThreads(__tstate
);
8708 if (PyErr_Occurred()) return NULL
;
8710 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8711 _resultobj
= Py_BuildValue("s",_ptemp
);
8714 _resultobj
= Py_None
;
8719 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8720 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8721 PyObject
* _resultobj
;
8722 wxBufferedDC
* _result
;
8725 PyObject
* _argo0
= 0;
8727 PyObject
* _obj1
= 0;
8728 char *_kwnames
[] = { "dc","area", NULL
};
8732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
8735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8743 if (! wxSize_helper(_obj1
, &_arg1
))
8747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8748 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
8750 wxPyEndAllowThreads(__tstate
);
8751 if (PyErr_Occurred()) return NULL
;
8753 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8754 _resultobj
= Py_BuildValue("s",_ptemp
);
8757 _resultobj
= Py_None
;
8762 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
8763 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8764 PyObject
* _resultobj
;
8765 wxBufferedDC
* _arg0
;
8766 PyObject
* _argo0
= 0;
8767 char *_kwnames
[] = { "self", NULL
};
8770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
8773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
8775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
8780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8781 wxBufferedDC_UnMask(_arg0
);
8783 wxPyEndAllowThreads(__tstate
);
8784 if (PyErr_Occurred()) return NULL
;
8785 } Py_INCREF(Py_None
);
8786 _resultobj
= Py_None
;
8790 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
8791 wxBufferedPaintDC
*src
;
8793 src
= (wxBufferedPaintDC
*) ptr
;
8794 dest
= (wxBufferedDC
*) src
;
8795 return (void *) dest
;
8798 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
8799 wxBufferedPaintDC
*src
;
8801 src
= (wxBufferedPaintDC
*) ptr
;
8802 dest
= (wxMemoryDC
*) src
;
8803 return (void *) dest
;
8806 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
8807 wxBufferedPaintDC
*src
;
8809 src
= (wxBufferedPaintDC
*) ptr
;
8810 dest
= (wxDC
*) src
;
8811 return (void *) dest
;
8814 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
8815 wxBufferedPaintDC
*src
;
8817 src
= (wxBufferedPaintDC
*) ptr
;
8818 dest
= (wxObject
*) src
;
8819 return (void *) dest
;
8822 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
8823 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8824 PyObject
* _resultobj
;
8825 wxBufferedPaintDC
* _result
;
8827 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
8828 PyObject
* _argo0
= 0;
8829 PyObject
* _argo1
= 0;
8830 char *_kwnames
[] = { "window","buffer", NULL
};
8834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
8837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8844 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8851 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
8853 wxPyEndAllowThreads(__tstate
);
8854 if (PyErr_Occurred()) return NULL
;
8856 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
8857 _resultobj
= Py_BuildValue("s",_ptemp
);
8860 _resultobj
= Py_None
;
8865 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8868 src
= (wxScreenDC
*) ptr
;
8869 dest
= (wxDC
*) src
;
8870 return (void *) dest
;
8873 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8876 src
= (wxScreenDC
*) ptr
;
8877 dest
= (wxObject
*) src
;
8878 return (void *) dest
;
8881 #define new_wxScreenDC() (new wxScreenDC())
8882 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8883 PyObject
* _resultobj
;
8884 wxScreenDC
* _result
;
8885 char *_kwnames
[] = { NULL
};
8889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8893 _result
= (wxScreenDC
*)new_wxScreenDC();
8895 wxPyEndAllowThreads(__tstate
);
8896 if (PyErr_Occurred()) return NULL
;
8898 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8899 _resultobj
= Py_BuildValue("s",_ptemp
);
8902 _resultobj
= Py_None
;
8907 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8908 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8909 PyObject
* _resultobj
;
8913 PyObject
* _argo0
= 0;
8914 PyObject
* _argo1
= 0;
8915 char *_kwnames
[] = { "self","window", NULL
};
8918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8928 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8929 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8936 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8938 wxPyEndAllowThreads(__tstate
);
8939 if (PyErr_Occurred()) return NULL
;
8940 } _resultobj
= Py_BuildValue("i",_result
);
8944 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8945 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8946 PyObject
* _resultobj
;
8949 wxRect
* _arg1
= (wxRect
*) NULL
;
8950 PyObject
* _argo0
= 0;
8952 PyObject
* _obj1
= 0;
8953 char *_kwnames
[] = { "self","rect", NULL
};
8956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8968 if (! wxRect_helper(_obj1
, &_arg1
))
8972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8973 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8975 wxPyEndAllowThreads(__tstate
);
8976 if (PyErr_Occurred()) return NULL
;
8977 } _resultobj
= Py_BuildValue("i",_result
);
8981 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8982 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8983 PyObject
* _resultobj
;
8986 PyObject
* _argo0
= 0;
8987 char *_kwnames
[] = { "self", NULL
};
8990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9001 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9003 wxPyEndAllowThreads(__tstate
);
9004 if (PyErr_Occurred()) return NULL
;
9005 } _resultobj
= Py_BuildValue("i",_result
);
9009 static void *SwigwxClientDCTowxDC(void *ptr
) {
9012 src
= (wxClientDC
*) ptr
;
9013 dest
= (wxDC
*) src
;
9014 return (void *) dest
;
9017 static void *SwigwxClientDCTowxObject(void *ptr
) {
9020 src
= (wxClientDC
*) ptr
;
9021 dest
= (wxObject
*) src
;
9022 return (void *) dest
;
9025 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9026 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9027 PyObject
* _resultobj
;
9028 wxClientDC
* _result
;
9030 PyObject
* _argo0
= 0;
9031 char *_kwnames
[] = { "win", NULL
};
9035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9046 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9048 wxPyEndAllowThreads(__tstate
);
9049 if (PyErr_Occurred()) return NULL
;
9051 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9052 _resultobj
= Py_BuildValue("s",_ptemp
);
9055 _resultobj
= Py_None
;
9060 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9063 src
= (wxPaintDC
*) ptr
;
9064 dest
= (wxDC
*) src
;
9065 return (void *) dest
;
9068 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9071 src
= (wxPaintDC
*) ptr
;
9072 dest
= (wxObject
*) src
;
9073 return (void *) dest
;
9076 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9077 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9078 PyObject
* _resultobj
;
9079 wxPaintDC
* _result
;
9081 PyObject
* _argo0
= 0;
9082 char *_kwnames
[] = { "win", NULL
};
9086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9097 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9099 wxPyEndAllowThreads(__tstate
);
9100 if (PyErr_Occurred()) return NULL
;
9102 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9103 _resultobj
= Py_BuildValue("s",_ptemp
);
9106 _resultobj
= Py_None
;
9111 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9114 src
= (wxWindowDC
*) ptr
;
9115 dest
= (wxDC
*) src
;
9116 return (void *) dest
;
9119 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9122 src
= (wxWindowDC
*) ptr
;
9123 dest
= (wxObject
*) src
;
9124 return (void *) dest
;
9127 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9128 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9129 PyObject
* _resultobj
;
9130 wxWindowDC
* _result
;
9132 PyObject
* _argo0
= 0;
9133 char *_kwnames
[] = { "win", NULL
};
9137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9148 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9150 wxPyEndAllowThreads(__tstate
);
9151 if (PyErr_Occurred()) return NULL
;
9153 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9154 _resultobj
= Py_BuildValue("s",_ptemp
);
9157 _resultobj
= Py_None
;
9162 static void *SwigwxMirrorDCTowxDC(void *ptr
) {
9165 src
= (wxMirrorDC
*) ptr
;
9166 dest
= (wxDC
*) src
;
9167 return (void *) dest
;
9170 static void *SwigwxMirrorDCTowxObject(void *ptr
) {
9173 src
= (wxMirrorDC
*) ptr
;
9174 dest
= (wxObject
*) src
;
9175 return (void *) dest
;
9178 #define new_wxMirrorDC(_swigarg0,_swigarg1) (new wxMirrorDC(_swigarg0,_swigarg1))
9179 static PyObject
*_wrap_new_wxMirrorDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9180 PyObject
* _resultobj
;
9181 wxMirrorDC
* _result
;
9184 PyObject
* _argo0
= 0;
9186 char *_kwnames
[] = { "dc","mirror", NULL
};
9190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:new_wxMirrorDC",_kwnames
,&_argo0
,&tempbool1
))
9193 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMirrorDC. Expected _wxDC_p.");
9198 _arg1
= (bool ) tempbool1
;
9200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9201 _result
= (wxMirrorDC
*)new_wxMirrorDC(*_arg0
,_arg1
);
9203 wxPyEndAllowThreads(__tstate
);
9204 if (PyErr_Occurred()) return NULL
;
9206 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMirrorDC_p");
9207 _resultobj
= Py_BuildValue("s",_ptemp
);
9210 _resultobj
= Py_None
;
9215 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9218 src
= (wxPalette
*) ptr
;
9219 dest
= (wxGDIObject
*) src
;
9220 return (void *) dest
;
9223 static void *SwigwxPaletteTowxObject(void *ptr
) {
9226 src
= (wxPalette
*) ptr
;
9227 dest
= (wxObject
*) src
;
9228 return (void *) dest
;
9231 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9232 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9233 PyObject
* _resultobj
;
9234 wxPalette
* _result
;
9239 PyObject
* _obj1
= 0;
9240 PyObject
* _obj2
= 0;
9241 PyObject
* _obj3
= 0;
9242 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9249 _arg1
= byte_LIST_helper(_obj1
);
9250 if (_arg1
== NULL
) {
9255 _arg2
= byte_LIST_helper(_obj2
);
9256 if (_arg2
== NULL
) {
9262 _arg3
= byte_LIST_helper(_obj3
);
9263 if (_arg3
== NULL
) {
9269 _arg0
= PyList_Size(_obj1
);
9276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9277 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9279 wxPyEndAllowThreads(__tstate
);
9280 if (PyErr_Occurred()) return NULL
;
9282 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9283 _resultobj
= Py_BuildValue("s",_ptemp
);
9286 _resultobj
= Py_None
;
9300 #define delete_wxPalette(_swigobj) (delete _swigobj)
9301 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9302 PyObject
* _resultobj
;
9304 PyObject
* _argo0
= 0;
9305 char *_kwnames
[] = { "self", NULL
};
9308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9319 delete_wxPalette(_arg0
);
9321 wxPyEndAllowThreads(__tstate
);
9322 if (PyErr_Occurred()) return NULL
;
9323 } Py_INCREF(Py_None
);
9324 _resultobj
= Py_None
;
9328 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9329 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9330 PyObject
* _resultobj
;
9336 PyObject
* _argo0
= 0;
9337 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9351 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9353 wxPyEndAllowThreads(__tstate
);
9354 if (PyErr_Occurred()) return NULL
;
9355 } _resultobj
= Py_BuildValue("i",_result
);
9359 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9360 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9361 PyObject
* _resultobj
;
9371 PyObject
* _argo0
= 0;
9372 char *_kwnames
[] = { "self","pixel", NULL
};
9376 _arg2
= (byte
*)&temp
;
9379 _arg3
= (byte
*)&temp0
;
9382 _arg4
= (byte
*)&temp1
;
9384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
9387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9395 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9397 wxPyEndAllowThreads(__tstate
);
9398 if (PyErr_Occurred()) return NULL
;
9399 } _resultobj
= Py_BuildValue("i",_result
);
9402 o
= PyInt_FromLong((long) (*_arg2
));
9403 _resultobj
= t_output_helper(_resultobj
, o
);
9407 o
= PyInt_FromLong((long) (*_arg3
));
9408 _resultobj
= t_output_helper(_resultobj
, o
);
9412 o
= PyInt_FromLong((long) (*_arg4
));
9413 _resultobj
= t_output_helper(_resultobj
, o
);
9418 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9419 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9420 PyObject
* _resultobj
;
9423 PyObject
* _argo0
= 0;
9424 char *_kwnames
[] = { "self", NULL
};
9427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9438 _result
= (bool )wxPalette_Ok(_arg0
);
9440 wxPyEndAllowThreads(__tstate
);
9441 if (PyErr_Occurred()) return NULL
;
9442 } _resultobj
= Py_BuildValue("i",_result
);
9446 static void *SwigwxImageListTowxObject(void *ptr
) {
9449 src
= (wxImageList
*) ptr
;
9450 dest
= (wxObject
*) src
;
9451 return (void *) dest
;
9454 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9455 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9456 PyObject
* _resultobj
;
9457 wxImageList
* _result
;
9460 int _arg2
= (int ) TRUE
;
9461 int _arg3
= (int ) 1;
9462 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
9466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9470 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
9472 wxPyEndAllowThreads(__tstate
);
9473 if (PyErr_Occurred()) return NULL
;
9475 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
9476 _resultobj
= Py_BuildValue("s",_ptemp
);
9479 _resultobj
= Py_None
;
9484 #define delete_wxImageList(_swigobj) (delete _swigobj)
9485 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9486 PyObject
* _resultobj
;
9487 wxImageList
* _arg0
;
9488 PyObject
* _argo0
= 0;
9489 char *_kwnames
[] = { "self", NULL
};
9492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
9495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9503 delete_wxImageList(_arg0
);
9505 wxPyEndAllowThreads(__tstate
);
9506 if (PyErr_Occurred()) return NULL
;
9507 } Py_INCREF(Py_None
);
9508 _resultobj
= Py_None
;
9512 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9513 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9514 PyObject
* _resultobj
;
9516 wxImageList
* _arg0
;
9518 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
9519 PyObject
* _argo0
= 0;
9520 PyObject
* _argo1
= 0;
9521 PyObject
* _argo2
= 0;
9522 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
9525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
9528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9535 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9541 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9548 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
9550 wxPyEndAllowThreads(__tstate
);
9551 if (PyErr_Occurred()) return NULL
;
9552 } _resultobj
= Py_BuildValue("i",_result
);
9556 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9557 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9558 PyObject
* _resultobj
;
9560 wxImageList
* _arg0
;
9563 PyObject
* _argo0
= 0;
9564 PyObject
* _argo1
= 0;
9566 PyObject
* _obj2
= 0;
9567 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9580 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9587 if (! wxColour_helper(_obj2
, &_arg2
))
9591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9592 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9594 wxPyEndAllowThreads(__tstate
);
9595 if (PyErr_Occurred()) return NULL
;
9596 } _resultobj
= Py_BuildValue("i",_result
);
9600 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9601 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9602 PyObject
* _resultobj
;
9604 wxImageList
* _arg0
;
9606 PyObject
* _argo0
= 0;
9607 PyObject
* _argo1
= 0;
9608 char *_kwnames
[] = { "self","icon", NULL
};
9611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9621 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9628 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9630 wxPyEndAllowThreads(__tstate
);
9631 if (PyErr_Occurred()) return NULL
;
9632 } _resultobj
= Py_BuildValue("i",_result
);
9636 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
9637 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9638 PyObject
* _resultobj
;
9640 wxImageList
* _arg0
;
9643 PyObject
* _argo0
= 0;
9644 PyObject
* _argo2
= 0;
9645 char *_kwnames
[] = { "self","index","bitmap", NULL
};
9648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
9651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9658 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9665 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
9667 wxPyEndAllowThreads(__tstate
);
9668 if (PyErr_Occurred()) return NULL
;
9669 } _resultobj
= Py_BuildValue("i",_result
);
9673 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9674 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9675 PyObject
* _resultobj
;
9677 wxImageList
* _arg0
;
9682 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9683 bool _arg6
= (bool ) FALSE
;
9684 PyObject
* _argo0
= 0;
9685 PyObject
* _argo2
= 0;
9686 int tempbool6
= (int) FALSE
;
9687 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9700 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9705 _arg6
= (bool ) tempbool6
;
9707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9708 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9710 wxPyEndAllowThreads(__tstate
);
9711 if (PyErr_Occurred()) return NULL
;
9712 } _resultobj
= Py_BuildValue("i",_result
);
9716 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9717 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9718 PyObject
* _resultobj
;
9720 wxImageList
* _arg0
;
9721 PyObject
* _argo0
= 0;
9722 char *_kwnames
[] = { "self", NULL
};
9725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9736 _result
= (int )wxImageList_GetImageCount(_arg0
);
9738 wxPyEndAllowThreads(__tstate
);
9739 if (PyErr_Occurred()) return NULL
;
9740 } _resultobj
= Py_BuildValue("i",_result
);
9744 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9745 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9746 PyObject
* _resultobj
;
9748 wxImageList
* _arg0
;
9750 PyObject
* _argo0
= 0;
9751 char *_kwnames
[] = { "self","index", NULL
};
9754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9765 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9767 wxPyEndAllowThreads(__tstate
);
9768 if (PyErr_Occurred()) return NULL
;
9769 } _resultobj
= Py_BuildValue("i",_result
);
9773 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9774 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9775 PyObject
* _resultobj
;
9777 wxImageList
* _arg0
;
9778 PyObject
* _argo0
= 0;
9779 char *_kwnames
[] = { "self", NULL
};
9782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9792 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9793 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9795 wxPyEndAllowThreads(__tstate
);
9796 if (PyErr_Occurred()) return NULL
;
9797 } _resultobj
= Py_BuildValue("i",_result
);
9801 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9802 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9803 PyObject
* _resultobj
;
9804 wxImageList
* _arg0
;
9810 PyObject
* _argo0
= 0;
9811 char *_kwnames
[] = { "self","index", NULL
};
9820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9831 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9833 wxPyEndAllowThreads(__tstate
);
9834 if (PyErr_Occurred()) return NULL
;
9835 } Py_INCREF(Py_None
);
9836 _resultobj
= Py_None
;
9839 o
= PyInt_FromLong((long) (*_arg2
));
9840 _resultobj
= t_output_helper(_resultobj
, o
);
9844 o
= PyInt_FromLong((long) (*_arg3
));
9845 _resultobj
= t_output_helper(_resultobj
, o
);
9850 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9853 src
= (wxRegion
*) ptr
;
9854 dest
= (wxGDIObject
*) src
;
9855 return (void *) dest
;
9858 static void *SwigwxRegionTowxObject(void *ptr
) {
9861 src
= (wxRegion
*) ptr
;
9862 dest
= (wxObject
*) src
;
9863 return (void *) dest
;
9866 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9867 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9868 PyObject
* _resultobj
;
9870 wxCoord _arg0
= (wxCoord
) 0;
9871 wxCoord _arg1
= (wxCoord
) 0;
9872 wxCoord _arg2
= (wxCoord
) 0;
9873 wxCoord _arg3
= (wxCoord
) 0;
9874 char *_kwnames
[] = { "x","y","width","height", NULL
};
9878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9882 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9884 wxPyEndAllowThreads(__tstate
);
9885 if (PyErr_Occurred()) return NULL
;
9887 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9888 _resultobj
= Py_BuildValue("s",_ptemp
);
9891 _resultobj
= Py_None
;
9896 #define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
9897 static PyObject
*_wrap_new_wxRegionFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9898 PyObject
* _resultobj
;
9901 wxColour
* _arg1
= (wxColour
*) &wxNullColour
;
9902 int _arg2
= (int ) 0;
9903 PyObject
* _argo0
= 0;
9905 PyObject
* _obj1
= 0;
9906 char *_kwnames
[] = { "bmp","transColour","tolerance", NULL
};
9910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|Oi:new_wxRegionFromBitmap",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
9913 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
9914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p.");
9921 if (! wxColour_helper(_obj1
, &_arg1
))
9925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9926 _result
= (wxRegion
*)new_wxRegionFromBitmap(*_arg0
,*_arg1
,_arg2
);
9928 wxPyEndAllowThreads(__tstate
);
9929 if (PyErr_Occurred()) return NULL
;
9931 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9932 _resultobj
= Py_BuildValue("s",_ptemp
);
9935 _resultobj
= Py_None
;
9940 #define delete_wxRegion(_swigobj) (delete _swigobj)
9941 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9942 PyObject
* _resultobj
;
9944 PyObject
* _argo0
= 0;
9945 char *_kwnames
[] = { "self", NULL
};
9948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9959 delete_wxRegion(_arg0
);
9961 wxPyEndAllowThreads(__tstate
);
9962 if (PyErr_Occurred()) return NULL
;
9963 } Py_INCREF(Py_None
);
9964 _resultobj
= Py_None
;
9968 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9969 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9970 PyObject
* _resultobj
;
9972 PyObject
* _argo0
= 0;
9973 char *_kwnames
[] = { "self", NULL
};
9976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9987 wxRegion_Clear(_arg0
);
9989 wxPyEndAllowThreads(__tstate
);
9990 if (PyErr_Occurred()) return NULL
;
9991 } Py_INCREF(Py_None
);
9992 _resultobj
= Py_None
;
9996 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9997 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9998 PyObject
* _resultobj
;
9999 wxRegionContain _result
;
10003 PyObject
* _argo0
= 0;
10004 char *_kwnames
[] = { "self","x","y", NULL
};
10007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10018 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10020 wxPyEndAllowThreads(__tstate
);
10021 if (PyErr_Occurred()) return NULL
;
10022 } _resultobj
= Py_BuildValue("i",_result
);
10026 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10027 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10028 PyObject
* _resultobj
;
10029 wxRegionContain _result
;
10032 PyObject
* _argo0
= 0;
10034 PyObject
* _obj1
= 0;
10035 char *_kwnames
[] = { "self","pt", NULL
};
10038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10049 if (! wxPoint_helper(_obj1
, &_arg1
))
10053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10054 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10056 wxPyEndAllowThreads(__tstate
);
10057 if (PyErr_Occurred()) return NULL
;
10058 } _resultobj
= Py_BuildValue("i",_result
);
10062 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10063 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10064 PyObject
* _resultobj
;
10065 wxRegionContain _result
;
10068 PyObject
* _argo0
= 0;
10070 PyObject
* _obj1
= 0;
10071 char *_kwnames
[] = { "self","rect", NULL
};
10074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10085 if (! wxRect_helper(_obj1
, &_arg1
))
10089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10090 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10092 wxPyEndAllowThreads(__tstate
);
10093 if (PyErr_Occurred()) return NULL
;
10094 } _resultobj
= Py_BuildValue("i",_result
);
10098 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10099 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10100 PyObject
* _resultobj
;
10101 wxRegionContain _result
;
10107 PyObject
* _argo0
= 0;
10108 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10122 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10124 wxPyEndAllowThreads(__tstate
);
10125 if (PyErr_Occurred()) return NULL
;
10126 } _resultobj
= Py_BuildValue("i",_result
);
10130 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10131 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10132 PyObject
* _resultobj
;
10135 PyObject
* _argo0
= 0;
10136 char *_kwnames
[] = { "self", NULL
};
10140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10151 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10153 wxPyEndAllowThreads(__tstate
);
10154 if (PyErr_Occurred()) return NULL
;
10155 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10156 _resultobj
= Py_BuildValue("s",_ptemp
);
10160 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10161 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10162 PyObject
* _resultobj
;
10169 PyObject
* _argo0
= 0;
10170 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10184 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10186 wxPyEndAllowThreads(__tstate
);
10187 if (PyErr_Occurred()) return NULL
;
10188 } _resultobj
= Py_BuildValue("i",_result
);
10192 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10193 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10194 PyObject
* _resultobj
;
10198 PyObject
* _argo0
= 0;
10200 PyObject
* _obj1
= 0;
10201 char *_kwnames
[] = { "self","rect", NULL
};
10204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10215 if (! wxRect_helper(_obj1
, &_arg1
))
10219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10220 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10222 wxPyEndAllowThreads(__tstate
);
10223 if (PyErr_Occurred()) return NULL
;
10224 } _resultobj
= Py_BuildValue("i",_result
);
10228 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10229 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10230 PyObject
* _resultobj
;
10234 PyObject
* _argo0
= 0;
10235 PyObject
* _argo1
= 0;
10236 char *_kwnames
[] = { "self","region", NULL
};
10239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10249 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10255 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10256 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10258 wxPyEndAllowThreads(__tstate
);
10259 if (PyErr_Occurred()) return NULL
;
10260 } _resultobj
= Py_BuildValue("i",_result
);
10264 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10265 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10266 PyObject
* _resultobj
;
10269 PyObject
* _argo0
= 0;
10270 char *_kwnames
[] = { "self", NULL
};
10273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10283 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10284 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10286 wxPyEndAllowThreads(__tstate
);
10287 if (PyErr_Occurred()) return NULL
;
10288 } _resultobj
= Py_BuildValue("i",_result
);
10292 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10293 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10294 PyObject
* _resultobj
;
10301 PyObject
* _argo0
= 0;
10302 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10316 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10318 wxPyEndAllowThreads(__tstate
);
10319 if (PyErr_Occurred()) return NULL
;
10320 } _resultobj
= Py_BuildValue("i",_result
);
10324 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10325 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10326 PyObject
* _resultobj
;
10330 PyObject
* _argo0
= 0;
10332 PyObject
* _obj1
= 0;
10333 char *_kwnames
[] = { "self","rect", NULL
};
10336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10347 if (! wxRect_helper(_obj1
, &_arg1
))
10351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10352 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10354 wxPyEndAllowThreads(__tstate
);
10355 if (PyErr_Occurred()) return NULL
;
10356 } _resultobj
= Py_BuildValue("i",_result
);
10360 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10361 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10362 PyObject
* _resultobj
;
10366 PyObject
* _argo0
= 0;
10367 PyObject
* _argo1
= 0;
10368 char *_kwnames
[] = { "self","region", NULL
};
10371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10381 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10388 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10390 wxPyEndAllowThreads(__tstate
);
10391 if (PyErr_Occurred()) return NULL
;
10392 } _resultobj
= Py_BuildValue("i",_result
);
10396 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10397 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10398 PyObject
* _resultobj
;
10405 PyObject
* _argo0
= 0;
10406 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10420 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10422 wxPyEndAllowThreads(__tstate
);
10423 if (PyErr_Occurred()) return NULL
;
10424 } _resultobj
= Py_BuildValue("i",_result
);
10428 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10429 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10430 PyObject
* _resultobj
;
10434 PyObject
* _argo0
= 0;
10436 PyObject
* _obj1
= 0;
10437 char *_kwnames
[] = { "self","rect", NULL
};
10440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
10443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10451 if (! wxRect_helper(_obj1
, &_arg1
))
10455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10456 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
10458 wxPyEndAllowThreads(__tstate
);
10459 if (PyErr_Occurred()) return NULL
;
10460 } _resultobj
= Py_BuildValue("i",_result
);
10464 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10465 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10466 PyObject
* _resultobj
;
10470 PyObject
* _argo0
= 0;
10471 PyObject
* _argo1
= 0;
10472 char *_kwnames
[] = { "self","region", NULL
};
10475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
10478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10485 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10492 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
10494 wxPyEndAllowThreads(__tstate
);
10495 if (PyErr_Occurred()) return NULL
;
10496 } _resultobj
= Py_BuildValue("i",_result
);
10500 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10501 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10502 PyObject
* _resultobj
;
10509 PyObject
* _argo0
= 0;
10510 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10524 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10526 wxPyEndAllowThreads(__tstate
);
10527 if (PyErr_Occurred()) return NULL
;
10528 } _resultobj
= Py_BuildValue("i",_result
);
10532 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10533 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10534 PyObject
* _resultobj
;
10538 PyObject
* _argo0
= 0;
10540 PyObject
* _obj1
= 0;
10541 char *_kwnames
[] = { "self","rect", NULL
};
10544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
10547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10555 if (! wxRect_helper(_obj1
, &_arg1
))
10559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10560 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
10562 wxPyEndAllowThreads(__tstate
);
10563 if (PyErr_Occurred()) return NULL
;
10564 } _resultobj
= Py_BuildValue("i",_result
);
10568 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10569 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10570 PyObject
* _resultobj
;
10574 PyObject
* _argo0
= 0;
10575 PyObject
* _argo1
= 0;
10576 char *_kwnames
[] = { "self","region", NULL
};
10579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
10582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10589 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10596 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
10598 wxPyEndAllowThreads(__tstate
);
10599 if (PyErr_Occurred()) return NULL
;
10600 } _resultobj
= Py_BuildValue("i",_result
);
10604 #define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
10605 static PyObject
*_wrap_wxRegion_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10606 PyObject
* _resultobj
;
10607 wxBitmap
* _result
;
10609 PyObject
* _argo0
= 0;
10610 char *_kwnames
[] = { "self", NULL
};
10614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_ConvertToBitmap",_kwnames
,&_argo0
))
10617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ConvertToBitmap. Expected _wxRegion_p.");
10624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10625 _result
= new wxBitmap (wxRegion_ConvertToBitmap(_arg0
));
10627 wxPyEndAllowThreads(__tstate
);
10628 if (PyErr_Occurred()) return NULL
;
10629 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
10630 _resultobj
= Py_BuildValue("s",_ptemp
);
10634 #define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2))
10635 static PyObject
*_wrap_wxRegion_UnionBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10636 PyObject
* _resultobj
;
10640 wxColour
* _arg2
= (wxColour
*) &wxNullColour
;
10641 int _arg3
= (int ) 0;
10642 PyObject
* _argo0
= 0;
10643 PyObject
* _argo1
= 0;
10645 PyObject
* _obj2
= 0;
10646 char *_kwnames
[] = { "self","bmp","transColour","tolerance", NULL
};
10649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|Oi:wxRegion_UnionBitmap",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_arg3
))
10652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionBitmap. Expected _wxRegion_p.");
10659 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p.");
10667 if (! wxColour_helper(_obj2
, &_arg2
))
10671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10672 _result
= (bool )wxRegion_UnionBitmap(_arg0
,*_arg1
,*_arg2
,_arg3
);
10674 wxPyEndAllowThreads(__tstate
);
10675 if (PyErr_Occurred()) return NULL
;
10676 } _resultobj
= Py_BuildValue("i",_result
);
10680 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
10681 wxRegionIterator
*src
;
10683 src
= (wxRegionIterator
*) ptr
;
10684 dest
= (wxObject
*) src
;
10685 return (void *) dest
;
10688 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10689 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10690 PyObject
* _resultobj
;
10691 wxRegionIterator
* _result
;
10693 PyObject
* _argo0
= 0;
10694 char *_kwnames
[] = { "region", NULL
};
10698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10701 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10708 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10710 wxPyEndAllowThreads(__tstate
);
10711 if (PyErr_Occurred()) return NULL
;
10713 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10714 _resultobj
= Py_BuildValue("s",_ptemp
);
10716 Py_INCREF(Py_None
);
10717 _resultobj
= Py_None
;
10722 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10723 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10724 PyObject
* _resultobj
;
10725 wxRegionIterator
* _arg0
;
10726 PyObject
* _argo0
= 0;
10727 char *_kwnames
[] = { "self", NULL
};
10730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10741 delete_wxRegionIterator(_arg0
);
10743 wxPyEndAllowThreads(__tstate
);
10744 if (PyErr_Occurred()) return NULL
;
10745 } Py_INCREF(Py_None
);
10746 _resultobj
= Py_None
;
10750 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10751 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10752 PyObject
* _resultobj
;
10754 wxRegionIterator
* _arg0
;
10755 PyObject
* _argo0
= 0;
10756 char *_kwnames
[] = { "self", NULL
};
10759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10770 _result
= (wxCoord
)wxRegionIterator_GetX(_arg0
);
10772 wxPyEndAllowThreads(__tstate
);
10773 if (PyErr_Occurred()) return NULL
;
10774 } _resultobj
= Py_BuildValue("i",_result
);
10778 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10779 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10780 PyObject
* _resultobj
;
10782 wxRegionIterator
* _arg0
;
10783 PyObject
* _argo0
= 0;
10784 char *_kwnames
[] = { "self", NULL
};
10787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10798 _result
= (wxCoord
)wxRegionIterator_GetY(_arg0
);
10800 wxPyEndAllowThreads(__tstate
);
10801 if (PyErr_Occurred()) return NULL
;
10802 } _resultobj
= Py_BuildValue("i",_result
);
10806 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10807 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10808 PyObject
* _resultobj
;
10810 wxRegionIterator
* _arg0
;
10811 PyObject
* _argo0
= 0;
10812 char *_kwnames
[] = { "self", NULL
};
10815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10826 _result
= (wxCoord
)wxRegionIterator_GetW(_arg0
);
10828 wxPyEndAllowThreads(__tstate
);
10829 if (PyErr_Occurred()) return NULL
;
10830 } _resultobj
= Py_BuildValue("i",_result
);
10834 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10835 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10836 PyObject
* _resultobj
;
10838 wxRegionIterator
* _arg0
;
10839 PyObject
* _argo0
= 0;
10840 char *_kwnames
[] = { "self", NULL
};
10843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10854 _result
= (wxCoord
)wxRegionIterator_GetWidth(_arg0
);
10856 wxPyEndAllowThreads(__tstate
);
10857 if (PyErr_Occurred()) return NULL
;
10858 } _resultobj
= Py_BuildValue("i",_result
);
10862 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10863 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10864 PyObject
* _resultobj
;
10866 wxRegionIterator
* _arg0
;
10867 PyObject
* _argo0
= 0;
10868 char *_kwnames
[] = { "self", NULL
};
10871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10882 _result
= (wxCoord
)wxRegionIterator_GetH(_arg0
);
10884 wxPyEndAllowThreads(__tstate
);
10885 if (PyErr_Occurred()) return NULL
;
10886 } _resultobj
= Py_BuildValue("i",_result
);
10890 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10891 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10892 PyObject
* _resultobj
;
10894 wxRegionIterator
* _arg0
;
10895 PyObject
* _argo0
= 0;
10896 char *_kwnames
[] = { "self", NULL
};
10899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10910 _result
= (wxCoord
)wxRegionIterator_GetHeight(_arg0
);
10912 wxPyEndAllowThreads(__tstate
);
10913 if (PyErr_Occurred()) return NULL
;
10914 } _resultobj
= Py_BuildValue("i",_result
);
10918 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10919 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10920 PyObject
* _resultobj
;
10922 wxRegionIterator
* _arg0
;
10923 PyObject
* _argo0
= 0;
10924 char *_kwnames
[] = { "self", NULL
};
10928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10938 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10939 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10941 wxPyEndAllowThreads(__tstate
);
10942 if (PyErr_Occurred()) return NULL
;
10943 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10944 _resultobj
= Py_BuildValue("s",_ptemp
);
10948 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10949 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10950 PyObject
* _resultobj
;
10952 wxRegionIterator
* _arg0
;
10953 PyObject
* _argo0
= 0;
10954 char *_kwnames
[] = { "self", NULL
};
10957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10968 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10970 wxPyEndAllowThreads(__tstate
);
10971 if (PyErr_Occurred()) return NULL
;
10972 } _resultobj
= Py_BuildValue("i",_result
);
10976 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10977 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10978 PyObject
* _resultobj
;
10979 wxRegionIterator
* _arg0
;
10980 PyObject
* _argo0
= 0;
10981 char *_kwnames
[] = { "self", NULL
};
10984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10995 wxRegionIterator_Reset(_arg0
);
10997 wxPyEndAllowThreads(__tstate
);
10998 if (PyErr_Occurred()) return NULL
;
10999 } Py_INCREF(Py_None
);
11000 _resultobj
= Py_None
;
11004 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11007 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11008 PyObject
* _resultobj
;
11009 wxRegionIterator
* _arg0
;
11010 PyObject
* _argo0
= 0;
11011 char *_kwnames
[] = { "self", NULL
};
11014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11025 wxRegionIterator_Next(_arg0
);
11027 wxPyEndAllowThreads(__tstate
);
11028 if (PyErr_Occurred()) return NULL
;
11029 } Py_INCREF(Py_None
);
11030 _resultobj
= Py_None
;
11034 static PyMethodDef gdicMethods
[] = {
11035 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11036 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11037 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11038 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11039 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11040 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11041 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11042 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11043 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11044 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11045 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11046 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11047 { "wxRegion_UnionBitmap", (PyCFunction
) _wrap_wxRegion_UnionBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11048 { "wxRegion_ConvertToBitmap", (PyCFunction
) _wrap_wxRegion_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11049 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11050 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11051 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11052 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11053 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11054 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11055 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11056 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11057 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11058 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11059 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11060 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11061 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11062 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11063 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11064 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11065 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11066 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11067 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11068 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11069 { "new_wxRegionFromBitmap", (PyCFunction
) _wrap_new_wxRegionFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11070 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11071 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11072 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11073 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11074 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11075 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11076 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11077 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11078 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11079 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11080 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11081 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11082 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11083 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11084 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11085 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11086 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11087 { "new_wxMirrorDC", (PyCFunction
) _wrap_new_wxMirrorDC
, METH_VARARGS
| METH_KEYWORDS
},
11088 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11089 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11090 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11091 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11092 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11093 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11094 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11095 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11096 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
11097 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
11098 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
11099 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11100 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11101 { "wxDC__DrawTextList", (PyCFunction
) _wrap_wxDC__DrawTextList
, METH_VARARGS
| METH_KEYWORDS
},
11102 { "wxDC__DrawPolygonList", (PyCFunction
) _wrap_wxDC__DrawPolygonList
, METH_VARARGS
| METH_KEYWORDS
},
11103 { "wxDC__DrawEllipseList", (PyCFunction
) _wrap_wxDC__DrawEllipseList
, METH_VARARGS
| METH_KEYWORDS
},
11104 { "wxDC__DrawRectangleList", (PyCFunction
) _wrap_wxDC__DrawRectangleList
, METH_VARARGS
| METH_KEYWORDS
},
11105 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11106 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11107 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11108 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11109 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11110 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11111 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11112 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11113 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11114 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11115 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11116 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11117 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11118 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11119 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11120 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11121 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11122 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11123 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11124 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11125 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11126 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11127 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11128 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11129 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11130 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11131 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11132 { "wxDC_SetClippingRect", (PyCFunction
) _wrap_wxDC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
},
11133 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11134 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11135 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11136 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11137 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11138 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11139 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11140 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11141 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11142 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11143 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11144 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11145 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11146 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11147 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11148 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11149 { "wxDC_GetMultiLineTextExtent", (PyCFunction
) _wrap_wxDC_GetMultiLineTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11150 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11151 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11152 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11153 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11154 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11155 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11156 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11157 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11158 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11159 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11160 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11161 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11162 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11163 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11164 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11165 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11166 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11167 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11168 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11169 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11170 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11171 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11172 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11173 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11174 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11175 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11176 { "wxDC_DrawRectangleRect", (PyCFunction
) _wrap_wxDC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
},
11177 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11178 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11179 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11180 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11181 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11182 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
11183 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
11184 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11185 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11186 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11187 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11188 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11189 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11190 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11191 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11192 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11193 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11194 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11195 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11196 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11197 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11198 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11199 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11200 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11201 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11202 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11203 { "wxBrush_SetMacTheme", (PyCFunction
) _wrap_wxBrush_SetMacTheme
, METH_VARARGS
| METH_KEYWORDS
},
11204 { "wxBrush_GetMacTheme", (PyCFunction
) _wrap_wxBrush_GetMacTheme
, METH_VARARGS
| METH_KEYWORDS
},
11205 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11206 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11207 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11208 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11209 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11210 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11211 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11212 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11213 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11214 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11215 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11216 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11217 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11218 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11219 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11220 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11221 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11222 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11223 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11224 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11225 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11226 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11227 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11228 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11229 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11230 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11231 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11232 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11233 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11234 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11235 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11236 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11237 { "wxColourDatabase_AddColour", (PyCFunction
) _wrap_wxColourDatabase_AddColour
, METH_VARARGS
| METH_KEYWORDS
},
11238 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11239 { "wxColourDatabase_FindColourNoAdd", (PyCFunction
) _wrap_wxColourDatabase_FindColourNoAdd
, METH_VARARGS
| METH_KEYWORDS
},
11240 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11241 { "wxColour___ne__", (PyCFunction
) _wrap_wxColour___ne__
, METH_VARARGS
| METH_KEYWORDS
},
11242 { "wxColour___eq__", (PyCFunction
) _wrap_wxColour___eq__
, METH_VARARGS
| METH_KEYWORDS
},
11243 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11244 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11245 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11246 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11247 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11248 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11249 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11250 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11251 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11252 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11253 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11254 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
11255 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
11256 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11257 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
11258 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11259 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
11260 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
11261 { "wxIconLocation_GetIndex", (PyCFunction
) _wrap_wxIconLocation_GetIndex
, METH_VARARGS
| METH_KEYWORDS
},
11262 { "wxIconLocation_SetIndex", (PyCFunction
) _wrap_wxIconLocation_SetIndex
, METH_VARARGS
| METH_KEYWORDS
},
11263 { "wxIconLocation_GetFileName", (PyCFunction
) _wrap_wxIconLocation_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
11264 { "wxIconLocation_SetFileName", (PyCFunction
) _wrap_wxIconLocation_SetFileName
, METH_VARARGS
| METH_KEYWORDS
},
11265 { "wxIconLocation_IsOk", (PyCFunction
) _wrap_wxIconLocation_IsOk
, METH_VARARGS
| METH_KEYWORDS
},
11266 { "delete_wxIconLocation", (PyCFunction
) _wrap_delete_wxIconLocation
, METH_VARARGS
| METH_KEYWORDS
},
11267 { "new_wxIconLocation", (PyCFunction
) _wrap_new_wxIconLocation
, METH_VARARGS
| METH_KEYWORDS
},
11268 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11269 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11270 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11271 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11272 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11273 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11274 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11275 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11276 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11277 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11278 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11279 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11280 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11281 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11282 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11283 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11284 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11285 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11286 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11287 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11288 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11289 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11290 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11291 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11292 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11293 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11294 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11295 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11296 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11297 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11298 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11299 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11300 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11301 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11302 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11303 { "wxCursorFromBits", (PyCFunction
) _wrap_wxCursorFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11304 { "wxCursorFromImage", (PyCFunction
) _wrap_wxCursorFromImage
, METH_VARARGS
| METH_KEYWORDS
},
11305 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11306 { "wxIconFromLocation", (PyCFunction
) _wrap_wxIconFromLocation
, METH_VARARGS
| METH_KEYWORDS
},
11307 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11308 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11309 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11310 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11311 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11312 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11313 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11314 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11321 * This table is used by the pointer type-checker
11323 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11324 { "_signed_long","_long",0},
11325 { "_wxPrintQuality","_wxCoord",0},
11326 { "_wxPrintQuality","_int",0},
11327 { "_wxPrintQuality","_signed_int",0},
11328 { "_wxPrintQuality","_unsigned_int",0},
11329 { "_wxPrintQuality","_wxWindowID",0},
11330 { "_wxPrintQuality","_uint",0},
11331 { "_wxPrintQuality","_EBool",0},
11332 { "_wxPrintQuality","_size_t",0},
11333 { "_wxPrintQuality","_time_t",0},
11334 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11335 { "_byte","_unsigned_char",0},
11336 { "_long","_unsigned_long",0},
11337 { "_long","_signed_long",0},
11338 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11339 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11340 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11341 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11342 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11343 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11344 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11345 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11346 { "_wxDC","_wxMirrorDC",SwigwxMirrorDCTowxDC
},
11347 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11348 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11349 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11350 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11351 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
11352 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
11353 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11354 { "_size_t","_wxCoord",0},
11355 { "_size_t","_wxPrintQuality",0},
11356 { "_size_t","_time_t",0},
11357 { "_size_t","_unsigned_int",0},
11358 { "_size_t","_int",0},
11359 { "_size_t","_wxWindowID",0},
11360 { "_size_t","_uint",0},
11361 { "_uint","_wxCoord",0},
11362 { "_uint","_wxPrintQuality",0},
11363 { "_uint","_time_t",0},
11364 { "_uint","_size_t",0},
11365 { "_uint","_unsigned_int",0},
11366 { "_uint","_int",0},
11367 { "_uint","_wxWindowID",0},
11368 { "_wxChar","_char",0},
11369 { "_char","_wxChar",0},
11370 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
11371 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11372 { "_EBool","_wxCoord",0},
11373 { "_EBool","_wxPrintQuality",0},
11374 { "_EBool","_signed_int",0},
11375 { "_EBool","_int",0},
11376 { "_EBool","_wxWindowID",0},
11377 { "_unsigned_long","_long",0},
11378 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11379 { "_signed_int","_wxCoord",0},
11380 { "_signed_int","_wxPrintQuality",0},
11381 { "_signed_int","_EBool",0},
11382 { "_signed_int","_wxWindowID",0},
11383 { "_signed_int","_int",0},
11384 { "_WXTYPE","_short",0},
11385 { "_WXTYPE","_signed_short",0},
11386 { "_WXTYPE","_unsigned_short",0},
11387 { "_unsigned_short","_WXTYPE",0},
11388 { "_unsigned_short","_short",0},
11389 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11390 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11391 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11392 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11393 { "_wxObject","_wxMirrorDC",SwigwxMirrorDCTowxObject
},
11394 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11395 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11396 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11397 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11398 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
11399 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
11400 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11401 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11402 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11403 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11404 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11405 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11406 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11407 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11408 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11409 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11410 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11411 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11412 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11413 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11414 { "_signed_short","_WXTYPE",0},
11415 { "_signed_short","_short",0},
11416 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
11417 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
11418 { "_unsigned_char","_byte",0},
11419 { "_unsigned_int","_wxCoord",0},
11420 { "_unsigned_int","_wxPrintQuality",0},
11421 { "_unsigned_int","_time_t",0},
11422 { "_unsigned_int","_size_t",0},
11423 { "_unsigned_int","_uint",0},
11424 { "_unsigned_int","_wxWindowID",0},
11425 { "_unsigned_int","_int",0},
11426 { "_short","_WXTYPE",0},
11427 { "_short","_unsigned_short",0},
11428 { "_short","_signed_short",0},
11429 { "_wxWindowID","_wxCoord",0},
11430 { "_wxWindowID","_wxPrintQuality",0},
11431 { "_wxWindowID","_time_t",0},
11432 { "_wxWindowID","_size_t",0},
11433 { "_wxWindowID","_EBool",0},
11434 { "_wxWindowID","_uint",0},
11435 { "_wxWindowID","_int",0},
11436 { "_wxWindowID","_signed_int",0},
11437 { "_wxWindowID","_unsigned_int",0},
11438 { "_int","_wxCoord",0},
11439 { "_int","_wxPrintQuality",0},
11440 { "_int","_time_t",0},
11441 { "_int","_size_t",0},
11442 { "_int","_EBool",0},
11443 { "_int","_uint",0},
11444 { "_int","_wxWindowID",0},
11445 { "_int","_unsigned_int",0},
11446 { "_int","_signed_int",0},
11447 { "_time_t","_wxCoord",0},
11448 { "_time_t","_wxPrintQuality",0},
11449 { "_time_t","_unsigned_int",0},
11450 { "_time_t","_int",0},
11451 { "_time_t","_wxWindowID",0},
11452 { "_time_t","_uint",0},
11453 { "_time_t","_size_t",0},
11454 { "_wxCoord","_int",0},
11455 { "_wxCoord","_signed_int",0},
11456 { "_wxCoord","_unsigned_int",0},
11457 { "_wxCoord","_wxWindowID",0},
11458 { "_wxCoord","_uint",0},
11459 { "_wxCoord","_EBool",0},
11460 { "_wxCoord","_size_t",0},
11461 { "_wxCoord","_time_t",0},
11462 { "_wxCoord","_wxPrintQuality",0},
11465 static PyObject
*SWIG_globals
;
11469 SWIGEXPORT(void) initgdic() {
11471 SWIG_globals
= SWIG_newvarlink();
11472 m
= Py_InitModule("gdic", gdicMethods
);
11473 d
= PyModule_GetDict(m
);
11474 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
11475 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
11476 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
11477 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
11478 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
11479 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
11480 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
11481 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
11482 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
11483 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
11484 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
11485 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
11486 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
11487 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
11488 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
11489 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
11490 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
11491 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
11492 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
11493 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
11494 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
11495 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
11496 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
11497 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
11498 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
11499 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
11500 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
11501 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
11502 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
11503 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
11504 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
11505 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
11506 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
11507 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
11508 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
11509 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
11510 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
11511 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
11512 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
11513 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
11514 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
11515 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
11516 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
11517 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
11518 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
11519 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
11520 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
11521 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
11522 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
11523 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
11524 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
11525 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
11526 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
11527 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
11528 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
11529 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
11530 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
11533 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
11534 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);