2 * FILE : src/msw/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initgdic
55 #define SWIG_name "gdic"
58 #include <wx/imaglist.h>
59 #include <wx/fontmap.h>
60 #include <wx/fontenc.h>
61 #include <wx/fontmap.h>
62 #include <wx/fontutil.h>
63 #include <wx/dcbuffer.h>
64 #include <wx/iconbndl.h>
67 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
73 } else if (target
== Py_None
) {
77 if (!PyTuple_Check(target
)) {
79 target
= PyTuple_New(1);
80 PyTuple_SetItem(target
, 0, o2
);
83 PyTuple_SetItem(o3
, 0, o
);
86 target
= PySequence_Concat(o2
, o3
);
93 // Put some wx default wxChar* values into wxStrings.
94 static const wxString
wxPyEmptyString(wxT(""));
95 // Implementations of some alternate "constructors"
97 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
98 return new wxBitmap(width
, height
, depth
);
101 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
102 char** cArray
= NULL
;
105 if (!PyList_Check(listOfStrings
)) {
106 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
109 count
= PyList_Size(listOfStrings
);
110 cArray
= new char*[count
];
112 for(int x
=0; x
<count
; x
++) {
113 // TODO: Need some validation and error checking here
114 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
120 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
121 char** cArray
= NULL
;
124 cArray
= ConvertListOfStrings(listOfStrings
);
127 bmp
= new wxBitmap(cArray
);
133 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
134 return new wxBitmap(icon
);
138 wxBitmap
* wxBitmapFromBits(PyObject
* bits
, int width
, int height
, int depth
= 1 ) {
141 PyString_AsStringAndSize(bits
, &buf
, &length
);
142 return new wxBitmap(buf
, width
, height
, depth
);
147 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
148 // int width, int height, int depth = 1) {
149 // if (! PyString_Check(data)) {
150 // PyErr_SetString(PyExc_TypeError, "Expected string object");
153 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
157 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
158 return new wxMask(bitmap
, colour
);
160 // Implementations of some alternate "constructors"
161 wxIcon
* wxEmptyIcon() {
165 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
166 char** cArray
= NULL
;
169 cArray
= ConvertListOfStrings(listOfStrings
);
172 icon
= new wxIcon(cArray
);
177 wxIcon
* wxIconFromBitmap(const wxBitmap
& bmp
) {
178 wxIcon
* icon
= new wxIcon();
179 icon
->CopyFromBitmap(bmp
);
182 // Alternate 'constructor'
183 wxCursor
* wxPyStockCursor(int id
) {
184 return new wxCursor(id
);
187 wxCursor
* wxCursorFromImage(const wxImage
& image
) {
189 return new wxCursor(image
);
194 // Alternate 'constructor'
195 wxColour
* wxNamedColour(const wxString
& colorName
) {
196 return new wxColour(colorName
);
199 class wxPyPen
: public wxPen
{
201 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
202 : wxPen(colour
, width
, style
)
209 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
212 m_dash
= new wxDash
[nb_dashes
];
213 for (int i
=0; i
<nb_dashes
; i
++) {
216 wxPen::SetDashes(nb_dashes
, m_dash
);
223 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
229 // Alternate 'constructor'
230 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
231 return new wxMemoryDC(oldDC
);
234 #include <wx/metafile.h>
237 extern wxFont
* wxNORMAL_FONT
;
238 extern wxFont
* wxSMALL_FONT
;
239 extern wxFont
* wxITALIC_FONT
;
240 extern wxFont
* wxSWISS_FONT
;
241 extern wxPen
* wxRED_PEN
;
242 extern wxPen
* wxCYAN_PEN
;
243 extern wxPen
* wxGREEN_PEN
;
244 extern wxPen
* wxBLACK_PEN
;
245 extern wxPen
* wxWHITE_PEN
;
246 extern wxPen
* wxTRANSPARENT_PEN
;
247 extern wxPen
* wxBLACK_DASHED_PEN
;
248 extern wxPen
* wxGREY_PEN
;
249 extern wxPen
* wxMEDIUM_GREY_PEN
;
250 extern wxPen
* wxLIGHT_GREY_PEN
;
251 extern wxBrush
* wxBLUE_BRUSH
;
252 extern wxBrush
* wxGREEN_BRUSH
;
253 extern wxBrush
* wxWHITE_BRUSH
;
254 extern wxBrush
* wxBLACK_BRUSH
;
255 extern wxBrush
* wxTRANSPARENT_BRUSH
;
256 extern wxBrush
* wxCYAN_BRUSH
;
257 extern wxBrush
* wxRED_BRUSH
;
258 extern wxBrush
* wxGREY_BRUSH
;
259 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
260 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
261 extern wxColour
* wxBLACK
;
262 extern wxColour
* wxWHITE
;
263 extern wxColour
* wxRED
;
264 extern wxColour
* wxBLUE
;
265 extern wxColour
* wxGREEN
;
266 extern wxColour
* wxCYAN
;
267 extern wxColour
* wxLIGHT_GREY
;
268 extern wxCursor
* wxSTANDARD_CURSOR
;
269 extern wxCursor
* wxHOURGLASS_CURSOR
;
270 extern wxCursor
* wxCROSS_CURSOR
;
271 extern wxBitmap wxNullBitmap
;
272 extern wxIcon wxNullIcon
;
273 extern wxCursor wxNullCursor
;
274 extern wxPen wxNullPen
;
275 extern wxBrush wxNullBrush
;
276 extern wxPalette wxNullPalette
;
277 extern wxFont wxNullFont
;
278 extern wxColour wxNullColour
;
279 extern wxFontList
* wxTheFontList
;
280 extern wxPenList
* wxThePenList
;
281 extern wxBrushList
* wxTheBrushList
;
282 extern wxColourDatabase
* wxTheColourDatabase
;
288 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
289 PyObject
* _resultobj
;
293 int _arg2
= (int ) -1;
294 char *_kwnames
[] = { "width","height","depth", NULL
};
298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
302 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
304 wxPyEndAllowThreads(__tstate
);
305 if (PyErr_Occurred()) return NULL
;
307 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
308 _resultobj
= Py_BuildValue("s",_ptemp
);
311 _resultobj
= Py_None
;
316 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
317 PyObject
* _resultobj
;
320 PyObject
* _obj0
= 0;
321 char *_kwnames
[] = { "listOfStrings", NULL
};
325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
332 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
334 wxPyEndAllowThreads(__tstate
);
335 if (PyErr_Occurred()) return NULL
;
337 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
338 _resultobj
= Py_BuildValue("s",_ptemp
);
341 _resultobj
= Py_None
;
346 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
347 PyObject
* _resultobj
;
350 PyObject
* _argo0
= 0;
351 char *_kwnames
[] = { "icon", NULL
};
355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
358 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
365 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
367 wxPyEndAllowThreads(__tstate
);
368 if (PyErr_Occurred()) return NULL
;
370 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
371 _resultobj
= Py_BuildValue("s",_ptemp
);
374 _resultobj
= Py_None
;
379 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
380 PyObject
* _resultobj
;
385 int _arg3
= (int ) 1;
386 PyObject
* _obj0
= 0;
387 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxBitmapFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
398 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
400 wxPyEndAllowThreads(__tstate
);
401 if (PyErr_Occurred()) return NULL
;
403 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
404 _resultobj
= Py_BuildValue("s",_ptemp
);
407 _resultobj
= Py_None
;
412 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
413 PyObject
* _resultobj
;
417 PyObject
* _argo0
= 0;
419 PyObject
* _obj1
= 0;
420 char *_kwnames
[] = { "bitmap","colour", NULL
};
424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
427 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
434 if (! wxColour_helper(_obj1
, &_arg1
))
438 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
439 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
441 wxPyEndAllowThreads(__tstate
);
442 if (PyErr_Occurred()) return NULL
;
444 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
445 _resultobj
= Py_BuildValue("s",_ptemp
);
448 _resultobj
= Py_None
;
453 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
454 PyObject
* _resultobj
;
456 char *_kwnames
[] = { NULL
};
460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
464 _result
= (wxIcon
*)wxEmptyIcon();
466 wxPyEndAllowThreads(__tstate
);
467 if (PyErr_Occurred()) return NULL
;
469 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
470 _resultobj
= Py_BuildValue("s",_ptemp
);
473 _resultobj
= Py_None
;
478 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
479 PyObject
* _resultobj
;
482 PyObject
* _obj0
= 0;
483 char *_kwnames
[] = { "listOfStrings", NULL
};
487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
494 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
496 wxPyEndAllowThreads(__tstate
);
497 if (PyErr_Occurred()) return NULL
;
499 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
500 _resultobj
= Py_BuildValue("s",_ptemp
);
503 _resultobj
= Py_None
;
508 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
509 PyObject
* _resultobj
;
512 PyObject
* _argo0
= 0;
513 char *_kwnames
[] = { "bmp", NULL
};
517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
520 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
527 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
529 wxPyEndAllowThreads(__tstate
);
530 if (PyErr_Occurred()) return NULL
;
532 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
533 _resultobj
= Py_BuildValue("s",_ptemp
);
536 _resultobj
= Py_None
;
541 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
542 PyObject
* _resultobj
;
545 char *_kwnames
[] = { "id", NULL
};
549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
553 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
555 wxPyEndAllowThreads(__tstate
);
556 if (PyErr_Occurred()) return NULL
;
558 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
559 _resultobj
= Py_BuildValue("s",_ptemp
);
562 _resultobj
= Py_None
;
567 static PyObject
*_wrap_wxCursorFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
568 PyObject
* _resultobj
;
571 PyObject
* _argo0
= 0;
572 char *_kwnames
[] = { "image", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursorFromImage",_kwnames
,&_argo0
))
579 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
586 _result
= (wxCursor
*)wxCursorFromImage(*_arg0
);
588 wxPyEndAllowThreads(__tstate
);
589 if (PyErr_Occurred()) return NULL
;
591 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
592 _resultobj
= Py_BuildValue("s",_ptemp
);
595 _resultobj
= Py_None
;
600 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
601 PyObject
* _resultobj
;
604 PyObject
* _obj0
= 0;
605 char *_kwnames
[] = { "colorName", NULL
};
609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
612 _arg0
= wxString_in_helper(_obj0
);
617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
618 _result
= (wxColour
*)wxNamedColour(*_arg0
);
620 wxPyEndAllowThreads(__tstate
);
621 if (PyErr_Occurred()) return NULL
;
623 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
624 _resultobj
= Py_BuildValue("s",_ptemp
);
627 _resultobj
= Py_None
;
636 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
637 PyObject
* _resultobj
;
638 wxMemoryDC
* _result
;
640 PyObject
* _argo0
= 0;
641 char *_kwnames
[] = { "oldDC", NULL
};
645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
656 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
658 wxPyEndAllowThreads(__tstate
);
659 if (PyErr_Occurred()) return NULL
;
661 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
662 _resultobj
= Py_BuildValue("s",_ptemp
);
665 _resultobj
= Py_None
;
670 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
672 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
676 static PyObject
*_wrap_wxNORMAL_FONT_get() {
680 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
681 pyobj
= PyString_FromString(ptemp
);
685 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
687 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
691 static PyObject
*_wrap_wxSMALL_FONT_get() {
695 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
696 pyobj
= PyString_FromString(ptemp
);
700 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
702 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
706 static PyObject
*_wrap_wxITALIC_FONT_get() {
710 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
711 pyobj
= PyString_FromString(ptemp
);
715 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
717 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
721 static PyObject
*_wrap_wxSWISS_FONT_get() {
725 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
726 pyobj
= PyString_FromString(ptemp
);
730 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
732 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
736 static PyObject
*_wrap_wxRED_PEN_get() {
740 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
741 pyobj
= PyString_FromString(ptemp
);
745 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
747 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
751 static PyObject
*_wrap_wxCYAN_PEN_get() {
755 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
756 pyobj
= PyString_FromString(ptemp
);
760 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
762 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
766 static PyObject
*_wrap_wxGREEN_PEN_get() {
770 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
771 pyobj
= PyString_FromString(ptemp
);
775 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
777 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
781 static PyObject
*_wrap_wxBLACK_PEN_get() {
785 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
786 pyobj
= PyString_FromString(ptemp
);
790 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
792 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
796 static PyObject
*_wrap_wxWHITE_PEN_get() {
800 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
801 pyobj
= PyString_FromString(ptemp
);
805 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
807 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
811 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
815 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
816 pyobj
= PyString_FromString(ptemp
);
820 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
822 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
826 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
830 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
831 pyobj
= PyString_FromString(ptemp
);
835 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
837 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
841 static PyObject
*_wrap_wxGREY_PEN_get() {
845 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
846 pyobj
= PyString_FromString(ptemp
);
850 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
852 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
856 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
860 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
861 pyobj
= PyString_FromString(ptemp
);
865 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
867 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
871 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
875 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
876 pyobj
= PyString_FromString(ptemp
);
880 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
882 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
886 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
890 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
891 pyobj
= PyString_FromString(ptemp
);
895 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
897 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
901 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
905 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
906 pyobj
= PyString_FromString(ptemp
);
910 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
912 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
916 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
920 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
921 pyobj
= PyString_FromString(ptemp
);
925 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
927 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
931 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
935 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
936 pyobj
= PyString_FromString(ptemp
);
940 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
942 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
946 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
950 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
951 pyobj
= PyString_FromString(ptemp
);
955 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
957 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
961 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
965 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
966 pyobj
= PyString_FromString(ptemp
);
970 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
972 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
976 static PyObject
*_wrap_wxRED_BRUSH_get() {
980 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
981 pyobj
= PyString_FromString(ptemp
);
985 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
987 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
991 static PyObject
*_wrap_wxGREY_BRUSH_get() {
995 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
996 pyobj
= PyString_FromString(ptemp
);
1000 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
1002 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
1006 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
1010 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
1011 pyobj
= PyString_FromString(ptemp
);
1015 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
1017 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
1021 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
1025 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
1026 pyobj
= PyString_FromString(ptemp
);
1030 static int _wrap_wxBLACK_set(PyObject
*val
) {
1032 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
1036 static PyObject
*_wrap_wxBLACK_get() {
1040 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1041 pyobj
= PyString_FromString(ptemp
);
1045 static int _wrap_wxWHITE_set(PyObject
*val
) {
1047 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1051 static PyObject
*_wrap_wxWHITE_get() {
1055 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1056 pyobj
= PyString_FromString(ptemp
);
1060 static int _wrap_wxRED_set(PyObject
*val
) {
1062 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1066 static PyObject
*_wrap_wxRED_get() {
1070 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1071 pyobj
= PyString_FromString(ptemp
);
1075 static int _wrap_wxBLUE_set(PyObject
*val
) {
1077 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1081 static PyObject
*_wrap_wxBLUE_get() {
1085 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1086 pyobj
= PyString_FromString(ptemp
);
1090 static int _wrap_wxGREEN_set(PyObject
*val
) {
1092 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1096 static PyObject
*_wrap_wxGREEN_get() {
1100 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1101 pyobj
= PyString_FromString(ptemp
);
1105 static int _wrap_wxCYAN_set(PyObject
*val
) {
1107 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1111 static PyObject
*_wrap_wxCYAN_get() {
1115 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1116 pyobj
= PyString_FromString(ptemp
);
1120 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1122 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1126 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1130 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1131 pyobj
= PyString_FromString(ptemp
);
1135 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1137 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1141 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1145 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1146 pyobj
= PyString_FromString(ptemp
);
1150 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1152 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1156 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1160 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1161 pyobj
= PyString_FromString(ptemp
);
1165 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1167 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1171 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1175 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1176 pyobj
= PyString_FromString(ptemp
);
1180 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1182 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1186 static PyObject
*_wrap_wxNullBitmap_get() {
1190 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1191 pyobj
= PyString_FromString(ptemp
);
1195 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1197 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1201 static PyObject
*_wrap_wxNullIcon_get() {
1205 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1206 pyobj
= PyString_FromString(ptemp
);
1210 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1212 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1216 static PyObject
*_wrap_wxNullCursor_get() {
1220 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1221 pyobj
= PyString_FromString(ptemp
);
1225 static int _wrap_wxNullPen_set(PyObject
*val
) {
1227 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1231 static PyObject
*_wrap_wxNullPen_get() {
1235 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1236 pyobj
= PyString_FromString(ptemp
);
1240 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1242 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1246 static PyObject
*_wrap_wxNullBrush_get() {
1250 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1251 pyobj
= PyString_FromString(ptemp
);
1255 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1257 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1261 static PyObject
*_wrap_wxNullPalette_get() {
1265 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1266 pyobj
= PyString_FromString(ptemp
);
1270 static int _wrap_wxNullFont_set(PyObject
*val
) {
1272 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1276 static PyObject
*_wrap_wxNullFont_get() {
1280 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1281 pyobj
= PyString_FromString(ptemp
);
1285 static int _wrap_wxNullColour_set(PyObject
*val
) {
1287 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1291 static PyObject
*_wrap_wxNullColour_get() {
1295 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1296 pyobj
= PyString_FromString(ptemp
);
1300 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1302 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1306 static PyObject
*_wrap_wxTheFontList_get() {
1310 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1311 pyobj
= PyString_FromString(ptemp
);
1315 static int _wrap_wxThePenList_set(PyObject
*val
) {
1317 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1321 static PyObject
*_wrap_wxThePenList_get() {
1325 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1326 pyobj
= PyString_FromString(ptemp
);
1330 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1332 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1336 static PyObject
*_wrap_wxTheBrushList_get() {
1340 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1341 pyobj
= PyString_FromString(ptemp
);
1345 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1347 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1351 static PyObject
*_wrap_wxTheColourDatabase_get() {
1355 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1356 pyobj
= PyString_FromString(ptemp
);
1360 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1363 src
= (wxGDIObject
*) ptr
;
1364 dest
= (wxObject
*) src
;
1365 return (void *) dest
;
1368 #define new_wxGDIObject() (new wxGDIObject())
1369 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1370 PyObject
* _resultobj
;
1371 wxGDIObject
* _result
;
1372 char *_kwnames
[] = { NULL
};
1376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1380 _result
= (wxGDIObject
*)new_wxGDIObject();
1382 wxPyEndAllowThreads(__tstate
);
1383 if (PyErr_Occurred()) return NULL
;
1385 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1386 _resultobj
= Py_BuildValue("s",_ptemp
);
1389 _resultobj
= Py_None
;
1394 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1395 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1396 PyObject
* _resultobj
;
1397 wxGDIObject
* _arg0
;
1398 PyObject
* _argo0
= 0;
1399 char *_kwnames
[] = { "self", NULL
};
1402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1413 delete_wxGDIObject(_arg0
);
1415 wxPyEndAllowThreads(__tstate
);
1416 if (PyErr_Occurred()) return NULL
;
1417 } Py_INCREF(Py_None
);
1418 _resultobj
= Py_None
;
1422 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1423 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1424 PyObject
* _resultobj
;
1426 wxGDIObject
* _arg0
;
1427 PyObject
* _argo0
= 0;
1428 char *_kwnames
[] = { "self", NULL
};
1431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1442 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1444 wxPyEndAllowThreads(__tstate
);
1445 if (PyErr_Occurred()) return NULL
;
1446 } _resultobj
= Py_BuildValue("i",_result
);
1450 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1451 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1452 PyObject
* _resultobj
;
1453 wxGDIObject
* _arg0
;
1455 PyObject
* _argo0
= 0;
1457 char *_kwnames
[] = { "self","visible", NULL
};
1460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1469 _arg1
= (bool ) tempbool1
;
1471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1472 wxGDIObject_SetVisible(_arg0
,_arg1
);
1474 wxPyEndAllowThreads(__tstate
);
1475 if (PyErr_Occurred()) return NULL
;
1476 } Py_INCREF(Py_None
);
1477 _resultobj
= Py_None
;
1481 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1482 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1483 PyObject
* _resultobj
;
1485 wxGDIObject
* _arg0
;
1486 PyObject
* _argo0
= 0;
1487 char *_kwnames
[] = { "self", NULL
};
1490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1501 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1503 wxPyEndAllowThreads(__tstate
);
1504 if (PyErr_Occurred()) return NULL
;
1505 } _resultobj
= Py_BuildValue("i",_result
);
1509 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1512 src
= (wxBitmap
*) ptr
;
1513 dest
= (wxGDIObject
*) src
;
1514 return (void *) dest
;
1517 static void *SwigwxBitmapTowxObject(void *ptr
) {
1520 src
= (wxBitmap
*) ptr
;
1521 dest
= (wxObject
*) src
;
1522 return (void *) dest
;
1525 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1526 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1527 PyObject
* _resultobj
;
1530 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1531 PyObject
* _obj0
= 0;
1532 char *_kwnames
[] = { "name","type", NULL
};
1536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1539 _arg0
= wxString_in_helper(_obj0
);
1544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1545 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1547 wxPyEndAllowThreads(__tstate
);
1548 if (PyErr_Occurred()) return NULL
;
1550 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1551 _resultobj
= Py_BuildValue("s",_ptemp
);
1554 _resultobj
= Py_None
;
1563 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1564 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1565 PyObject
* _resultobj
;
1567 PyObject
* _argo0
= 0;
1568 char *_kwnames
[] = { "self", NULL
};
1571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1582 delete_wxBitmap(_arg0
);
1584 wxPyEndAllowThreads(__tstate
);
1585 if (PyErr_Occurred()) return NULL
;
1586 } Py_INCREF(Py_None
);
1587 _resultobj
= Py_None
;
1591 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1592 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1593 PyObject
* _resultobj
;
1594 wxPalette
* _result
;
1596 PyObject
* _argo0
= 0;
1597 char *_kwnames
[] = { "self", NULL
};
1601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1612 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1614 wxPyEndAllowThreads(__tstate
);
1615 if (PyErr_Occurred()) return NULL
;
1617 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1618 _resultobj
= Py_BuildValue("s",_ptemp
);
1621 _resultobj
= Py_None
;
1626 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1627 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1628 PyObject
* _resultobj
;
1631 PyObject
* _argo0
= 0;
1632 char *_kwnames
[] = { "self", NULL
};
1636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1647 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1649 wxPyEndAllowThreads(__tstate
);
1650 if (PyErr_Occurred()) return NULL
;
1652 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1653 _resultobj
= Py_BuildValue("s",_ptemp
);
1656 _resultobj
= Py_None
;
1661 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1662 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1663 PyObject
* _resultobj
;
1667 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1668 PyObject
* _argo0
= 0;
1669 PyObject
* _obj1
= 0;
1670 char *_kwnames
[] = { "self","name","type", NULL
};
1673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1683 _arg1
= wxString_in_helper(_obj1
);
1688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1689 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1691 wxPyEndAllowThreads(__tstate
);
1692 if (PyErr_Occurred()) return NULL
;
1693 } _resultobj
= Py_BuildValue("i",_result
);
1701 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1702 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1708 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1709 PyObject
* _argo0
= 0;
1710 PyObject
* _obj1
= 0;
1711 PyObject
* _argo3
= 0;
1712 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1725 _arg1
= wxString_in_helper(_obj1
);
1730 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1731 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1738 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1740 wxPyEndAllowThreads(__tstate
);
1741 if (PyErr_Occurred()) return NULL
;
1742 } _resultobj
= Py_BuildValue("i",_result
);
1750 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1751 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1752 PyObject
* _resultobj
;
1755 PyObject
* _argo0
= 0;
1756 PyObject
* _argo1
= 0;
1757 char *_kwnames
[] = { "self","mask", NULL
};
1760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1770 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1771 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1777 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1778 wxBitmap_SetMask(_arg0
,_arg1
);
1780 wxPyEndAllowThreads(__tstate
);
1781 if (PyErr_Occurred()) return NULL
;
1782 } Py_INCREF(Py_None
);
1783 _resultobj
= Py_None
;
1787 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1788 static PyObject
*_wrap_wxBitmap_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1789 PyObject
* _resultobj
;
1792 PyObject
* _argo0
= 0;
1793 PyObject
* _argo1
= 0;
1794 char *_kwnames
[] = { "self","palette", NULL
};
1797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetPalette",_kwnames
,&_argo0
,&_argo1
))
1800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1807 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
1808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1813 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1814 wxBitmap_SetPalette(_arg0
,*_arg1
);
1816 wxPyEndAllowThreads(__tstate
);
1817 if (PyErr_Occurred()) return NULL
;
1818 } Py_INCREF(Py_None
);
1819 _resultobj
= Py_None
;
1823 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1824 static PyObject
*_wrap_wxBitmap_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1825 PyObject
* _resultobj
;
1828 PyObject
* _argo0
= 0;
1829 char *_kwnames
[] = { "self", NULL
};
1832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHandle",_kwnames
,&_argo0
))
1835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1843 _result
= (long )wxBitmap_GetHandle(_arg0
);
1845 wxPyEndAllowThreads(__tstate
);
1846 if (PyErr_Occurred()) return NULL
;
1847 } _resultobj
= Py_BuildValue("l",_result
);
1851 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1852 static PyObject
*_wrap_wxBitmap_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1853 PyObject
* _resultobj
;
1856 PyObject
* _argo0
= 0;
1857 char *_kwnames
[] = { "self","handle", NULL
};
1860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxBitmap_SetHandle",_kwnames
,&_argo0
,&_arg1
))
1863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1871 wxBitmap_SetHandle(_arg0
,_arg1
);
1873 wxPyEndAllowThreads(__tstate
);
1874 if (PyErr_Occurred()) return NULL
;
1875 } Py_INCREF(Py_None
);
1876 _resultobj
= Py_None
;
1880 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1881 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1882 PyObject
* _resultobj
;
1885 PyObject
* _argo0
= 0;
1886 char *_kwnames
[] = { "self", NULL
};
1889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1900 _result
= (bool )wxBitmap_Ok(_arg0
);
1902 wxPyEndAllowThreads(__tstate
);
1903 if (PyErr_Occurred()) return NULL
;
1904 } _resultobj
= Py_BuildValue("i",_result
);
1908 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1909 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1910 PyObject
* _resultobj
;
1913 PyObject
* _argo0
= 0;
1914 char *_kwnames
[] = { "self", NULL
};
1917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1928 _result
= (int )wxBitmap_GetWidth(_arg0
);
1930 wxPyEndAllowThreads(__tstate
);
1931 if (PyErr_Occurred()) return NULL
;
1932 } _resultobj
= Py_BuildValue("i",_result
);
1936 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1937 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1938 PyObject
* _resultobj
;
1941 PyObject
* _argo0
= 0;
1942 char *_kwnames
[] = { "self", NULL
};
1945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1956 _result
= (int )wxBitmap_GetHeight(_arg0
);
1958 wxPyEndAllowThreads(__tstate
);
1959 if (PyErr_Occurred()) return NULL
;
1960 } _resultobj
= Py_BuildValue("i",_result
);
1964 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1965 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1966 PyObject
* _resultobj
;
1969 PyObject
* _argo0
= 0;
1970 char *_kwnames
[] = { "self", NULL
};
1973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1984 _result
= (int )wxBitmap_GetDepth(_arg0
);
1986 wxPyEndAllowThreads(__tstate
);
1987 if (PyErr_Occurred()) return NULL
;
1988 } _resultobj
= Py_BuildValue("i",_result
);
1992 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1993 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1994 PyObject
* _resultobj
;
1997 PyObject
* _argo0
= 0;
1998 char *_kwnames
[] = { "self","w", NULL
};
2001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
2011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2012 wxBitmap_SetWidth(_arg0
,_arg1
);
2014 wxPyEndAllowThreads(__tstate
);
2015 if (PyErr_Occurred()) return NULL
;
2016 } Py_INCREF(Py_None
);
2017 _resultobj
= Py_None
;
2021 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2022 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2023 PyObject
* _resultobj
;
2026 PyObject
* _argo0
= 0;
2027 char *_kwnames
[] = { "self","h", NULL
};
2030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2041 wxBitmap_SetHeight(_arg0
,_arg1
);
2043 wxPyEndAllowThreads(__tstate
);
2044 if (PyErr_Occurred()) return NULL
;
2045 } Py_INCREF(Py_None
);
2046 _resultobj
= Py_None
;
2050 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2051 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2052 PyObject
* _resultobj
;
2055 PyObject
* _argo0
= 0;
2056 char *_kwnames
[] = { "self","d", NULL
};
2059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2070 wxBitmap_SetDepth(_arg0
,_arg1
);
2072 wxPyEndAllowThreads(__tstate
);
2073 if (PyErr_Occurred()) return NULL
;
2074 } Py_INCREF(Py_None
);
2075 _resultobj
= Py_None
;
2079 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2080 static PyObject
*_wrap_wxBitmap_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2081 PyObject
* _resultobj
;
2084 PyObject
* _argo0
= 0;
2086 PyObject
* _obj1
= 0;
2087 char *_kwnames
[] = { "self","size", NULL
};
2090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetSize",_kwnames
,&_argo0
,&_obj1
))
2093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2101 if (! wxSize_helper(_obj1
, &_arg1
))
2105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2106 wxBitmap_SetSize(_arg0
,*_arg1
);
2108 wxPyEndAllowThreads(__tstate
);
2109 if (PyErr_Occurred()) return NULL
;
2110 } Py_INCREF(Py_None
);
2111 _resultobj
= Py_None
;
2115 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2116 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2117 PyObject
* _resultobj
;
2121 PyObject
* _argo0
= 0;
2123 PyObject
* _obj1
= 0;
2124 char *_kwnames
[] = { "self","rect", NULL
};
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2139 if (! wxRect_helper(_obj1
, &_arg1
))
2143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2144 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2146 wxPyEndAllowThreads(__tstate
);
2147 if (PyErr_Occurred()) return NULL
;
2148 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2149 _resultobj
= Py_BuildValue("s",_ptemp
);
2153 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2154 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2159 PyObject
* _argo0
= 0;
2160 PyObject
* _argo1
= 0;
2161 char *_kwnames
[] = { "self","icon", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2174 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2181 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2183 wxPyEndAllowThreads(__tstate
);
2184 if (PyErr_Occurred()) return NULL
;
2185 } _resultobj
= Py_BuildValue("i",_result
);
2189 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2190 static PyObject
*_wrap_wxBitmap_CopyFromCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2191 PyObject
* _resultobj
;
2195 PyObject
* _argo0
= 0;
2196 PyObject
* _argo1
= 0;
2197 char *_kwnames
[] = { "self","cursor", NULL
};
2200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromCursor",_kwnames
,&_argo0
,&_argo1
))
2203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2210 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2217 _result
= (bool )wxBitmap_CopyFromCursor(_arg0
,*_arg1
);
2219 wxPyEndAllowThreads(__tstate
);
2220 if (PyErr_Occurred()) return NULL
;
2221 } _resultobj
= Py_BuildValue("i",_result
);
2225 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2226 static PyObject
*_wrap_wxBitmap_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2227 PyObject
* _resultobj
;
2230 PyObject
* _argo0
= 0;
2231 char *_kwnames
[] = { "self", NULL
};
2234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetQuality",_kwnames
,&_argo0
))
2237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2245 _result
= (int )wxBitmap_GetQuality(_arg0
);
2247 wxPyEndAllowThreads(__tstate
);
2248 if (PyErr_Occurred()) return NULL
;
2249 } _resultobj
= Py_BuildValue("i",_result
);
2253 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2254 static PyObject
*_wrap_wxBitmap_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2255 PyObject
* _resultobj
;
2258 PyObject
* _argo0
= 0;
2259 char *_kwnames
[] = { "self","q", NULL
};
2262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetQuality",_kwnames
,&_argo0
,&_arg1
))
2265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2273 wxBitmap_SetQuality(_arg0
,_arg1
);
2275 wxPyEndAllowThreads(__tstate
);
2276 if (PyErr_Occurred()) return NULL
;
2277 } Py_INCREF(Py_None
);
2278 _resultobj
= Py_None
;
2282 static void *SwigwxMaskTowxObject(void *ptr
) {
2285 src
= (wxMask
*) ptr
;
2286 dest
= (wxObject
*) src
;
2287 return (void *) dest
;
2290 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2291 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2292 PyObject
* _resultobj
;
2295 PyObject
* _argo0
= 0;
2296 char *_kwnames
[] = { "bitmap", NULL
};
2300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2303 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2310 _result
= (wxMask
*)new_wxMask(*_arg0
);
2312 wxPyEndAllowThreads(__tstate
);
2313 if (PyErr_Occurred()) return NULL
;
2315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2316 _resultobj
= Py_BuildValue("s",_ptemp
);
2319 _resultobj
= Py_None
;
2324 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2325 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2326 PyObject
* _resultobj
;
2328 PyObject
* _argo0
= 0;
2329 char *_kwnames
[] = { "self", NULL
};
2332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2343 wxMask_Destroy(_arg0
);
2345 wxPyEndAllowThreads(__tstate
);
2346 if (PyErr_Occurred()) return NULL
;
2347 } Py_INCREF(Py_None
);
2348 _resultobj
= Py_None
;
2352 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2355 src
= (wxIcon
*) ptr
;
2356 dest
= (wxGDIObject
*) src
;
2357 return (void *) dest
;
2360 static void *SwigwxIconTowxObject(void *ptr
) {
2363 src
= (wxIcon
*) ptr
;
2364 dest
= (wxObject
*) src
;
2365 return (void *) dest
;
2368 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2369 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2370 PyObject
* _resultobj
;
2374 int _arg2
= (int ) -1;
2375 int _arg3
= (int ) -1;
2376 PyObject
* _obj0
= 0;
2377 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2384 _arg0
= wxString_in_helper(_obj0
);
2389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2390 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2392 wxPyEndAllowThreads(__tstate
);
2393 if (PyErr_Occurred()) return NULL
;
2395 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2396 _resultobj
= Py_BuildValue("s",_ptemp
);
2399 _resultobj
= Py_None
;
2408 #define delete_wxIcon(_swigobj) (delete _swigobj)
2409 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2410 PyObject
* _resultobj
;
2412 PyObject
* _argo0
= 0;
2413 char *_kwnames
[] = { "self", NULL
};
2416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2427 delete_wxIcon(_arg0
);
2429 wxPyEndAllowThreads(__tstate
);
2430 if (PyErr_Occurred()) return NULL
;
2431 } Py_INCREF(Py_None
);
2432 _resultobj
= Py_None
;
2436 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2437 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2438 PyObject
* _resultobj
;
2443 PyObject
* _argo0
= 0;
2444 PyObject
* _obj1
= 0;
2445 char *_kwnames
[] = { "self","name","flags", NULL
};
2448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2458 _arg1
= wxString_in_helper(_obj1
);
2463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2464 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2466 wxPyEndAllowThreads(__tstate
);
2467 if (PyErr_Occurred()) return NULL
;
2468 } _resultobj
= Py_BuildValue("i",_result
);
2476 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2477 static PyObject
*_wrap_wxIcon_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2478 PyObject
* _resultobj
;
2481 PyObject
* _argo0
= 0;
2482 char *_kwnames
[] = { "self", NULL
};
2485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHandle",_kwnames
,&_argo0
))
2488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2496 _result
= (long )wxIcon_GetHandle(_arg0
);
2498 wxPyEndAllowThreads(__tstate
);
2499 if (PyErr_Occurred()) return NULL
;
2500 } _resultobj
= Py_BuildValue("l",_result
);
2504 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2505 static PyObject
*_wrap_wxIcon_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2506 PyObject
* _resultobj
;
2509 PyObject
* _argo0
= 0;
2510 char *_kwnames
[] = { "self","handle", NULL
};
2513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxIcon_SetHandle",_kwnames
,&_argo0
,&_arg1
))
2516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2524 wxIcon_SetHandle(_arg0
,_arg1
);
2526 wxPyEndAllowThreads(__tstate
);
2527 if (PyErr_Occurred()) return NULL
;
2528 } Py_INCREF(Py_None
);
2529 _resultobj
= Py_None
;
2533 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2534 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2535 PyObject
* _resultobj
;
2538 PyObject
* _argo0
= 0;
2539 char *_kwnames
[] = { "self", NULL
};
2542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2553 _result
= (bool )wxIcon_Ok(_arg0
);
2555 wxPyEndAllowThreads(__tstate
);
2556 if (PyErr_Occurred()) return NULL
;
2557 } _resultobj
= Py_BuildValue("i",_result
);
2561 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2562 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2563 PyObject
* _resultobj
;
2566 PyObject
* _argo0
= 0;
2567 char *_kwnames
[] = { "self", NULL
};
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2581 _result
= (int )wxIcon_GetWidth(_arg0
);
2583 wxPyEndAllowThreads(__tstate
);
2584 if (PyErr_Occurred()) return NULL
;
2585 } _resultobj
= Py_BuildValue("i",_result
);
2589 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2590 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2591 PyObject
* _resultobj
;
2594 PyObject
* _argo0
= 0;
2595 char *_kwnames
[] = { "self", NULL
};
2598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2609 _result
= (int )wxIcon_GetHeight(_arg0
);
2611 wxPyEndAllowThreads(__tstate
);
2612 if (PyErr_Occurred()) return NULL
;
2613 } _resultobj
= Py_BuildValue("i",_result
);
2617 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2618 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2619 PyObject
* _resultobj
;
2622 PyObject
* _argo0
= 0;
2623 char *_kwnames
[] = { "self", NULL
};
2626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2637 _result
= (int )wxIcon_GetDepth(_arg0
);
2639 wxPyEndAllowThreads(__tstate
);
2640 if (PyErr_Occurred()) return NULL
;
2641 } _resultobj
= Py_BuildValue("i",_result
);
2645 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2646 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2647 PyObject
* _resultobj
;
2650 PyObject
* _argo0
= 0;
2651 char *_kwnames
[] = { "self","w", NULL
};
2654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2665 wxIcon_SetWidth(_arg0
,_arg1
);
2667 wxPyEndAllowThreads(__tstate
);
2668 if (PyErr_Occurred()) return NULL
;
2669 } Py_INCREF(Py_None
);
2670 _resultobj
= Py_None
;
2674 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2675 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2676 PyObject
* _resultobj
;
2679 PyObject
* _argo0
= 0;
2680 char *_kwnames
[] = { "self","h", NULL
};
2683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2694 wxIcon_SetHeight(_arg0
,_arg1
);
2696 wxPyEndAllowThreads(__tstate
);
2697 if (PyErr_Occurred()) return NULL
;
2698 } Py_INCREF(Py_None
);
2699 _resultobj
= Py_None
;
2703 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2704 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2705 PyObject
* _resultobj
;
2708 PyObject
* _argo0
= 0;
2709 char *_kwnames
[] = { "self","d", NULL
};
2712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2723 wxIcon_SetDepth(_arg0
,_arg1
);
2725 wxPyEndAllowThreads(__tstate
);
2726 if (PyErr_Occurred()) return NULL
;
2727 } Py_INCREF(Py_None
);
2728 _resultobj
= Py_None
;
2732 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2733 static PyObject
*_wrap_wxIcon_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2734 PyObject
* _resultobj
;
2737 PyObject
* _argo0
= 0;
2739 PyObject
* _obj1
= 0;
2740 char *_kwnames
[] = { "self","size", NULL
};
2743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_SetSize",_kwnames
,&_argo0
,&_obj1
))
2746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2754 if (! wxSize_helper(_obj1
, &_arg1
))
2758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2759 wxIcon_SetSize(_arg0
,*_arg1
);
2761 wxPyEndAllowThreads(__tstate
);
2762 if (PyErr_Occurred()) return NULL
;
2763 } Py_INCREF(Py_None
);
2764 _resultobj
= Py_None
;
2768 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2769 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2770 PyObject
* _resultobj
;
2773 PyObject
* _argo0
= 0;
2774 PyObject
* _argo1
= 0;
2775 char *_kwnames
[] = { "self","bmp", NULL
};
2778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2788 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2795 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2797 wxPyEndAllowThreads(__tstate
);
2798 if (PyErr_Occurred()) return NULL
;
2799 } Py_INCREF(Py_None
);
2800 _resultobj
= Py_None
;
2804 #define new_wxIconBundle() (new wxIconBundle())
2805 static PyObject
*_wrap_new_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2806 PyObject
* _resultobj
;
2807 wxIconBundle
* _result
;
2808 char *_kwnames
[] = { NULL
};
2812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxIconBundle",_kwnames
))
2815 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2816 _result
= (wxIconBundle
*)new_wxIconBundle();
2818 wxPyEndAllowThreads(__tstate
);
2819 if (PyErr_Occurred()) return NULL
;
2821 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2822 _resultobj
= Py_BuildValue("s",_ptemp
);
2825 _resultobj
= Py_None
;
2830 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2831 static PyObject
*_wrap_new_wxIconBundleFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2832 PyObject
* _resultobj
;
2833 wxIconBundle
* _result
;
2836 PyObject
* _obj0
= 0;
2837 char *_kwnames
[] = { "file","type", NULL
};
2841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxIconBundleFromFile",_kwnames
,&_obj0
,&_arg1
))
2844 _arg0
= wxString_in_helper(_obj0
);
2849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2850 _result
= (wxIconBundle
*)new_wxIconBundleFromFile(*_arg0
,_arg1
);
2852 wxPyEndAllowThreads(__tstate
);
2853 if (PyErr_Occurred()) return NULL
;
2855 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2856 _resultobj
= Py_BuildValue("s",_ptemp
);
2859 _resultobj
= Py_None
;
2868 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2869 static PyObject
*_wrap_new_wxIconBundleFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2871 wxIconBundle
* _result
;
2873 PyObject
* _argo0
= 0;
2874 char *_kwnames
[] = { "icon", NULL
};
2878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxIconBundleFromIcon",_kwnames
,&_argo0
))
2881 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
2887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2888 _result
= (wxIconBundle
*)new_wxIconBundleFromIcon(*_arg0
);
2890 wxPyEndAllowThreads(__tstate
);
2891 if (PyErr_Occurred()) return NULL
;
2893 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2894 _resultobj
= Py_BuildValue("s",_ptemp
);
2897 _resultobj
= Py_None
;
2902 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
2903 static PyObject
*_wrap_delete_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
* _resultobj
;
2905 wxIconBundle
* _arg0
;
2906 PyObject
* _argo0
= 0;
2907 char *_kwnames
[] = { "self", NULL
};
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconBundle",_kwnames
,&_argo0
))
2913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
2920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2921 delete_wxIconBundle(_arg0
);
2923 wxPyEndAllowThreads(__tstate
);
2924 if (PyErr_Occurred()) return NULL
;
2925 } Py_INCREF(Py_None
);
2926 _resultobj
= Py_None
;
2930 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2931 static PyObject
*_wrap_wxIconBundle_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2932 PyObject
* _resultobj
;
2933 wxIconBundle
* _arg0
;
2935 PyObject
* _argo0
= 0;
2936 PyObject
* _argo1
= 0;
2937 char *_kwnames
[] = { "self","icon", NULL
};
2940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_AddIcon",_kwnames
,&_argo0
,&_argo1
))
2943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
2950 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
2956 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2957 wxIconBundle_AddIcon(_arg0
,*_arg1
);
2959 wxPyEndAllowThreads(__tstate
);
2960 if (PyErr_Occurred()) return NULL
;
2961 } Py_INCREF(Py_None
);
2962 _resultobj
= Py_None
;
2966 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2967 static PyObject
*_wrap_wxIconBundle_AddIconFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2968 PyObject
* _resultobj
;
2969 wxIconBundle
* _arg0
;
2972 PyObject
* _argo0
= 0;
2973 PyObject
* _obj1
= 0;
2974 char *_kwnames
[] = { "self","file","type", NULL
};
2977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIconBundle_AddIconFromFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
2987 _arg1
= wxString_in_helper(_obj1
);
2992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2993 wxIconBundle_AddIconFromFile(_arg0
,*_arg1
,_arg2
);
2995 wxPyEndAllowThreads(__tstate
);
2996 if (PyErr_Occurred()) return NULL
;
2997 } Py_INCREF(Py_None
);
2998 _resultobj
= Py_None
;
3006 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
3007 static PyObject
*_wrap_wxIconBundle_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3008 PyObject
* _resultobj
;
3010 wxIconBundle
* _arg0
;
3012 PyObject
* _argo0
= 0;
3014 PyObject
* _obj1
= 0;
3015 char *_kwnames
[] = { "self","size", NULL
};
3019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_GetIcon",_kwnames
,&_argo0
,&_obj1
))
3022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
3024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
3030 if (! wxSize_helper(_obj1
, &_arg1
))
3034 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3035 const wxIcon
& _result_ref
= wxIconBundle_GetIcon(_arg0
,*_arg1
);
3036 _result
= (wxIcon
*) &_result_ref
;
3038 wxPyEndAllowThreads(__tstate
);
3039 if (PyErr_Occurred()) return NULL
;
3041 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
3042 _resultobj
= Py_BuildValue("s",_ptemp
);
3045 _resultobj
= Py_None
;
3050 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
3053 src
= (wxCursor
*) ptr
;
3054 dest
= (wxGDIObject
*) src
;
3055 return (void *) dest
;
3058 static void *SwigwxCursorTowxObject(void *ptr
) {
3061 src
= (wxCursor
*) ptr
;
3062 dest
= (wxObject
*) src
;
3063 return (void *) dest
;
3066 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3067 static PyObject
*_wrap_new_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3068 PyObject
* _resultobj
;
3072 int _arg2
= (int ) 0;
3073 int _arg3
= (int ) 0;
3074 PyObject
* _obj0
= 0;
3075 char *_kwnames
[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL
};
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxCursor",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3082 _arg0
= wxString_in_helper(_obj0
);
3087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3088 _result
= (wxCursor
*)new_wxCursor(*_arg0
,_arg1
,_arg2
,_arg3
);
3090 wxPyEndAllowThreads(__tstate
);
3091 if (PyErr_Occurred()) return NULL
;
3093 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
3094 _resultobj
= Py_BuildValue("s",_ptemp
);
3097 _resultobj
= Py_None
;
3106 #define delete_wxCursor(_swigobj) (delete _swigobj)
3107 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3108 PyObject
* _resultobj
;
3110 PyObject
* _argo0
= 0;
3111 char *_kwnames
[] = { "self", NULL
};
3114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
3117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
3124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3125 delete_wxCursor(_arg0
);
3127 wxPyEndAllowThreads(__tstate
);
3128 if (PyErr_Occurred()) return NULL
;
3129 } Py_INCREF(Py_None
);
3130 _resultobj
= Py_None
;
3134 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
3135 static PyObject
*_wrap_wxCursor_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3136 PyObject
* _resultobj
;
3139 PyObject
* _argo0
= 0;
3140 char *_kwnames
[] = { "self", NULL
};
3143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHandle",_kwnames
,&_argo0
))
3146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
3153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3154 _result
= (long )wxCursor_GetHandle(_arg0
);
3156 wxPyEndAllowThreads(__tstate
);
3157 if (PyErr_Occurred()) return NULL
;
3158 } _resultobj
= Py_BuildValue("l",_result
);
3162 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
3163 static PyObject
*_wrap_wxCursor_SetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
* _resultobj
;
3167 PyObject
* _argo0
= 0;
3168 char *_kwnames
[] = { "self","handle", NULL
};
3171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxCursor_SetHandle",_kwnames
,&_argo0
,&_arg1
))
3174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
3181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3182 wxCursor_SetHandle(_arg0
,_arg1
);
3184 wxPyEndAllowThreads(__tstate
);
3185 if (PyErr_Occurred()) return NULL
;
3186 } Py_INCREF(Py_None
);
3187 _resultobj
= Py_None
;
3191 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
3192 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3193 PyObject
* _resultobj
;
3196 PyObject
* _argo0
= 0;
3197 char *_kwnames
[] = { "self", NULL
};
3200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
3203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
3210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3211 _result
= (bool )wxCursor_Ok(_arg0
);
3213 wxPyEndAllowThreads(__tstate
);
3214 if (PyErr_Occurred()) return NULL
;
3215 } _resultobj
= Py_BuildValue("i",_result
);
3219 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
3220 static PyObject
*_wrap_wxCursor_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3221 PyObject
* _resultobj
;
3224 PyObject
* _argo0
= 0;
3225 char *_kwnames
[] = { "self", NULL
};
3228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetWidth",_kwnames
,&_argo0
))
3231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3239 _result
= (int )wxCursor_GetWidth(_arg0
);
3241 wxPyEndAllowThreads(__tstate
);
3242 if (PyErr_Occurred()) return NULL
;
3243 } _resultobj
= Py_BuildValue("i",_result
);
3247 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3248 static PyObject
*_wrap_wxCursor_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3249 PyObject
* _resultobj
;
3252 PyObject
* _argo0
= 0;
3253 char *_kwnames
[] = { "self", NULL
};
3256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetHeight",_kwnames
,&_argo0
))
3259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3267 _result
= (int )wxCursor_GetHeight(_arg0
);
3269 wxPyEndAllowThreads(__tstate
);
3270 if (PyErr_Occurred()) return NULL
;
3271 } _resultobj
= Py_BuildValue("i",_result
);
3275 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3276 static PyObject
*_wrap_wxCursor_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3277 PyObject
* _resultobj
;
3280 PyObject
* _argo0
= 0;
3281 char *_kwnames
[] = { "self", NULL
};
3284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_GetDepth",_kwnames
,&_argo0
))
3287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3295 _result
= (int )wxCursor_GetDepth(_arg0
);
3297 wxPyEndAllowThreads(__tstate
);
3298 if (PyErr_Occurred()) return NULL
;
3299 } _resultobj
= Py_BuildValue("i",_result
);
3303 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3304 static PyObject
*_wrap_wxCursor_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3305 PyObject
* _resultobj
;
3308 PyObject
* _argo0
= 0;
3309 char *_kwnames
[] = { "self","w", NULL
};
3312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3323 wxCursor_SetWidth(_arg0
,_arg1
);
3325 wxPyEndAllowThreads(__tstate
);
3326 if (PyErr_Occurred()) return NULL
;
3327 } Py_INCREF(Py_None
);
3328 _resultobj
= Py_None
;
3332 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3333 static PyObject
*_wrap_wxCursor_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3334 PyObject
* _resultobj
;
3337 PyObject
* _argo0
= 0;
3338 char *_kwnames
[] = { "self","h", NULL
};
3341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetHeight",_kwnames
,&_argo0
,&_arg1
))
3344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3352 wxCursor_SetHeight(_arg0
,_arg1
);
3354 wxPyEndAllowThreads(__tstate
);
3355 if (PyErr_Occurred()) return NULL
;
3356 } Py_INCREF(Py_None
);
3357 _resultobj
= Py_None
;
3361 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3362 static PyObject
*_wrap_wxCursor_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3363 PyObject
* _resultobj
;
3366 PyObject
* _argo0
= 0;
3367 char *_kwnames
[] = { "self","d", NULL
};
3370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxCursor_SetDepth",_kwnames
,&_argo0
,&_arg1
))
3373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3381 wxCursor_SetDepth(_arg0
,_arg1
);
3383 wxPyEndAllowThreads(__tstate
);
3384 if (PyErr_Occurred()) return NULL
;
3385 } Py_INCREF(Py_None
);
3386 _resultobj
= Py_None
;
3390 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3391 static PyObject
*_wrap_wxCursor_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3392 PyObject
* _resultobj
;
3395 PyObject
* _argo0
= 0;
3397 PyObject
* _obj1
= 0;
3398 char *_kwnames
[] = { "self","size", NULL
};
3401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCursor_SetSize",_kwnames
,&_argo0
,&_obj1
))
3404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3412 if (! wxSize_helper(_obj1
, &_arg1
))
3416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3417 wxCursor_SetSize(_arg0
,*_arg1
);
3419 wxPyEndAllowThreads(__tstate
);
3420 if (PyErr_Occurred()) return NULL
;
3421 } Py_INCREF(Py_None
);
3422 _resultobj
= Py_None
;
3426 static void *SwigwxColourTowxObject(void *ptr
) {
3429 src
= (wxColour
*) ptr
;
3430 dest
= (wxObject
*) src
;
3431 return (void *) dest
;
3434 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3435 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3436 PyObject
* _resultobj
;
3438 unsigned char _arg0
= (unsigned char ) 0;
3439 unsigned char _arg1
= (unsigned char ) 0;
3440 unsigned char _arg2
= (unsigned char ) 0;
3441 char *_kwnames
[] = { "red","green","blue", NULL
};
3445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
3448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3449 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
3451 wxPyEndAllowThreads(__tstate
);
3452 if (PyErr_Occurred()) return NULL
;
3454 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3455 _resultobj
= Py_BuildValue("s",_ptemp
);
3458 _resultobj
= Py_None
;
3463 #define delete_wxColour(_swigobj) (delete _swigobj)
3464 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3465 PyObject
* _resultobj
;
3468 PyObject
* _obj0
= 0;
3469 char *_kwnames
[] = { "self", NULL
};
3472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
3476 if (! wxColour_helper(_obj0
, &_arg0
))
3480 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3481 delete_wxColour(_arg0
);
3483 wxPyEndAllowThreads(__tstate
);
3484 if (PyErr_Occurred()) return NULL
;
3485 } Py_INCREF(Py_None
);
3486 _resultobj
= Py_None
;
3490 #define wxColour_Red(_swigobj) (_swigobj->Red())
3491 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3492 PyObject
* _resultobj
;
3493 unsigned char _result
;
3496 PyObject
* _obj0
= 0;
3497 char *_kwnames
[] = { "self", NULL
};
3500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
3504 if (! wxColour_helper(_obj0
, &_arg0
))
3508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3509 _result
= (unsigned char )wxColour_Red(_arg0
);
3511 wxPyEndAllowThreads(__tstate
);
3512 if (PyErr_Occurred()) return NULL
;
3513 } _resultobj
= Py_BuildValue("b",_result
);
3517 #define wxColour_Green(_swigobj) (_swigobj->Green())
3518 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3519 PyObject
* _resultobj
;
3520 unsigned char _result
;
3523 PyObject
* _obj0
= 0;
3524 char *_kwnames
[] = { "self", NULL
};
3527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
3531 if (! wxColour_helper(_obj0
, &_arg0
))
3535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3536 _result
= (unsigned char )wxColour_Green(_arg0
);
3538 wxPyEndAllowThreads(__tstate
);
3539 if (PyErr_Occurred()) return NULL
;
3540 } _resultobj
= Py_BuildValue("b",_result
);
3544 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
3545 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3546 PyObject
* _resultobj
;
3547 unsigned char _result
;
3550 PyObject
* _obj0
= 0;
3551 char *_kwnames
[] = { "self", NULL
};
3554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
3558 if (! wxColour_helper(_obj0
, &_arg0
))
3562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3563 _result
= (unsigned char )wxColour_Blue(_arg0
);
3565 wxPyEndAllowThreads(__tstate
);
3566 if (PyErr_Occurred()) return NULL
;
3567 } _resultobj
= Py_BuildValue("b",_result
);
3571 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
3572 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3573 PyObject
* _resultobj
;
3577 PyObject
* _obj0
= 0;
3578 char *_kwnames
[] = { "self", NULL
};
3581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
3585 if (! wxColour_helper(_obj0
, &_arg0
))
3589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3590 _result
= (bool )wxColour_Ok(_arg0
);
3592 wxPyEndAllowThreads(__tstate
);
3593 if (PyErr_Occurred()) return NULL
;
3594 } _resultobj
= Py_BuildValue("i",_result
);
3598 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
3599 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3600 PyObject
* _resultobj
;
3602 unsigned char _arg1
;
3603 unsigned char _arg2
;
3604 unsigned char _arg3
;
3606 PyObject
* _obj0
= 0;
3607 char *_kwnames
[] = { "self","red","green","blue", NULL
};
3610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
3614 if (! wxColour_helper(_obj0
, &_arg0
))
3618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3619 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
3621 wxPyEndAllowThreads(__tstate
);
3622 if (PyErr_Occurred()) return NULL
;
3623 } Py_INCREF(Py_None
);
3624 _resultobj
= Py_None
;
3628 static PyObject
* wxColour_Get(wxColour
*self
) {
3629 PyObject
* rv
= PyTuple_New(3);
3635 green
= self
->Green();
3636 blue
= self
->Blue();
3638 PyTuple_SetItem(rv
, 0, PyInt_FromLong(red
));
3639 PyTuple_SetItem(rv
, 1, PyInt_FromLong(green
));
3640 PyTuple_SetItem(rv
, 2, PyInt_FromLong(blue
));
3643 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3644 PyObject
* _resultobj
;
3648 PyObject
* _obj0
= 0;
3649 char *_kwnames
[] = { "self", NULL
};
3652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
3656 if (! wxColour_helper(_obj0
, &_arg0
))
3660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3661 _result
= (PyObject
*)wxColour_Get(_arg0
);
3663 wxPyEndAllowThreads(__tstate
);
3664 if (PyErr_Occurred()) return NULL
;
3666 _resultobj
= _result
;
3671 static bool wxColour___eq__(wxColour
*self
,PyObject
* obj
) {
3673 wxColour
* ptr
= &tmp
;
3674 if (obj
== Py_None
) return FALSE
;
3675 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
3676 if (! success
) return FALSE
;
3677 return *self
== *ptr
;
3679 static PyObject
*_wrap_wxColour___eq__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3680 PyObject
* _resultobj
;
3685 PyObject
* _obj0
= 0;
3686 PyObject
* _obj1
= 0;
3687 char *_kwnames
[] = { "self","obj", NULL
};
3690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___eq__",_kwnames
,&_obj0
,&_obj1
))
3694 if (! wxColour_helper(_obj0
, &_arg0
))
3701 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3702 _result
= (bool )wxColour___eq__(_arg0
,_arg1
);
3704 wxPyEndAllowThreads(__tstate
);
3705 if (PyErr_Occurred()) return NULL
;
3706 } _resultobj
= Py_BuildValue("i",_result
);
3710 static bool wxColour___ne__(wxColour
*self
,PyObject
* obj
) {
3712 wxColour
* ptr
= &tmp
;
3713 if (obj
== Py_None
) return TRUE
;
3714 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
3715 if (! success
) return TRUE
;
3716 return *self
!= *ptr
;
3718 static PyObject
*_wrap_wxColour___ne__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3719 PyObject
* _resultobj
;
3724 PyObject
* _obj0
= 0;
3725 PyObject
* _obj1
= 0;
3726 char *_kwnames
[] = { "self","obj", NULL
};
3729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___ne__",_kwnames
,&_obj0
,&_obj1
))
3733 if (! wxColour_helper(_obj0
, &_arg0
))
3740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3741 _result
= (bool )wxColour___ne__(_arg0
,_arg1
);
3743 wxPyEndAllowThreads(__tstate
);
3744 if (PyErr_Occurred()) return NULL
;
3745 } _resultobj
= Py_BuildValue("i",_result
);
3749 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
3750 wxColourDatabase
*src
;
3752 src
= (wxColourDatabase
*) ptr
;
3753 dest
= (wxObject
*) src
;
3754 return (void *) dest
;
3757 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3758 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3759 PyObject
* _resultobj
;
3761 wxColourDatabase
* _arg0
;
3763 PyObject
* _argo0
= 0;
3764 PyObject
* _obj1
= 0;
3765 char *_kwnames
[] = { "self","colour", NULL
};
3769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3779 _arg1
= wxString_in_helper(_obj1
);
3784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3785 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3787 wxPyEndAllowThreads(__tstate
);
3788 if (PyErr_Occurred()) return NULL
;
3790 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3791 _resultobj
= Py_BuildValue("s",_ptemp
);
3794 _resultobj
= Py_None
;
3803 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3804 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3805 PyObject
* _resultobj
;
3807 wxColourDatabase
* _arg0
;
3809 PyObject
* _argo0
= 0;
3811 PyObject
* _obj1
= 0;
3812 char *_kwnames
[] = { "self","colour", NULL
};
3815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3826 if (! wxColour_helper(_obj1
, &_arg1
))
3830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3831 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3833 wxPyEndAllowThreads(__tstate
);
3834 if (PyErr_Occurred()) return NULL
;
3837 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3839 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3848 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3849 // first see if the name is already there
3850 wxString cName
= name
;
3852 wxString cName2
= cName
;
3853 if ( !cName2
.Replace(wxT("GRAY"), wxT("GREY")) )
3856 wxNode
*node
= self
->GetFirst();
3858 const wxChar
*key
= node
->GetKeyString();
3859 if ( cName
== key
|| cName2
== key
) {
3860 wxColour
* c
= (wxColour
*)node
->GetData();
3861 c
->Set(red
, green
, blue
);
3864 node
= node
->GetNext();
3867 // otherwise append the new colour
3868 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3870 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3871 PyObject
* _resultobj
;
3872 wxColourDatabase
* _arg0
;
3877 PyObject
* _argo0
= 0;
3878 PyObject
* _obj1
= 0;
3879 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3892 _arg1
= wxString_in_helper(_obj1
);
3897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3898 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3900 wxPyEndAllowThreads(__tstate
);
3901 if (PyErr_Occurred()) return NULL
;
3902 } Py_INCREF(Py_None
);
3903 _resultobj
= Py_None
;
3911 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3914 src
= (wxPen
*) ptr
;
3915 dest
= (wxGDIObject
*) src
;
3916 return (void *) dest
;
3919 static void *SwigwxPenTowxObject(void *ptr
) {
3922 src
= (wxPen
*) ptr
;
3923 dest
= (wxObject
*) src
;
3924 return (void *) dest
;
3927 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3928 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3929 PyObject
* _resultobj
;
3932 int _arg1
= (int ) 1;
3933 int _arg2
= (int ) wxSOLID
;
3935 PyObject
* _obj0
= 0;
3936 char *_kwnames
[] = { "colour","width","style", NULL
};
3940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3944 if (! wxColour_helper(_obj0
, &_arg0
))
3948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3949 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3951 wxPyEndAllowThreads(__tstate
);
3952 if (PyErr_Occurred()) return NULL
;
3954 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3955 _resultobj
= Py_BuildValue("s",_ptemp
);
3958 _resultobj
= Py_None
;
3963 #define delete_wxPen(_swigobj) (delete _swigobj)
3964 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3965 PyObject
* _resultobj
;
3967 PyObject
* _argo0
= 0;
3968 char *_kwnames
[] = { "self", NULL
};
3971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3982 delete_wxPen(_arg0
);
3984 wxPyEndAllowThreads(__tstate
);
3985 if (PyErr_Occurred()) return NULL
;
3986 } Py_INCREF(Py_None
);
3987 _resultobj
= Py_None
;
3991 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3992 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3993 PyObject
* _resultobj
;
3996 PyObject
* _argo0
= 0;
3997 char *_kwnames
[] = { "self", NULL
};
4000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
4003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4011 _result
= (int )wxPen_GetCap(_arg0
);
4013 wxPyEndAllowThreads(__tstate
);
4014 if (PyErr_Occurred()) return NULL
;
4015 } _resultobj
= Py_BuildValue("i",_result
);
4019 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4020 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4021 PyObject
* _resultobj
;
4024 PyObject
* _argo0
= 0;
4025 char *_kwnames
[] = { "self", NULL
};
4029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
4032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4040 _result
= new wxColour (wxPen_GetColour(_arg0
));
4042 wxPyEndAllowThreads(__tstate
);
4043 if (PyErr_Occurred()) return NULL
;
4044 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4045 _resultobj
= Py_BuildValue("s",_ptemp
);
4049 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4050 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4051 PyObject
* _resultobj
;
4054 PyObject
* _argo0
= 0;
4055 char *_kwnames
[] = { "self", NULL
};
4058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
4061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4069 _result
= (int )wxPen_GetJoin(_arg0
);
4071 wxPyEndAllowThreads(__tstate
);
4072 if (PyErr_Occurred()) return NULL
;
4073 } _resultobj
= Py_BuildValue("i",_result
);
4077 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4078 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4079 PyObject
* _resultobj
;
4082 PyObject
* _argo0
= 0;
4083 char *_kwnames
[] = { "self", NULL
};
4086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
4089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4097 _result
= (int )wxPen_GetStyle(_arg0
);
4099 wxPyEndAllowThreads(__tstate
);
4100 if (PyErr_Occurred()) return NULL
;
4101 } _resultobj
= Py_BuildValue("i",_result
);
4105 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4106 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4107 PyObject
* _resultobj
;
4110 PyObject
* _argo0
= 0;
4111 char *_kwnames
[] = { "self", NULL
};
4114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
4117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4125 _result
= (int )wxPen_GetWidth(_arg0
);
4127 wxPyEndAllowThreads(__tstate
);
4128 if (PyErr_Occurred()) return NULL
;
4129 } _resultobj
= Py_BuildValue("i",_result
);
4133 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
4134 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4135 PyObject
* _resultobj
;
4138 PyObject
* _argo0
= 0;
4139 char *_kwnames
[] = { "self", NULL
};
4142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
4145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4153 _result
= (bool )wxPen_Ok(_arg0
);
4155 wxPyEndAllowThreads(__tstate
);
4156 if (PyErr_Occurred()) return NULL
;
4157 } _resultobj
= Py_BuildValue("i",_result
);
4161 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4162 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4163 PyObject
* _resultobj
;
4166 PyObject
* _argo0
= 0;
4167 char *_kwnames
[] = { "self","cap_style", NULL
};
4170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
4173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4181 wxPen_SetCap(_arg0
,_arg1
);
4183 wxPyEndAllowThreads(__tstate
);
4184 if (PyErr_Occurred()) return NULL
;
4185 } Py_INCREF(Py_None
);
4186 _resultobj
= Py_None
;
4190 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4191 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4192 PyObject
* _resultobj
;
4195 PyObject
* _argo0
= 0;
4197 PyObject
* _obj1
= 0;
4198 char *_kwnames
[] = { "self","colour", NULL
};
4201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
4204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4212 if (! wxColour_helper(_obj1
, &_arg1
))
4216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4217 wxPen_SetColour(_arg0
,*_arg1
);
4219 wxPyEndAllowThreads(__tstate
);
4220 if (PyErr_Occurred()) return NULL
;
4221 } Py_INCREF(Py_None
);
4222 _resultobj
= Py_None
;
4226 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4227 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4228 PyObject
* _resultobj
;
4231 PyObject
* _argo0
= 0;
4232 char *_kwnames
[] = { "self","join_style", NULL
};
4235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
4238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4246 wxPen_SetJoin(_arg0
,_arg1
);
4248 wxPyEndAllowThreads(__tstate
);
4249 if (PyErr_Occurred()) return NULL
;
4250 } Py_INCREF(Py_None
);
4251 _resultobj
= Py_None
;
4255 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4256 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4257 PyObject
* _resultobj
;
4260 PyObject
* _argo0
= 0;
4261 char *_kwnames
[] = { "self","style", NULL
};
4264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4275 wxPen_SetStyle(_arg0
,_arg1
);
4277 wxPyEndAllowThreads(__tstate
);
4278 if (PyErr_Occurred()) return NULL
;
4279 } Py_INCREF(Py_None
);
4280 _resultobj
= Py_None
;
4284 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4285 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4286 PyObject
* _resultobj
;
4289 PyObject
* _argo0
= 0;
4290 char *_kwnames
[] = { "self","width", NULL
};
4293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
4296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4304 wxPen_SetWidth(_arg0
,_arg1
);
4306 wxPyEndAllowThreads(__tstate
);
4307 if (PyErr_Occurred()) return NULL
;
4308 } Py_INCREF(Py_None
);
4309 _resultobj
= Py_None
;
4313 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4314 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4315 PyObject
* _resultobj
;
4319 PyObject
* _argo0
= 0;
4320 PyObject
* _obj2
= 0;
4321 char *_kwnames
[] = { "self","choices", NULL
};
4324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4335 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4336 if (_arg2
== NULL
) {
4342 _arg1
= PyList_Size(_obj2
);
4349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4350 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
4352 wxPyEndAllowThreads(__tstate
);
4353 if (PyErr_Occurred()) return NULL
;
4354 } Py_INCREF(Py_None
);
4355 _resultobj
= Py_None
;
4362 static PyObject
* wxPen_GetDashes(wxPen
*self
) {
4364 int count
= self
->GetDashes(&dashes
);
4365 wxPyBeginBlockThreads();
4366 PyObject
* retval
= PyList_New(0);
4367 for (int x
=0; x
<count
; x
++)
4368 PyList_Append(retval
, PyInt_FromLong(dashes
[x
]));
4369 wxPyEndBlockThreads();
4372 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4373 PyObject
* _resultobj
;
4376 PyObject
* _argo0
= 0;
4377 char *_kwnames
[] = { "self", NULL
};
4380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetDashes",_kwnames
,&_argo0
))
4383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4391 _result
= (PyObject
*)wxPen_GetDashes(_arg0
);
4393 wxPyEndAllowThreads(__tstate
);
4394 if (PyErr_Occurred()) return NULL
;
4396 _resultobj
= _result
;
4401 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4402 static PyObject
*_wrap_wxPen_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4403 PyObject
* _resultobj
;
4406 PyObject
* _argo0
= 0;
4407 char *_kwnames
[] = { "self", NULL
};
4411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStipple",_kwnames
,&_argo0
))
4414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4422 _result
= (wxBitmap
*)wxPen_GetStipple(_arg0
);
4424 wxPyEndAllowThreads(__tstate
);
4425 if (PyErr_Occurred()) return NULL
;
4427 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4428 _resultobj
= Py_BuildValue("s",_ptemp
);
4431 _resultobj
= Py_None
;
4436 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4437 static PyObject
*_wrap_wxPen_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4438 PyObject
* _resultobj
;
4441 PyObject
* _argo0
= 0;
4442 PyObject
* _argo1
= 0;
4443 char *_kwnames
[] = { "self","stipple", NULL
};
4446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
4451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4456 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4463 wxPen_SetStipple(_arg0
,*_arg1
);
4465 wxPyEndAllowThreads(__tstate
);
4466 if (PyErr_Occurred()) return NULL
;
4467 } Py_INCREF(Py_None
);
4468 _resultobj
= Py_None
;
4472 static void *SwigwxPyPenTowxPen(void *ptr
) {
4475 src
= (wxPyPen
*) ptr
;
4476 dest
= (wxPen
*) src
;
4477 return (void *) dest
;
4480 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
4483 src
= (wxPyPen
*) ptr
;
4484 dest
= (wxGDIObject
*) src
;
4485 return (void *) dest
;
4488 static void *SwigwxPyPenTowxObject(void *ptr
) {
4491 src
= (wxPyPen
*) ptr
;
4492 dest
= (wxObject
*) src
;
4493 return (void *) dest
;
4496 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4497 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4498 PyObject
* _resultobj
;
4501 int _arg1
= (int ) 1;
4502 int _arg2
= (int ) wxSOLID
;
4504 PyObject
* _obj0
= 0;
4505 char *_kwnames
[] = { "colour","width","style", NULL
};
4509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
4513 if (! wxColour_helper(_obj0
, &_arg0
))
4517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4518 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
4520 wxPyEndAllowThreads(__tstate
);
4521 if (PyErr_Occurred()) return NULL
;
4523 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
4524 _resultobj
= Py_BuildValue("s",_ptemp
);
4527 _resultobj
= Py_None
;
4532 #define delete_wxPyPen(_swigobj) (delete _swigobj)
4533 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4534 PyObject
* _resultobj
;
4536 PyObject
* _argo0
= 0;
4537 char *_kwnames
[] = { "self", NULL
};
4540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
4543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
4550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4551 delete_wxPyPen(_arg0
);
4553 wxPyEndAllowThreads(__tstate
);
4554 if (PyErr_Occurred()) return NULL
;
4555 } Py_INCREF(Py_None
);
4556 _resultobj
= Py_None
;
4560 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4561 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4562 PyObject
* _resultobj
;
4566 PyObject
* _argo0
= 0;
4567 PyObject
* _obj2
= 0;
4568 char *_kwnames
[] = { "self","choices", NULL
};
4571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
4574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
4576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
4582 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
4583 if (_arg2
== NULL
) {
4589 _arg1
= PyList_Size(_obj2
);
4596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4597 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
4599 wxPyEndAllowThreads(__tstate
);
4600 if (PyErr_Occurred()) return NULL
;
4601 } Py_INCREF(Py_None
);
4602 _resultobj
= Py_None
;
4609 static void *SwigwxPenListTowxObject(void *ptr
) {
4612 src
= (wxPenList
*) ptr
;
4613 dest
= (wxObject
*) src
;
4614 return (void *) dest
;
4617 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4618 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4619 PyObject
* _resultobj
;
4622 PyObject
* _argo0
= 0;
4623 PyObject
* _argo1
= 0;
4624 char *_kwnames
[] = { "self","pen", NULL
};
4627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
4630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4637 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4638 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4645 wxPenList_AddPen(_arg0
,_arg1
);
4647 wxPyEndAllowThreads(__tstate
);
4648 if (PyErr_Occurred()) return NULL
;
4649 } Py_INCREF(Py_None
);
4650 _resultobj
= Py_None
;
4654 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4655 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4656 PyObject
* _resultobj
;
4662 PyObject
* _argo0
= 0;
4664 PyObject
* _obj1
= 0;
4665 char *_kwnames
[] = { "self","colour","width","style", NULL
};
4669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
4672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4680 if (! wxColour_helper(_obj1
, &_arg1
))
4684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4685 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
4687 wxPyEndAllowThreads(__tstate
);
4688 if (PyErr_Occurred()) return NULL
;
4690 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
4691 _resultobj
= Py_BuildValue("s",_ptemp
);
4694 _resultobj
= Py_None
;
4699 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4700 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4701 PyObject
* _resultobj
;
4704 PyObject
* _argo0
= 0;
4705 PyObject
* _argo1
= 0;
4706 char *_kwnames
[] = { "self","pen", NULL
};
4709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
4712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4719 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4720 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
4721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4727 wxPenList_RemovePen(_arg0
,_arg1
);
4729 wxPyEndAllowThreads(__tstate
);
4730 if (PyErr_Occurred()) return NULL
;
4731 } Py_INCREF(Py_None
);
4732 _resultobj
= Py_None
;
4736 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
4737 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4738 PyObject
* _resultobj
;
4741 PyObject
* _argo0
= 0;
4742 char *_kwnames
[] = { "self", NULL
};
4745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
4748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
4755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4756 _result
= (int )wxPenList_GetCount(_arg0
);
4758 wxPyEndAllowThreads(__tstate
);
4759 if (PyErr_Occurred()) return NULL
;
4760 } _resultobj
= Py_BuildValue("i",_result
);
4764 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
4767 src
= (wxBrush
*) ptr
;
4768 dest
= (wxGDIObject
*) src
;
4769 return (void *) dest
;
4772 static void *SwigwxBrushTowxObject(void *ptr
) {
4775 src
= (wxBrush
*) ptr
;
4776 dest
= (wxObject
*) src
;
4777 return (void *) dest
;
4780 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4781 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4782 PyObject
* _resultobj
;
4785 int _arg1
= (int ) wxSOLID
;
4787 PyObject
* _obj0
= 0;
4788 char *_kwnames
[] = { "colour","style", NULL
};
4792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4796 if (! wxColour_helper(_obj0
, &_arg0
))
4800 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4801 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4803 wxPyEndAllowThreads(__tstate
);
4804 if (PyErr_Occurred()) return NULL
;
4806 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4807 _resultobj
= Py_BuildValue("s",_ptemp
);
4810 _resultobj
= Py_None
;
4815 #define delete_wxBrush(_swigobj) (delete _swigobj)
4816 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4817 PyObject
* _resultobj
;
4819 PyObject
* _argo0
= 0;
4820 char *_kwnames
[] = { "self", NULL
};
4823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4834 delete_wxBrush(_arg0
);
4836 wxPyEndAllowThreads(__tstate
);
4837 if (PyErr_Occurred()) return NULL
;
4838 } Py_INCREF(Py_None
);
4839 _resultobj
= Py_None
;
4843 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4844 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4845 PyObject
* _resultobj
;
4848 PyObject
* _argo0
= 0;
4849 char *_kwnames
[] = { "self", NULL
};
4853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4864 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4866 wxPyEndAllowThreads(__tstate
);
4867 if (PyErr_Occurred()) return NULL
;
4868 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4869 _resultobj
= Py_BuildValue("s",_ptemp
);
4873 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4874 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4875 PyObject
* _resultobj
;
4878 PyObject
* _argo0
= 0;
4879 char *_kwnames
[] = { "self", NULL
};
4883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4894 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4896 wxPyEndAllowThreads(__tstate
);
4897 if (PyErr_Occurred()) return NULL
;
4899 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4900 _resultobj
= Py_BuildValue("s",_ptemp
);
4903 _resultobj
= Py_None
;
4908 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4909 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4910 PyObject
* _resultobj
;
4913 PyObject
* _argo0
= 0;
4914 char *_kwnames
[] = { "self", NULL
};
4917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4928 _result
= (int )wxBrush_GetStyle(_arg0
);
4930 wxPyEndAllowThreads(__tstate
);
4931 if (PyErr_Occurred()) return NULL
;
4932 } _resultobj
= Py_BuildValue("i",_result
);
4936 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4937 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4938 PyObject
* _resultobj
;
4941 PyObject
* _argo0
= 0;
4942 char *_kwnames
[] = { "self", NULL
};
4945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4956 _result
= (bool )wxBrush_Ok(_arg0
);
4958 wxPyEndAllowThreads(__tstate
);
4959 if (PyErr_Occurred()) return NULL
;
4960 } _resultobj
= Py_BuildValue("i",_result
);
4964 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4965 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4966 PyObject
* _resultobj
;
4969 PyObject
* _argo0
= 0;
4971 PyObject
* _obj1
= 0;
4972 char *_kwnames
[] = { "self","colour", NULL
};
4975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4986 if (! wxColour_helper(_obj1
, &_arg1
))
4990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4991 wxBrush_SetColour(_arg0
,*_arg1
);
4993 wxPyEndAllowThreads(__tstate
);
4994 if (PyErr_Occurred()) return NULL
;
4995 } Py_INCREF(Py_None
);
4996 _resultobj
= Py_None
;
5000 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5001 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5002 PyObject
* _resultobj
;
5005 PyObject
* _argo0
= 0;
5006 PyObject
* _argo1
= 0;
5007 char *_kwnames
[] = { "self","bitmap", NULL
};
5010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5020 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5027 wxBrush_SetStipple(_arg0
,*_arg1
);
5029 wxPyEndAllowThreads(__tstate
);
5030 if (PyErr_Occurred()) return NULL
;
5031 } Py_INCREF(Py_None
);
5032 _resultobj
= Py_None
;
5036 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5037 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5041 PyObject
* _argo0
= 0;
5042 char *_kwnames
[] = { "self","style", NULL
};
5045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5056 wxBrush_SetStyle(_arg0
,_arg1
);
5058 wxPyEndAllowThreads(__tstate
);
5059 if (PyErr_Occurred()) return NULL
;
5060 } Py_INCREF(Py_None
);
5061 _resultobj
= Py_None
;
5065 static void *SwigwxBrushListTowxObject(void *ptr
) {
5068 src
= (wxBrushList
*) ptr
;
5069 dest
= (wxObject
*) src
;
5070 return (void *) dest
;
5073 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5074 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5075 PyObject
* _resultobj
;
5076 wxBrushList
* _arg0
;
5078 PyObject
* _argo0
= 0;
5079 PyObject
* _argo1
= 0;
5080 char *_kwnames
[] = { "self","brush", NULL
};
5083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
5086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5093 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5094 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5101 wxBrushList_AddBrush(_arg0
,_arg1
);
5103 wxPyEndAllowThreads(__tstate
);
5104 if (PyErr_Occurred()) return NULL
;
5105 } Py_INCREF(Py_None
);
5106 _resultobj
= Py_None
;
5110 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5111 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5112 PyObject
* _resultobj
;
5114 wxBrushList
* _arg0
;
5117 PyObject
* _argo0
= 0;
5119 PyObject
* _obj1
= 0;
5120 char *_kwnames
[] = { "self","colour","style", NULL
};
5124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
5127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5135 if (! wxColour_helper(_obj1
, &_arg1
))
5139 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5140 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
5142 wxPyEndAllowThreads(__tstate
);
5143 if (PyErr_Occurred()) return NULL
;
5145 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5146 _resultobj
= Py_BuildValue("s",_ptemp
);
5149 _resultobj
= Py_None
;
5154 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5155 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5156 PyObject
* _resultobj
;
5157 wxBrushList
* _arg0
;
5159 PyObject
* _argo0
= 0;
5160 PyObject
* _argo1
= 0;
5161 char *_kwnames
[] = { "self","brush", NULL
};
5164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
5167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5174 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5175 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
5176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5182 wxBrushList_RemoveBrush(_arg0
,_arg1
);
5184 wxPyEndAllowThreads(__tstate
);
5185 if (PyErr_Occurred()) return NULL
;
5186 } Py_INCREF(Py_None
);
5187 _resultobj
= Py_None
;
5191 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
5192 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5193 PyObject
* _resultobj
;
5195 wxBrushList
* _arg0
;
5196 PyObject
* _argo0
= 0;
5197 char *_kwnames
[] = { "self", NULL
};
5200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
5203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
5205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
5210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5211 _result
= (int )wxBrushList_GetCount(_arg0
);
5213 wxPyEndAllowThreads(__tstate
);
5214 if (PyErr_Occurred()) return NULL
;
5215 } _resultobj
= Py_BuildValue("i",_result
);
5219 static void *SwigwxDCTowxObject(void *ptr
) {
5223 dest
= (wxObject
*) src
;
5224 return (void *) dest
;
5227 #define delete_wxDC(_swigobj) (delete _swigobj)
5228 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5229 PyObject
* _resultobj
;
5231 PyObject
* _argo0
= 0;
5232 char *_kwnames
[] = { "self", NULL
};
5235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
5238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5248 wxPyEndAllowThreads(__tstate
);
5249 if (PyErr_Occurred()) return NULL
;
5250 } Py_INCREF(Py_None
);
5251 _resultobj
= Py_None
;
5255 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5256 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5257 PyObject
* _resultobj
;
5259 PyObject
* _argo0
= 0;
5260 char *_kwnames
[] = { "self", NULL
};
5263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
5266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5274 wxDC_BeginDrawing(_arg0
);
5276 wxPyEndAllowThreads(__tstate
);
5277 if (PyErr_Occurred()) return NULL
;
5278 } Py_INCREF(Py_None
);
5279 _resultobj
= Py_None
;
5283 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5284 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5285 PyObject
* _resultobj
;
5295 int _arg8
= (int ) wxCOPY
;
5296 int _arg9
= (int ) FALSE
;
5297 PyObject
* _argo0
= 0;
5298 PyObject
* _argo5
= 0;
5299 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
5302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiiOii|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
5305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5312 if (_argo5
== Py_None
) { _arg5
= NULL
; }
5313 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
5314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5320 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
5322 wxPyEndAllowThreads(__tstate
);
5323 if (PyErr_Occurred()) return NULL
;
5324 } _resultobj
= Py_BuildValue("i",_result
);
5328 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
5329 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5330 PyObject
* _resultobj
;
5332 PyObject
* _argo0
= 0;
5333 char *_kwnames
[] = { "self", NULL
};
5336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
5339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5349 wxPyEndAllowThreads(__tstate
);
5350 if (PyErr_Occurred()) return NULL
;
5351 } Py_INCREF(Py_None
);
5352 _resultobj
= Py_None
;
5356 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5357 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5358 PyObject
* _resultobj
;
5362 PyObject
* _argo0
= 0;
5363 char *_kwnames
[] = { "self","x","y", NULL
};
5366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5377 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
5379 wxPyEndAllowThreads(__tstate
);
5380 if (PyErr_Occurred()) return NULL
;
5381 } Py_INCREF(Py_None
);
5382 _resultobj
= Py_None
;
5386 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5387 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5388 PyObject
* _resultobj
;
5390 PyObject
* _argo0
= 0;
5391 char *_kwnames
[] = { "self", NULL
};
5394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
5397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5405 wxDC_DestroyClippingRegion(_arg0
);
5407 wxPyEndAllowThreads(__tstate
);
5408 if (PyErr_Occurred()) return NULL
;
5409 } Py_INCREF(Py_None
);
5410 _resultobj
= Py_None
;
5414 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5415 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5416 PyObject
* _resultobj
;
5420 PyObject
* _argo0
= 0;
5421 char *_kwnames
[] = { "self","x", NULL
};
5424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
5427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5435 _result
= (wxCoord
)wxDC_DeviceToLogicalX(_arg0
,_arg1
);
5437 wxPyEndAllowThreads(__tstate
);
5438 if (PyErr_Occurred()) return NULL
;
5439 } _resultobj
= Py_BuildValue("i",_result
);
5443 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5444 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5445 PyObject
* _resultobj
;
5449 PyObject
* _argo0
= 0;
5450 char *_kwnames
[] = { "self","x", NULL
};
5453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
5456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5464 _result
= (wxCoord
)wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
5466 wxPyEndAllowThreads(__tstate
);
5467 if (PyErr_Occurred()) return NULL
;
5468 } _resultobj
= Py_BuildValue("i",_result
);
5472 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5473 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5474 PyObject
* _resultobj
;
5478 PyObject
* _argo0
= 0;
5479 char *_kwnames
[] = { "self","y", NULL
};
5482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
5485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5493 _result
= (wxCoord
)wxDC_DeviceToLogicalY(_arg0
,_arg1
);
5495 wxPyEndAllowThreads(__tstate
);
5496 if (PyErr_Occurred()) return NULL
;
5497 } _resultobj
= Py_BuildValue("i",_result
);
5501 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5502 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5503 PyObject
* _resultobj
;
5507 PyObject
* _argo0
= 0;
5508 char *_kwnames
[] = { "self","y", NULL
};
5511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
5514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5522 _result
= (wxCoord
)wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
5524 wxPyEndAllowThreads(__tstate
);
5525 if (PyErr_Occurred()) return NULL
;
5526 } _resultobj
= Py_BuildValue("i",_result
);
5530 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5531 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5532 PyObject
* _resultobj
;
5540 PyObject
* _argo0
= 0;
5541 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
5544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
5547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5555 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5557 wxPyEndAllowThreads(__tstate
);
5558 if (PyErr_Occurred()) return NULL
;
5559 } Py_INCREF(Py_None
);
5560 _resultobj
= Py_None
;
5564 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5565 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5566 PyObject
* _resultobj
;
5571 PyObject
* _argo0
= 0;
5572 char *_kwnames
[] = { "self","x","y","radius", NULL
};
5575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
5578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5586 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
5588 wxPyEndAllowThreads(__tstate
);
5589 if (PyErr_Occurred()) return NULL
;
5590 } Py_INCREF(Py_None
);
5591 _resultobj
= Py_None
;
5595 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5596 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5597 PyObject
* _resultobj
;
5603 PyObject
* _argo0
= 0;
5604 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawEllipse",_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_DrawEllipse. Expected _wxDC_p.");
5617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5618 wxDC_DrawEllipse(_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_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5628 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5629 PyObject
* _resultobj
;
5637 PyObject
* _argo0
= 0;
5638 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
5641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
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_DrawEllipticArc. Expected _wxDC_p.");
5651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5652 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
5654 wxPyEndAllowThreads(__tstate
);
5655 if (PyErr_Occurred()) return NULL
;
5656 } Py_INCREF(Py_None
);
5657 _resultobj
= Py_None
;
5661 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5662 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5663 PyObject
* _resultobj
;
5668 PyObject
* _argo0
= 0;
5669 PyObject
* _argo1
= 0;
5670 char *_kwnames
[] = { "self","icon","x","y", NULL
};
5673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
5676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5683 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
5684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5690 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
5692 wxPyEndAllowThreads(__tstate
);
5693 if (PyErr_Occurred()) return NULL
;
5694 } Py_INCREF(Py_None
);
5695 _resultobj
= Py_None
;
5699 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5700 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5701 PyObject
* _resultobj
;
5705 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
5706 int _arg4
= (int ) -1;
5707 PyObject
* _argo0
= 0;
5708 PyObject
* _obj1
= 0;
5710 PyObject
* _obj2
= 0;
5711 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
5714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
5717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
5724 _arg1
= wxString_in_helper(_obj1
);
5730 if (! wxRect_helper(_obj2
, &_arg2
))
5734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5735 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
5737 wxPyEndAllowThreads(__tstate
);
5738 if (PyErr_Occurred()) return NULL
;
5739 } Py_INCREF(Py_None
);
5740 _resultobj
= Py_None
;
5748 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
5750 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
5753 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5754 PyObject
* _resultobj
;
5760 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
5761 int _arg5
= (int ) -1;
5762 PyObject
* _argo0
= 0;
5763 PyObject
* _obj1
= 0;
5764 PyObject
* _argo2
= 0;
5766 PyObject
* _obj3
= 0;
5767 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
5771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
5774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
5781 _arg1
= wxString_in_helper(_obj1
);
5786 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
5787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
5793 if (! wxRect_helper(_obj3
, &_arg3
))
5797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5798 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
5800 wxPyEndAllowThreads(__tstate
);
5801 if (PyErr_Occurred()) return NULL
;
5802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
5803 _resultobj
= Py_BuildValue("s",_ptemp
);
5811 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5812 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5813 PyObject
* _resultobj
;
5819 PyObject
* _argo0
= 0;
5820 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5834 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5836 wxPyEndAllowThreads(__tstate
);
5837 if (PyErr_Occurred()) return NULL
;
5838 } Py_INCREF(Py_None
);
5839 _resultobj
= Py_None
;
5843 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5844 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5845 PyObject
* _resultobj
;
5849 wxCoord _arg3
= (wxCoord
) 0;
5850 wxCoord _arg4
= (wxCoord
) 0;
5851 PyObject
* _argo0
= 0;
5853 PyObject
* _obj2
= 0;
5854 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ii:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5868 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5869 if (_arg2
== NULL
) {
5877 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5878 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5880 wxPyEndAllowThreads(__tstate
);
5881 if (PyErr_Occurred()) return NULL
;
5882 } Py_INCREF(Py_None
);
5883 _resultobj
= Py_None
;
5890 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5891 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5892 PyObject
* _resultobj
;
5896 wxCoord _arg3
= (wxCoord
) 0;
5897 wxCoord _arg4
= (wxCoord
) 0;
5898 int _arg5
= (int ) wxODDEVEN_RULE
;
5899 PyObject
* _argo0
= 0;
5901 PyObject
* _obj2
= 0;
5902 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iii:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5916 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5917 if (_arg2
== NULL
) {
5925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5926 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5928 wxPyEndAllowThreads(__tstate
);
5929 if (PyErr_Occurred()) return NULL
;
5930 } Py_INCREF(Py_None
);
5931 _resultobj
= Py_None
;
5938 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5939 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5940 PyObject
* _resultobj
;
5944 PyObject
* _argo0
= 0;
5945 char *_kwnames
[] = { "self","x","y", NULL
};
5948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5959 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5961 wxPyEndAllowThreads(__tstate
);
5962 if (PyErr_Occurred()) return NULL
;
5963 } Py_INCREF(Py_None
);
5964 _resultobj
= Py_None
;
5968 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5969 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5970 PyObject
* _resultobj
;
5976 PyObject
* _argo0
= 0;
5977 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5991 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5993 wxPyEndAllowThreads(__tstate
);
5994 if (PyErr_Occurred()) return NULL
;
5995 } Py_INCREF(Py_None
);
5996 _resultobj
= Py_None
;
6000 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
6001 static PyObject
*_wrap_wxDC_DrawRectangleRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6002 PyObject
* _resultobj
;
6005 PyObject
* _argo0
= 0;
6007 PyObject
* _obj1
= 0;
6008 char *_kwnames
[] = { "self","rect", NULL
};
6011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawRectangleRect",_kwnames
,&_argo0
,&_obj1
))
6014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
6022 if (! wxRect_helper(_obj1
, &_arg1
))
6026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6027 wxDC_DrawRectangleRect(_arg0
,*_arg1
);
6029 wxPyEndAllowThreads(__tstate
);
6030 if (PyErr_Occurred()) return NULL
;
6031 } Py_INCREF(Py_None
);
6032 _resultobj
= Py_None
;
6036 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6037 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6038 PyObject
* _resultobj
;
6044 PyObject
* _argo0
= 0;
6045 PyObject
* _obj1
= 0;
6046 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
6049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
6052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6059 _arg1
= wxString_in_helper(_obj1
);
6064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6065 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
6067 wxPyEndAllowThreads(__tstate
);
6068 if (PyErr_Occurred()) return NULL
;
6069 } Py_INCREF(Py_None
);
6070 _resultobj
= Py_None
;
6078 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6079 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6080 PyObject
* _resultobj
;
6086 wxCoord _arg5
= (wxCoord
) 20;
6087 PyObject
* _argo0
= 0;
6088 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
6091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
6094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6102 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6104 wxPyEndAllowThreads(__tstate
);
6105 if (PyErr_Occurred()) return NULL
;
6106 } Py_INCREF(Py_None
);
6107 _resultobj
= Py_None
;
6111 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6112 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6113 PyObject
* _resultobj
;
6117 PyObject
* _argo0
= 0;
6119 PyObject
* _obj2
= 0;
6120 char *_kwnames
[] = { "self","points", NULL
};
6123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
6126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6134 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6135 if (_arg2
== NULL
) {
6143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6144 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
6146 wxPyEndAllowThreads(__tstate
);
6147 if (PyErr_Occurred()) return NULL
;
6148 } Py_INCREF(Py_None
);
6149 _resultobj
= Py_None
;
6156 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6157 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6158 PyObject
* _resultobj
;
6163 PyObject
* _argo0
= 0;
6164 PyObject
* _obj1
= 0;
6165 char *_kwnames
[] = { "self","text","x","y", NULL
};
6168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
6171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6178 _arg1
= wxString_in_helper(_obj1
);
6183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6184 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
6186 wxPyEndAllowThreads(__tstate
);
6187 if (PyErr_Occurred()) return NULL
;
6188 } Py_INCREF(Py_None
);
6189 _resultobj
= Py_None
;
6197 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6198 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6199 PyObject
* _resultobj
;
6201 PyObject
* _argo0
= 0;
6202 char *_kwnames
[] = { "self", NULL
};
6205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
6208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6218 wxPyEndAllowThreads(__tstate
);
6219 if (PyErr_Occurred()) return NULL
;
6220 } Py_INCREF(Py_None
);
6221 _resultobj
= Py_None
;
6225 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6226 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6227 PyObject
* _resultobj
;
6229 PyObject
* _argo0
= 0;
6230 char *_kwnames
[] = { "self", NULL
};
6233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
6236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6243 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6244 wxDC_EndDrawing(_arg0
);
6246 wxPyEndAllowThreads(__tstate
);
6247 if (PyErr_Occurred()) return NULL
;
6248 } Py_INCREF(Py_None
);
6249 _resultobj
= Py_None
;
6253 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6254 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6255 PyObject
* _resultobj
;
6257 PyObject
* _argo0
= 0;
6258 char *_kwnames
[] = { "self", NULL
};
6261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
6264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6272 wxDC_EndPage(_arg0
);
6274 wxPyEndAllowThreads(__tstate
);
6275 if (PyErr_Occurred()) return NULL
;
6276 } Py_INCREF(Py_None
);
6277 _resultobj
= Py_None
;
6281 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6282 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6283 PyObject
* _resultobj
;
6289 int _arg4
= (int ) wxFLOOD_SURFACE
;
6290 PyObject
* _argo0
= 0;
6292 PyObject
* _obj3
= 0;
6293 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
6296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
6299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6307 if (! wxColour_helper(_obj3
, &_arg3
))
6311 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6312 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
6314 wxPyEndAllowThreads(__tstate
);
6315 if (PyErr_Occurred()) return NULL
;
6316 } _resultobj
= Py_BuildValue("i",_result
);
6320 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6321 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6322 PyObject
* _resultobj
;
6325 PyObject
* _argo0
= 0;
6326 char *_kwnames
[] = { "self", NULL
};
6330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
6333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6341 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
6343 wxPyEndAllowThreads(__tstate
);
6344 if (PyErr_Occurred()) return NULL
;
6345 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
6346 _resultobj
= Py_BuildValue("s",_ptemp
);
6350 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6351 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6352 PyObject
* _resultobj
;
6355 PyObject
* _argo0
= 0;
6356 char *_kwnames
[] = { "self", NULL
};
6360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
6363 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6364 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6371 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
6373 wxPyEndAllowThreads(__tstate
);
6374 if (PyErr_Occurred()) return NULL
;
6375 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
6376 _resultobj
= Py_BuildValue("s",_ptemp
);
6380 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6381 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6382 PyObject
* _resultobj
;
6385 PyObject
* _argo0
= 0;
6386 char *_kwnames
[] = { "self", NULL
};
6389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
6392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6400 _result
= (wxCoord
)wxDC_GetCharHeight(_arg0
);
6402 wxPyEndAllowThreads(__tstate
);
6403 if (PyErr_Occurred()) return NULL
;
6404 } _resultobj
= Py_BuildValue("i",_result
);
6408 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6409 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6410 PyObject
* _resultobj
;
6413 PyObject
* _argo0
= 0;
6414 char *_kwnames
[] = { "self", NULL
};
6417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
6420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6428 _result
= (wxCoord
)wxDC_GetCharWidth(_arg0
);
6430 wxPyEndAllowThreads(__tstate
);
6431 if (PyErr_Occurred()) return NULL
;
6432 } _resultobj
= Py_BuildValue("i",_result
);
6436 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6437 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6438 PyObject
* _resultobj
;
6448 PyObject
* _argo0
= 0;
6449 char *_kwnames
[] = { "self", NULL
};
6464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
6467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6475 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6477 wxPyEndAllowThreads(__tstate
);
6478 if (PyErr_Occurred()) return NULL
;
6479 } Py_INCREF(Py_None
);
6480 _resultobj
= Py_None
;
6483 o
= PyInt_FromLong((long) (*_arg1
));
6484 _resultobj
= t_output_helper(_resultobj
, o
);
6488 o
= PyInt_FromLong((long) (*_arg2
));
6489 _resultobj
= t_output_helper(_resultobj
, o
);
6493 o
= PyInt_FromLong((long) (*_arg3
));
6494 _resultobj
= t_output_helper(_resultobj
, o
);
6498 o
= PyInt_FromLong((long) (*_arg4
));
6499 _resultobj
= t_output_helper(_resultobj
, o
);
6504 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6505 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6506 PyObject
* _resultobj
;
6509 PyObject
* _argo0
= 0;
6510 char *_kwnames
[] = { "self", NULL
};
6514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
6517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6525 _result
= new wxFont (wxDC_GetFont(_arg0
));
6527 wxPyEndAllowThreads(__tstate
);
6528 if (PyErr_Occurred()) return NULL
;
6529 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
6530 _resultobj
= Py_BuildValue("s",_ptemp
);
6534 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6535 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6536 PyObject
* _resultobj
;
6539 PyObject
* _argo0
= 0;
6540 char *_kwnames
[] = { "self", NULL
};
6543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
6546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6554 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
6556 wxPyEndAllowThreads(__tstate
);
6557 if (PyErr_Occurred()) return NULL
;
6558 } _resultobj
= Py_BuildValue("i",_result
);
6562 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6563 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6564 PyObject
* _resultobj
;
6570 PyObject
* _argo0
= 0;
6571 char *_kwnames
[] = { "self", NULL
};
6580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
6583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6591 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
6593 wxPyEndAllowThreads(__tstate
);
6594 if (PyErr_Occurred()) return NULL
;
6595 } Py_INCREF(Py_None
);
6596 _resultobj
= Py_None
;
6599 o
= PyFloat_FromDouble((double) (*_arg1
));
6600 _resultobj
= t_output_helper(_resultobj
, o
);
6604 o
= PyFloat_FromDouble((double) (*_arg2
));
6605 _resultobj
= t_output_helper(_resultobj
, o
);
6610 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6611 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6612 PyObject
* _resultobj
;
6615 PyObject
* _argo0
= 0;
6616 char *_kwnames
[] = { "self", NULL
};
6619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
6622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6630 _result
= (int )wxDC_GetMapMode(_arg0
);
6632 wxPyEndAllowThreads(__tstate
);
6633 if (PyErr_Occurred()) return NULL
;
6634 } _resultobj
= Py_BuildValue("i",_result
);
6638 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6639 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6640 PyObject
* _resultobj
;
6643 PyObject
* _argo0
= 0;
6644 char *_kwnames
[] = { "self", NULL
};
6647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
6650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6657 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6658 _result
= (bool )wxDC_GetOptimization(_arg0
);
6660 wxPyEndAllowThreads(__tstate
);
6661 if (PyErr_Occurred()) return NULL
;
6662 } _resultobj
= Py_BuildValue("i",_result
);
6666 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6667 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6668 PyObject
* _resultobj
;
6671 PyObject
* _argo0
= 0;
6672 char *_kwnames
[] = { "self", NULL
};
6676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
6679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6687 _result
= new wxPen (wxDC_GetPen(_arg0
));
6689 wxPyEndAllowThreads(__tstate
);
6690 if (PyErr_Occurred()) return NULL
;
6691 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
6692 _resultobj
= Py_BuildValue("s",_ptemp
);
6696 static wxColour
* wxDC_GetPixel(wxDC
*self
,wxCoord x
,wxCoord y
) {
6697 wxColour
* wc
= new wxColour();
6698 self
->GetPixel(x
, y
, wc
);
6701 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6702 PyObject
* _resultobj
;
6707 PyObject
* _argo0
= 0;
6708 char *_kwnames
[] = { "self","x","y", NULL
};
6712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6723 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
6725 wxPyEndAllowThreads(__tstate
);
6726 if (PyErr_Occurred()) return NULL
;
6728 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
6729 _resultobj
= Py_BuildValue("s",_ptemp
);
6732 _resultobj
= Py_None
;
6737 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6738 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6739 PyObject
* _resultobj
;
6745 PyObject
* _argo0
= 0;
6746 char *_kwnames
[] = { "self", NULL
};
6755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6766 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6768 wxPyEndAllowThreads(__tstate
);
6769 if (PyErr_Occurred()) return NULL
;
6770 } Py_INCREF(Py_None
);
6771 _resultobj
= Py_None
;
6774 o
= PyInt_FromLong((long) (*_arg1
));
6775 _resultobj
= t_output_helper(_resultobj
, o
);
6779 o
= PyInt_FromLong((long) (*_arg2
));
6780 _resultobj
= t_output_helper(_resultobj
, o
);
6785 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6786 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6787 PyObject
* _resultobj
;
6790 PyObject
* _argo0
= 0;
6791 char *_kwnames
[] = { "self", NULL
};
6795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6806 _result
= new wxSize (wxDC_GetSize(_arg0
));
6808 wxPyEndAllowThreads(__tstate
);
6809 if (PyErr_Occurred()) return NULL
;
6810 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6811 _resultobj
= Py_BuildValue("s",_ptemp
);
6815 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6816 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6817 PyObject
* _resultobj
;
6820 PyObject
* _argo0
= 0;
6821 char *_kwnames
[] = { "self", NULL
};
6825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6835 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6836 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6838 wxPyEndAllowThreads(__tstate
);
6839 if (PyErr_Occurred()) return NULL
;
6840 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6841 _resultobj
= Py_BuildValue("s",_ptemp
);
6845 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6846 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6847 PyObject
* _resultobj
;
6850 PyObject
* _argo0
= 0;
6851 char *_kwnames
[] = { "self", NULL
};
6855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
6858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6866 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6868 wxPyEndAllowThreads(__tstate
);
6869 if (PyErr_Occurred()) return NULL
;
6870 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6871 _resultobj
= Py_BuildValue("s",_ptemp
);
6875 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6876 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6877 PyObject
* _resultobj
;
6884 PyObject
* _argo0
= 0;
6885 PyObject
* _obj1
= 0;
6886 char *_kwnames
[] = { "self","string", NULL
};
6895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6905 _arg1
= wxString_in_helper(_obj1
);
6910 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6911 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6913 wxPyEndAllowThreads(__tstate
);
6914 if (PyErr_Occurred()) return NULL
;
6915 } Py_INCREF(Py_None
);
6916 _resultobj
= Py_None
;
6919 o
= PyInt_FromLong((long) (*_arg2
));
6920 _resultobj
= t_output_helper(_resultobj
, o
);
6924 o
= PyInt_FromLong((long) (*_arg3
));
6925 _resultobj
= t_output_helper(_resultobj
, o
);
6934 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6935 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6936 PyObject
* _resultobj
;
6947 wxFont
* _arg6
= (wxFont
*) NULL
;
6948 PyObject
* _argo0
= 0;
6949 PyObject
* _obj1
= 0;
6950 PyObject
* _argo6
= 0;
6951 char *_kwnames
[] = { "self","string","font", NULL
};
6966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6976 _arg1
= wxString_in_helper(_obj1
);
6981 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6982 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6989 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6991 wxPyEndAllowThreads(__tstate
);
6992 if (PyErr_Occurred()) return NULL
;
6993 } Py_INCREF(Py_None
);
6994 _resultobj
= Py_None
;
6997 o
= PyInt_FromLong((long) (*_arg2
));
6998 _resultobj
= t_output_helper(_resultobj
, o
);
7002 o
= PyInt_FromLong((long) (*_arg3
));
7003 _resultobj
= t_output_helper(_resultobj
, o
);
7007 o
= PyInt_FromLong((long) (*_arg4
));
7008 _resultobj
= t_output_helper(_resultobj
, o
);
7012 o
= PyInt_FromLong((long) (*_arg5
));
7013 _resultobj
= t_output_helper(_resultobj
, o
);
7022 #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7023 static PyObject
*_wrap_wxDC_GetMultiLineTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7024 PyObject
* _resultobj
;
7033 wxFont
* _arg5
= (wxFont
*) NULL
;
7034 PyObject
* _argo0
= 0;
7035 PyObject
* _obj1
= 0;
7036 PyObject
* _argo5
= 0;
7037 char *_kwnames
[] = { "self","text","font", NULL
};
7049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo5
))
7052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
7059 _arg1
= wxString_in_helper(_obj1
);
7064 if (_argo5
== Py_None
) { _arg5
= NULL
; }
7065 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxFont_p")) {
7066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
7071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7072 wxDC_GetMultiLineTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7074 wxPyEndAllowThreads(__tstate
);
7075 if (PyErr_Occurred()) return NULL
;
7076 } Py_INCREF(Py_None
);
7077 _resultobj
= Py_None
;
7080 o
= PyInt_FromLong((long) (*_arg2
));
7081 _resultobj
= t_output_helper(_resultobj
, o
);
7085 o
= PyInt_FromLong((long) (*_arg3
));
7086 _resultobj
= t_output_helper(_resultobj
, o
);
7090 o
= PyInt_FromLong((long) (*_arg4
));
7091 _resultobj
= t_output_helper(_resultobj
, o
);
7100 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7101 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7102 PyObject
* _resultobj
;
7105 PyObject
* _argo0
= 0;
7106 char *_kwnames
[] = { "self", NULL
};
7110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
7113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7121 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
7123 wxPyEndAllowThreads(__tstate
);
7124 if (PyErr_Occurred()) return NULL
;
7125 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7126 _resultobj
= Py_BuildValue("s",_ptemp
);
7130 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7131 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7132 PyObject
* _resultobj
;
7138 PyObject
* _argo0
= 0;
7139 char *_kwnames
[] = { "self", NULL
};
7148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
7151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7159 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
7161 wxPyEndAllowThreads(__tstate
);
7162 if (PyErr_Occurred()) return NULL
;
7163 } Py_INCREF(Py_None
);
7164 _resultobj
= Py_None
;
7167 o
= PyFloat_FromDouble((double) (*_arg1
));
7168 _resultobj
= t_output_helper(_resultobj
, o
);
7172 o
= PyFloat_FromDouble((double) (*_arg2
));
7173 _resultobj
= t_output_helper(_resultobj
, o
);
7178 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7179 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7180 PyObject
* _resultobj
;
7184 PyObject
* _argo0
= 0;
7185 char *_kwnames
[] = { "self","x", NULL
};
7188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
7191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7199 _result
= (wxCoord
)wxDC_LogicalToDeviceX(_arg0
,_arg1
);
7201 wxPyEndAllowThreads(__tstate
);
7202 if (PyErr_Occurred()) return NULL
;
7203 } _resultobj
= Py_BuildValue("i",_result
);
7207 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7208 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7209 PyObject
* _resultobj
;
7213 PyObject
* _argo0
= 0;
7214 char *_kwnames
[] = { "self","x", NULL
};
7217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
7220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7228 _result
= (wxCoord
)wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
7230 wxPyEndAllowThreads(__tstate
);
7231 if (PyErr_Occurred()) return NULL
;
7232 } _resultobj
= Py_BuildValue("i",_result
);
7236 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7237 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7238 PyObject
* _resultobj
;
7242 PyObject
* _argo0
= 0;
7243 char *_kwnames
[] = { "self","y", NULL
};
7246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
7249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7257 _result
= (wxCoord
)wxDC_LogicalToDeviceY(_arg0
,_arg1
);
7259 wxPyEndAllowThreads(__tstate
);
7260 if (PyErr_Occurred()) return NULL
;
7261 } _resultobj
= Py_BuildValue("i",_result
);
7265 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7266 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7267 PyObject
* _resultobj
;
7271 PyObject
* _argo0
= 0;
7272 char *_kwnames
[] = { "self","y", NULL
};
7275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
7278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7286 _result
= (wxCoord
)wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
7288 wxPyEndAllowThreads(__tstate
);
7289 if (PyErr_Occurred()) return NULL
;
7290 } _resultobj
= Py_BuildValue("i",_result
);
7294 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7295 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7296 PyObject
* _resultobj
;
7299 PyObject
* _argo0
= 0;
7300 char *_kwnames
[] = { "self", NULL
};
7303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
7306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7314 _result
= (wxCoord
)wxDC_MaxX(_arg0
);
7316 wxPyEndAllowThreads(__tstate
);
7317 if (PyErr_Occurred()) return NULL
;
7318 } _resultobj
= Py_BuildValue("i",_result
);
7322 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7323 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7324 PyObject
* _resultobj
;
7327 PyObject
* _argo0
= 0;
7328 char *_kwnames
[] = { "self", NULL
};
7331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
7334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7342 _result
= (wxCoord
)wxDC_MaxY(_arg0
);
7344 wxPyEndAllowThreads(__tstate
);
7345 if (PyErr_Occurred()) return NULL
;
7346 } _resultobj
= Py_BuildValue("i",_result
);
7350 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
7351 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7352 PyObject
* _resultobj
;
7355 PyObject
* _argo0
= 0;
7356 char *_kwnames
[] = { "self", NULL
};
7359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
7362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7370 _result
= (wxCoord
)wxDC_MinX(_arg0
);
7372 wxPyEndAllowThreads(__tstate
);
7373 if (PyErr_Occurred()) return NULL
;
7374 } _resultobj
= Py_BuildValue("i",_result
);
7378 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
7379 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7380 PyObject
* _resultobj
;
7383 PyObject
* _argo0
= 0;
7384 char *_kwnames
[] = { "self", NULL
};
7387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
7390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7398 _result
= (wxCoord
)wxDC_MinY(_arg0
);
7400 wxPyEndAllowThreads(__tstate
);
7401 if (PyErr_Occurred()) return NULL
;
7402 } _resultobj
= Py_BuildValue("i",_result
);
7406 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
7407 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7408 PyObject
* _resultobj
;
7411 PyObject
* _argo0
= 0;
7412 char *_kwnames
[] = { "self", NULL
};
7415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
7418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7426 _result
= (bool )wxDC_Ok(_arg0
);
7428 wxPyEndAllowThreads(__tstate
);
7429 if (PyErr_Occurred()) return NULL
;
7430 } _resultobj
= Py_BuildValue("i",_result
);
7434 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7435 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7436 PyObject
* _resultobj
;
7440 PyObject
* _argo0
= 0;
7441 char *_kwnames
[] = { "self","x","y", NULL
};
7444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7455 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7457 wxPyEndAllowThreads(__tstate
);
7458 if (PyErr_Occurred()) return NULL
;
7459 } Py_INCREF(Py_None
);
7460 _resultobj
= Py_None
;
7464 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7465 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7466 PyObject
* _resultobj
;
7469 PyObject
* _argo0
= 0;
7470 PyObject
* _argo1
= 0;
7471 char *_kwnames
[] = { "self","brush", NULL
};
7474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
7477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7484 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7491 wxDC_SetBackground(_arg0
,*_arg1
);
7493 wxPyEndAllowThreads(__tstate
);
7494 if (PyErr_Occurred()) return NULL
;
7495 } Py_INCREF(Py_None
);
7496 _resultobj
= Py_None
;
7500 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7501 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7502 PyObject
* _resultobj
;
7505 PyObject
* _argo0
= 0;
7506 char *_kwnames
[] = { "self","mode", NULL
};
7509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
7512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7520 wxDC_SetBackgroundMode(_arg0
,_arg1
);
7522 wxPyEndAllowThreads(__tstate
);
7523 if (PyErr_Occurred()) return NULL
;
7524 } Py_INCREF(Py_None
);
7525 _resultobj
= Py_None
;
7529 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7530 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7531 PyObject
* _resultobj
;
7537 PyObject
* _argo0
= 0;
7538 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
7541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
7544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7552 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7554 wxPyEndAllowThreads(__tstate
);
7555 if (PyErr_Occurred()) return NULL
;
7556 } Py_INCREF(Py_None
);
7557 _resultobj
= Py_None
;
7561 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7562 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7563 PyObject
* _resultobj
;
7566 PyObject
* _argo0
= 0;
7567 PyObject
* _argo1
= 0;
7568 char *_kwnames
[] = { "self","region", NULL
};
7571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
7574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7581 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
7582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
7587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7588 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
7590 wxPyEndAllowThreads(__tstate
);
7591 if (PyErr_Occurred()) return NULL
;
7592 } Py_INCREF(Py_None
);
7593 _resultobj
= Py_None
;
7597 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7598 static PyObject
*_wrap_wxDC_SetClippingRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7599 PyObject
* _resultobj
;
7602 PyObject
* _argo0
= 0;
7604 PyObject
* _obj1
= 0;
7605 char *_kwnames
[] = { "self","rect", NULL
};
7608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRect",_kwnames
,&_argo0
,&_obj1
))
7611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
7619 if (! wxRect_helper(_obj1
, &_arg1
))
7623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7624 wxDC_SetClippingRect(_arg0
,*_arg1
);
7626 wxPyEndAllowThreads(__tstate
);
7627 if (PyErr_Occurred()) return NULL
;
7628 } Py_INCREF(Py_None
);
7629 _resultobj
= Py_None
;
7633 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7634 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7635 PyObject
* _resultobj
;
7638 PyObject
* _argo0
= 0;
7639 PyObject
* _argo1
= 0;
7640 char *_kwnames
[] = { "self","colourMap", NULL
};
7643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
7646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7653 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
7654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7660 wxDC_SetPalette(_arg0
,*_arg1
);
7662 wxPyEndAllowThreads(__tstate
);
7663 if (PyErr_Occurred()) return NULL
;
7664 } Py_INCREF(Py_None
);
7665 _resultobj
= Py_None
;
7669 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7670 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7671 PyObject
* _resultobj
;
7674 PyObject
* _argo0
= 0;
7675 PyObject
* _argo1
= 0;
7676 char *_kwnames
[] = { "self","brush", NULL
};
7679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
7682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7689 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
7690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7696 wxDC_SetBrush(_arg0
,*_arg1
);
7698 wxPyEndAllowThreads(__tstate
);
7699 if (PyErr_Occurred()) return NULL
;
7700 } Py_INCREF(Py_None
);
7701 _resultobj
= Py_None
;
7705 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7706 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7707 PyObject
* _resultobj
;
7710 PyObject
* _argo0
= 0;
7711 PyObject
* _argo1
= 0;
7712 char *_kwnames
[] = { "self","font", NULL
};
7715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
7718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7725 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
7726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7732 wxDC_SetFont(_arg0
,*_arg1
);
7734 wxPyEndAllowThreads(__tstate
);
7735 if (PyErr_Occurred()) return NULL
;
7736 } Py_INCREF(Py_None
);
7737 _resultobj
= Py_None
;
7741 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7742 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7743 PyObject
* _resultobj
;
7746 PyObject
* _argo0
= 0;
7747 char *_kwnames
[] = { "self","function", NULL
};
7750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7761 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7763 wxPyEndAllowThreads(__tstate
);
7764 if (PyErr_Occurred()) return NULL
;
7765 } Py_INCREF(Py_None
);
7766 _resultobj
= Py_None
;
7770 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7771 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7772 PyObject
* _resultobj
;
7776 PyObject
* _argo0
= 0;
7777 char *_kwnames
[] = { "self","x","y", NULL
};
7780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7791 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7793 wxPyEndAllowThreads(__tstate
);
7794 if (PyErr_Occurred()) return NULL
;
7795 } Py_INCREF(Py_None
);
7796 _resultobj
= Py_None
;
7800 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7801 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7802 PyObject
* _resultobj
;
7805 PyObject
* _argo0
= 0;
7806 char *_kwnames
[] = { "self","mode", NULL
};
7809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7820 wxDC_SetMapMode(_arg0
,_arg1
);
7822 wxPyEndAllowThreads(__tstate
);
7823 if (PyErr_Occurred()) return NULL
;
7824 } Py_INCREF(Py_None
);
7825 _resultobj
= Py_None
;
7829 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7830 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7831 PyObject
* _resultobj
;
7834 PyObject
* _argo0
= 0;
7836 char *_kwnames
[] = { "self","optimize", NULL
};
7839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7848 _arg1
= (bool ) tempbool1
;
7850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7851 wxDC_SetOptimization(_arg0
,_arg1
);
7853 wxPyEndAllowThreads(__tstate
);
7854 if (PyErr_Occurred()) return NULL
;
7855 } Py_INCREF(Py_None
);
7856 _resultobj
= Py_None
;
7860 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7861 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7862 PyObject
* _resultobj
;
7865 PyObject
* _argo0
= 0;
7866 PyObject
* _argo1
= 0;
7867 char *_kwnames
[] = { "self","pen", NULL
};
7870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7880 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7887 wxDC_SetPen(_arg0
,*_arg1
);
7889 wxPyEndAllowThreads(__tstate
);
7890 if (PyErr_Occurred()) return NULL
;
7891 } Py_INCREF(Py_None
);
7892 _resultobj
= Py_None
;
7896 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7897 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7898 PyObject
* _resultobj
;
7901 PyObject
* _argo0
= 0;
7903 PyObject
* _obj1
= 0;
7904 char *_kwnames
[] = { "self","colour", NULL
};
7907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7918 if (! wxColour_helper(_obj1
, &_arg1
))
7922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7923 wxDC_SetTextBackground(_arg0
,*_arg1
);
7925 wxPyEndAllowThreads(__tstate
);
7926 if (PyErr_Occurred()) return NULL
;
7927 } Py_INCREF(Py_None
);
7928 _resultobj
= Py_None
;
7932 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7933 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7934 PyObject
* _resultobj
;
7937 PyObject
* _argo0
= 0;
7939 PyObject
* _obj1
= 0;
7940 char *_kwnames
[] = { "self","colour", NULL
};
7943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7954 if (! wxColour_helper(_obj1
, &_arg1
))
7958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7959 wxDC_SetTextForeground(_arg0
,*_arg1
);
7961 wxPyEndAllowThreads(__tstate
);
7962 if (PyErr_Occurred()) return NULL
;
7963 } Py_INCREF(Py_None
);
7964 _resultobj
= Py_None
;
7968 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7969 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7970 PyObject
* _resultobj
;
7974 PyObject
* _argo0
= 0;
7975 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7989 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7991 wxPyEndAllowThreads(__tstate
);
7992 if (PyErr_Occurred()) return NULL
;
7993 } Py_INCREF(Py_None
);
7994 _resultobj
= Py_None
;
7998 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7999 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8000 PyObject
* _resultobj
;
8004 PyObject
* _argo0
= 0;
8005 PyObject
* _obj1
= 0;
8006 char *_kwnames
[] = { "self","message", NULL
};
8009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8019 _arg1
= wxString_in_helper(_obj1
);
8024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8025 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8027 wxPyEndAllowThreads(__tstate
);
8028 if (PyErr_Occurred()) return NULL
;
8029 } _resultobj
= Py_BuildValue("i",_result
);
8037 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8038 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8039 PyObject
* _resultobj
;
8041 PyObject
* _argo0
= 0;
8042 char *_kwnames
[] = { "self", NULL
};
8045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8056 wxDC_StartPage(_arg0
);
8058 wxPyEndAllowThreads(__tstate
);
8059 if (PyErr_Occurred()) return NULL
;
8060 } Py_INCREF(Py_None
);
8061 _resultobj
= Py_None
;
8065 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8066 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8067 PyObject
* _resultobj
;
8072 int _arg4
= (int ) FALSE
;
8073 PyObject
* _argo0
= 0;
8074 PyObject
* _argo1
= 0;
8075 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
8078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
8081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8088 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8095 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
8097 wxPyEndAllowThreads(__tstate
);
8098 if (PyErr_Occurred()) return NULL
;
8099 } Py_INCREF(Py_None
);
8100 _resultobj
= Py_None
;
8104 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8105 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8106 PyObject
* _resultobj
;
8109 PyObject
* _argo0
= 0;
8110 char *_kwnames
[] = { "self", NULL
};
8113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
8116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8124 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
8126 wxPyEndAllowThreads(__tstate
);
8127 if (PyErr_Occurred()) return NULL
;
8128 } _resultobj
= Py_BuildValue("i",_result
);
8132 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8133 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8134 PyObject
* _resultobj
;
8137 PyObject
* _argo0
= 0;
8138 char *_kwnames
[] = { "self", NULL
};
8141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
8144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8152 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
8154 wxPyEndAllowThreads(__tstate
);
8155 if (PyErr_Occurred()) return NULL
;
8156 } _resultobj
= Py_BuildValue("i",_result
);
8160 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8161 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8162 PyObject
* _resultobj
;
8165 PyObject
* _argo0
= 0;
8166 char *_kwnames
[] = { "self", NULL
};
8169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
8172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8180 _result
= (int )wxDC_GetDepth(_arg0
);
8182 wxPyEndAllowThreads(__tstate
);
8183 if (PyErr_Occurred()) return NULL
;
8184 } _resultobj
= Py_BuildValue("i",_result
);
8188 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8189 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8190 PyObject
* _resultobj
;
8193 PyObject
* _argo0
= 0;
8194 char *_kwnames
[] = { "self", NULL
};
8198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
8201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8209 _result
= new wxSize (wxDC_GetPPI(_arg0
));
8211 wxPyEndAllowThreads(__tstate
);
8212 if (PyErr_Occurred()) return NULL
;
8213 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
8214 _resultobj
= Py_BuildValue("s",_ptemp
);
8218 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8219 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8220 PyObject
* _resultobj
;
8226 PyObject
* _argo0
= 0;
8227 char *_kwnames
[] = { "self", NULL
};
8236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
8239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8247 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8249 wxPyEndAllowThreads(__tstate
);
8250 if (PyErr_Occurred()) return NULL
;
8251 } Py_INCREF(Py_None
);
8252 _resultobj
= Py_None
;
8255 o
= PyInt_FromLong((long) (*_arg1
));
8256 _resultobj
= t_output_helper(_resultobj
, o
);
8260 o
= PyInt_FromLong((long) (*_arg2
));
8261 _resultobj
= t_output_helper(_resultobj
, o
);
8266 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8267 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8268 PyObject
* _resultobj
;
8272 PyObject
* _argo0
= 0;
8273 char *_kwnames
[] = { "self","x","y", NULL
};
8276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8287 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
8289 wxPyEndAllowThreads(__tstate
);
8290 if (PyErr_Occurred()) return NULL
;
8291 } Py_INCREF(Py_None
);
8292 _resultobj
= Py_None
;
8296 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8297 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8298 PyObject
* _resultobj
;
8304 PyObject
* _argo0
= 0;
8305 char *_kwnames
[] = { "self", NULL
};
8314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
8317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8325 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8327 wxPyEndAllowThreads(__tstate
);
8328 if (PyErr_Occurred()) return NULL
;
8329 } Py_INCREF(Py_None
);
8330 _resultobj
= Py_None
;
8333 o
= PyInt_FromLong((long) (*_arg1
));
8334 _resultobj
= t_output_helper(_resultobj
, o
);
8338 o
= PyInt_FromLong((long) (*_arg2
));
8339 _resultobj
= t_output_helper(_resultobj
, o
);
8344 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8345 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8346 PyObject
* _resultobj
;
8350 PyObject
* _argo0
= 0;
8353 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
8356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
8359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8365 _arg1
= (bool ) tempbool1
;
8366 _arg2
= (bool ) tempbool2
;
8368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8369 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
8371 wxPyEndAllowThreads(__tstate
);
8372 if (PyErr_Occurred()) return NULL
;
8373 } Py_INCREF(Py_None
);
8374 _resultobj
= Py_None
;
8378 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8379 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8380 PyObject
* _resultobj
;
8384 PyObject
* _argo0
= 0;
8385 char *_kwnames
[] = { "self","x","y", NULL
};
8388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8398 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8399 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
8401 wxPyEndAllowThreads(__tstate
);
8402 if (PyErr_Occurred()) return NULL
;
8403 } Py_INCREF(Py_None
);
8404 _resultobj
= Py_None
;
8408 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8409 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8410 PyObject
* _resultobj
;
8412 PyObject
* _argo0
= 0;
8413 char *_kwnames
[] = { "self", NULL
};
8416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
8419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8427 wxDC_ResetBoundingBox(_arg0
);
8429 wxPyEndAllowThreads(__tstate
);
8430 if (PyErr_Occurred()) return NULL
;
8431 } Py_INCREF(Py_None
);
8432 _resultobj
= Py_None
;
8436 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8437 PyObject
* _resultobj
;
8447 PyObject
* _argo0
= 0;
8448 char *_kwnames
[] = { "self", NULL
};
8463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
8466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8474 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8476 wxPyEndAllowThreads(__tstate
);
8477 if (PyErr_Occurred()) return NULL
;
8478 } Py_INCREF(Py_None
);
8479 _resultobj
= Py_None
;
8482 o
= PyInt_FromLong((long) (*_arg1
));
8483 _resultobj
= t_output_helper(_resultobj
, o
);
8487 o
= PyInt_FromLong((long) (*_arg2
));
8488 _resultobj
= t_output_helper(_resultobj
, o
);
8492 o
= PyInt_FromLong((long) (*_arg3
));
8493 _resultobj
= t_output_helper(_resultobj
, o
);
8497 o
= PyInt_FromLong((long) (*_arg4
));
8498 _resultobj
= t_output_helper(_resultobj
, o
);
8503 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
8504 static PyObject
*_wrap_wxDC_GetHDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8505 PyObject
* _resultobj
;
8508 PyObject
* _argo0
= 0;
8509 char *_kwnames
[] = { "self", NULL
};
8512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetHDC",_kwnames
,&_argo0
))
8515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
8522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8523 _result
= (long )wxDC_GetHDC(_arg0
);
8525 wxPyEndAllowThreads(__tstate
);
8526 if (PyErr_Occurred()) return NULL
;
8527 } _resultobj
= Py_BuildValue("l",_result
);
8531 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8532 return wxPyDrawXXXList(*self
, wxPyDrawXXXPoint
, pyCoords
, pyPens
, pyBrushes
);
8534 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8535 PyObject
* _resultobj
;
8541 PyObject
* _argo0
= 0;
8542 PyObject
* _obj1
= 0;
8543 PyObject
* _obj2
= 0;
8544 PyObject
* _obj3
= 0;
8545 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8568 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
,_arg3
);
8570 wxPyEndAllowThreads(__tstate
);
8571 if (PyErr_Occurred()) return NULL
;
8573 _resultobj
= _result
;
8578 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8579 return wxPyDrawXXXList(*self
, wxPyDrawXXXLine
, pyCoords
, pyPens
, pyBrushes
);
8581 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8582 PyObject
* _resultobj
;
8588 PyObject
* _argo0
= 0;
8589 PyObject
* _obj1
= 0;
8590 PyObject
* _obj2
= 0;
8591 PyObject
* _obj3
= 0;
8592 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
8614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8615 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
,_arg3
);
8617 wxPyEndAllowThreads(__tstate
);
8618 if (PyErr_Occurred()) return NULL
;
8620 _resultobj
= _result
;
8625 static PyObject
* wxDC__DrawRectangleList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8626 return wxPyDrawXXXList(*self
, wxPyDrawXXXRectangle
, pyCoords
, pyPens
, pyBrushes
);
8628 static PyObject
*_wrap_wxDC__DrawRectangleList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8629 PyObject
* _resultobj
;
8635 PyObject
* _argo0
= 0;
8636 PyObject
* _obj1
= 0;
8637 PyObject
* _obj2
= 0;
8638 PyObject
* _obj3
= 0;
8639 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawRectangleList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
8661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8662 _result
= (PyObject
*)wxDC__DrawRectangleList(_arg0
,_arg1
,_arg2
,_arg3
);
8664 wxPyEndAllowThreads(__tstate
);
8665 if (PyErr_Occurred()) return NULL
;
8667 _resultobj
= _result
;
8672 static PyObject
* wxDC__DrawEllipseList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8673 return wxPyDrawXXXList(*self
, wxPyDrawXXXEllipse
, pyCoords
, pyPens
, pyBrushes
);
8675 static PyObject
*_wrap_wxDC__DrawEllipseList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8676 PyObject
* _resultobj
;
8682 PyObject
* _argo0
= 0;
8683 PyObject
* _obj1
= 0;
8684 PyObject
* _obj2
= 0;
8685 PyObject
* _obj3
= 0;
8686 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawEllipseList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
8708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8709 _result
= (PyObject
*)wxDC__DrawEllipseList(_arg0
,_arg1
,_arg2
,_arg3
);
8711 wxPyEndAllowThreads(__tstate
);
8712 if (PyErr_Occurred()) return NULL
;
8714 _resultobj
= _result
;
8719 static PyObject
* wxDC__DrawPolygonList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
8720 return wxPyDrawXXXList(*self
, wxPyDrawXXXPolygon
, pyCoords
, pyPens
, pyBrushes
);
8722 static PyObject
*_wrap_wxDC__DrawPolygonList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8723 PyObject
* _resultobj
;
8729 PyObject
* _argo0
= 0;
8730 PyObject
* _obj1
= 0;
8731 PyObject
* _obj2
= 0;
8732 PyObject
* _obj3
= 0;
8733 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
8736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPolygonList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
8739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
8755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8756 _result
= (PyObject
*)wxDC__DrawPolygonList(_arg0
,_arg1
,_arg2
,_arg3
);
8758 wxPyEndAllowThreads(__tstate
);
8759 if (PyErr_Occurred()) return NULL
;
8761 _resultobj
= _result
;
8766 static PyObject
* wxDC__DrawTextList(wxDC
*self
,PyObject
* textList
,PyObject
* pyPoints
,PyObject
* foregroundList
,PyObject
* backgroundList
) {
8767 return wxPyDrawTextList(*self
, textList
, pyPoints
, foregroundList
, backgroundList
);
8769 static PyObject
*_wrap_wxDC__DrawTextList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8770 PyObject
* _resultobj
;
8777 PyObject
* _argo0
= 0;
8778 PyObject
* _obj1
= 0;
8779 PyObject
* _obj2
= 0;
8780 PyObject
* _obj3
= 0;
8781 PyObject
* _obj4
= 0;
8782 char *_kwnames
[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL
};
8785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:wxDC__DrawTextList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
,&_obj4
))
8788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
8807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8808 _result
= (PyObject
*)wxDC__DrawTextList(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8810 wxPyEndAllowThreads(__tstate
);
8811 if (PyErr_Occurred()) return NULL
;
8813 _resultobj
= _result
;
8818 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8821 src
= (wxMemoryDC
*) ptr
;
8822 dest
= (wxDC
*) src
;
8823 return (void *) dest
;
8826 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8829 src
= (wxMemoryDC
*) ptr
;
8830 dest
= (wxObject
*) src
;
8831 return (void *) dest
;
8834 #define new_wxMemoryDC() (new wxMemoryDC())
8835 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8836 PyObject
* _resultobj
;
8837 wxMemoryDC
* _result
;
8838 char *_kwnames
[] = { NULL
};
8842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8846 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8848 wxPyEndAllowThreads(__tstate
);
8849 if (PyErr_Occurred()) return NULL
;
8851 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8852 _resultobj
= Py_BuildValue("s",_ptemp
);
8855 _resultobj
= Py_None
;
8860 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8861 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8862 PyObject
* _resultobj
;
8865 PyObject
* _argo0
= 0;
8866 PyObject
* _argo1
= 0;
8867 char *_kwnames
[] = { "self","bitmap", NULL
};
8870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8880 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8887 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8889 wxPyEndAllowThreads(__tstate
);
8890 if (PyErr_Occurred()) return NULL
;
8891 } Py_INCREF(Py_None
);
8892 _resultobj
= Py_None
;
8896 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
8899 src
= (wxBufferedDC
*) ptr
;
8900 dest
= (wxMemoryDC
*) src
;
8901 return (void *) dest
;
8904 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
8907 src
= (wxBufferedDC
*) ptr
;
8908 dest
= (wxDC
*) src
;
8909 return (void *) dest
;
8912 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
8915 src
= (wxBufferedDC
*) ptr
;
8916 dest
= (wxObject
*) src
;
8917 return (void *) dest
;
8920 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8921 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8922 PyObject
* _resultobj
;
8923 wxBufferedDC
* _result
;
8926 PyObject
* _argo0
= 0;
8927 PyObject
* _argo1
= 0;
8928 char *_kwnames
[] = { "dc","buffer", NULL
};
8932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
8935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
8942 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
8948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8949 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
8951 wxPyEndAllowThreads(__tstate
);
8952 if (PyErr_Occurred()) return NULL
;
8954 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8955 _resultobj
= Py_BuildValue("s",_ptemp
);
8958 _resultobj
= Py_None
;
8963 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8964 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8965 PyObject
* _resultobj
;
8966 wxBufferedDC
* _result
;
8969 PyObject
* _argo0
= 0;
8971 PyObject
* _obj1
= 0;
8972 char *_kwnames
[] = { "dc","area", NULL
};
8976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
8979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8987 if (! wxSize_helper(_obj1
, &_arg1
))
8991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8992 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
8994 wxPyEndAllowThreads(__tstate
);
8995 if (PyErr_Occurred()) return NULL
;
8997 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8998 _resultobj
= Py_BuildValue("s",_ptemp
);
9001 _resultobj
= Py_None
;
9006 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
9007 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9008 PyObject
* _resultobj
;
9009 wxBufferedDC
* _arg0
;
9010 PyObject
* _argo0
= 0;
9011 char *_kwnames
[] = { "self", NULL
};
9014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
9017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
9019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
9024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9025 wxBufferedDC_UnMask(_arg0
);
9027 wxPyEndAllowThreads(__tstate
);
9028 if (PyErr_Occurred()) return NULL
;
9029 } Py_INCREF(Py_None
);
9030 _resultobj
= Py_None
;
9034 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
9035 wxBufferedPaintDC
*src
;
9037 src
= (wxBufferedPaintDC
*) ptr
;
9038 dest
= (wxBufferedDC
*) src
;
9039 return (void *) dest
;
9042 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
9043 wxBufferedPaintDC
*src
;
9045 src
= (wxBufferedPaintDC
*) ptr
;
9046 dest
= (wxMemoryDC
*) src
;
9047 return (void *) dest
;
9050 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
9051 wxBufferedPaintDC
*src
;
9053 src
= (wxBufferedPaintDC
*) ptr
;
9054 dest
= (wxDC
*) src
;
9055 return (void *) dest
;
9058 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
9059 wxBufferedPaintDC
*src
;
9061 src
= (wxBufferedPaintDC
*) ptr
;
9062 dest
= (wxObject
*) src
;
9063 return (void *) dest
;
9066 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
9067 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9068 PyObject
* _resultobj
;
9069 wxBufferedPaintDC
* _result
;
9071 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
9072 PyObject
* _argo0
= 0;
9073 PyObject
* _argo1
= 0;
9074 char *_kwnames
[] = { "window","buffer", NULL
};
9078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
9081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
9088 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
9094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9095 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
9097 wxPyEndAllowThreads(__tstate
);
9098 if (PyErr_Occurred()) return NULL
;
9100 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
9101 _resultobj
= Py_BuildValue("s",_ptemp
);
9104 _resultobj
= Py_None
;
9109 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9112 src
= (wxScreenDC
*) ptr
;
9113 dest
= (wxDC
*) src
;
9114 return (void *) dest
;
9117 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9120 src
= (wxScreenDC
*) ptr
;
9121 dest
= (wxObject
*) src
;
9122 return (void *) dest
;
9125 #define new_wxScreenDC() (new wxScreenDC())
9126 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9127 PyObject
* _resultobj
;
9128 wxScreenDC
* _result
;
9129 char *_kwnames
[] = { NULL
};
9133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9137 _result
= (wxScreenDC
*)new_wxScreenDC();
9139 wxPyEndAllowThreads(__tstate
);
9140 if (PyErr_Occurred()) return NULL
;
9142 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9143 _resultobj
= Py_BuildValue("s",_ptemp
);
9146 _resultobj
= Py_None
;
9151 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9152 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9153 PyObject
* _resultobj
;
9157 PyObject
* _argo0
= 0;
9158 PyObject
* _argo1
= 0;
9159 char *_kwnames
[] = { "self","window", NULL
};
9162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9172 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9173 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9180 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9182 wxPyEndAllowThreads(__tstate
);
9183 if (PyErr_Occurred()) return NULL
;
9184 } _resultobj
= Py_BuildValue("i",_result
);
9188 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9189 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9190 PyObject
* _resultobj
;
9193 wxRect
* _arg1
= (wxRect
*) NULL
;
9194 PyObject
* _argo0
= 0;
9196 PyObject
* _obj1
= 0;
9197 char *_kwnames
[] = { "self","rect", NULL
};
9200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9212 if (! wxRect_helper(_obj1
, &_arg1
))
9216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9217 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9219 wxPyEndAllowThreads(__tstate
);
9220 if (PyErr_Occurred()) return NULL
;
9221 } _resultobj
= Py_BuildValue("i",_result
);
9225 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9226 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9227 PyObject
* _resultobj
;
9230 PyObject
* _argo0
= 0;
9231 char *_kwnames
[] = { "self", NULL
};
9234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9245 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9247 wxPyEndAllowThreads(__tstate
);
9248 if (PyErr_Occurred()) return NULL
;
9249 } _resultobj
= Py_BuildValue("i",_result
);
9253 static void *SwigwxClientDCTowxDC(void *ptr
) {
9256 src
= (wxClientDC
*) ptr
;
9257 dest
= (wxDC
*) src
;
9258 return (void *) dest
;
9261 static void *SwigwxClientDCTowxObject(void *ptr
) {
9264 src
= (wxClientDC
*) ptr
;
9265 dest
= (wxObject
*) src
;
9266 return (void *) dest
;
9269 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9270 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9271 PyObject
* _resultobj
;
9272 wxClientDC
* _result
;
9274 PyObject
* _argo0
= 0;
9275 char *_kwnames
[] = { "win", NULL
};
9279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9290 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9292 wxPyEndAllowThreads(__tstate
);
9293 if (PyErr_Occurred()) return NULL
;
9295 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9296 _resultobj
= Py_BuildValue("s",_ptemp
);
9299 _resultobj
= Py_None
;
9304 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9307 src
= (wxPaintDC
*) ptr
;
9308 dest
= (wxDC
*) src
;
9309 return (void *) dest
;
9312 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9315 src
= (wxPaintDC
*) ptr
;
9316 dest
= (wxObject
*) src
;
9317 return (void *) dest
;
9320 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9321 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9322 PyObject
* _resultobj
;
9323 wxPaintDC
* _result
;
9325 PyObject
* _argo0
= 0;
9326 char *_kwnames
[] = { "win", NULL
};
9330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9341 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9343 wxPyEndAllowThreads(__tstate
);
9344 if (PyErr_Occurred()) return NULL
;
9346 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9347 _resultobj
= Py_BuildValue("s",_ptemp
);
9350 _resultobj
= Py_None
;
9355 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9358 src
= (wxWindowDC
*) ptr
;
9359 dest
= (wxDC
*) src
;
9360 return (void *) dest
;
9363 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9366 src
= (wxWindowDC
*) ptr
;
9367 dest
= (wxObject
*) src
;
9368 return (void *) dest
;
9371 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9372 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9373 PyObject
* _resultobj
;
9374 wxWindowDC
* _result
;
9376 PyObject
* _argo0
= 0;
9377 char *_kwnames
[] = { "win", NULL
};
9381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9392 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
9394 wxPyEndAllowThreads(__tstate
);
9395 if (PyErr_Occurred()) return NULL
;
9397 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
9398 _resultobj
= Py_BuildValue("s",_ptemp
);
9401 _resultobj
= Py_None
;
9406 static void *SwigwxMetaFileTowxObject(void *ptr
) {
9409 src
= (wxMetaFile
*) ptr
;
9410 dest
= (wxObject
*) src
;
9411 return (void *) dest
;
9414 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
9415 static PyObject
*_wrap_new_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9416 PyObject
* _resultobj
;
9417 wxMetaFile
* _result
;
9418 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
9419 PyObject
* _obj0
= 0;
9420 char *_kwnames
[] = { "filename", NULL
};
9424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxMetaFile",_kwnames
,&_obj0
))
9428 _arg0
= wxString_in_helper(_obj0
);
9433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9434 _result
= (wxMetaFile
*)new_wxMetaFile(*_arg0
);
9436 wxPyEndAllowThreads(__tstate
);
9437 if (PyErr_Occurred()) return NULL
;
9439 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9440 _resultobj
= Py_BuildValue("s",_ptemp
);
9443 _resultobj
= Py_None
;
9452 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
9453 static PyObject
*_wrap_delete_wxMetaFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9454 PyObject
* _resultobj
;
9456 PyObject
* _argo0
= 0;
9457 char *_kwnames
[] = { "self", NULL
};
9460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxMetaFile",_kwnames
,&_argo0
))
9463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
9470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9471 delete_wxMetaFile(_arg0
);
9473 wxPyEndAllowThreads(__tstate
);
9474 if (PyErr_Occurred()) return NULL
;
9475 } Py_INCREF(Py_None
);
9476 _resultobj
= Py_None
;
9480 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
9481 static PyObject
*_wrap_wxMetaFile_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9482 PyObject
* _resultobj
;
9485 PyObject
* _argo0
= 0;
9486 char *_kwnames
[] = { "self", NULL
};
9489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_Ok",_kwnames
,&_argo0
))
9492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
9499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9500 _result
= (bool )wxMetaFile_Ok(_arg0
);
9502 wxPyEndAllowThreads(__tstate
);
9503 if (PyErr_Occurred()) return NULL
;
9504 } _resultobj
= Py_BuildValue("i",_result
);
9508 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
9509 static PyObject
*_wrap_wxMetaFile_SetClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9510 PyObject
* _resultobj
;
9513 int _arg1
= (int ) 0;
9514 int _arg2
= (int ) 0;
9515 PyObject
* _argo0
= 0;
9516 char *_kwnames
[] = { "self","width","height", NULL
};
9519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxMetaFile_SetClipboard",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
9529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9530 _result
= (bool )wxMetaFile_SetClipboard(_arg0
,_arg1
,_arg2
);
9532 wxPyEndAllowThreads(__tstate
);
9533 if (PyErr_Occurred()) return NULL
;
9534 } _resultobj
= Py_BuildValue("i",_result
);
9538 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
9539 static PyObject
*_wrap_wxMetaFile_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9540 PyObject
* _resultobj
;
9543 PyObject
* _argo0
= 0;
9544 char *_kwnames
[] = { "self", NULL
};
9548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetSize",_kwnames
,&_argo0
))
9551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
9558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9559 _result
= new wxSize (wxMetaFile_GetSize(_arg0
));
9561 wxPyEndAllowThreads(__tstate
);
9562 if (PyErr_Occurred()) return NULL
;
9563 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9564 _resultobj
= Py_BuildValue("s",_ptemp
);
9568 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
9569 static PyObject
*_wrap_wxMetaFile_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9570 PyObject
* _resultobj
;
9573 PyObject
* _argo0
= 0;
9574 char *_kwnames
[] = { "self", NULL
};
9577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetWidth",_kwnames
,&_argo0
))
9580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
9587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9588 _result
= (int )wxMetaFile_GetWidth(_arg0
);
9590 wxPyEndAllowThreads(__tstate
);
9591 if (PyErr_Occurred()) return NULL
;
9592 } _resultobj
= Py_BuildValue("i",_result
);
9596 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
9597 static PyObject
*_wrap_wxMetaFile_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9598 PyObject
* _resultobj
;
9601 PyObject
* _argo0
= 0;
9602 char *_kwnames
[] = { "self", NULL
};
9605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetHeight",_kwnames
,&_argo0
))
9608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
9615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9616 _result
= (int )wxMetaFile_GetHeight(_arg0
);
9618 wxPyEndAllowThreads(__tstate
);
9619 if (PyErr_Occurred()) return NULL
;
9620 } _resultobj
= Py_BuildValue("i",_result
);
9624 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
9625 static PyObject
*_wrap_wxMetaFile_GetFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9626 PyObject
* _resultobj
;
9629 PyObject
* _argo0
= 0;
9630 char *_kwnames
[] = { "self", NULL
};
9633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFile_GetFileName",_kwnames
,&_argo0
))
9636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFile_p")) {
9638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
9643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9644 const wxString
& _result_ref
= wxMetaFile_GetFileName(_arg0
);
9645 _result
= (wxString
*) &_result_ref
;
9647 wxPyEndAllowThreads(__tstate
);
9648 if (PyErr_Occurred()) return NULL
;
9651 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
9653 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9659 static void *SwigwxMetaFileDCTowxDC(void *ptr
) {
9662 src
= (wxMetaFileDC
*) ptr
;
9663 dest
= (wxDC
*) src
;
9664 return (void *) dest
;
9667 static void *SwigwxMetaFileDCTowxObject(void *ptr
) {
9670 src
= (wxMetaFileDC
*) ptr
;
9671 dest
= (wxObject
*) src
;
9672 return (void *) dest
;
9675 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9676 static PyObject
*_wrap_new_wxMetaFileDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9677 PyObject
* _resultobj
;
9678 wxMetaFileDC
* _result
;
9679 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
9680 int _arg1
= (int ) 0;
9681 int _arg2
= (int ) 0;
9682 wxString
* _arg3
= (wxString
*) &wxPyEmptyString
;
9683 PyObject
* _obj0
= 0;
9684 PyObject
* _obj3
= 0;
9685 char *_kwnames
[] = { "filename","width","height","description", NULL
};
9689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiiO:new_wxMetaFileDC",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_obj3
))
9693 _arg0
= wxString_in_helper(_obj0
);
9699 _arg3
= wxString_in_helper(_obj3
);
9704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9705 _result
= (wxMetaFileDC
*)new_wxMetaFileDC(*_arg0
,_arg1
,_arg2
,*_arg3
);
9707 wxPyEndAllowThreads(__tstate
);
9708 if (PyErr_Occurred()) return NULL
;
9710 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFileDC_p");
9711 _resultobj
= Py_BuildValue("s",_ptemp
);
9714 _resultobj
= Py_None
;
9727 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
9728 static PyObject
*_wrap_wxMetaFileDC_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9729 PyObject
* _resultobj
;
9730 wxMetaFile
* _result
;
9731 wxMetaFileDC
* _arg0
;
9732 PyObject
* _argo0
= 0;
9733 char *_kwnames
[] = { "self", NULL
};
9737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetaFileDC_Close",_kwnames
,&_argo0
))
9740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetaFileDC_p")) {
9742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
9747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9748 _result
= (wxMetaFile
*)wxMetaFileDC_Close(_arg0
);
9750 wxPyEndAllowThreads(__tstate
);
9751 if (PyErr_Occurred()) return NULL
;
9753 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetaFile_p");
9754 _resultobj
= Py_BuildValue("s",_ptemp
);
9757 _resultobj
= Py_None
;
9762 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
9765 src
= (wxPalette
*) ptr
;
9766 dest
= (wxGDIObject
*) src
;
9767 return (void *) dest
;
9770 static void *SwigwxPaletteTowxObject(void *ptr
) {
9773 src
= (wxPalette
*) ptr
;
9774 dest
= (wxObject
*) src
;
9775 return (void *) dest
;
9778 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9779 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9780 PyObject
* _resultobj
;
9781 wxPalette
* _result
;
9786 PyObject
* _obj1
= 0;
9787 PyObject
* _obj2
= 0;
9788 PyObject
* _obj3
= 0;
9789 char *_kwnames
[] = { "choices","choices","choices", NULL
};
9793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
9796 _arg1
= byte_LIST_helper(_obj1
);
9797 if (_arg1
== NULL
) {
9802 _arg2
= byte_LIST_helper(_obj2
);
9803 if (_arg2
== NULL
) {
9809 _arg3
= byte_LIST_helper(_obj3
);
9810 if (_arg3
== NULL
) {
9816 _arg0
= PyList_Size(_obj1
);
9823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9824 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
9826 wxPyEndAllowThreads(__tstate
);
9827 if (PyErr_Occurred()) return NULL
;
9829 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
9830 _resultobj
= Py_BuildValue("s",_ptemp
);
9833 _resultobj
= Py_None
;
9847 #define delete_wxPalette(_swigobj) (delete _swigobj)
9848 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9849 PyObject
* _resultobj
;
9851 PyObject
* _argo0
= 0;
9852 char *_kwnames
[] = { "self", NULL
};
9855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
9858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9866 delete_wxPalette(_arg0
);
9868 wxPyEndAllowThreads(__tstate
);
9869 if (PyErr_Occurred()) return NULL
;
9870 } Py_INCREF(Py_None
);
9871 _resultobj
= Py_None
;
9875 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
9876 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9877 PyObject
* _resultobj
;
9883 PyObject
* _argo0
= 0;
9884 char *_kwnames
[] = { "self","red","green","blue", NULL
};
9887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
9890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9898 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
9900 wxPyEndAllowThreads(__tstate
);
9901 if (PyErr_Occurred()) return NULL
;
9902 } _resultobj
= Py_BuildValue("i",_result
);
9906 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9907 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9908 PyObject
* _resultobj
;
9918 PyObject
* _argo0
= 0;
9919 char *_kwnames
[] = { "self","pixel", NULL
};
9923 _arg2
= (byte
*)&temp
;
9926 _arg3
= (byte
*)&temp0
;
9929 _arg4
= (byte
*)&temp1
;
9931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
9934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9941 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9942 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9944 wxPyEndAllowThreads(__tstate
);
9945 if (PyErr_Occurred()) return NULL
;
9946 } _resultobj
= Py_BuildValue("i",_result
);
9949 o
= PyInt_FromLong((long) (*_arg2
));
9950 _resultobj
= t_output_helper(_resultobj
, o
);
9954 o
= PyInt_FromLong((long) (*_arg3
));
9955 _resultobj
= t_output_helper(_resultobj
, o
);
9959 o
= PyInt_FromLong((long) (*_arg4
));
9960 _resultobj
= t_output_helper(_resultobj
, o
);
9965 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9966 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9967 PyObject
* _resultobj
;
9970 PyObject
* _argo0
= 0;
9971 char *_kwnames
[] = { "self", NULL
};
9974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
9977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
9979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9985 _result
= (bool )wxPalette_Ok(_arg0
);
9987 wxPyEndAllowThreads(__tstate
);
9988 if (PyErr_Occurred()) return NULL
;
9989 } _resultobj
= Py_BuildValue("i",_result
);
9993 static void *SwigwxImageListTowxObject(void *ptr
) {
9996 src
= (wxImageList
*) ptr
;
9997 dest
= (wxObject
*) src
;
9998 return (void *) dest
;
10001 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10002 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10003 PyObject
* _resultobj
;
10004 wxImageList
* _result
;
10007 int _arg2
= (int ) TRUE
;
10008 int _arg3
= (int ) 1;
10009 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10016 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10017 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10019 wxPyEndAllowThreads(__tstate
);
10020 if (PyErr_Occurred()) return NULL
;
10022 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10023 _resultobj
= Py_BuildValue("s",_ptemp
);
10025 Py_INCREF(Py_None
);
10026 _resultobj
= Py_None
;
10031 #define delete_wxImageList(_swigobj) (delete _swigobj)
10032 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10033 PyObject
* _resultobj
;
10034 wxImageList
* _arg0
;
10035 PyObject
* _argo0
= 0;
10036 char *_kwnames
[] = { "self", NULL
};
10039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10050 delete_wxImageList(_arg0
);
10052 wxPyEndAllowThreads(__tstate
);
10053 if (PyErr_Occurred()) return NULL
;
10054 } Py_INCREF(Py_None
);
10055 _resultobj
= Py_None
;
10059 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10060 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10061 PyObject
* _resultobj
;
10063 wxImageList
* _arg0
;
10065 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10066 PyObject
* _argo0
= 0;
10067 PyObject
* _argo1
= 0;
10068 PyObject
* _argo2
= 0;
10069 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10082 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10088 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10095 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10097 wxPyEndAllowThreads(__tstate
);
10098 if (PyErr_Occurred()) return NULL
;
10099 } _resultobj
= Py_BuildValue("i",_result
);
10103 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10104 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10105 PyObject
* _resultobj
;
10107 wxImageList
* _arg0
;
10110 PyObject
* _argo0
= 0;
10111 PyObject
* _argo1
= 0;
10113 PyObject
* _obj2
= 0;
10114 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10127 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10134 if (! wxColour_helper(_obj2
, &_arg2
))
10138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10139 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10141 wxPyEndAllowThreads(__tstate
);
10142 if (PyErr_Occurred()) return NULL
;
10143 } _resultobj
= Py_BuildValue("i",_result
);
10147 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10148 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10149 PyObject
* _resultobj
;
10151 wxImageList
* _arg0
;
10153 PyObject
* _argo0
= 0;
10154 PyObject
* _argo1
= 0;
10155 char *_kwnames
[] = { "self","icon", NULL
};
10158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10168 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10175 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10177 wxPyEndAllowThreads(__tstate
);
10178 if (PyErr_Occurred()) return NULL
;
10179 } _resultobj
= Py_BuildValue("i",_result
);
10183 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10184 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10185 PyObject
* _resultobj
;
10187 wxImageList
* _arg0
;
10190 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
10191 PyObject
* _argo0
= 0;
10192 PyObject
* _argo2
= 0;
10193 PyObject
* _argo3
= 0;
10194 char *_kwnames
[] = { "self","index","bitmap","mask", NULL
};
10197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|O:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
))
10200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10207 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10213 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
10214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10220 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
,*_arg3
);
10222 wxPyEndAllowThreads(__tstate
);
10223 if (PyErr_Occurred()) return NULL
;
10224 } _resultobj
= Py_BuildValue("i",_result
);
10228 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10229 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10230 PyObject
* _resultobj
;
10232 wxImageList
* _arg0
;
10237 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10238 bool _arg6
= (bool ) FALSE
;
10239 PyObject
* _argo0
= 0;
10240 PyObject
* _argo2
= 0;
10241 int tempbool6
= (int) FALSE
;
10242 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10255 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10260 _arg6
= (bool ) tempbool6
;
10262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10263 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10265 wxPyEndAllowThreads(__tstate
);
10266 if (PyErr_Occurred()) return NULL
;
10267 } _resultobj
= Py_BuildValue("i",_result
);
10271 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10272 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10273 PyObject
* _resultobj
;
10275 wxImageList
* _arg0
;
10276 PyObject
* _argo0
= 0;
10277 char *_kwnames
[] = { "self", NULL
};
10280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10291 _result
= (int )wxImageList_GetImageCount(_arg0
);
10293 wxPyEndAllowThreads(__tstate
);
10294 if (PyErr_Occurred()) return NULL
;
10295 } _resultobj
= Py_BuildValue("i",_result
);
10299 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10300 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10301 PyObject
* _resultobj
;
10303 wxImageList
* _arg0
;
10305 PyObject
* _argo0
= 0;
10306 char *_kwnames
[] = { "self","index", NULL
};
10309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10320 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10322 wxPyEndAllowThreads(__tstate
);
10323 if (PyErr_Occurred()) return NULL
;
10324 } _resultobj
= Py_BuildValue("i",_result
);
10328 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10329 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10330 PyObject
* _resultobj
;
10332 wxImageList
* _arg0
;
10333 PyObject
* _argo0
= 0;
10334 char *_kwnames
[] = { "self", NULL
};
10337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10348 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10350 wxPyEndAllowThreads(__tstate
);
10351 if (PyErr_Occurred()) return NULL
;
10352 } _resultobj
= Py_BuildValue("i",_result
);
10356 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10357 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10358 PyObject
* _resultobj
;
10359 wxImageList
* _arg0
;
10365 PyObject
* _argo0
= 0;
10366 char *_kwnames
[] = { "self","index", NULL
};
10375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10386 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10388 wxPyEndAllowThreads(__tstate
);
10389 if (PyErr_Occurred()) return NULL
;
10390 } Py_INCREF(Py_None
);
10391 _resultobj
= Py_None
;
10394 o
= PyInt_FromLong((long) (*_arg2
));
10395 _resultobj
= t_output_helper(_resultobj
, o
);
10399 o
= PyInt_FromLong((long) (*_arg3
));
10400 _resultobj
= t_output_helper(_resultobj
, o
);
10405 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10408 src
= (wxRegion
*) ptr
;
10409 dest
= (wxGDIObject
*) src
;
10410 return (void *) dest
;
10413 static void *SwigwxRegionTowxObject(void *ptr
) {
10416 src
= (wxRegion
*) ptr
;
10417 dest
= (wxObject
*) src
;
10418 return (void *) dest
;
10421 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10422 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10423 PyObject
* _resultobj
;
10424 wxRegion
* _result
;
10425 wxCoord _arg0
= (wxCoord
) 0;
10426 wxCoord _arg1
= (wxCoord
) 0;
10427 wxCoord _arg2
= (wxCoord
) 0;
10428 wxCoord _arg3
= (wxCoord
) 0;
10429 char *_kwnames
[] = { "x","y","width","height", NULL
};
10433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10437 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10439 wxPyEndAllowThreads(__tstate
);
10440 if (PyErr_Occurred()) return NULL
;
10442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10443 _resultobj
= Py_BuildValue("s",_ptemp
);
10445 Py_INCREF(Py_None
);
10446 _resultobj
= Py_None
;
10451 #define new_wxRegionFromPoints(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
10452 static PyObject
*_wrap_new_wxRegionFromPoints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10453 PyObject
* _resultobj
;
10454 wxRegion
* _result
;
10457 int _arg2
= (int ) wxWINDING_RULE
;
10459 PyObject
* _obj1
= 0;
10460 char *_kwnames
[] = { "points","fillStyle", NULL
};
10464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxRegionFromPoints",_kwnames
,&_obj1
,&_arg2
))
10468 _arg1
= wxPoint_LIST_helper(_obj1
, &NPOINTS
);
10469 if (_arg1
== NULL
) {
10477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10478 _result
= (wxRegion
*)new_wxRegionFromPoints(_arg0
,_arg1
,_arg2
);
10480 wxPyEndAllowThreads(__tstate
);
10481 if (PyErr_Occurred()) return NULL
;
10483 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10484 _resultobj
= Py_BuildValue("s",_ptemp
);
10486 Py_INCREF(Py_None
);
10487 _resultobj
= Py_None
;
10495 #define delete_wxRegion(_swigobj) (delete _swigobj)
10496 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10497 PyObject
* _resultobj
;
10499 PyObject
* _argo0
= 0;
10500 char *_kwnames
[] = { "self", NULL
};
10503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10514 delete_wxRegion(_arg0
);
10516 wxPyEndAllowThreads(__tstate
);
10517 if (PyErr_Occurred()) return NULL
;
10518 } Py_INCREF(Py_None
);
10519 _resultobj
= Py_None
;
10523 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10524 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10525 PyObject
* _resultobj
;
10527 PyObject
* _argo0
= 0;
10528 char *_kwnames
[] = { "self", NULL
};
10531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10542 wxRegion_Clear(_arg0
);
10544 wxPyEndAllowThreads(__tstate
);
10545 if (PyErr_Occurred()) return NULL
;
10546 } Py_INCREF(Py_None
);
10547 _resultobj
= Py_None
;
10551 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10552 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10553 PyObject
* _resultobj
;
10558 PyObject
* _argo0
= 0;
10559 char *_kwnames
[] = { "self","x","y", NULL
};
10562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10573 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
10575 wxPyEndAllowThreads(__tstate
);
10576 if (PyErr_Occurred()) return NULL
;
10577 } _resultobj
= Py_BuildValue("i",_result
);
10581 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10582 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10583 PyObject
* _resultobj
;
10584 wxRegionContain _result
;
10588 PyObject
* _argo0
= 0;
10589 char *_kwnames
[] = { "self","x","y", NULL
};
10592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10603 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10605 wxPyEndAllowThreads(__tstate
);
10606 if (PyErr_Occurred()) return NULL
;
10607 } _resultobj
= Py_BuildValue("i",_result
);
10611 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10612 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10613 PyObject
* _resultobj
;
10614 wxRegionContain _result
;
10617 PyObject
* _argo0
= 0;
10619 PyObject
* _obj1
= 0;
10620 char *_kwnames
[] = { "self","pt", NULL
};
10623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10634 if (! wxPoint_helper(_obj1
, &_arg1
))
10638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10639 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10641 wxPyEndAllowThreads(__tstate
);
10642 if (PyErr_Occurred()) return NULL
;
10643 } _resultobj
= Py_BuildValue("i",_result
);
10647 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10648 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10649 PyObject
* _resultobj
;
10650 wxRegionContain _result
;
10653 PyObject
* _argo0
= 0;
10655 PyObject
* _obj1
= 0;
10656 char *_kwnames
[] = { "self","rect", NULL
};
10659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10670 if (! wxRect_helper(_obj1
, &_arg1
))
10674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10675 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10677 wxPyEndAllowThreads(__tstate
);
10678 if (PyErr_Occurred()) return NULL
;
10679 } _resultobj
= Py_BuildValue("i",_result
);
10683 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10684 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10685 PyObject
* _resultobj
;
10686 wxRegionContain _result
;
10692 PyObject
* _argo0
= 0;
10693 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10707 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10709 wxPyEndAllowThreads(__tstate
);
10710 if (PyErr_Occurred()) return NULL
;
10711 } _resultobj
= Py_BuildValue("i",_result
);
10715 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10716 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10717 PyObject
* _resultobj
;
10720 PyObject
* _argo0
= 0;
10721 char *_kwnames
[] = { "self", NULL
};
10725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10736 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10738 wxPyEndAllowThreads(__tstate
);
10739 if (PyErr_Occurred()) return NULL
;
10740 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10741 _resultobj
= Py_BuildValue("s",_ptemp
);
10745 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10746 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10747 PyObject
* _resultobj
;
10754 PyObject
* _argo0
= 0;
10755 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10769 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10771 wxPyEndAllowThreads(__tstate
);
10772 if (PyErr_Occurred()) return NULL
;
10773 } _resultobj
= Py_BuildValue("i",_result
);
10777 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10778 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10779 PyObject
* _resultobj
;
10783 PyObject
* _argo0
= 0;
10785 PyObject
* _obj1
= 0;
10786 char *_kwnames
[] = { "self","rect", NULL
};
10789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
10792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10800 if (! wxRect_helper(_obj1
, &_arg1
))
10804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10805 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
10807 wxPyEndAllowThreads(__tstate
);
10808 if (PyErr_Occurred()) return NULL
;
10809 } _resultobj
= Py_BuildValue("i",_result
);
10813 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10814 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10815 PyObject
* _resultobj
;
10819 PyObject
* _argo0
= 0;
10820 PyObject
* _argo1
= 0;
10821 char *_kwnames
[] = { "self","region", NULL
};
10824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
10827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10834 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10841 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
10843 wxPyEndAllowThreads(__tstate
);
10844 if (PyErr_Occurred()) return NULL
;
10845 } _resultobj
= Py_BuildValue("i",_result
);
10849 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10850 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10851 PyObject
* _resultobj
;
10854 PyObject
* _argo0
= 0;
10855 char *_kwnames
[] = { "self", NULL
};
10858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
10861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10868 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10869 _result
= (bool )wxRegion_IsEmpty(_arg0
);
10871 wxPyEndAllowThreads(__tstate
);
10872 if (PyErr_Occurred()) return NULL
;
10873 } _resultobj
= Py_BuildValue("i",_result
);
10877 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10878 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10879 PyObject
* _resultobj
;
10886 PyObject
* _argo0
= 0;
10887 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10901 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10903 wxPyEndAllowThreads(__tstate
);
10904 if (PyErr_Occurred()) return NULL
;
10905 } _resultobj
= Py_BuildValue("i",_result
);
10909 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10910 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10911 PyObject
* _resultobj
;
10915 PyObject
* _argo0
= 0;
10917 PyObject
* _obj1
= 0;
10918 char *_kwnames
[] = { "self","rect", NULL
};
10921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
10924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10932 if (! wxRect_helper(_obj1
, &_arg1
))
10936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10937 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
10939 wxPyEndAllowThreads(__tstate
);
10940 if (PyErr_Occurred()) return NULL
;
10941 } _resultobj
= Py_BuildValue("i",_result
);
10945 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10946 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10947 PyObject
* _resultobj
;
10951 PyObject
* _argo0
= 0;
10952 PyObject
* _argo1
= 0;
10953 char *_kwnames
[] = { "self","region", NULL
};
10956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
10959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10966 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
10967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10973 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
10975 wxPyEndAllowThreads(__tstate
);
10976 if (PyErr_Occurred()) return NULL
;
10977 } _resultobj
= Py_BuildValue("i",_result
);
10981 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10982 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10983 PyObject
* _resultobj
;
10990 PyObject
* _argo0
= 0;
10991 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11005 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11007 wxPyEndAllowThreads(__tstate
);
11008 if (PyErr_Occurred()) return NULL
;
11009 } _resultobj
= Py_BuildValue("i",_result
);
11013 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11014 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11015 PyObject
* _resultobj
;
11019 PyObject
* _argo0
= 0;
11021 PyObject
* _obj1
= 0;
11022 char *_kwnames
[] = { "self","rect", NULL
};
11025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11036 if (! wxRect_helper(_obj1
, &_arg1
))
11040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11041 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11043 wxPyEndAllowThreads(__tstate
);
11044 if (PyErr_Occurred()) return NULL
;
11045 } _resultobj
= Py_BuildValue("i",_result
);
11049 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11050 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11051 PyObject
* _resultobj
;
11055 PyObject
* _argo0
= 0;
11056 PyObject
* _argo1
= 0;
11057 char *_kwnames
[] = { "self","region", NULL
};
11060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11070 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11077 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11079 wxPyEndAllowThreads(__tstate
);
11080 if (PyErr_Occurred()) return NULL
;
11081 } _resultobj
= Py_BuildValue("i",_result
);
11085 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11086 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11087 PyObject
* _resultobj
;
11094 PyObject
* _argo0
= 0;
11095 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11109 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11111 wxPyEndAllowThreads(__tstate
);
11112 if (PyErr_Occurred()) return NULL
;
11113 } _resultobj
= Py_BuildValue("i",_result
);
11117 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11118 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11119 PyObject
* _resultobj
;
11123 PyObject
* _argo0
= 0;
11125 PyObject
* _obj1
= 0;
11126 char *_kwnames
[] = { "self","rect", NULL
};
11129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11140 if (! wxRect_helper(_obj1
, &_arg1
))
11144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11145 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11147 wxPyEndAllowThreads(__tstate
);
11148 if (PyErr_Occurred()) return NULL
;
11149 } _resultobj
= Py_BuildValue("i",_result
);
11153 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11154 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11155 PyObject
* _resultobj
;
11159 PyObject
* _argo0
= 0;
11160 PyObject
* _argo1
= 0;
11161 char *_kwnames
[] = { "self","region", NULL
};
11164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11174 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11181 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11183 wxPyEndAllowThreads(__tstate
);
11184 if (PyErr_Occurred()) return NULL
;
11185 } _resultobj
= Py_BuildValue("i",_result
);
11189 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11190 wxRegionIterator
*src
;
11192 src
= (wxRegionIterator
*) ptr
;
11193 dest
= (wxObject
*) src
;
11194 return (void *) dest
;
11197 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11198 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11199 PyObject
* _resultobj
;
11200 wxRegionIterator
* _result
;
11202 PyObject
* _argo0
= 0;
11203 char *_kwnames
[] = { "region", NULL
};
11207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11210 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11217 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11219 wxPyEndAllowThreads(__tstate
);
11220 if (PyErr_Occurred()) return NULL
;
11222 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11223 _resultobj
= Py_BuildValue("s",_ptemp
);
11225 Py_INCREF(Py_None
);
11226 _resultobj
= Py_None
;
11231 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11232 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11233 PyObject
* _resultobj
;
11234 wxRegionIterator
* _arg0
;
11235 PyObject
* _argo0
= 0;
11236 char *_kwnames
[] = { "self", NULL
};
11239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11250 delete_wxRegionIterator(_arg0
);
11252 wxPyEndAllowThreads(__tstate
);
11253 if (PyErr_Occurred()) return NULL
;
11254 } Py_INCREF(Py_None
);
11255 _resultobj
= Py_None
;
11259 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11260 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11261 PyObject
* _resultobj
;
11263 wxRegionIterator
* _arg0
;
11264 PyObject
* _argo0
= 0;
11265 char *_kwnames
[] = { "self", NULL
};
11268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11278 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11279 _result
= (wxCoord
)wxRegionIterator_GetX(_arg0
);
11281 wxPyEndAllowThreads(__tstate
);
11282 if (PyErr_Occurred()) return NULL
;
11283 } _resultobj
= Py_BuildValue("i",_result
);
11287 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11288 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11289 PyObject
* _resultobj
;
11291 wxRegionIterator
* _arg0
;
11292 PyObject
* _argo0
= 0;
11293 char *_kwnames
[] = { "self", NULL
};
11296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11307 _result
= (wxCoord
)wxRegionIterator_GetY(_arg0
);
11309 wxPyEndAllowThreads(__tstate
);
11310 if (PyErr_Occurred()) return NULL
;
11311 } _resultobj
= Py_BuildValue("i",_result
);
11315 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11316 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11317 PyObject
* _resultobj
;
11319 wxRegionIterator
* _arg0
;
11320 PyObject
* _argo0
= 0;
11321 char *_kwnames
[] = { "self", NULL
};
11324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11335 _result
= (wxCoord
)wxRegionIterator_GetW(_arg0
);
11337 wxPyEndAllowThreads(__tstate
);
11338 if (PyErr_Occurred()) return NULL
;
11339 } _resultobj
= Py_BuildValue("i",_result
);
11343 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11344 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11345 PyObject
* _resultobj
;
11347 wxRegionIterator
* _arg0
;
11348 PyObject
* _argo0
= 0;
11349 char *_kwnames
[] = { "self", NULL
};
11352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11363 _result
= (wxCoord
)wxRegionIterator_GetWidth(_arg0
);
11365 wxPyEndAllowThreads(__tstate
);
11366 if (PyErr_Occurred()) return NULL
;
11367 } _resultobj
= Py_BuildValue("i",_result
);
11371 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11372 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11373 PyObject
* _resultobj
;
11375 wxRegionIterator
* _arg0
;
11376 PyObject
* _argo0
= 0;
11377 char *_kwnames
[] = { "self", NULL
};
11380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11391 _result
= (wxCoord
)wxRegionIterator_GetH(_arg0
);
11393 wxPyEndAllowThreads(__tstate
);
11394 if (PyErr_Occurred()) return NULL
;
11395 } _resultobj
= Py_BuildValue("i",_result
);
11399 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11400 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11401 PyObject
* _resultobj
;
11403 wxRegionIterator
* _arg0
;
11404 PyObject
* _argo0
= 0;
11405 char *_kwnames
[] = { "self", NULL
};
11408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11419 _result
= (wxCoord
)wxRegionIterator_GetHeight(_arg0
);
11421 wxPyEndAllowThreads(__tstate
);
11422 if (PyErr_Occurred()) return NULL
;
11423 } _resultobj
= Py_BuildValue("i",_result
);
11427 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11428 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11429 PyObject
* _resultobj
;
11431 wxRegionIterator
* _arg0
;
11432 PyObject
* _argo0
= 0;
11433 char *_kwnames
[] = { "self", NULL
};
11437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11448 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11450 wxPyEndAllowThreads(__tstate
);
11451 if (PyErr_Occurred()) return NULL
;
11452 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11453 _resultobj
= Py_BuildValue("s",_ptemp
);
11457 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11458 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11459 PyObject
* _resultobj
;
11461 wxRegionIterator
* _arg0
;
11462 PyObject
* _argo0
= 0;
11463 char *_kwnames
[] = { "self", NULL
};
11466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11477 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11479 wxPyEndAllowThreads(__tstate
);
11480 if (PyErr_Occurred()) return NULL
;
11481 } _resultobj
= Py_BuildValue("i",_result
);
11485 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11486 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11487 PyObject
* _resultobj
;
11488 wxRegionIterator
* _arg0
;
11489 PyObject
* _argo0
= 0;
11490 char *_kwnames
[] = { "self", NULL
};
11493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11504 wxRegionIterator_Reset(_arg0
);
11506 wxPyEndAllowThreads(__tstate
);
11507 if (PyErr_Occurred()) return NULL
;
11508 } Py_INCREF(Py_None
);
11509 _resultobj
= Py_None
;
11513 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11516 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11517 PyObject
* _resultobj
;
11518 wxRegionIterator
* _arg0
;
11519 PyObject
* _argo0
= 0;
11520 char *_kwnames
[] = { "self", NULL
};
11523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11534 wxRegionIterator_Next(_arg0
);
11536 wxPyEndAllowThreads(__tstate
);
11537 if (PyErr_Occurred()) return NULL
;
11538 } Py_INCREF(Py_None
);
11539 _resultobj
= Py_None
;
11543 static PyMethodDef gdicMethods
[] = {
11544 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11545 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11546 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11547 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11548 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11549 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11550 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11551 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11552 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11553 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11554 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11555 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11556 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11557 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11558 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11559 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11560 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11561 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11562 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11563 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11564 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11565 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11566 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11567 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11568 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11569 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11570 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11571 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11572 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11573 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11574 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
11575 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11576 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11577 { "new_wxRegionFromPoints", (PyCFunction
) _wrap_new_wxRegionFromPoints
, METH_VARARGS
| METH_KEYWORDS
},
11578 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11579 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11580 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11581 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11582 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11583 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11584 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11585 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11586 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11587 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11588 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11589 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11590 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11591 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11592 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11593 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11594 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11595 { "wxMetaFileDC_Close", (PyCFunction
) _wrap_wxMetaFileDC_Close
, METH_VARARGS
| METH_KEYWORDS
},
11596 { "new_wxMetaFileDC", (PyCFunction
) _wrap_new_wxMetaFileDC
, METH_VARARGS
| METH_KEYWORDS
},
11597 { "wxMetaFile_GetFileName", (PyCFunction
) _wrap_wxMetaFile_GetFileName
, METH_VARARGS
| METH_KEYWORDS
},
11598 { "wxMetaFile_GetHeight", (PyCFunction
) _wrap_wxMetaFile_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11599 { "wxMetaFile_GetWidth", (PyCFunction
) _wrap_wxMetaFile_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11600 { "wxMetaFile_GetSize", (PyCFunction
) _wrap_wxMetaFile_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11601 { "wxMetaFile_SetClipboard", (PyCFunction
) _wrap_wxMetaFile_SetClipboard
, METH_VARARGS
| METH_KEYWORDS
},
11602 { "wxMetaFile_Ok", (PyCFunction
) _wrap_wxMetaFile_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11603 { "delete_wxMetaFile", (PyCFunction
) _wrap_delete_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
11604 { "new_wxMetaFile", (PyCFunction
) _wrap_new_wxMetaFile
, METH_VARARGS
| METH_KEYWORDS
},
11605 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11606 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11607 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11608 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11609 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11610 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11611 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11612 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11613 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
11614 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
11615 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
11616 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11617 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11618 { "wxDC__DrawTextList", (PyCFunction
) _wrap_wxDC__DrawTextList
, METH_VARARGS
| METH_KEYWORDS
},
11619 { "wxDC__DrawPolygonList", (PyCFunction
) _wrap_wxDC__DrawPolygonList
, METH_VARARGS
| METH_KEYWORDS
},
11620 { "wxDC__DrawEllipseList", (PyCFunction
) _wrap_wxDC__DrawEllipseList
, METH_VARARGS
| METH_KEYWORDS
},
11621 { "wxDC__DrawRectangleList", (PyCFunction
) _wrap_wxDC__DrawRectangleList
, METH_VARARGS
| METH_KEYWORDS
},
11622 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11623 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11624 { "wxDC_GetHDC", (PyCFunction
) _wrap_wxDC_GetHDC
, METH_VARARGS
| METH_KEYWORDS
},
11625 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11626 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11627 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11628 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11629 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11630 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11631 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11632 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11633 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11634 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11635 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11636 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11637 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11638 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11639 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11640 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11641 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11642 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11643 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11644 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11645 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11646 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11647 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11648 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11649 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11650 { "wxDC_SetClippingRect", (PyCFunction
) _wrap_wxDC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
},
11651 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11652 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11653 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11654 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11655 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11656 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11657 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11658 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11659 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11660 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11661 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11662 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11663 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11664 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11665 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11666 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11667 { "wxDC_GetMultiLineTextExtent", (PyCFunction
) _wrap_wxDC_GetMultiLineTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11668 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11669 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11670 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11671 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11672 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11673 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11674 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11675 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11676 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11677 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11678 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11679 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11680 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11681 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11682 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11683 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11684 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11685 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11686 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11687 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11688 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11689 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11690 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11691 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11692 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11693 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11694 { "wxDC_DrawRectangleRect", (PyCFunction
) _wrap_wxDC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
},
11695 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11696 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11697 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11698 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11699 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11700 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
11701 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
11702 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11703 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11704 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11705 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11706 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11707 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11708 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11709 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11710 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11711 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11712 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11713 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11714 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11715 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11716 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11717 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11718 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11719 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11720 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11721 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11722 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11723 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11724 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11725 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11726 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11727 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11728 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11729 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11730 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11731 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11732 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11733 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11734 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11735 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11736 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11737 { "wxPen_SetStipple", (PyCFunction
) _wrap_wxPen_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11738 { "wxPen_GetStipple", (PyCFunction
) _wrap_wxPen_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11739 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11740 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11741 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11742 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11743 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11744 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11745 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11746 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11747 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11748 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11749 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11750 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11751 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11752 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11753 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11754 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11755 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11756 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11757 { "wxColour___ne__", (PyCFunction
) _wrap_wxColour___ne__
, METH_VARARGS
| METH_KEYWORDS
},
11758 { "wxColour___eq__", (PyCFunction
) _wrap_wxColour___eq__
, METH_VARARGS
| METH_KEYWORDS
},
11759 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11760 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11761 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11762 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11763 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11764 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11765 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11766 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11767 { "wxCursor_SetSize", (PyCFunction
) _wrap_wxCursor_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11768 { "wxCursor_SetDepth", (PyCFunction
) _wrap_wxCursor_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11769 { "wxCursor_SetHeight", (PyCFunction
) _wrap_wxCursor_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11770 { "wxCursor_SetWidth", (PyCFunction
) _wrap_wxCursor_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11771 { "wxCursor_GetDepth", (PyCFunction
) _wrap_wxCursor_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11772 { "wxCursor_GetHeight", (PyCFunction
) _wrap_wxCursor_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11773 { "wxCursor_GetWidth", (PyCFunction
) _wrap_wxCursor_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11774 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11775 { "wxCursor_SetHandle", (PyCFunction
) _wrap_wxCursor_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11776 { "wxCursor_GetHandle", (PyCFunction
) _wrap_wxCursor_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11777 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11778 { "new_wxCursor", (PyCFunction
) _wrap_new_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
11779 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
11780 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
11781 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11782 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
11783 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11784 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
11785 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
11786 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11787 { "wxIcon_SetSize", (PyCFunction
) _wrap_wxIcon_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11788 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11789 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11790 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11791 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11792 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11793 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11794 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11795 { "wxIcon_SetHandle", (PyCFunction
) _wrap_wxIcon_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11796 { "wxIcon_GetHandle", (PyCFunction
) _wrap_wxIcon_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11797 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11798 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11799 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
11800 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
11801 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
11802 { "wxBitmap_SetQuality", (PyCFunction
) _wrap_wxBitmap_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
11803 { "wxBitmap_GetQuality", (PyCFunction
) _wrap_wxBitmap_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
11804 { "wxBitmap_CopyFromCursor", (PyCFunction
) _wrap_wxBitmap_CopyFromCursor
, METH_VARARGS
| METH_KEYWORDS
},
11805 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11806 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11807 { "wxBitmap_SetSize", (PyCFunction
) _wrap_wxBitmap_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
11808 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11809 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11810 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11811 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11812 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11813 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11814 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11815 { "wxBitmap_SetHandle", (PyCFunction
) _wrap_wxBitmap_SetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11816 { "wxBitmap_GetHandle", (PyCFunction
) _wrap_wxBitmap_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
11817 { "wxBitmap_SetPalette", (PyCFunction
) _wrap_wxBitmap_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11818 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
11819 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
11820 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
11821 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
11822 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11823 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11824 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11825 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
11826 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11827 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
11828 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11829 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
11830 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
11831 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
11832 { "wxCursorFromImage", (PyCFunction
) _wrap_wxCursorFromImage
, METH_VARARGS
| METH_KEYWORDS
},
11833 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
11834 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11835 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11836 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
11837 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
11838 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
11839 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
11840 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
11841 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11848 * This table is used by the pointer type-checker
11850 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
11851 { "_signed_long","_long",0},
11852 { "_wxPrintQuality","_wxCoord",0},
11853 { "_wxPrintQuality","_int",0},
11854 { "_wxPrintQuality","_signed_int",0},
11855 { "_wxPrintQuality","_unsigned_int",0},
11856 { "_wxPrintQuality","_wxWindowID",0},
11857 { "_wxPrintQuality","_uint",0},
11858 { "_wxPrintQuality","_EBool",0},
11859 { "_wxPrintQuality","_size_t",0},
11860 { "_wxPrintQuality","_time_t",0},
11861 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
11862 { "_byte","_unsigned_char",0},
11863 { "_long","_unsigned_long",0},
11864 { "_long","_signed_long",0},
11865 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
11866 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
11867 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
11868 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
11869 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
11870 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
11871 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
11872 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
11873 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC
},
11874 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
11875 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
11876 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
11877 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
11878 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
11879 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
11880 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
11881 { "_size_t","_wxCoord",0},
11882 { "_size_t","_wxPrintQuality",0},
11883 { "_size_t","_time_t",0},
11884 { "_size_t","_unsigned_int",0},
11885 { "_size_t","_int",0},
11886 { "_size_t","_wxWindowID",0},
11887 { "_size_t","_uint",0},
11888 { "_uint","_wxCoord",0},
11889 { "_uint","_wxPrintQuality",0},
11890 { "_uint","_time_t",0},
11891 { "_uint","_size_t",0},
11892 { "_uint","_unsigned_int",0},
11893 { "_uint","_int",0},
11894 { "_uint","_wxWindowID",0},
11895 { "_wxChar","_char",0},
11896 { "_char","_wxChar",0},
11897 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
11898 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11899 { "_EBool","_wxCoord",0},
11900 { "_EBool","_wxPrintQuality",0},
11901 { "_EBool","_signed_int",0},
11902 { "_EBool","_int",0},
11903 { "_EBool","_wxWindowID",0},
11904 { "_unsigned_long","_long",0},
11905 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11906 { "_signed_int","_wxCoord",0},
11907 { "_signed_int","_wxPrintQuality",0},
11908 { "_signed_int","_EBool",0},
11909 { "_signed_int","_wxWindowID",0},
11910 { "_signed_int","_int",0},
11911 { "_WXTYPE","_short",0},
11912 { "_WXTYPE","_signed_short",0},
11913 { "_WXTYPE","_unsigned_short",0},
11914 { "_unsigned_short","_WXTYPE",0},
11915 { "_unsigned_short","_short",0},
11916 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
11917 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
11918 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
11919 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
11920 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject
},
11921 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject
},
11922 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
11923 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
11924 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
11925 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
11926 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
11927 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
11928 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
11929 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
11930 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
11931 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
11932 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
11933 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
11934 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
11935 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
11936 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
11937 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
11938 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
11939 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
11940 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
11941 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
11942 { "_signed_short","_WXTYPE",0},
11943 { "_signed_short","_short",0},
11944 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
11945 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
11946 { "_unsigned_char","_byte",0},
11947 { "_unsigned_int","_wxCoord",0},
11948 { "_unsigned_int","_wxPrintQuality",0},
11949 { "_unsigned_int","_time_t",0},
11950 { "_unsigned_int","_size_t",0},
11951 { "_unsigned_int","_uint",0},
11952 { "_unsigned_int","_wxWindowID",0},
11953 { "_unsigned_int","_int",0},
11954 { "_short","_WXTYPE",0},
11955 { "_short","_unsigned_short",0},
11956 { "_short","_signed_short",0},
11957 { "_wxWindowID","_wxCoord",0},
11958 { "_wxWindowID","_wxPrintQuality",0},
11959 { "_wxWindowID","_time_t",0},
11960 { "_wxWindowID","_size_t",0},
11961 { "_wxWindowID","_EBool",0},
11962 { "_wxWindowID","_uint",0},
11963 { "_wxWindowID","_int",0},
11964 { "_wxWindowID","_signed_int",0},
11965 { "_wxWindowID","_unsigned_int",0},
11966 { "_int","_wxCoord",0},
11967 { "_int","_wxPrintQuality",0},
11968 { "_int","_time_t",0},
11969 { "_int","_size_t",0},
11970 { "_int","_EBool",0},
11971 { "_int","_uint",0},
11972 { "_int","_wxWindowID",0},
11973 { "_int","_unsigned_int",0},
11974 { "_int","_signed_int",0},
11975 { "_time_t","_wxCoord",0},
11976 { "_time_t","_wxPrintQuality",0},
11977 { "_time_t","_unsigned_int",0},
11978 { "_time_t","_int",0},
11979 { "_time_t","_wxWindowID",0},
11980 { "_time_t","_uint",0},
11981 { "_time_t","_size_t",0},
11982 { "_wxCoord","_int",0},
11983 { "_wxCoord","_signed_int",0},
11984 { "_wxCoord","_unsigned_int",0},
11985 { "_wxCoord","_wxWindowID",0},
11986 { "_wxCoord","_uint",0},
11987 { "_wxCoord","_EBool",0},
11988 { "_wxCoord","_size_t",0},
11989 { "_wxCoord","_time_t",0},
11990 { "_wxCoord","_wxPrintQuality",0},
11993 static PyObject
*SWIG_globals
;
11997 SWIGEXPORT(void) initgdic() {
11999 SWIG_globals
= SWIG_newvarlink();
12000 m
= Py_InitModule("gdic", gdicMethods
);
12001 d
= PyModule_GetDict(m
);
12002 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12003 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12004 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12005 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12006 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12007 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12008 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12009 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12010 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12011 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12012 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12013 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12014 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12015 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12016 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12017 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12018 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12019 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12020 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12021 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12022 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12023 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12024 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12025 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12026 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12027 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12028 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12029 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12030 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12031 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12032 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12033 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12034 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12035 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12036 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12037 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12038 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12039 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12040 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12041 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12042 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12043 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12044 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12045 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12046 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12047 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12048 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12049 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12050 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12051 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12052 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12053 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12054 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12055 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12056 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12057 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12058 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12061 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12062 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);