2 * FILE : src/mac/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initgdic
55 #define SWIG_name "gdic"
58 #include <wx/imaglist.h>
59 #include <wx/fontmap.h>
60 #include <wx/fontenc.h>
61 #include <wx/fontmap.h>
62 #include <wx/fontutil.h>
63 #include <wx/dcbuffer.h>
64 #include <wx/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
);
235 extern wxFont
* wxNORMAL_FONT
;
236 extern wxFont
* wxSMALL_FONT
;
237 extern wxFont
* wxITALIC_FONT
;
238 extern wxFont
* wxSWISS_FONT
;
239 extern wxPen
* wxRED_PEN
;
240 extern wxPen
* wxCYAN_PEN
;
241 extern wxPen
* wxGREEN_PEN
;
242 extern wxPen
* wxBLACK_PEN
;
243 extern wxPen
* wxWHITE_PEN
;
244 extern wxPen
* wxTRANSPARENT_PEN
;
245 extern wxPen
* wxBLACK_DASHED_PEN
;
246 extern wxPen
* wxGREY_PEN
;
247 extern wxPen
* wxMEDIUM_GREY_PEN
;
248 extern wxPen
* wxLIGHT_GREY_PEN
;
249 extern wxBrush
* wxBLUE_BRUSH
;
250 extern wxBrush
* wxGREEN_BRUSH
;
251 extern wxBrush
* wxWHITE_BRUSH
;
252 extern wxBrush
* wxBLACK_BRUSH
;
253 extern wxBrush
* wxTRANSPARENT_BRUSH
;
254 extern wxBrush
* wxCYAN_BRUSH
;
255 extern wxBrush
* wxRED_BRUSH
;
256 extern wxBrush
* wxGREY_BRUSH
;
257 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
258 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
259 extern wxColour
* wxBLACK
;
260 extern wxColour
* wxWHITE
;
261 extern wxColour
* wxRED
;
262 extern wxColour
* wxBLUE
;
263 extern wxColour
* wxGREEN
;
264 extern wxColour
* wxCYAN
;
265 extern wxColour
* wxLIGHT_GREY
;
266 extern wxCursor
* wxSTANDARD_CURSOR
;
267 extern wxCursor
* wxHOURGLASS_CURSOR
;
268 extern wxCursor
* wxCROSS_CURSOR
;
269 extern wxBitmap wxNullBitmap
;
270 extern wxIcon wxNullIcon
;
271 extern wxCursor wxNullCursor
;
272 extern wxPen wxNullPen
;
273 extern wxBrush wxNullBrush
;
274 extern wxPalette wxNullPalette
;
275 extern wxFont wxNullFont
;
276 extern wxColour wxNullColour
;
277 extern wxFontList
* wxTheFontList
;
278 extern wxPenList
* wxThePenList
;
279 extern wxBrushList
* wxTheBrushList
;
280 extern wxColourDatabase
* wxTheColourDatabase
;
286 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
287 PyObject
* _resultobj
;
291 int _arg2
= (int ) -1;
292 char *_kwnames
[] = { "width","height","depth", NULL
};
296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
299 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
300 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
302 wxPyEndAllowThreads(__tstate
);
303 if (PyErr_Occurred()) return NULL
;
305 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
306 _resultobj
= Py_BuildValue("s",_ptemp
);
309 _resultobj
= Py_None
;
314 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
318 PyObject
* _obj0
= 0;
319 char *_kwnames
[] = { "listOfStrings", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
330 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
332 wxPyEndAllowThreads(__tstate
);
333 if (PyErr_Occurred()) return NULL
;
335 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
336 _resultobj
= Py_BuildValue("s",_ptemp
);
339 _resultobj
= Py_None
;
344 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
345 PyObject
* _resultobj
;
348 PyObject
* _argo0
= 0;
349 char *_kwnames
[] = { "icon", NULL
};
353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
356 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
363 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
365 wxPyEndAllowThreads(__tstate
);
366 if (PyErr_Occurred()) return NULL
;
368 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
369 _resultobj
= Py_BuildValue("s",_ptemp
);
372 _resultobj
= Py_None
;
377 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
378 PyObject
* _resultobj
;
383 int _arg3
= (int ) 1;
384 PyObject
* _obj0
= 0;
385 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxBitmapFromBits",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
396 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
398 wxPyEndAllowThreads(__tstate
);
399 if (PyErr_Occurred()) return NULL
;
401 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
402 _resultobj
= Py_BuildValue("s",_ptemp
);
405 _resultobj
= Py_None
;
410 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
411 PyObject
* _resultobj
;
415 PyObject
* _argo0
= 0;
417 PyObject
* _obj1
= 0;
418 char *_kwnames
[] = { "bitmap","colour", NULL
};
422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
425 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
432 if (! wxColour_helper(_obj1
, &_arg1
))
436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
437 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
439 wxPyEndAllowThreads(__tstate
);
440 if (PyErr_Occurred()) return NULL
;
442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
443 _resultobj
= Py_BuildValue("s",_ptemp
);
446 _resultobj
= Py_None
;
451 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
452 PyObject
* _resultobj
;
454 char *_kwnames
[] = { NULL
};
458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
462 _result
= (wxIcon
*)wxEmptyIcon();
464 wxPyEndAllowThreads(__tstate
);
465 if (PyErr_Occurred()) return NULL
;
467 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
468 _resultobj
= Py_BuildValue("s",_ptemp
);
471 _resultobj
= Py_None
;
476 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
477 PyObject
* _resultobj
;
480 PyObject
* _obj0
= 0;
481 char *_kwnames
[] = { "listOfStrings", NULL
};
485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
492 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
494 wxPyEndAllowThreads(__tstate
);
495 if (PyErr_Occurred()) return NULL
;
497 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
498 _resultobj
= Py_BuildValue("s",_ptemp
);
501 _resultobj
= Py_None
;
506 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
507 PyObject
* _resultobj
;
510 PyObject
* _argo0
= 0;
511 char *_kwnames
[] = { "bmp", NULL
};
515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
518 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
525 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
527 wxPyEndAllowThreads(__tstate
);
528 if (PyErr_Occurred()) return NULL
;
530 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
531 _resultobj
= Py_BuildValue("s",_ptemp
);
534 _resultobj
= Py_None
;
539 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
540 PyObject
* _resultobj
;
543 char *_kwnames
[] = { "id", NULL
};
547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
551 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
553 wxPyEndAllowThreads(__tstate
);
554 if (PyErr_Occurred()) return NULL
;
556 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
557 _resultobj
= Py_BuildValue("s",_ptemp
);
560 _resultobj
= Py_None
;
565 static PyObject
*_wrap_wxCursorFromImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
566 PyObject
* _resultobj
;
569 PyObject
* _argo0
= 0;
570 char *_kwnames
[] = { "image", NULL
};
574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursorFromImage",_kwnames
,&_argo0
))
577 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
583 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
584 _result
= (wxCursor
*)wxCursorFromImage(*_arg0
);
586 wxPyEndAllowThreads(__tstate
);
587 if (PyErr_Occurred()) return NULL
;
589 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
590 _resultobj
= Py_BuildValue("s",_ptemp
);
593 _resultobj
= Py_None
;
598 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
599 PyObject
* _resultobj
;
602 PyObject
* _obj0
= 0;
603 char *_kwnames
[] = { "colorName", NULL
};
607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
610 _arg0
= wxString_in_helper(_obj0
);
615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
616 _result
= (wxColour
*)wxNamedColour(*_arg0
);
618 wxPyEndAllowThreads(__tstate
);
619 if (PyErr_Occurred()) return NULL
;
621 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
622 _resultobj
= Py_BuildValue("s",_ptemp
);
625 _resultobj
= Py_None
;
634 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
635 PyObject
* _resultobj
;
636 wxMemoryDC
* _result
;
638 PyObject
* _argo0
= 0;
639 char *_kwnames
[] = { "oldDC", NULL
};
643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
654 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
656 wxPyEndAllowThreads(__tstate
);
657 if (PyErr_Occurred()) return NULL
;
659 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
660 _resultobj
= Py_BuildValue("s",_ptemp
);
663 _resultobj
= Py_None
;
668 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
670 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
674 static PyObject
*_wrap_wxNORMAL_FONT_get() {
678 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
679 pyobj
= PyString_FromString(ptemp
);
683 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
685 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
689 static PyObject
*_wrap_wxSMALL_FONT_get() {
693 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
694 pyobj
= PyString_FromString(ptemp
);
698 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
700 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
704 static PyObject
*_wrap_wxITALIC_FONT_get() {
708 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
709 pyobj
= PyString_FromString(ptemp
);
713 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
715 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
719 static PyObject
*_wrap_wxSWISS_FONT_get() {
723 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
724 pyobj
= PyString_FromString(ptemp
);
728 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
730 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
734 static PyObject
*_wrap_wxRED_PEN_get() {
738 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
739 pyobj
= PyString_FromString(ptemp
);
743 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
745 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
749 static PyObject
*_wrap_wxCYAN_PEN_get() {
753 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
754 pyobj
= PyString_FromString(ptemp
);
758 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
760 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
764 static PyObject
*_wrap_wxGREEN_PEN_get() {
768 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
769 pyobj
= PyString_FromString(ptemp
);
773 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
775 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
779 static PyObject
*_wrap_wxBLACK_PEN_get() {
783 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
784 pyobj
= PyString_FromString(ptemp
);
788 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
790 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
794 static PyObject
*_wrap_wxWHITE_PEN_get() {
798 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
799 pyobj
= PyString_FromString(ptemp
);
803 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
805 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
809 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
813 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
814 pyobj
= PyString_FromString(ptemp
);
818 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
820 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
824 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
828 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
829 pyobj
= PyString_FromString(ptemp
);
833 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
835 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
839 static PyObject
*_wrap_wxGREY_PEN_get() {
843 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
844 pyobj
= PyString_FromString(ptemp
);
848 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
850 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
854 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
858 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
859 pyobj
= PyString_FromString(ptemp
);
863 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
865 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
869 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
873 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
874 pyobj
= PyString_FromString(ptemp
);
878 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
880 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
884 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
888 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
889 pyobj
= PyString_FromString(ptemp
);
893 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
895 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
899 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
903 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
904 pyobj
= PyString_FromString(ptemp
);
908 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
910 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
914 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
918 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
919 pyobj
= PyString_FromString(ptemp
);
923 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
925 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
929 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
933 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
934 pyobj
= PyString_FromString(ptemp
);
938 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
940 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
944 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
948 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
949 pyobj
= PyString_FromString(ptemp
);
953 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
955 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
959 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
963 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
964 pyobj
= PyString_FromString(ptemp
);
968 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
970 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
974 static PyObject
*_wrap_wxRED_BRUSH_get() {
978 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
979 pyobj
= PyString_FromString(ptemp
);
983 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
985 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
989 static PyObject
*_wrap_wxGREY_BRUSH_get() {
993 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
994 pyobj
= PyString_FromString(ptemp
);
998 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
1000 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
1004 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
1008 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
1009 pyobj
= PyString_FromString(ptemp
);
1013 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
1015 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
1019 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
1023 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
1024 pyobj
= PyString_FromString(ptemp
);
1028 static int _wrap_wxBLACK_set(PyObject
*val
) {
1030 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
1034 static PyObject
*_wrap_wxBLACK_get() {
1038 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1039 pyobj
= PyString_FromString(ptemp
);
1043 static int _wrap_wxWHITE_set(PyObject
*val
) {
1045 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1049 static PyObject
*_wrap_wxWHITE_get() {
1053 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1054 pyobj
= PyString_FromString(ptemp
);
1058 static int _wrap_wxRED_set(PyObject
*val
) {
1060 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1064 static PyObject
*_wrap_wxRED_get() {
1068 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1069 pyobj
= PyString_FromString(ptemp
);
1073 static int _wrap_wxBLUE_set(PyObject
*val
) {
1075 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1079 static PyObject
*_wrap_wxBLUE_get() {
1083 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1084 pyobj
= PyString_FromString(ptemp
);
1088 static int _wrap_wxGREEN_set(PyObject
*val
) {
1090 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1094 static PyObject
*_wrap_wxGREEN_get() {
1098 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1099 pyobj
= PyString_FromString(ptemp
);
1103 static int _wrap_wxCYAN_set(PyObject
*val
) {
1105 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1109 static PyObject
*_wrap_wxCYAN_get() {
1113 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1114 pyobj
= PyString_FromString(ptemp
);
1118 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1120 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1124 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1128 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1129 pyobj
= PyString_FromString(ptemp
);
1133 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1135 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1139 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1143 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1144 pyobj
= PyString_FromString(ptemp
);
1148 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1150 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1154 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1158 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1159 pyobj
= PyString_FromString(ptemp
);
1163 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1165 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1169 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1173 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1174 pyobj
= PyString_FromString(ptemp
);
1178 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1180 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1184 static PyObject
*_wrap_wxNullBitmap_get() {
1188 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1189 pyobj
= PyString_FromString(ptemp
);
1193 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1195 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1199 static PyObject
*_wrap_wxNullIcon_get() {
1203 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1204 pyobj
= PyString_FromString(ptemp
);
1208 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1210 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1214 static PyObject
*_wrap_wxNullCursor_get() {
1218 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1219 pyobj
= PyString_FromString(ptemp
);
1223 static int _wrap_wxNullPen_set(PyObject
*val
) {
1225 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1229 static PyObject
*_wrap_wxNullPen_get() {
1233 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1234 pyobj
= PyString_FromString(ptemp
);
1238 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1240 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1244 static PyObject
*_wrap_wxNullBrush_get() {
1248 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1249 pyobj
= PyString_FromString(ptemp
);
1253 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1255 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1259 static PyObject
*_wrap_wxNullPalette_get() {
1263 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1264 pyobj
= PyString_FromString(ptemp
);
1268 static int _wrap_wxNullFont_set(PyObject
*val
) {
1270 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1274 static PyObject
*_wrap_wxNullFont_get() {
1278 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1279 pyobj
= PyString_FromString(ptemp
);
1283 static int _wrap_wxNullColour_set(PyObject
*val
) {
1285 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1289 static PyObject
*_wrap_wxNullColour_get() {
1293 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1294 pyobj
= PyString_FromString(ptemp
);
1298 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1300 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1304 static PyObject
*_wrap_wxTheFontList_get() {
1308 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1309 pyobj
= PyString_FromString(ptemp
);
1313 static int _wrap_wxThePenList_set(PyObject
*val
) {
1315 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1319 static PyObject
*_wrap_wxThePenList_get() {
1323 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1324 pyobj
= PyString_FromString(ptemp
);
1328 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1330 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1334 static PyObject
*_wrap_wxTheBrushList_get() {
1338 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1339 pyobj
= PyString_FromString(ptemp
);
1343 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1345 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1349 static PyObject
*_wrap_wxTheColourDatabase_get() {
1353 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1354 pyobj
= PyString_FromString(ptemp
);
1358 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1361 src
= (wxGDIObject
*) ptr
;
1362 dest
= (wxObject
*) src
;
1363 return (void *) dest
;
1366 #define new_wxGDIObject() (new wxGDIObject())
1367 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1368 PyObject
* _resultobj
;
1369 wxGDIObject
* _result
;
1370 char *_kwnames
[] = { NULL
};
1374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1378 _result
= (wxGDIObject
*)new_wxGDIObject();
1380 wxPyEndAllowThreads(__tstate
);
1381 if (PyErr_Occurred()) return NULL
;
1383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1384 _resultobj
= Py_BuildValue("s",_ptemp
);
1387 _resultobj
= Py_None
;
1392 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1393 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1394 PyObject
* _resultobj
;
1395 wxGDIObject
* _arg0
;
1396 PyObject
* _argo0
= 0;
1397 char *_kwnames
[] = { "self", NULL
};
1400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1411 delete_wxGDIObject(_arg0
);
1413 wxPyEndAllowThreads(__tstate
);
1414 if (PyErr_Occurred()) return NULL
;
1415 } Py_INCREF(Py_None
);
1416 _resultobj
= Py_None
;
1420 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1421 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1422 PyObject
* _resultobj
;
1424 wxGDIObject
* _arg0
;
1425 PyObject
* _argo0
= 0;
1426 char *_kwnames
[] = { "self", NULL
};
1429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1440 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1442 wxPyEndAllowThreads(__tstate
);
1443 if (PyErr_Occurred()) return NULL
;
1444 } _resultobj
= Py_BuildValue("i",_result
);
1448 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1449 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1450 PyObject
* _resultobj
;
1451 wxGDIObject
* _arg0
;
1453 PyObject
* _argo0
= 0;
1455 char *_kwnames
[] = { "self","visible", NULL
};
1458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1467 _arg1
= (bool ) tempbool1
;
1469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1470 wxGDIObject_SetVisible(_arg0
,_arg1
);
1472 wxPyEndAllowThreads(__tstate
);
1473 if (PyErr_Occurred()) return NULL
;
1474 } Py_INCREF(Py_None
);
1475 _resultobj
= Py_None
;
1479 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1480 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1481 PyObject
* _resultobj
;
1483 wxGDIObject
* _arg0
;
1484 PyObject
* _argo0
= 0;
1485 char *_kwnames
[] = { "self", NULL
};
1488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
1491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1499 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1501 wxPyEndAllowThreads(__tstate
);
1502 if (PyErr_Occurred()) return NULL
;
1503 } _resultobj
= Py_BuildValue("i",_result
);
1507 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1510 src
= (wxBitmap
*) ptr
;
1511 dest
= (wxGDIObject
*) src
;
1512 return (void *) dest
;
1515 static void *SwigwxBitmapTowxObject(void *ptr
) {
1518 src
= (wxBitmap
*) ptr
;
1519 dest
= (wxObject
*) src
;
1520 return (void *) dest
;
1523 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1524 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1525 PyObject
* _resultobj
;
1528 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1529 PyObject
* _obj0
= 0;
1530 char *_kwnames
[] = { "name","type", NULL
};
1534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1537 _arg0
= wxString_in_helper(_obj0
);
1542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1543 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1545 wxPyEndAllowThreads(__tstate
);
1546 if (PyErr_Occurred()) return NULL
;
1548 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1549 _resultobj
= Py_BuildValue("s",_ptemp
);
1552 _resultobj
= Py_None
;
1561 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1562 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1563 PyObject
* _resultobj
;
1565 PyObject
* _argo0
= 0;
1566 char *_kwnames
[] = { "self", NULL
};
1569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1580 delete_wxBitmap(_arg0
);
1582 wxPyEndAllowThreads(__tstate
);
1583 if (PyErr_Occurred()) return NULL
;
1584 } Py_INCREF(Py_None
);
1585 _resultobj
= Py_None
;
1589 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1590 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1591 PyObject
* _resultobj
;
1592 wxPalette
* _result
;
1594 PyObject
* _argo0
= 0;
1595 char *_kwnames
[] = { "self", NULL
};
1599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1610 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1612 wxPyEndAllowThreads(__tstate
);
1613 if (PyErr_Occurred()) return NULL
;
1615 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1616 _resultobj
= Py_BuildValue("s",_ptemp
);
1619 _resultobj
= Py_None
;
1624 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1625 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1626 PyObject
* _resultobj
;
1629 PyObject
* _argo0
= 0;
1630 char *_kwnames
[] = { "self", NULL
};
1634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1645 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1647 wxPyEndAllowThreads(__tstate
);
1648 if (PyErr_Occurred()) return NULL
;
1650 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1651 _resultobj
= Py_BuildValue("s",_ptemp
);
1654 _resultobj
= Py_None
;
1659 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1660 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1661 PyObject
* _resultobj
;
1665 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1666 PyObject
* _argo0
= 0;
1667 PyObject
* _obj1
= 0;
1668 char *_kwnames
[] = { "self","name","type", NULL
};
1671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1681 _arg1
= wxString_in_helper(_obj1
);
1686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1687 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1689 wxPyEndAllowThreads(__tstate
);
1690 if (PyErr_Occurred()) return NULL
;
1691 } _resultobj
= Py_BuildValue("i",_result
);
1699 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1700 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1701 PyObject
* _resultobj
;
1706 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1707 PyObject
* _argo0
= 0;
1708 PyObject
* _obj1
= 0;
1709 PyObject
* _argo3
= 0;
1710 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1723 _arg1
= wxString_in_helper(_obj1
);
1728 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1729 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1736 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1738 wxPyEndAllowThreads(__tstate
);
1739 if (PyErr_Occurred()) return NULL
;
1740 } _resultobj
= Py_BuildValue("i",_result
);
1748 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1749 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1750 PyObject
* _resultobj
;
1753 PyObject
* _argo0
= 0;
1754 PyObject
* _argo1
= 0;
1755 char *_kwnames
[] = { "self","mask", NULL
};
1758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1768 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1769 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1776 wxBitmap_SetMask(_arg0
,_arg1
);
1778 wxPyEndAllowThreads(__tstate
);
1779 if (PyErr_Occurred()) return NULL
;
1780 } Py_INCREF(Py_None
);
1781 _resultobj
= Py_None
;
1785 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1786 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1787 PyObject
* _resultobj
;
1790 PyObject
* _argo0
= 0;
1791 char *_kwnames
[] = { "self", NULL
};
1794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1804 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1805 _result
= (bool )wxBitmap_Ok(_arg0
);
1807 wxPyEndAllowThreads(__tstate
);
1808 if (PyErr_Occurred()) return NULL
;
1809 } _resultobj
= Py_BuildValue("i",_result
);
1813 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1814 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
* _resultobj
;
1818 PyObject
* _argo0
= 0;
1819 char *_kwnames
[] = { "self", NULL
};
1822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1833 _result
= (int )wxBitmap_GetWidth(_arg0
);
1835 wxPyEndAllowThreads(__tstate
);
1836 if (PyErr_Occurred()) return NULL
;
1837 } _resultobj
= Py_BuildValue("i",_result
);
1841 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1842 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
* _resultobj
;
1846 PyObject
* _argo0
= 0;
1847 char *_kwnames
[] = { "self", NULL
};
1850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1861 _result
= (int )wxBitmap_GetHeight(_arg0
);
1863 wxPyEndAllowThreads(__tstate
);
1864 if (PyErr_Occurred()) return NULL
;
1865 } _resultobj
= Py_BuildValue("i",_result
);
1869 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1870 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1871 PyObject
* _resultobj
;
1874 PyObject
* _argo0
= 0;
1875 char *_kwnames
[] = { "self", NULL
};
1878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1889 _result
= (int )wxBitmap_GetDepth(_arg0
);
1891 wxPyEndAllowThreads(__tstate
);
1892 if (PyErr_Occurred()) return NULL
;
1893 } _resultobj
= Py_BuildValue("i",_result
);
1897 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1898 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1899 PyObject
* _resultobj
;
1902 PyObject
* _argo0
= 0;
1903 char *_kwnames
[] = { "self","w", NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1917 wxBitmap_SetWidth(_arg0
,_arg1
);
1919 wxPyEndAllowThreads(__tstate
);
1920 if (PyErr_Occurred()) return NULL
;
1921 } Py_INCREF(Py_None
);
1922 _resultobj
= Py_None
;
1926 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1927 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1928 PyObject
* _resultobj
;
1931 PyObject
* _argo0
= 0;
1932 char *_kwnames
[] = { "self","h", NULL
};
1935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1946 wxBitmap_SetHeight(_arg0
,_arg1
);
1948 wxPyEndAllowThreads(__tstate
);
1949 if (PyErr_Occurred()) return NULL
;
1950 } Py_INCREF(Py_None
);
1951 _resultobj
= Py_None
;
1955 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1956 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1957 PyObject
* _resultobj
;
1960 PyObject
* _argo0
= 0;
1961 char *_kwnames
[] = { "self","d", NULL
};
1964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1975 wxBitmap_SetDepth(_arg0
,_arg1
);
1977 wxPyEndAllowThreads(__tstate
);
1978 if (PyErr_Occurred()) return NULL
;
1979 } Py_INCREF(Py_None
);
1980 _resultobj
= Py_None
;
1984 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1985 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1986 PyObject
* _resultobj
;
1990 PyObject
* _argo0
= 0;
1992 PyObject
* _obj1
= 0;
1993 char *_kwnames
[] = { "self","rect", NULL
};
1997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2008 if (! wxRect_helper(_obj1
, &_arg1
))
2012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2013 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2015 wxPyEndAllowThreads(__tstate
);
2016 if (PyErr_Occurred()) return NULL
;
2017 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2018 _resultobj
= Py_BuildValue("s",_ptemp
);
2022 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2023 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2024 PyObject
* _resultobj
;
2028 PyObject
* _argo0
= 0;
2029 PyObject
* _argo1
= 0;
2030 char *_kwnames
[] = { "self","icon", NULL
};
2033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2043 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2050 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2052 wxPyEndAllowThreads(__tstate
);
2053 if (PyErr_Occurred()) return NULL
;
2054 } _resultobj
= Py_BuildValue("i",_result
);
2058 static void *SwigwxMaskTowxObject(void *ptr
) {
2061 src
= (wxMask
*) ptr
;
2062 dest
= (wxObject
*) src
;
2063 return (void *) dest
;
2066 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2067 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2068 PyObject
* _resultobj
;
2071 PyObject
* _argo0
= 0;
2072 char *_kwnames
[] = { "bitmap", NULL
};
2076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2079 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2086 _result
= (wxMask
*)new_wxMask(*_arg0
);
2088 wxPyEndAllowThreads(__tstate
);
2089 if (PyErr_Occurred()) return NULL
;
2091 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2092 _resultobj
= Py_BuildValue("s",_ptemp
);
2095 _resultobj
= Py_None
;
2100 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2101 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2102 PyObject
* _resultobj
;
2104 PyObject
* _argo0
= 0;
2105 char *_kwnames
[] = { "self", NULL
};
2108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2119 wxMask_Destroy(_arg0
);
2121 wxPyEndAllowThreads(__tstate
);
2122 if (PyErr_Occurred()) return NULL
;
2123 } Py_INCREF(Py_None
);
2124 _resultobj
= Py_None
;
2128 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2131 src
= (wxIcon
*) ptr
;
2132 dest
= (wxGDIObject
*) src
;
2133 return (void *) dest
;
2136 static void *SwigwxIconTowxObject(void *ptr
) {
2139 src
= (wxIcon
*) ptr
;
2140 dest
= (wxObject
*) src
;
2141 return (void *) dest
;
2144 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2145 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2146 PyObject
* _resultobj
;
2150 int _arg2
= (int ) -1;
2151 int _arg3
= (int ) -1;
2152 PyObject
* _obj0
= 0;
2153 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2160 _arg0
= wxString_in_helper(_obj0
);
2165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2166 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2168 wxPyEndAllowThreads(__tstate
);
2169 if (PyErr_Occurred()) return NULL
;
2171 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2172 _resultobj
= Py_BuildValue("s",_ptemp
);
2175 _resultobj
= Py_None
;
2184 #define delete_wxIcon(_swigobj) (delete _swigobj)
2185 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2186 PyObject
* _resultobj
;
2188 PyObject
* _argo0
= 0;
2189 char *_kwnames
[] = { "self", NULL
};
2192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2203 delete_wxIcon(_arg0
);
2205 wxPyEndAllowThreads(__tstate
);
2206 if (PyErr_Occurred()) return NULL
;
2207 } Py_INCREF(Py_None
);
2208 _resultobj
= Py_None
;
2212 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2213 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2214 PyObject
* _resultobj
;
2217 PyObject
* _argo0
= 0;
2218 char *_kwnames
[] = { "self", NULL
};
2221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2232 _result
= (bool )wxIcon_Ok(_arg0
);
2234 wxPyEndAllowThreads(__tstate
);
2235 if (PyErr_Occurred()) return NULL
;
2236 } _resultobj
= Py_BuildValue("i",_result
);
2240 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2241 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2245 PyObject
* _argo0
= 0;
2246 char *_kwnames
[] = { "self", NULL
};
2249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2260 _result
= (int )wxIcon_GetWidth(_arg0
);
2262 wxPyEndAllowThreads(__tstate
);
2263 if (PyErr_Occurred()) return NULL
;
2264 } _resultobj
= Py_BuildValue("i",_result
);
2268 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2269 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2270 PyObject
* _resultobj
;
2273 PyObject
* _argo0
= 0;
2274 char *_kwnames
[] = { "self", NULL
};
2277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2288 _result
= (int )wxIcon_GetHeight(_arg0
);
2290 wxPyEndAllowThreads(__tstate
);
2291 if (PyErr_Occurred()) return NULL
;
2292 } _resultobj
= Py_BuildValue("i",_result
);
2296 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2297 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2298 PyObject
* _resultobj
;
2301 PyObject
* _argo0
= 0;
2302 char *_kwnames
[] = { "self", NULL
};
2305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2316 _result
= (int )wxIcon_GetDepth(_arg0
);
2318 wxPyEndAllowThreads(__tstate
);
2319 if (PyErr_Occurred()) return NULL
;
2320 } _resultobj
= Py_BuildValue("i",_result
);
2324 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2325 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2326 PyObject
* _resultobj
;
2329 PyObject
* _argo0
= 0;
2330 char *_kwnames
[] = { "self","w", NULL
};
2333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2344 wxIcon_SetWidth(_arg0
,_arg1
);
2346 wxPyEndAllowThreads(__tstate
);
2347 if (PyErr_Occurred()) return NULL
;
2348 } Py_INCREF(Py_None
);
2349 _resultobj
= Py_None
;
2353 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2354 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2355 PyObject
* _resultobj
;
2358 PyObject
* _argo0
= 0;
2359 char *_kwnames
[] = { "self","h", NULL
};
2362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2373 wxIcon_SetHeight(_arg0
,_arg1
);
2375 wxPyEndAllowThreads(__tstate
);
2376 if (PyErr_Occurred()) return NULL
;
2377 } Py_INCREF(Py_None
);
2378 _resultobj
= Py_None
;
2382 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2383 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2384 PyObject
* _resultobj
;
2387 PyObject
* _argo0
= 0;
2388 char *_kwnames
[] = { "self","d", NULL
};
2391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2402 wxIcon_SetDepth(_arg0
,_arg1
);
2404 wxPyEndAllowThreads(__tstate
);
2405 if (PyErr_Occurred()) return NULL
;
2406 } Py_INCREF(Py_None
);
2407 _resultobj
= Py_None
;
2411 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2412 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2413 PyObject
* _resultobj
;
2416 PyObject
* _argo0
= 0;
2417 PyObject
* _argo1
= 0;
2418 char *_kwnames
[] = { "self","bmp", NULL
};
2421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2431 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2438 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2440 wxPyEndAllowThreads(__tstate
);
2441 if (PyErr_Occurred()) return NULL
;
2442 } Py_INCREF(Py_None
);
2443 _resultobj
= Py_None
;
2447 #define new_wxIconBundle() (new wxIconBundle())
2448 static PyObject
*_wrap_new_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2449 PyObject
* _resultobj
;
2450 wxIconBundle
* _result
;
2451 char *_kwnames
[] = { NULL
};
2455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxIconBundle",_kwnames
))
2458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2459 _result
= (wxIconBundle
*)new_wxIconBundle();
2461 wxPyEndAllowThreads(__tstate
);
2462 if (PyErr_Occurred()) return NULL
;
2464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2465 _resultobj
= Py_BuildValue("s",_ptemp
);
2468 _resultobj
= Py_None
;
2473 #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2474 static PyObject
*_wrap_new_wxIconBundleFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2475 PyObject
* _resultobj
;
2476 wxIconBundle
* _result
;
2479 PyObject
* _obj0
= 0;
2480 char *_kwnames
[] = { "file","type", NULL
};
2484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:new_wxIconBundleFromFile",_kwnames
,&_obj0
,&_arg1
))
2487 _arg0
= wxString_in_helper(_obj0
);
2492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2493 _result
= (wxIconBundle
*)new_wxIconBundleFromFile(*_arg0
,_arg1
);
2495 wxPyEndAllowThreads(__tstate
);
2496 if (PyErr_Occurred()) return NULL
;
2498 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2499 _resultobj
= Py_BuildValue("s",_ptemp
);
2502 _resultobj
= Py_None
;
2511 #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2512 static PyObject
*_wrap_new_wxIconBundleFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2513 PyObject
* _resultobj
;
2514 wxIconBundle
* _result
;
2516 PyObject
* _argo0
= 0;
2517 char *_kwnames
[] = { "icon", NULL
};
2521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxIconBundleFromIcon",_kwnames
,&_argo0
))
2524 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
2530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2531 _result
= (wxIconBundle
*)new_wxIconBundleFromIcon(*_arg0
);
2533 wxPyEndAllowThreads(__tstate
);
2534 if (PyErr_Occurred()) return NULL
;
2536 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIconBundle_p");
2537 _resultobj
= Py_BuildValue("s",_ptemp
);
2540 _resultobj
= Py_None
;
2545 #define delete_wxIconBundle(_swigobj) (delete _swigobj)
2546 static PyObject
*_wrap_delete_wxIconBundle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2547 PyObject
* _resultobj
;
2548 wxIconBundle
* _arg0
;
2549 PyObject
* _argo0
= 0;
2550 char *_kwnames
[] = { "self", NULL
};
2553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIconBundle",_kwnames
,&_argo0
))
2556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
2563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2564 delete_wxIconBundle(_arg0
);
2566 wxPyEndAllowThreads(__tstate
);
2567 if (PyErr_Occurred()) return NULL
;
2568 } Py_INCREF(Py_None
);
2569 _resultobj
= Py_None
;
2573 #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2574 static PyObject
*_wrap_wxIconBundle_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2575 PyObject
* _resultobj
;
2576 wxIconBundle
* _arg0
;
2578 PyObject
* _argo0
= 0;
2579 PyObject
* _argo1
= 0;
2580 char *_kwnames
[] = { "self","icon", NULL
};
2583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_AddIcon",_kwnames
,&_argo0
,&_argo1
))
2586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
2593 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
2599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2600 wxIconBundle_AddIcon(_arg0
,*_arg1
);
2602 wxPyEndAllowThreads(__tstate
);
2603 if (PyErr_Occurred()) return NULL
;
2604 } Py_INCREF(Py_None
);
2605 _resultobj
= Py_None
;
2609 #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2610 static PyObject
*_wrap_wxIconBundle_AddIconFromFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
* _resultobj
;
2612 wxIconBundle
* _arg0
;
2615 PyObject
* _argo0
= 0;
2616 PyObject
* _obj1
= 0;
2617 char *_kwnames
[] = { "self","file","type", NULL
};
2620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIconBundle_AddIconFromFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
2630 _arg1
= wxString_in_helper(_obj1
);
2635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2636 wxIconBundle_AddIconFromFile(_arg0
,*_arg1
,_arg2
);
2638 wxPyEndAllowThreads(__tstate
);
2639 if (PyErr_Occurred()) return NULL
;
2640 } Py_INCREF(Py_None
);
2641 _resultobj
= Py_None
;
2649 #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
2650 static PyObject
*_wrap_wxIconBundle_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2651 PyObject
* _resultobj
;
2653 wxIconBundle
* _arg0
;
2655 PyObject
* _argo0
= 0;
2657 PyObject
* _obj1
= 0;
2658 char *_kwnames
[] = { "self","size", NULL
};
2662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIconBundle_GetIcon",_kwnames
,&_argo0
,&_obj1
))
2665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIconBundle_p")) {
2667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
2673 if (! wxSize_helper(_obj1
, &_arg1
))
2677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2678 const wxIcon
& _result_ref
= wxIconBundle_GetIcon(_arg0
,*_arg1
);
2679 _result
= (wxIcon
*) &_result_ref
;
2681 wxPyEndAllowThreads(__tstate
);
2682 if (PyErr_Occurred()) return NULL
;
2684 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2685 _resultobj
= Py_BuildValue("s",_ptemp
);
2688 _resultobj
= Py_None
;
2693 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2696 src
= (wxCursor
*) ptr
;
2697 dest
= (wxGDIObject
*) src
;
2698 return (void *) dest
;
2701 static void *SwigwxCursorTowxObject(void *ptr
) {
2704 src
= (wxCursor
*) ptr
;
2705 dest
= (wxObject
*) src
;
2706 return (void *) dest
;
2709 #define delete_wxCursor(_swigobj) (delete _swigobj)
2710 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2711 PyObject
* _resultobj
;
2713 PyObject
* _argo0
= 0;
2714 char *_kwnames
[] = { "self", NULL
};
2717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2728 delete_wxCursor(_arg0
);
2730 wxPyEndAllowThreads(__tstate
);
2731 if (PyErr_Occurred()) return NULL
;
2732 } Py_INCREF(Py_None
);
2733 _resultobj
= Py_None
;
2737 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2738 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2739 PyObject
* _resultobj
;
2742 PyObject
* _argo0
= 0;
2743 char *_kwnames
[] = { "self", NULL
};
2746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2757 _result
= (bool )wxCursor_Ok(_arg0
);
2759 wxPyEndAllowThreads(__tstate
);
2760 if (PyErr_Occurred()) return NULL
;
2761 } _resultobj
= Py_BuildValue("i",_result
);
2765 static void *SwigwxColourTowxObject(void *ptr
) {
2768 src
= (wxColour
*) ptr
;
2769 dest
= (wxObject
*) src
;
2770 return (void *) dest
;
2773 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
2774 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2775 PyObject
* _resultobj
;
2777 unsigned char _arg0
= (unsigned char ) 0;
2778 unsigned char _arg1
= (unsigned char ) 0;
2779 unsigned char _arg2
= (unsigned char ) 0;
2780 char *_kwnames
[] = { "red","green","blue", NULL
};
2784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
2787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2788 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
2790 wxPyEndAllowThreads(__tstate
);
2791 if (PyErr_Occurred()) return NULL
;
2793 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
2794 _resultobj
= Py_BuildValue("s",_ptemp
);
2797 _resultobj
= Py_None
;
2802 #define delete_wxColour(_swigobj) (delete _swigobj)
2803 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2804 PyObject
* _resultobj
;
2807 PyObject
* _obj0
= 0;
2808 char *_kwnames
[] = { "self", NULL
};
2811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
2815 if (! wxColour_helper(_obj0
, &_arg0
))
2819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2820 delete_wxColour(_arg0
);
2822 wxPyEndAllowThreads(__tstate
);
2823 if (PyErr_Occurred()) return NULL
;
2824 } Py_INCREF(Py_None
);
2825 _resultobj
= Py_None
;
2829 #define wxColour_Red(_swigobj) (_swigobj->Red())
2830 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2831 PyObject
* _resultobj
;
2832 unsigned char _result
;
2835 PyObject
* _obj0
= 0;
2836 char *_kwnames
[] = { "self", NULL
};
2839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
2843 if (! wxColour_helper(_obj0
, &_arg0
))
2847 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2848 _result
= (unsigned char )wxColour_Red(_arg0
);
2850 wxPyEndAllowThreads(__tstate
);
2851 if (PyErr_Occurred()) return NULL
;
2852 } _resultobj
= Py_BuildValue("b",_result
);
2856 #define wxColour_Green(_swigobj) (_swigobj->Green())
2857 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2858 PyObject
* _resultobj
;
2859 unsigned char _result
;
2862 PyObject
* _obj0
= 0;
2863 char *_kwnames
[] = { "self", NULL
};
2866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
2870 if (! wxColour_helper(_obj0
, &_arg0
))
2874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2875 _result
= (unsigned char )wxColour_Green(_arg0
);
2877 wxPyEndAllowThreads(__tstate
);
2878 if (PyErr_Occurred()) return NULL
;
2879 } _resultobj
= Py_BuildValue("b",_result
);
2883 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
2884 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2885 PyObject
* _resultobj
;
2886 unsigned char _result
;
2889 PyObject
* _obj0
= 0;
2890 char *_kwnames
[] = { "self", NULL
};
2893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
2897 if (! wxColour_helper(_obj0
, &_arg0
))
2901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2902 _result
= (unsigned char )wxColour_Blue(_arg0
);
2904 wxPyEndAllowThreads(__tstate
);
2905 if (PyErr_Occurred()) return NULL
;
2906 } _resultobj
= Py_BuildValue("b",_result
);
2910 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
2911 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2912 PyObject
* _resultobj
;
2916 PyObject
* _obj0
= 0;
2917 char *_kwnames
[] = { "self", NULL
};
2920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
2924 if (! wxColour_helper(_obj0
, &_arg0
))
2928 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2929 _result
= (bool )wxColour_Ok(_arg0
);
2931 wxPyEndAllowThreads(__tstate
);
2932 if (PyErr_Occurred()) return NULL
;
2933 } _resultobj
= Py_BuildValue("i",_result
);
2937 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
2938 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2939 PyObject
* _resultobj
;
2941 unsigned char _arg1
;
2942 unsigned char _arg2
;
2943 unsigned char _arg3
;
2945 PyObject
* _obj0
= 0;
2946 char *_kwnames
[] = { "self","red","green","blue", NULL
};
2949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2953 if (! wxColour_helper(_obj0
, &_arg0
))
2957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2958 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
2960 wxPyEndAllowThreads(__tstate
);
2961 if (PyErr_Occurred()) return NULL
;
2962 } Py_INCREF(Py_None
);
2963 _resultobj
= Py_None
;
2967 static PyObject
* wxColour_Get(wxColour
*self
) {
2968 PyObject
* rv
= PyTuple_New(3);
2974 green
= self
->Green();
2975 blue
= self
->Blue();
2977 PyTuple_SetItem(rv
, 0, PyInt_FromLong(red
));
2978 PyTuple_SetItem(rv
, 1, PyInt_FromLong(green
));
2979 PyTuple_SetItem(rv
, 2, PyInt_FromLong(blue
));
2982 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2983 PyObject
* _resultobj
;
2987 PyObject
* _obj0
= 0;
2988 char *_kwnames
[] = { "self", NULL
};
2991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
2995 if (! wxColour_helper(_obj0
, &_arg0
))
2999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3000 _result
= (PyObject
*)wxColour_Get(_arg0
);
3002 wxPyEndAllowThreads(__tstate
);
3003 if (PyErr_Occurred()) return NULL
;
3005 _resultobj
= _result
;
3010 static bool wxColour___eq__(wxColour
*self
,PyObject
* obj
) {
3012 wxColour
* ptr
= &tmp
;
3013 if (obj
== Py_None
) return FALSE
;
3014 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
3015 if (! success
) return FALSE
;
3016 return *self
== *ptr
;
3018 static PyObject
*_wrap_wxColour___eq__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3019 PyObject
* _resultobj
;
3024 PyObject
* _obj0
= 0;
3025 PyObject
* _obj1
= 0;
3026 char *_kwnames
[] = { "self","obj", NULL
};
3029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___eq__",_kwnames
,&_obj0
,&_obj1
))
3033 if (! wxColour_helper(_obj0
, &_arg0
))
3040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3041 _result
= (bool )wxColour___eq__(_arg0
,_arg1
);
3043 wxPyEndAllowThreads(__tstate
);
3044 if (PyErr_Occurred()) return NULL
;
3045 } _resultobj
= Py_BuildValue("i",_result
);
3049 static bool wxColour___ne__(wxColour
*self
,PyObject
* obj
) {
3051 wxColour
* ptr
= &tmp
;
3052 if (obj
== Py_None
) return TRUE
;
3053 wxPyBLOCK_THREADS(bool success
= wxColour_helper(obj
, &ptr
); PyErr_Clear());
3054 if (! success
) return TRUE
;
3055 return *self
!= *ptr
;
3057 static PyObject
*_wrap_wxColour___ne__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3058 PyObject
* _resultobj
;
3063 PyObject
* _obj0
= 0;
3064 PyObject
* _obj1
= 0;
3065 char *_kwnames
[] = { "self","obj", NULL
};
3068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColour___ne__",_kwnames
,&_obj0
,&_obj1
))
3072 if (! wxColour_helper(_obj0
, &_arg0
))
3079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3080 _result
= (bool )wxColour___ne__(_arg0
,_arg1
);
3082 wxPyEndAllowThreads(__tstate
);
3083 if (PyErr_Occurred()) return NULL
;
3084 } _resultobj
= Py_BuildValue("i",_result
);
3088 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
3089 wxColourDatabase
*src
;
3091 src
= (wxColourDatabase
*) ptr
;
3092 dest
= (wxObject
*) src
;
3093 return (void *) dest
;
3096 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3097 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3098 PyObject
* _resultobj
;
3100 wxColourDatabase
* _arg0
;
3102 PyObject
* _argo0
= 0;
3103 PyObject
* _obj1
= 0;
3104 char *_kwnames
[] = { "self","colour", NULL
};
3108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
3111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
3118 _arg1
= wxString_in_helper(_obj1
);
3123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3124 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
3126 wxPyEndAllowThreads(__tstate
);
3127 if (PyErr_Occurred()) return NULL
;
3129 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
3130 _resultobj
= Py_BuildValue("s",_ptemp
);
3133 _resultobj
= Py_None
;
3142 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3143 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3144 PyObject
* _resultobj
;
3146 wxColourDatabase
* _arg0
;
3148 PyObject
* _argo0
= 0;
3150 PyObject
* _obj1
= 0;
3151 char *_kwnames
[] = { "self","colour", NULL
};
3154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
3157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
3165 if (! wxColour_helper(_obj1
, &_arg1
))
3169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3170 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
3172 wxPyEndAllowThreads(__tstate
);
3173 if (PyErr_Occurred()) return NULL
;
3176 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
3178 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3187 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
3188 // first see if the name is already there
3189 wxString cName
= name
;
3191 wxString cName2
= cName
;
3192 if ( !cName2
.Replace(wxT("GRAY"), wxT("GREY")) )
3195 wxNode
*node
= self
->GetFirst();
3197 const wxChar
*key
= node
->GetKeyString();
3198 if ( cName
== key
|| cName2
== key
) {
3199 wxColour
* c
= (wxColour
*)node
->GetData();
3200 c
->Set(red
, green
, blue
);
3203 node
= node
->GetNext();
3206 // otherwise append the new colour
3207 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
3209 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3210 PyObject
* _resultobj
;
3211 wxColourDatabase
* _arg0
;
3216 PyObject
* _argo0
= 0;
3217 PyObject
* _obj1
= 0;
3218 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
3221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
3224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
3226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
3231 _arg1
= wxString_in_helper(_obj1
);
3236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3237 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
3239 wxPyEndAllowThreads(__tstate
);
3240 if (PyErr_Occurred()) return NULL
;
3241 } Py_INCREF(Py_None
);
3242 _resultobj
= Py_None
;
3250 static void *SwigwxPenTowxGDIObject(void *ptr
) {
3253 src
= (wxPen
*) ptr
;
3254 dest
= (wxGDIObject
*) src
;
3255 return (void *) dest
;
3258 static void *SwigwxPenTowxObject(void *ptr
) {
3261 src
= (wxPen
*) ptr
;
3262 dest
= (wxObject
*) src
;
3263 return (void *) dest
;
3266 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3267 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3268 PyObject
* _resultobj
;
3271 int _arg1
= (int ) 1;
3272 int _arg2
= (int ) wxSOLID
;
3274 PyObject
* _obj0
= 0;
3275 char *_kwnames
[] = { "colour","width","style", NULL
};
3279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3283 if (! wxColour_helper(_obj0
, &_arg0
))
3287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3288 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
3290 wxPyEndAllowThreads(__tstate
);
3291 if (PyErr_Occurred()) return NULL
;
3293 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3294 _resultobj
= Py_BuildValue("s",_ptemp
);
3297 _resultobj
= Py_None
;
3302 #define delete_wxPen(_swigobj) (delete _swigobj)
3303 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3304 PyObject
* _resultobj
;
3306 PyObject
* _argo0
= 0;
3307 char *_kwnames
[] = { "self", NULL
};
3310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
3313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3321 delete_wxPen(_arg0
);
3323 wxPyEndAllowThreads(__tstate
);
3324 if (PyErr_Occurred()) return NULL
;
3325 } Py_INCREF(Py_None
);
3326 _resultobj
= Py_None
;
3330 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3331 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3332 PyObject
* _resultobj
;
3335 PyObject
* _argo0
= 0;
3336 char *_kwnames
[] = { "self", NULL
};
3339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
3342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3350 _result
= (int )wxPen_GetCap(_arg0
);
3352 wxPyEndAllowThreads(__tstate
);
3353 if (PyErr_Occurred()) return NULL
;
3354 } _resultobj
= Py_BuildValue("i",_result
);
3358 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3359 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3360 PyObject
* _resultobj
;
3363 PyObject
* _argo0
= 0;
3364 char *_kwnames
[] = { "self", NULL
};
3368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
3371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3379 _result
= new wxColour (wxPen_GetColour(_arg0
));
3381 wxPyEndAllowThreads(__tstate
);
3382 if (PyErr_Occurred()) return NULL
;
3383 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
3384 _resultobj
= Py_BuildValue("s",_ptemp
);
3388 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3389 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3390 PyObject
* _resultobj
;
3393 PyObject
* _argo0
= 0;
3394 char *_kwnames
[] = { "self", NULL
};
3397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
3400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3408 _result
= (int )wxPen_GetJoin(_arg0
);
3410 wxPyEndAllowThreads(__tstate
);
3411 if (PyErr_Occurred()) return NULL
;
3412 } _resultobj
= Py_BuildValue("i",_result
);
3416 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3417 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3418 PyObject
* _resultobj
;
3421 PyObject
* _argo0
= 0;
3422 char *_kwnames
[] = { "self", NULL
};
3425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
3428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3436 _result
= (int )wxPen_GetStyle(_arg0
);
3438 wxPyEndAllowThreads(__tstate
);
3439 if (PyErr_Occurred()) return NULL
;
3440 } _resultobj
= Py_BuildValue("i",_result
);
3444 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3445 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3446 PyObject
* _resultobj
;
3449 PyObject
* _argo0
= 0;
3450 char *_kwnames
[] = { "self", NULL
};
3453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
3456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3464 _result
= (int )wxPen_GetWidth(_arg0
);
3466 wxPyEndAllowThreads(__tstate
);
3467 if (PyErr_Occurred()) return NULL
;
3468 } _resultobj
= Py_BuildValue("i",_result
);
3472 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3473 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3474 PyObject
* _resultobj
;
3477 PyObject
* _argo0
= 0;
3478 char *_kwnames
[] = { "self", NULL
};
3481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
3484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3492 _result
= (bool )wxPen_Ok(_arg0
);
3494 wxPyEndAllowThreads(__tstate
);
3495 if (PyErr_Occurred()) return NULL
;
3496 } _resultobj
= Py_BuildValue("i",_result
);
3500 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3501 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3502 PyObject
* _resultobj
;
3505 PyObject
* _argo0
= 0;
3506 char *_kwnames
[] = { "self","cap_style", NULL
};
3509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
3512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3520 wxPen_SetCap(_arg0
,_arg1
);
3522 wxPyEndAllowThreads(__tstate
);
3523 if (PyErr_Occurred()) return NULL
;
3524 } Py_INCREF(Py_None
);
3525 _resultobj
= Py_None
;
3529 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3530 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3531 PyObject
* _resultobj
;
3534 PyObject
* _argo0
= 0;
3536 PyObject
* _obj1
= 0;
3537 char *_kwnames
[] = { "self","colour", NULL
};
3540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
3543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3551 if (! wxColour_helper(_obj1
, &_arg1
))
3555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3556 wxPen_SetColour(_arg0
,*_arg1
);
3558 wxPyEndAllowThreads(__tstate
);
3559 if (PyErr_Occurred()) return NULL
;
3560 } Py_INCREF(Py_None
);
3561 _resultobj
= Py_None
;
3565 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3566 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3567 PyObject
* _resultobj
;
3570 PyObject
* _argo0
= 0;
3571 char *_kwnames
[] = { "self","join_style", NULL
};
3574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
3577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3585 wxPen_SetJoin(_arg0
,_arg1
);
3587 wxPyEndAllowThreads(__tstate
);
3588 if (PyErr_Occurred()) return NULL
;
3589 } Py_INCREF(Py_None
);
3590 _resultobj
= Py_None
;
3594 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3595 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3596 PyObject
* _resultobj
;
3599 PyObject
* _argo0
= 0;
3600 char *_kwnames
[] = { "self","style", NULL
};
3603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
3606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3613 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3614 wxPen_SetStyle(_arg0
,_arg1
);
3616 wxPyEndAllowThreads(__tstate
);
3617 if (PyErr_Occurred()) return NULL
;
3618 } Py_INCREF(Py_None
);
3619 _resultobj
= Py_None
;
3623 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3624 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3625 PyObject
* _resultobj
;
3628 PyObject
* _argo0
= 0;
3629 char *_kwnames
[] = { "self","width", NULL
};
3632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
3635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3643 wxPen_SetWidth(_arg0
,_arg1
);
3645 wxPyEndAllowThreads(__tstate
);
3646 if (PyErr_Occurred()) return NULL
;
3647 } Py_INCREF(Py_None
);
3648 _resultobj
= Py_None
;
3652 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3653 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3654 PyObject
* _resultobj
;
3658 PyObject
* _argo0
= 0;
3659 PyObject
* _obj2
= 0;
3660 char *_kwnames
[] = { "self","choices", NULL
};
3663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
3674 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3675 if (_arg2
== NULL
) {
3681 _arg1
= PyList_Size(_obj2
);
3688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3689 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
3691 wxPyEndAllowThreads(__tstate
);
3692 if (PyErr_Occurred()) return NULL
;
3693 } Py_INCREF(Py_None
);
3694 _resultobj
= Py_None
;
3701 static PyObject
* wxPen_GetDashes(wxPen
*self
) {
3703 int count
= self
->GetDashes(&dashes
);
3704 wxPyBeginBlockThreads();
3705 PyObject
* retval
= PyList_New(0);
3706 for (int x
=0; x
<count
; x
++)
3707 PyList_Append(retval
, PyInt_FromLong(dashes
[x
]));
3708 wxPyEndBlockThreads();
3711 static PyObject
*_wrap_wxPen_GetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3712 PyObject
* _resultobj
;
3715 PyObject
* _argo0
= 0;
3716 char *_kwnames
[] = { "self", NULL
};
3719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetDashes",_kwnames
,&_argo0
))
3722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
3724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3730 _result
= (PyObject
*)wxPen_GetDashes(_arg0
);
3732 wxPyEndAllowThreads(__tstate
);
3733 if (PyErr_Occurred()) return NULL
;
3735 _resultobj
= _result
;
3740 static void *SwigwxPyPenTowxPen(void *ptr
) {
3743 src
= (wxPyPen
*) ptr
;
3744 dest
= (wxPen
*) src
;
3745 return (void *) dest
;
3748 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
3751 src
= (wxPyPen
*) ptr
;
3752 dest
= (wxGDIObject
*) src
;
3753 return (void *) dest
;
3756 static void *SwigwxPyPenTowxObject(void *ptr
) {
3759 src
= (wxPyPen
*) ptr
;
3760 dest
= (wxObject
*) src
;
3761 return (void *) dest
;
3764 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
3765 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3766 PyObject
* _resultobj
;
3769 int _arg1
= (int ) 1;
3770 int _arg2
= (int ) wxSOLID
;
3772 PyObject
* _obj0
= 0;
3773 char *_kwnames
[] = { "colour","width","style", NULL
};
3777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
3781 if (! wxColour_helper(_obj0
, &_arg0
))
3785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3786 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
3788 wxPyEndAllowThreads(__tstate
);
3789 if (PyErr_Occurred()) return NULL
;
3791 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
3792 _resultobj
= Py_BuildValue("s",_ptemp
);
3795 _resultobj
= Py_None
;
3800 #define delete_wxPyPen(_swigobj) (delete _swigobj)
3801 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3802 PyObject
* _resultobj
;
3804 PyObject
* _argo0
= 0;
3805 char *_kwnames
[] = { "self", NULL
};
3808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
3811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
3813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
3818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3819 delete_wxPyPen(_arg0
);
3821 wxPyEndAllowThreads(__tstate
);
3822 if (PyErr_Occurred()) return NULL
;
3823 } Py_INCREF(Py_None
);
3824 _resultobj
= Py_None
;
3828 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3829 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3830 PyObject
* _resultobj
;
3834 PyObject
* _argo0
= 0;
3835 PyObject
* _obj2
= 0;
3836 char *_kwnames
[] = { "self","choices", NULL
};
3839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
3842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
3844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
3850 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
3851 if (_arg2
== NULL
) {
3857 _arg1
= PyList_Size(_obj2
);
3864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3865 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
3867 wxPyEndAllowThreads(__tstate
);
3868 if (PyErr_Occurred()) return NULL
;
3869 } Py_INCREF(Py_None
);
3870 _resultobj
= Py_None
;
3877 static void *SwigwxPenListTowxObject(void *ptr
) {
3880 src
= (wxPenList
*) ptr
;
3881 dest
= (wxObject
*) src
;
3882 return (void *) dest
;
3885 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3886 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3887 PyObject
* _resultobj
;
3890 PyObject
* _argo0
= 0;
3891 PyObject
* _argo1
= 0;
3892 char *_kwnames
[] = { "self","pen", NULL
};
3895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
3898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3905 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3906 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3913 wxPenList_AddPen(_arg0
,_arg1
);
3915 wxPyEndAllowThreads(__tstate
);
3916 if (PyErr_Occurred()) return NULL
;
3917 } Py_INCREF(Py_None
);
3918 _resultobj
= Py_None
;
3922 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3923 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3924 PyObject
* _resultobj
;
3930 PyObject
* _argo0
= 0;
3932 PyObject
* _obj1
= 0;
3933 char *_kwnames
[] = { "self","colour","width","style", NULL
};
3937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
3940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
3948 if (! wxColour_helper(_obj1
, &_arg1
))
3952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3953 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
3955 wxPyEndAllowThreads(__tstate
);
3956 if (PyErr_Occurred()) return NULL
;
3958 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
3959 _resultobj
= Py_BuildValue("s",_ptemp
);
3962 _resultobj
= Py_None
;
3967 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3968 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3969 PyObject
* _resultobj
;
3972 PyObject
* _argo0
= 0;
3973 PyObject
* _argo1
= 0;
3974 char *_kwnames
[] = { "self","pen", NULL
};
3977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
3980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
3982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3987 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3988 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
3989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3995 wxPenList_RemovePen(_arg0
,_arg1
);
3997 wxPyEndAllowThreads(__tstate
);
3998 if (PyErr_Occurred()) return NULL
;
3999 } Py_INCREF(Py_None
);
4000 _resultobj
= Py_None
;
4004 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
4005 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4006 PyObject
* _resultobj
;
4009 PyObject
* _argo0
= 0;
4010 char *_kwnames
[] = { "self", NULL
};
4013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
4016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
4018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
4023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4024 _result
= (int )wxPenList_GetCount(_arg0
);
4026 wxPyEndAllowThreads(__tstate
);
4027 if (PyErr_Occurred()) return NULL
;
4028 } _resultobj
= Py_BuildValue("i",_result
);
4032 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
4035 src
= (wxBrush
*) ptr
;
4036 dest
= (wxGDIObject
*) src
;
4037 return (void *) dest
;
4040 static void *SwigwxBrushTowxObject(void *ptr
) {
4043 src
= (wxBrush
*) ptr
;
4044 dest
= (wxObject
*) src
;
4045 return (void *) dest
;
4048 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4049 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4050 PyObject
* _resultobj
;
4053 int _arg1
= (int ) wxSOLID
;
4055 PyObject
* _obj0
= 0;
4056 char *_kwnames
[] = { "colour","style", NULL
};
4060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
4064 if (! wxColour_helper(_obj0
, &_arg0
))
4068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4069 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
4071 wxPyEndAllowThreads(__tstate
);
4072 if (PyErr_Occurred()) return NULL
;
4074 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4075 _resultobj
= Py_BuildValue("s",_ptemp
);
4078 _resultobj
= Py_None
;
4083 #define delete_wxBrush(_swigobj) (delete _swigobj)
4084 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4085 PyObject
* _resultobj
;
4087 PyObject
* _argo0
= 0;
4088 char *_kwnames
[] = { "self", NULL
};
4091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
4094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4102 delete_wxBrush(_arg0
);
4104 wxPyEndAllowThreads(__tstate
);
4105 if (PyErr_Occurred()) return NULL
;
4106 } Py_INCREF(Py_None
);
4107 _resultobj
= Py_None
;
4111 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4112 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4113 PyObject
* _resultobj
;
4116 PyObject
* _argo0
= 0;
4117 char *_kwnames
[] = { "self", NULL
};
4121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
4124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4132 _result
= new wxColour (wxBrush_GetColour(_arg0
));
4134 wxPyEndAllowThreads(__tstate
);
4135 if (PyErr_Occurred()) return NULL
;
4136 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
4137 _resultobj
= Py_BuildValue("s",_ptemp
);
4141 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4142 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4143 PyObject
* _resultobj
;
4146 PyObject
* _argo0
= 0;
4147 char *_kwnames
[] = { "self", NULL
};
4151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
4154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4162 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
4164 wxPyEndAllowThreads(__tstate
);
4165 if (PyErr_Occurred()) return NULL
;
4167 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
4168 _resultobj
= Py_BuildValue("s",_ptemp
);
4171 _resultobj
= Py_None
;
4176 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4177 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4178 PyObject
* _resultobj
;
4181 PyObject
* _argo0
= 0;
4182 char *_kwnames
[] = { "self", NULL
};
4185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
4188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4196 _result
= (int )wxBrush_GetStyle(_arg0
);
4198 wxPyEndAllowThreads(__tstate
);
4199 if (PyErr_Occurred()) return NULL
;
4200 } _resultobj
= Py_BuildValue("i",_result
);
4204 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4205 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4206 PyObject
* _resultobj
;
4209 PyObject
* _argo0
= 0;
4210 char *_kwnames
[] = { "self", NULL
};
4213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
4216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4224 _result
= (bool )wxBrush_Ok(_arg0
);
4226 wxPyEndAllowThreads(__tstate
);
4227 if (PyErr_Occurred()) return NULL
;
4228 } _resultobj
= Py_BuildValue("i",_result
);
4232 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4233 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4234 PyObject
* _resultobj
;
4237 PyObject
* _argo0
= 0;
4239 PyObject
* _obj1
= 0;
4240 char *_kwnames
[] = { "self","colour", NULL
};
4243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
4246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4254 if (! wxColour_helper(_obj1
, &_arg1
))
4258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4259 wxBrush_SetColour(_arg0
,*_arg1
);
4261 wxPyEndAllowThreads(__tstate
);
4262 if (PyErr_Occurred()) return NULL
;
4263 } Py_INCREF(Py_None
);
4264 _resultobj
= Py_None
;
4268 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4269 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4270 PyObject
* _resultobj
;
4273 PyObject
* _argo0
= 0;
4274 PyObject
* _argo1
= 0;
4275 char *_kwnames
[] = { "self","bitmap", NULL
};
4278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
4281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4288 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
4289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4295 wxBrush_SetStipple(_arg0
,*_arg1
);
4297 wxPyEndAllowThreads(__tstate
);
4298 if (PyErr_Occurred()) return NULL
;
4299 } Py_INCREF(Py_None
);
4300 _resultobj
= Py_None
;
4304 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4305 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4306 PyObject
* _resultobj
;
4309 PyObject
* _argo0
= 0;
4310 char *_kwnames
[] = { "self","style", NULL
};
4313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
4318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4324 wxBrush_SetStyle(_arg0
,_arg1
);
4326 wxPyEndAllowThreads(__tstate
);
4327 if (PyErr_Occurred()) return NULL
;
4328 } Py_INCREF(Py_None
);
4329 _resultobj
= Py_None
;
4333 static void *SwigwxBrushListTowxObject(void *ptr
) {
4336 src
= (wxBrushList
*) ptr
;
4337 dest
= (wxObject
*) src
;
4338 return (void *) dest
;
4341 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4342 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4343 PyObject
* _resultobj
;
4344 wxBrushList
* _arg0
;
4346 PyObject
* _argo0
= 0;
4347 PyObject
* _argo1
= 0;
4348 char *_kwnames
[] = { "self","brush", NULL
};
4351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
4354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4361 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4362 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4369 wxBrushList_AddBrush(_arg0
,_arg1
);
4371 wxPyEndAllowThreads(__tstate
);
4372 if (PyErr_Occurred()) return NULL
;
4373 } Py_INCREF(Py_None
);
4374 _resultobj
= Py_None
;
4378 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4379 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4380 PyObject
* _resultobj
;
4382 wxBrushList
* _arg0
;
4385 PyObject
* _argo0
= 0;
4387 PyObject
* _obj1
= 0;
4388 char *_kwnames
[] = { "self","colour","style", NULL
};
4392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4403 if (! wxColour_helper(_obj1
, &_arg1
))
4407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4408 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
4410 wxPyEndAllowThreads(__tstate
);
4411 if (PyErr_Occurred()) return NULL
;
4413 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
4414 _resultobj
= Py_BuildValue("s",_ptemp
);
4417 _resultobj
= Py_None
;
4422 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4423 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4424 PyObject
* _resultobj
;
4425 wxBrushList
* _arg0
;
4427 PyObject
* _argo0
= 0;
4428 PyObject
* _argo1
= 0;
4429 char *_kwnames
[] = { "self","brush", NULL
};
4432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
4435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4442 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4443 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
4444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4449 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4450 wxBrushList_RemoveBrush(_arg0
,_arg1
);
4452 wxPyEndAllowThreads(__tstate
);
4453 if (PyErr_Occurred()) return NULL
;
4454 } Py_INCREF(Py_None
);
4455 _resultobj
= Py_None
;
4459 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
4460 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4461 PyObject
* _resultobj
;
4463 wxBrushList
* _arg0
;
4464 PyObject
* _argo0
= 0;
4465 char *_kwnames
[] = { "self", NULL
};
4468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
4471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
4473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
4478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4479 _result
= (int )wxBrushList_GetCount(_arg0
);
4481 wxPyEndAllowThreads(__tstate
);
4482 if (PyErr_Occurred()) return NULL
;
4483 } _resultobj
= Py_BuildValue("i",_result
);
4487 static void *SwigwxDCTowxObject(void *ptr
) {
4491 dest
= (wxObject
*) src
;
4492 return (void *) dest
;
4495 #define delete_wxDC(_swigobj) (delete _swigobj)
4496 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4497 PyObject
* _resultobj
;
4499 PyObject
* _argo0
= 0;
4500 char *_kwnames
[] = { "self", NULL
};
4503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
4506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4516 wxPyEndAllowThreads(__tstate
);
4517 if (PyErr_Occurred()) return NULL
;
4518 } Py_INCREF(Py_None
);
4519 _resultobj
= Py_None
;
4523 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4524 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4525 PyObject
* _resultobj
;
4527 PyObject
* _argo0
= 0;
4528 char *_kwnames
[] = { "self", NULL
};
4531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
4534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4542 wxDC_BeginDrawing(_arg0
);
4544 wxPyEndAllowThreads(__tstate
);
4545 if (PyErr_Occurred()) return NULL
;
4546 } Py_INCREF(Py_None
);
4547 _resultobj
= Py_None
;
4551 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4552 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4553 PyObject
* _resultobj
;
4563 int _arg8
= (int ) wxCOPY
;
4564 int _arg9
= (int ) FALSE
;
4565 PyObject
* _argo0
= 0;
4566 PyObject
* _argo5
= 0;
4567 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
4570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiiOii|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
4573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4580 if (_argo5
== Py_None
) { _arg5
= NULL
; }
4581 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
4582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4588 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
4590 wxPyEndAllowThreads(__tstate
);
4591 if (PyErr_Occurred()) return NULL
;
4592 } _resultobj
= Py_BuildValue("i",_result
);
4596 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4597 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4598 PyObject
* _resultobj
;
4600 PyObject
* _argo0
= 0;
4601 char *_kwnames
[] = { "self", NULL
};
4604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
4607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4617 wxPyEndAllowThreads(__tstate
);
4618 if (PyErr_Occurred()) return NULL
;
4619 } Py_INCREF(Py_None
);
4620 _resultobj
= Py_None
;
4624 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4625 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4626 PyObject
* _resultobj
;
4630 PyObject
* _argo0
= 0;
4631 char *_kwnames
[] = { "self","x","y", NULL
};
4634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4645 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
4647 wxPyEndAllowThreads(__tstate
);
4648 if (PyErr_Occurred()) return NULL
;
4649 } Py_INCREF(Py_None
);
4650 _resultobj
= Py_None
;
4654 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4655 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4656 PyObject
* _resultobj
;
4658 PyObject
* _argo0
= 0;
4659 char *_kwnames
[] = { "self", NULL
};
4662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
4665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4673 wxDC_DestroyClippingRegion(_arg0
);
4675 wxPyEndAllowThreads(__tstate
);
4676 if (PyErr_Occurred()) return NULL
;
4677 } Py_INCREF(Py_None
);
4678 _resultobj
= Py_None
;
4682 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4683 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4684 PyObject
* _resultobj
;
4688 PyObject
* _argo0
= 0;
4689 char *_kwnames
[] = { "self","x", NULL
};
4692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
4695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4703 _result
= (wxCoord
)wxDC_DeviceToLogicalX(_arg0
,_arg1
);
4705 wxPyEndAllowThreads(__tstate
);
4706 if (PyErr_Occurred()) return NULL
;
4707 } _resultobj
= Py_BuildValue("i",_result
);
4711 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4712 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4713 PyObject
* _resultobj
;
4717 PyObject
* _argo0
= 0;
4718 char *_kwnames
[] = { "self","x", NULL
};
4721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
4724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4732 _result
= (wxCoord
)wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
4734 wxPyEndAllowThreads(__tstate
);
4735 if (PyErr_Occurred()) return NULL
;
4736 } _resultobj
= Py_BuildValue("i",_result
);
4740 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4741 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4742 PyObject
* _resultobj
;
4746 PyObject
* _argo0
= 0;
4747 char *_kwnames
[] = { "self","y", NULL
};
4750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
4753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4761 _result
= (wxCoord
)wxDC_DeviceToLogicalY(_arg0
,_arg1
);
4763 wxPyEndAllowThreads(__tstate
);
4764 if (PyErr_Occurred()) return NULL
;
4765 } _resultobj
= Py_BuildValue("i",_result
);
4769 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4770 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4771 PyObject
* _resultobj
;
4775 PyObject
* _argo0
= 0;
4776 char *_kwnames
[] = { "self","y", NULL
};
4779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
4782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4790 _result
= (wxCoord
)wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
4792 wxPyEndAllowThreads(__tstate
);
4793 if (PyErr_Occurred()) return NULL
;
4794 } _resultobj
= Py_BuildValue("i",_result
);
4798 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4799 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4800 PyObject
* _resultobj
;
4808 PyObject
* _argo0
= 0;
4809 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
4812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
4822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4823 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4825 wxPyEndAllowThreads(__tstate
);
4826 if (PyErr_Occurred()) return NULL
;
4827 } Py_INCREF(Py_None
);
4828 _resultobj
= Py_None
;
4832 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
4833 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4834 PyObject
* _resultobj
;
4839 PyObject
* _argo0
= 0;
4840 char *_kwnames
[] = { "self","x","y","radius", NULL
};
4843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
4846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4854 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
4856 wxPyEndAllowThreads(__tstate
);
4857 if (PyErr_Occurred()) return NULL
;
4858 } Py_INCREF(Py_None
);
4859 _resultobj
= Py_None
;
4863 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4864 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4865 PyObject
* _resultobj
;
4871 PyObject
* _argo0
= 0;
4872 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
4875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
4878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4886 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4888 wxPyEndAllowThreads(__tstate
);
4889 if (PyErr_Occurred()) return NULL
;
4890 } Py_INCREF(Py_None
);
4891 _resultobj
= Py_None
;
4895 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4896 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4897 PyObject
* _resultobj
;
4905 PyObject
* _argo0
= 0;
4906 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
4909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4920 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4922 wxPyEndAllowThreads(__tstate
);
4923 if (PyErr_Occurred()) return NULL
;
4924 } Py_INCREF(Py_None
);
4925 _resultobj
= Py_None
;
4929 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
4930 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4931 PyObject
* _resultobj
;
4936 PyObject
* _argo0
= 0;
4937 PyObject
* _argo1
= 0;
4938 char *_kwnames
[] = { "self","icon","x","y", NULL
};
4941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
4944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4951 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
4952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4958 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
4960 wxPyEndAllowThreads(__tstate
);
4961 if (PyErr_Occurred()) return NULL
;
4962 } Py_INCREF(Py_None
);
4963 _resultobj
= Py_None
;
4967 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4968 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4969 PyObject
* _resultobj
;
4973 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
4974 int _arg4
= (int ) -1;
4975 PyObject
* _argo0
= 0;
4976 PyObject
* _obj1
= 0;
4978 PyObject
* _obj2
= 0;
4979 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
4982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
4985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
4987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
4992 _arg1
= wxString_in_helper(_obj1
);
4998 if (! wxRect_helper(_obj2
, &_arg2
))
5002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5003 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
5005 wxPyEndAllowThreads(__tstate
);
5006 if (PyErr_Occurred()) return NULL
;
5007 } Py_INCREF(Py_None
);
5008 _resultobj
= Py_None
;
5016 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
5018 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
5021 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5022 PyObject
* _resultobj
;
5028 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
5029 int _arg5
= (int ) -1;
5030 PyObject
* _argo0
= 0;
5031 PyObject
* _obj1
= 0;
5032 PyObject
* _argo2
= 0;
5034 PyObject
* _obj3
= 0;
5035 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
5039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
5042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
5049 _arg1
= wxString_in_helper(_obj1
);
5054 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
5055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
5061 if (! wxRect_helper(_obj3
, &_arg3
))
5065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5066 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
5068 wxPyEndAllowThreads(__tstate
);
5069 if (PyErr_Occurred()) return NULL
;
5070 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
5071 _resultobj
= Py_BuildValue("s",_ptemp
);
5079 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5080 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5081 PyObject
* _resultobj
;
5087 PyObject
* _argo0
= 0;
5088 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
5091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5102 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5104 wxPyEndAllowThreads(__tstate
);
5105 if (PyErr_Occurred()) return NULL
;
5106 } Py_INCREF(Py_None
);
5107 _resultobj
= Py_None
;
5111 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5112 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5113 PyObject
* _resultobj
;
5117 wxCoord _arg3
= (wxCoord
) 0;
5118 wxCoord _arg4
= (wxCoord
) 0;
5119 PyObject
* _argo0
= 0;
5121 PyObject
* _obj2
= 0;
5122 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
5125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ii:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
5128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5136 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5137 if (_arg2
== NULL
) {
5145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5146 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5148 wxPyEndAllowThreads(__tstate
);
5149 if (PyErr_Occurred()) return NULL
;
5150 } Py_INCREF(Py_None
);
5151 _resultobj
= Py_None
;
5158 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5159 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5160 PyObject
* _resultobj
;
5164 wxCoord _arg3
= (wxCoord
) 0;
5165 wxCoord _arg4
= (wxCoord
) 0;
5166 int _arg5
= (int ) wxODDEVEN_RULE
;
5167 PyObject
* _argo0
= 0;
5169 PyObject
* _obj2
= 0;
5170 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
5173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iii:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
5176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5184 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5185 if (_arg2
== NULL
) {
5193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5194 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5196 wxPyEndAllowThreads(__tstate
);
5197 if (PyErr_Occurred()) return NULL
;
5198 } Py_INCREF(Py_None
);
5199 _resultobj
= Py_None
;
5206 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5207 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5208 PyObject
* _resultobj
;
5212 PyObject
* _argo0
= 0;
5213 char *_kwnames
[] = { "self","x","y", NULL
};
5216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
5219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5227 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
5229 wxPyEndAllowThreads(__tstate
);
5230 if (PyErr_Occurred()) return NULL
;
5231 } Py_INCREF(Py_None
);
5232 _resultobj
= Py_None
;
5236 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5237 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5238 PyObject
* _resultobj
;
5244 PyObject
* _argo0
= 0;
5245 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
5248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
5251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5259 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5261 wxPyEndAllowThreads(__tstate
);
5262 if (PyErr_Occurred()) return NULL
;
5263 } Py_INCREF(Py_None
);
5264 _resultobj
= Py_None
;
5268 #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
5269 static PyObject
*_wrap_wxDC_DrawRectangleRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5270 PyObject
* _resultobj
;
5273 PyObject
* _argo0
= 0;
5275 PyObject
* _obj1
= 0;
5276 char *_kwnames
[] = { "self","rect", NULL
};
5279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawRectangleRect",_kwnames
,&_argo0
,&_obj1
))
5282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
5290 if (! wxRect_helper(_obj1
, &_arg1
))
5294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5295 wxDC_DrawRectangleRect(_arg0
,*_arg1
);
5297 wxPyEndAllowThreads(__tstate
);
5298 if (PyErr_Occurred()) return NULL
;
5299 } Py_INCREF(Py_None
);
5300 _resultobj
= Py_None
;
5304 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5305 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5306 PyObject
* _resultobj
;
5312 PyObject
* _argo0
= 0;
5313 PyObject
* _obj1
= 0;
5314 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
5317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
5320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5327 _arg1
= wxString_in_helper(_obj1
);
5332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5333 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
5335 wxPyEndAllowThreads(__tstate
);
5336 if (PyErr_Occurred()) return NULL
;
5337 } Py_INCREF(Py_None
);
5338 _resultobj
= Py_None
;
5346 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5347 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5348 PyObject
* _resultobj
;
5354 wxCoord _arg5
= (wxCoord
) 20;
5355 PyObject
* _argo0
= 0;
5356 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
5359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
5362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5370 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
5372 wxPyEndAllowThreads(__tstate
);
5373 if (PyErr_Occurred()) return NULL
;
5374 } Py_INCREF(Py_None
);
5375 _resultobj
= Py_None
;
5379 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5380 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5381 PyObject
* _resultobj
;
5385 PyObject
* _argo0
= 0;
5387 PyObject
* _obj2
= 0;
5388 char *_kwnames
[] = { "self","points", NULL
};
5391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
5394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5402 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
5403 if (_arg2
== NULL
) {
5411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5412 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
5414 wxPyEndAllowThreads(__tstate
);
5415 if (PyErr_Occurred()) return NULL
;
5416 } Py_INCREF(Py_None
);
5417 _resultobj
= Py_None
;
5424 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5425 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5426 PyObject
* _resultobj
;
5431 PyObject
* _argo0
= 0;
5432 PyObject
* _obj1
= 0;
5433 char *_kwnames
[] = { "self","text","x","y", NULL
};
5436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5446 _arg1
= wxString_in_helper(_obj1
);
5451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5452 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
5454 wxPyEndAllowThreads(__tstate
);
5455 if (PyErr_Occurred()) return NULL
;
5456 } Py_INCREF(Py_None
);
5457 _resultobj
= Py_None
;
5465 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5466 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5467 PyObject
* _resultobj
;
5469 PyObject
* _argo0
= 0;
5470 char *_kwnames
[] = { "self", NULL
};
5473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
5476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5486 wxPyEndAllowThreads(__tstate
);
5487 if (PyErr_Occurred()) return NULL
;
5488 } Py_INCREF(Py_None
);
5489 _resultobj
= Py_None
;
5493 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5494 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5495 PyObject
* _resultobj
;
5497 PyObject
* _argo0
= 0;
5498 char *_kwnames
[] = { "self", NULL
};
5501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
5504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5512 wxDC_EndDrawing(_arg0
);
5514 wxPyEndAllowThreads(__tstate
);
5515 if (PyErr_Occurred()) return NULL
;
5516 } Py_INCREF(Py_None
);
5517 _resultobj
= Py_None
;
5521 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5522 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5523 PyObject
* _resultobj
;
5525 PyObject
* _argo0
= 0;
5526 char *_kwnames
[] = { "self", NULL
};
5529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
5532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5539 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5540 wxDC_EndPage(_arg0
);
5542 wxPyEndAllowThreads(__tstate
);
5543 if (PyErr_Occurred()) return NULL
;
5544 } Py_INCREF(Py_None
);
5545 _resultobj
= Py_None
;
5549 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5550 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5551 PyObject
* _resultobj
;
5557 int _arg4
= (int ) wxFLOOD_SURFACE
;
5558 PyObject
* _argo0
= 0;
5560 PyObject
* _obj3
= 0;
5561 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
5564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
5567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5575 if (! wxColour_helper(_obj3
, &_arg3
))
5579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5580 _result
= (bool )wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
5582 wxPyEndAllowThreads(__tstate
);
5583 if (PyErr_Occurred()) return NULL
;
5584 } _resultobj
= Py_BuildValue("i",_result
);
5588 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5589 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5590 PyObject
* _resultobj
;
5593 PyObject
* _argo0
= 0;
5594 char *_kwnames
[] = { "self", NULL
};
5598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
5601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5609 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
5611 wxPyEndAllowThreads(__tstate
);
5612 if (PyErr_Occurred()) return NULL
;
5613 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5614 _resultobj
= Py_BuildValue("s",_ptemp
);
5618 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5619 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5620 PyObject
* _resultobj
;
5623 PyObject
* _argo0
= 0;
5624 char *_kwnames
[] = { "self", NULL
};
5628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
5631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5639 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
5641 wxPyEndAllowThreads(__tstate
);
5642 if (PyErr_Occurred()) return NULL
;
5643 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
5644 _resultobj
= Py_BuildValue("s",_ptemp
);
5648 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5649 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5650 PyObject
* _resultobj
;
5653 PyObject
* _argo0
= 0;
5654 char *_kwnames
[] = { "self", NULL
};
5657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
5660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5668 _result
= (wxCoord
)wxDC_GetCharHeight(_arg0
);
5670 wxPyEndAllowThreads(__tstate
);
5671 if (PyErr_Occurred()) return NULL
;
5672 } _resultobj
= Py_BuildValue("i",_result
);
5676 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5677 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5678 PyObject
* _resultobj
;
5681 PyObject
* _argo0
= 0;
5682 char *_kwnames
[] = { "self", NULL
};
5685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
5688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5696 _result
= (wxCoord
)wxDC_GetCharWidth(_arg0
);
5698 wxPyEndAllowThreads(__tstate
);
5699 if (PyErr_Occurred()) return NULL
;
5700 } _resultobj
= Py_BuildValue("i",_result
);
5704 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5705 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5706 PyObject
* _resultobj
;
5716 PyObject
* _argo0
= 0;
5717 char *_kwnames
[] = { "self", NULL
};
5732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
5735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5743 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
5745 wxPyEndAllowThreads(__tstate
);
5746 if (PyErr_Occurred()) return NULL
;
5747 } Py_INCREF(Py_None
);
5748 _resultobj
= Py_None
;
5751 o
= PyInt_FromLong((long) (*_arg1
));
5752 _resultobj
= t_output_helper(_resultobj
, o
);
5756 o
= PyInt_FromLong((long) (*_arg2
));
5757 _resultobj
= t_output_helper(_resultobj
, o
);
5761 o
= PyInt_FromLong((long) (*_arg3
));
5762 _resultobj
= t_output_helper(_resultobj
, o
);
5766 o
= PyInt_FromLong((long) (*_arg4
));
5767 _resultobj
= t_output_helper(_resultobj
, o
);
5772 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5773 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5774 PyObject
* _resultobj
;
5777 PyObject
* _argo0
= 0;
5778 char *_kwnames
[] = { "self", NULL
};
5782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
5785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5792 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5793 _result
= new wxFont (wxDC_GetFont(_arg0
));
5795 wxPyEndAllowThreads(__tstate
);
5796 if (PyErr_Occurred()) return NULL
;
5797 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
5798 _resultobj
= Py_BuildValue("s",_ptemp
);
5802 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5803 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5804 PyObject
* _resultobj
;
5807 PyObject
* _argo0
= 0;
5808 char *_kwnames
[] = { "self", NULL
};
5811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
5814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5822 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
5824 wxPyEndAllowThreads(__tstate
);
5825 if (PyErr_Occurred()) return NULL
;
5826 } _resultobj
= Py_BuildValue("i",_result
);
5830 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5831 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5832 PyObject
* _resultobj
;
5838 PyObject
* _argo0
= 0;
5839 char *_kwnames
[] = { "self", NULL
};
5848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
5851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5859 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
5861 wxPyEndAllowThreads(__tstate
);
5862 if (PyErr_Occurred()) return NULL
;
5863 } Py_INCREF(Py_None
);
5864 _resultobj
= Py_None
;
5867 o
= PyFloat_FromDouble((double) (*_arg1
));
5868 _resultobj
= t_output_helper(_resultobj
, o
);
5872 o
= PyFloat_FromDouble((double) (*_arg2
));
5873 _resultobj
= t_output_helper(_resultobj
, o
);
5878 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
5879 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5880 PyObject
* _resultobj
;
5883 PyObject
* _argo0
= 0;
5884 char *_kwnames
[] = { "self", NULL
};
5887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
5890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5898 _result
= (int )wxDC_GetMapMode(_arg0
);
5900 wxPyEndAllowThreads(__tstate
);
5901 if (PyErr_Occurred()) return NULL
;
5902 } _resultobj
= Py_BuildValue("i",_result
);
5906 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
5907 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5908 PyObject
* _resultobj
;
5911 PyObject
* _argo0
= 0;
5912 char *_kwnames
[] = { "self", NULL
};
5915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
5918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5926 _result
= (bool )wxDC_GetOptimization(_arg0
);
5928 wxPyEndAllowThreads(__tstate
);
5929 if (PyErr_Occurred()) return NULL
;
5930 } _resultobj
= Py_BuildValue("i",_result
);
5934 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
5935 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5936 PyObject
* _resultobj
;
5939 PyObject
* _argo0
= 0;
5940 char *_kwnames
[] = { "self", NULL
};
5944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
5947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
5949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5955 _result
= new wxPen (wxDC_GetPen(_arg0
));
5957 wxPyEndAllowThreads(__tstate
);
5958 if (PyErr_Occurred()) return NULL
;
5959 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
5960 _resultobj
= Py_BuildValue("s",_ptemp
);
5964 static wxColour
* wxDC_GetPixel(wxDC
*self
,wxCoord x
,wxCoord y
) {
5965 wxColour
* wc
= new wxColour();
5966 self
->GetPixel(x
, y
, wc
);
5969 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5970 PyObject
* _resultobj
;
5975 PyObject
* _argo0
= 0;
5976 char *_kwnames
[] = { "self","x","y", NULL
};
5980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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_GetPixel. Expected _wxDC_p.");
5990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5991 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
5993 wxPyEndAllowThreads(__tstate
);
5994 if (PyErr_Occurred()) return NULL
;
5996 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
5997 _resultobj
= Py_BuildValue("s",_ptemp
);
6000 _resultobj
= Py_None
;
6005 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6006 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6007 PyObject
* _resultobj
;
6013 PyObject
* _argo0
= 0;
6014 char *_kwnames
[] = { "self", NULL
};
6023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
6026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6034 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
6036 wxPyEndAllowThreads(__tstate
);
6037 if (PyErr_Occurred()) return NULL
;
6038 } Py_INCREF(Py_None
);
6039 _resultobj
= Py_None
;
6042 o
= PyInt_FromLong((long) (*_arg1
));
6043 _resultobj
= t_output_helper(_resultobj
, o
);
6047 o
= PyInt_FromLong((long) (*_arg2
));
6048 _resultobj
= t_output_helper(_resultobj
, o
);
6053 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6054 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6055 PyObject
* _resultobj
;
6058 PyObject
* _argo0
= 0;
6059 char *_kwnames
[] = { "self", NULL
};
6063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
6066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6074 _result
= new wxSize (wxDC_GetSize(_arg0
));
6076 wxPyEndAllowThreads(__tstate
);
6077 if (PyErr_Occurred()) return NULL
;
6078 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6079 _resultobj
= Py_BuildValue("s",_ptemp
);
6083 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6084 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6085 PyObject
* _resultobj
;
6088 PyObject
* _argo0
= 0;
6089 char *_kwnames
[] = { "self", NULL
};
6093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
6096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6104 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
6106 wxPyEndAllowThreads(__tstate
);
6107 if (PyErr_Occurred()) return NULL
;
6108 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
6109 _resultobj
= Py_BuildValue("s",_ptemp
);
6113 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6114 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6115 PyObject
* _resultobj
;
6118 PyObject
* _argo0
= 0;
6119 char *_kwnames
[] = { "self", NULL
};
6123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
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_GetTextBackground. Expected _wxDC_p.");
6133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6134 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
6136 wxPyEndAllowThreads(__tstate
);
6137 if (PyErr_Occurred()) return NULL
;
6138 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6139 _resultobj
= Py_BuildValue("s",_ptemp
);
6143 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6144 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6145 PyObject
* _resultobj
;
6152 PyObject
* _argo0
= 0;
6153 PyObject
* _obj1
= 0;
6154 char *_kwnames
[] = { "self","string", NULL
};
6163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
6166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6173 _arg1
= wxString_in_helper(_obj1
);
6178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6179 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
6181 wxPyEndAllowThreads(__tstate
);
6182 if (PyErr_Occurred()) return NULL
;
6183 } Py_INCREF(Py_None
);
6184 _resultobj
= Py_None
;
6187 o
= PyInt_FromLong((long) (*_arg2
));
6188 _resultobj
= t_output_helper(_resultobj
, o
);
6192 o
= PyInt_FromLong((long) (*_arg3
));
6193 _resultobj
= t_output_helper(_resultobj
, o
);
6202 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6203 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6204 PyObject
* _resultobj
;
6215 wxFont
* _arg6
= (wxFont
*) NULL
;
6216 PyObject
* _argo0
= 0;
6217 PyObject
* _obj1
= 0;
6218 PyObject
* _argo6
= 0;
6219 char *_kwnames
[] = { "self","string","font", NULL
};
6234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
6237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6244 _arg1
= wxString_in_helper(_obj1
);
6249 if (_argo6
== Py_None
) { _arg6
= NULL
; }
6250 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
6251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6257 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6259 wxPyEndAllowThreads(__tstate
);
6260 if (PyErr_Occurred()) return NULL
;
6261 } Py_INCREF(Py_None
);
6262 _resultobj
= Py_None
;
6265 o
= PyInt_FromLong((long) (*_arg2
));
6266 _resultobj
= t_output_helper(_resultobj
, o
);
6270 o
= PyInt_FromLong((long) (*_arg3
));
6271 _resultobj
= t_output_helper(_resultobj
, o
);
6275 o
= PyInt_FromLong((long) (*_arg4
));
6276 _resultobj
= t_output_helper(_resultobj
, o
);
6280 o
= PyInt_FromLong((long) (*_arg5
));
6281 _resultobj
= t_output_helper(_resultobj
, o
);
6290 #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6291 static PyObject
*_wrap_wxDC_GetMultiLineTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6292 PyObject
* _resultobj
;
6301 wxFont
* _arg5
= (wxFont
*) NULL
;
6302 PyObject
* _argo0
= 0;
6303 PyObject
* _obj1
= 0;
6304 PyObject
* _argo5
= 0;
6305 char *_kwnames
[] = { "self","text","font", NULL
};
6317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo5
))
6320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
6327 _arg1
= wxString_in_helper(_obj1
);
6332 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6333 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxFont_p")) {
6334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
6339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6340 wxDC_GetMultiLineTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6342 wxPyEndAllowThreads(__tstate
);
6343 if (PyErr_Occurred()) return NULL
;
6344 } Py_INCREF(Py_None
);
6345 _resultobj
= Py_None
;
6348 o
= PyInt_FromLong((long) (*_arg2
));
6349 _resultobj
= t_output_helper(_resultobj
, o
);
6353 o
= PyInt_FromLong((long) (*_arg3
));
6354 _resultobj
= t_output_helper(_resultobj
, o
);
6358 o
= PyInt_FromLong((long) (*_arg4
));
6359 _resultobj
= t_output_helper(_resultobj
, o
);
6368 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6369 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6370 PyObject
* _resultobj
;
6373 PyObject
* _argo0
= 0;
6374 char *_kwnames
[] = { "self", NULL
};
6378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
6381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6389 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
6391 wxPyEndAllowThreads(__tstate
);
6392 if (PyErr_Occurred()) return NULL
;
6393 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
6394 _resultobj
= Py_BuildValue("s",_ptemp
);
6398 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6399 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6400 PyObject
* _resultobj
;
6406 PyObject
* _argo0
= 0;
6407 char *_kwnames
[] = { "self", NULL
};
6416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
6419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6427 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
6429 wxPyEndAllowThreads(__tstate
);
6430 if (PyErr_Occurred()) return NULL
;
6431 } Py_INCREF(Py_None
);
6432 _resultobj
= Py_None
;
6435 o
= PyFloat_FromDouble((double) (*_arg1
));
6436 _resultobj
= t_output_helper(_resultobj
, o
);
6440 o
= PyFloat_FromDouble((double) (*_arg2
));
6441 _resultobj
= t_output_helper(_resultobj
, o
);
6446 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6447 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6448 PyObject
* _resultobj
;
6452 PyObject
* _argo0
= 0;
6453 char *_kwnames
[] = { "self","x", NULL
};
6456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
6459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6467 _result
= (wxCoord
)wxDC_LogicalToDeviceX(_arg0
,_arg1
);
6469 wxPyEndAllowThreads(__tstate
);
6470 if (PyErr_Occurred()) return NULL
;
6471 } _resultobj
= Py_BuildValue("i",_result
);
6475 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6476 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6477 PyObject
* _resultobj
;
6481 PyObject
* _argo0
= 0;
6482 char *_kwnames
[] = { "self","x", NULL
};
6485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
6488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6496 _result
= (wxCoord
)wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
6498 wxPyEndAllowThreads(__tstate
);
6499 if (PyErr_Occurred()) return NULL
;
6500 } _resultobj
= Py_BuildValue("i",_result
);
6504 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6505 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6506 PyObject
* _resultobj
;
6510 PyObject
* _argo0
= 0;
6511 char *_kwnames
[] = { "self","y", NULL
};
6514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
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_LogicalToDeviceY. Expected _wxDC_p.");
6524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6525 _result
= (wxCoord
)wxDC_LogicalToDeviceY(_arg0
,_arg1
);
6527 wxPyEndAllowThreads(__tstate
);
6528 if (PyErr_Occurred()) return NULL
;
6529 } _resultobj
= Py_BuildValue("i",_result
);
6533 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6534 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6535 PyObject
* _resultobj
;
6539 PyObject
* _argo0
= 0;
6540 char *_kwnames
[] = { "self","y", NULL
};
6543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
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_LogicalToDeviceYRel. Expected _wxDC_p.");
6553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6554 _result
= (wxCoord
)wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
6556 wxPyEndAllowThreads(__tstate
);
6557 if (PyErr_Occurred()) return NULL
;
6558 } _resultobj
= Py_BuildValue("i",_result
);
6562 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6563 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6564 PyObject
* _resultobj
;
6567 PyObject
* _argo0
= 0;
6568 char *_kwnames
[] = { "self", NULL
};
6571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
6574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6582 _result
= (wxCoord
)wxDC_MaxX(_arg0
);
6584 wxPyEndAllowThreads(__tstate
);
6585 if (PyErr_Occurred()) return NULL
;
6586 } _resultobj
= Py_BuildValue("i",_result
);
6590 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6591 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6592 PyObject
* _resultobj
;
6595 PyObject
* _argo0
= 0;
6596 char *_kwnames
[] = { "self", NULL
};
6599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
6602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6610 _result
= (wxCoord
)wxDC_MaxY(_arg0
);
6612 wxPyEndAllowThreads(__tstate
);
6613 if (PyErr_Occurred()) return NULL
;
6614 } _resultobj
= Py_BuildValue("i",_result
);
6618 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6619 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6620 PyObject
* _resultobj
;
6623 PyObject
* _argo0
= 0;
6624 char *_kwnames
[] = { "self", NULL
};
6627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
6630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6638 _result
= (wxCoord
)wxDC_MinX(_arg0
);
6640 wxPyEndAllowThreads(__tstate
);
6641 if (PyErr_Occurred()) return NULL
;
6642 } _resultobj
= Py_BuildValue("i",_result
);
6646 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6647 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6648 PyObject
* _resultobj
;
6651 PyObject
* _argo0
= 0;
6652 char *_kwnames
[] = { "self", NULL
};
6655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
6658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6666 _result
= (wxCoord
)wxDC_MinY(_arg0
);
6668 wxPyEndAllowThreads(__tstate
);
6669 if (PyErr_Occurred()) return NULL
;
6670 } _resultobj
= Py_BuildValue("i",_result
);
6674 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6675 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6676 PyObject
* _resultobj
;
6679 PyObject
* _argo0
= 0;
6680 char *_kwnames
[] = { "self", NULL
};
6683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
6686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6694 _result
= (bool )wxDC_Ok(_arg0
);
6696 wxPyEndAllowThreads(__tstate
);
6697 if (PyErr_Occurred()) return NULL
;
6698 } _resultobj
= Py_BuildValue("i",_result
);
6702 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6703 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6704 PyObject
* _resultobj
;
6708 PyObject
* _argo0
= 0;
6709 char *_kwnames
[] = { "self","x","y", NULL
};
6712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetDeviceOrigin",_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_SetDeviceOrigin. Expected _wxDC_p.");
6722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6723 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
6725 wxPyEndAllowThreads(__tstate
);
6726 if (PyErr_Occurred()) return NULL
;
6727 } Py_INCREF(Py_None
);
6728 _resultobj
= Py_None
;
6732 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6733 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6734 PyObject
* _resultobj
;
6737 PyObject
* _argo0
= 0;
6738 PyObject
* _argo1
= 0;
6739 char *_kwnames
[] = { "self","brush", NULL
};
6742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
6745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6752 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6759 wxDC_SetBackground(_arg0
,*_arg1
);
6761 wxPyEndAllowThreads(__tstate
);
6762 if (PyErr_Occurred()) return NULL
;
6763 } Py_INCREF(Py_None
);
6764 _resultobj
= Py_None
;
6768 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6769 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6770 PyObject
* _resultobj
;
6773 PyObject
* _argo0
= 0;
6774 char *_kwnames
[] = { "self","mode", NULL
};
6777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
6780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6788 wxDC_SetBackgroundMode(_arg0
,_arg1
);
6790 wxPyEndAllowThreads(__tstate
);
6791 if (PyErr_Occurred()) return NULL
;
6792 } Py_INCREF(Py_None
);
6793 _resultobj
= Py_None
;
6797 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6798 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6799 PyObject
* _resultobj
;
6805 PyObject
* _argo0
= 0;
6806 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6820 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6822 wxPyEndAllowThreads(__tstate
);
6823 if (PyErr_Occurred()) return NULL
;
6824 } Py_INCREF(Py_None
);
6825 _resultobj
= Py_None
;
6829 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6830 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6831 PyObject
* _resultobj
;
6834 PyObject
* _argo0
= 0;
6835 PyObject
* _argo1
= 0;
6836 char *_kwnames
[] = { "self","region", NULL
};
6839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
6842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
6849 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
6850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
6855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6856 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
6858 wxPyEndAllowThreads(__tstate
);
6859 if (PyErr_Occurred()) return NULL
;
6860 } Py_INCREF(Py_None
);
6861 _resultobj
= Py_None
;
6865 #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6866 static PyObject
*_wrap_wxDC_SetClippingRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6867 PyObject
* _resultobj
;
6870 PyObject
* _argo0
= 0;
6872 PyObject
* _obj1
= 0;
6873 char *_kwnames
[] = { "self","rect", NULL
};
6876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRect",_kwnames
,&_argo0
,&_obj1
))
6879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
6887 if (! wxRect_helper(_obj1
, &_arg1
))
6891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6892 wxDC_SetClippingRect(_arg0
,*_arg1
);
6894 wxPyEndAllowThreads(__tstate
);
6895 if (PyErr_Occurred()) return NULL
;
6896 } Py_INCREF(Py_None
);
6897 _resultobj
= Py_None
;
6901 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6902 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6903 PyObject
* _resultobj
;
6906 PyObject
* _argo0
= 0;
6907 PyObject
* _argo1
= 0;
6908 char *_kwnames
[] = { "self","colourMap", NULL
};
6911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
6914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6921 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
6922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6928 wxDC_SetPalette(_arg0
,*_arg1
);
6930 wxPyEndAllowThreads(__tstate
);
6931 if (PyErr_Occurred()) return NULL
;
6932 } Py_INCREF(Py_None
);
6933 _resultobj
= Py_None
;
6937 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6938 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6939 PyObject
* _resultobj
;
6942 PyObject
* _argo0
= 0;
6943 PyObject
* _argo1
= 0;
6944 char *_kwnames
[] = { "self","brush", NULL
};
6947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
6950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6957 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6964 wxDC_SetBrush(_arg0
,*_arg1
);
6966 wxPyEndAllowThreads(__tstate
);
6967 if (PyErr_Occurred()) return NULL
;
6968 } Py_INCREF(Py_None
);
6969 _resultobj
= Py_None
;
6973 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6974 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6975 PyObject
* _resultobj
;
6978 PyObject
* _argo0
= 0;
6979 PyObject
* _argo1
= 0;
6980 char *_kwnames
[] = { "self","font", NULL
};
6983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
6986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6993 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
6994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7000 wxDC_SetFont(_arg0
,*_arg1
);
7002 wxPyEndAllowThreads(__tstate
);
7003 if (PyErr_Occurred()) return NULL
;
7004 } Py_INCREF(Py_None
);
7005 _resultobj
= Py_None
;
7009 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7010 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7011 PyObject
* _resultobj
;
7014 PyObject
* _argo0
= 0;
7015 char *_kwnames
[] = { "self","function", NULL
};
7018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
7021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7029 wxDC_SetLogicalFunction(_arg0
,_arg1
);
7031 wxPyEndAllowThreads(__tstate
);
7032 if (PyErr_Occurred()) return NULL
;
7033 } Py_INCREF(Py_None
);
7034 _resultobj
= Py_None
;
7038 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7039 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7040 PyObject
* _resultobj
;
7044 PyObject
* _argo0
= 0;
7045 char *_kwnames
[] = { "self","x","y", NULL
};
7048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7059 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
7061 wxPyEndAllowThreads(__tstate
);
7062 if (PyErr_Occurred()) return NULL
;
7063 } Py_INCREF(Py_None
);
7064 _resultobj
= Py_None
;
7068 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7069 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7070 PyObject
* _resultobj
;
7073 PyObject
* _argo0
= 0;
7074 char *_kwnames
[] = { "self","mode", NULL
};
7077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
7080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7088 wxDC_SetMapMode(_arg0
,_arg1
);
7090 wxPyEndAllowThreads(__tstate
);
7091 if (PyErr_Occurred()) return NULL
;
7092 } Py_INCREF(Py_None
);
7093 _resultobj
= Py_None
;
7097 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7098 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7099 PyObject
* _resultobj
;
7102 PyObject
* _argo0
= 0;
7104 char *_kwnames
[] = { "self","optimize", NULL
};
7107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
7110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7116 _arg1
= (bool ) tempbool1
;
7118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7119 wxDC_SetOptimization(_arg0
,_arg1
);
7121 wxPyEndAllowThreads(__tstate
);
7122 if (PyErr_Occurred()) return NULL
;
7123 } Py_INCREF(Py_None
);
7124 _resultobj
= Py_None
;
7128 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7129 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7130 PyObject
* _resultobj
;
7133 PyObject
* _argo0
= 0;
7134 PyObject
* _argo1
= 0;
7135 char *_kwnames
[] = { "self","pen", NULL
};
7138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
7141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7148 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
7149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7155 wxDC_SetPen(_arg0
,*_arg1
);
7157 wxPyEndAllowThreads(__tstate
);
7158 if (PyErr_Occurred()) return NULL
;
7159 } Py_INCREF(Py_None
);
7160 _resultobj
= Py_None
;
7164 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7165 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7166 PyObject
* _resultobj
;
7169 PyObject
* _argo0
= 0;
7171 PyObject
* _obj1
= 0;
7172 char *_kwnames
[] = { "self","colour", NULL
};
7175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
7178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7186 if (! wxColour_helper(_obj1
, &_arg1
))
7190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7191 wxDC_SetTextBackground(_arg0
,*_arg1
);
7193 wxPyEndAllowThreads(__tstate
);
7194 if (PyErr_Occurred()) return NULL
;
7195 } Py_INCREF(Py_None
);
7196 _resultobj
= Py_None
;
7200 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7201 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7202 PyObject
* _resultobj
;
7205 PyObject
* _argo0
= 0;
7207 PyObject
* _obj1
= 0;
7208 char *_kwnames
[] = { "self","colour", NULL
};
7211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
7214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7222 if (! wxColour_helper(_obj1
, &_arg1
))
7226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7227 wxDC_SetTextForeground(_arg0
,*_arg1
);
7229 wxPyEndAllowThreads(__tstate
);
7230 if (PyErr_Occurred()) return NULL
;
7231 } Py_INCREF(Py_None
);
7232 _resultobj
= Py_None
;
7236 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7237 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7238 PyObject
* _resultobj
;
7242 PyObject
* _argo0
= 0;
7243 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
7246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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_SetUserScale. Expected _wxDC_p.");
7256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7257 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
7259 wxPyEndAllowThreads(__tstate
);
7260 if (PyErr_Occurred()) return NULL
;
7261 } Py_INCREF(Py_None
);
7262 _resultobj
= Py_None
;
7266 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7267 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7268 PyObject
* _resultobj
;
7272 PyObject
* _argo0
= 0;
7273 PyObject
* _obj1
= 0;
7274 char *_kwnames
[] = { "self","message", NULL
};
7277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
7280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7287 _arg1
= wxString_in_helper(_obj1
);
7292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7293 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
7295 wxPyEndAllowThreads(__tstate
);
7296 if (PyErr_Occurred()) return NULL
;
7297 } _resultobj
= Py_BuildValue("i",_result
);
7305 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7306 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7307 PyObject
* _resultobj
;
7309 PyObject
* _argo0
= 0;
7310 char *_kwnames
[] = { "self", NULL
};
7313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
7316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7324 wxDC_StartPage(_arg0
);
7326 wxPyEndAllowThreads(__tstate
);
7327 if (PyErr_Occurred()) return NULL
;
7328 } Py_INCREF(Py_None
);
7329 _resultobj
= Py_None
;
7333 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7334 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7335 PyObject
* _resultobj
;
7340 int _arg4
= (int ) FALSE
;
7341 PyObject
* _argo0
= 0;
7342 PyObject
* _argo1
= 0;
7343 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
7346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
7349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7356 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
7357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7363 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7365 wxPyEndAllowThreads(__tstate
);
7366 if (PyErr_Occurred()) return NULL
;
7367 } Py_INCREF(Py_None
);
7368 _resultobj
= Py_None
;
7372 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7373 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7374 PyObject
* _resultobj
;
7377 PyObject
* _argo0
= 0;
7378 char *_kwnames
[] = { "self", NULL
};
7381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
7384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7392 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
7394 wxPyEndAllowThreads(__tstate
);
7395 if (PyErr_Occurred()) return NULL
;
7396 } _resultobj
= Py_BuildValue("i",_result
);
7400 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7401 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7402 PyObject
* _resultobj
;
7405 PyObject
* _argo0
= 0;
7406 char *_kwnames
[] = { "self", NULL
};
7409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
7412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7420 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
7422 wxPyEndAllowThreads(__tstate
);
7423 if (PyErr_Occurred()) return NULL
;
7424 } _resultobj
= Py_BuildValue("i",_result
);
7428 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7429 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7430 PyObject
* _resultobj
;
7433 PyObject
* _argo0
= 0;
7434 char *_kwnames
[] = { "self", NULL
};
7437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
7440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7448 _result
= (int )wxDC_GetDepth(_arg0
);
7450 wxPyEndAllowThreads(__tstate
);
7451 if (PyErr_Occurred()) return NULL
;
7452 } _resultobj
= Py_BuildValue("i",_result
);
7456 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7457 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7458 PyObject
* _resultobj
;
7461 PyObject
* _argo0
= 0;
7462 char *_kwnames
[] = { "self", NULL
};
7466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
7469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7477 _result
= new wxSize (wxDC_GetPPI(_arg0
));
7479 wxPyEndAllowThreads(__tstate
);
7480 if (PyErr_Occurred()) return NULL
;
7481 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7482 _resultobj
= Py_BuildValue("s",_ptemp
);
7486 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7487 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7488 PyObject
* _resultobj
;
7494 PyObject
* _argo0
= 0;
7495 char *_kwnames
[] = { "self", NULL
};
7504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
7507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7515 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7517 wxPyEndAllowThreads(__tstate
);
7518 if (PyErr_Occurred()) return NULL
;
7519 } Py_INCREF(Py_None
);
7520 _resultobj
= Py_None
;
7523 o
= PyInt_FromLong((long) (*_arg1
));
7524 _resultobj
= t_output_helper(_resultobj
, o
);
7528 o
= PyInt_FromLong((long) (*_arg2
));
7529 _resultobj
= t_output_helper(_resultobj
, o
);
7534 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7535 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7536 PyObject
* _resultobj
;
7540 PyObject
* _argo0
= 0;
7541 char *_kwnames
[] = { "self","x","y", NULL
};
7544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7555 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
7557 wxPyEndAllowThreads(__tstate
);
7558 if (PyErr_Occurred()) return NULL
;
7559 } Py_INCREF(Py_None
);
7560 _resultobj
= Py_None
;
7564 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7565 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7566 PyObject
* _resultobj
;
7572 PyObject
* _argo0
= 0;
7573 char *_kwnames
[] = { "self", NULL
};
7582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
7585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7593 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
7595 wxPyEndAllowThreads(__tstate
);
7596 if (PyErr_Occurred()) return NULL
;
7597 } Py_INCREF(Py_None
);
7598 _resultobj
= Py_None
;
7601 o
= PyInt_FromLong((long) (*_arg1
));
7602 _resultobj
= t_output_helper(_resultobj
, o
);
7606 o
= PyInt_FromLong((long) (*_arg2
));
7607 _resultobj
= t_output_helper(_resultobj
, o
);
7612 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7613 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7614 PyObject
* _resultobj
;
7618 PyObject
* _argo0
= 0;
7621 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
7624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
7627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7633 _arg1
= (bool ) tempbool1
;
7634 _arg2
= (bool ) tempbool2
;
7636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7637 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
7639 wxPyEndAllowThreads(__tstate
);
7640 if (PyErr_Occurred()) return NULL
;
7641 } Py_INCREF(Py_None
);
7642 _resultobj
= Py_None
;
7646 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7647 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7648 PyObject
* _resultobj
;
7652 PyObject
* _argo0
= 0;
7653 char *_kwnames
[] = { "self","x","y", NULL
};
7656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7667 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
7669 wxPyEndAllowThreads(__tstate
);
7670 if (PyErr_Occurred()) return NULL
;
7671 } Py_INCREF(Py_None
);
7672 _resultobj
= Py_None
;
7676 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7677 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7678 PyObject
* _resultobj
;
7680 PyObject
* _argo0
= 0;
7681 char *_kwnames
[] = { "self", NULL
};
7684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
7687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7695 wxDC_ResetBoundingBox(_arg0
);
7697 wxPyEndAllowThreads(__tstate
);
7698 if (PyErr_Occurred()) return NULL
;
7699 } Py_INCREF(Py_None
);
7700 _resultobj
= Py_None
;
7704 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7705 PyObject
* _resultobj
;
7715 PyObject
* _argo0
= 0;
7716 char *_kwnames
[] = { "self", NULL
};
7731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
7734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
7741 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7742 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7744 wxPyEndAllowThreads(__tstate
);
7745 if (PyErr_Occurred()) return NULL
;
7746 } Py_INCREF(Py_None
);
7747 _resultobj
= Py_None
;
7750 o
= PyInt_FromLong((long) (*_arg1
));
7751 _resultobj
= t_output_helper(_resultobj
, o
);
7755 o
= PyInt_FromLong((long) (*_arg2
));
7756 _resultobj
= t_output_helper(_resultobj
, o
);
7760 o
= PyInt_FromLong((long) (*_arg3
));
7761 _resultobj
= t_output_helper(_resultobj
, o
);
7765 o
= PyInt_FromLong((long) (*_arg4
));
7766 _resultobj
= t_output_helper(_resultobj
, o
);
7771 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
7772 return wxPyDrawXXXList(*self
, wxPyDrawXXXPoint
, pyCoords
, pyPens
, pyBrushes
);
7774 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7775 PyObject
* _resultobj
;
7781 PyObject
* _argo0
= 0;
7782 PyObject
* _obj1
= 0;
7783 PyObject
* _obj2
= 0;
7784 PyObject
* _obj3
= 0;
7785 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
7788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
7791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
7807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7808 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
,_arg3
);
7810 wxPyEndAllowThreads(__tstate
);
7811 if (PyErr_Occurred()) return NULL
;
7813 _resultobj
= _result
;
7818 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
7819 return wxPyDrawXXXList(*self
, wxPyDrawXXXLine
, pyCoords
, pyPens
, pyBrushes
);
7821 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7822 PyObject
* _resultobj
;
7828 PyObject
* _argo0
= 0;
7829 PyObject
* _obj1
= 0;
7830 PyObject
* _obj2
= 0;
7831 PyObject
* _obj3
= 0;
7832 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
7835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
7838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
7854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7855 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
,_arg3
);
7857 wxPyEndAllowThreads(__tstate
);
7858 if (PyErr_Occurred()) return NULL
;
7860 _resultobj
= _result
;
7865 static PyObject
* wxDC__DrawRectangleList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
7866 return wxPyDrawXXXList(*self
, wxPyDrawXXXRectangle
, pyCoords
, pyPens
, pyBrushes
);
7868 static PyObject
*_wrap_wxDC__DrawRectangleList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7869 PyObject
* _resultobj
;
7875 PyObject
* _argo0
= 0;
7876 PyObject
* _obj1
= 0;
7877 PyObject
* _obj2
= 0;
7878 PyObject
* _obj3
= 0;
7879 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
7882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawRectangleList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
7885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
7901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7902 _result
= (PyObject
*)wxDC__DrawRectangleList(_arg0
,_arg1
,_arg2
,_arg3
);
7904 wxPyEndAllowThreads(__tstate
);
7905 if (PyErr_Occurred()) return NULL
;
7907 _resultobj
= _result
;
7912 static PyObject
* wxDC__DrawEllipseList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
7913 return wxPyDrawXXXList(*self
, wxPyDrawXXXEllipse
, pyCoords
, pyPens
, pyBrushes
);
7915 static PyObject
*_wrap_wxDC__DrawEllipseList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7916 PyObject
* _resultobj
;
7922 PyObject
* _argo0
= 0;
7923 PyObject
* _obj1
= 0;
7924 PyObject
* _obj2
= 0;
7925 PyObject
* _obj3
= 0;
7926 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
7929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawEllipseList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
7932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
7948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7949 _result
= (PyObject
*)wxDC__DrawEllipseList(_arg0
,_arg1
,_arg2
,_arg3
);
7951 wxPyEndAllowThreads(__tstate
);
7952 if (PyErr_Occurred()) return NULL
;
7954 _resultobj
= _result
;
7959 static PyObject
* wxDC__DrawPolygonList(wxDC
*self
,PyObject
* pyCoords
,PyObject
* pyPens
,PyObject
* pyBrushes
) {
7960 return wxPyDrawXXXList(*self
, wxPyDrawXXXPolygon
, pyCoords
, pyPens
, pyBrushes
);
7962 static PyObject
*_wrap_wxDC__DrawPolygonList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7963 PyObject
* _resultobj
;
7969 PyObject
* _argo0
= 0;
7970 PyObject
* _obj1
= 0;
7971 PyObject
* _obj2
= 0;
7972 PyObject
* _obj3
= 0;
7973 char *_kwnames
[] = { "self","pyCoords","pyPens","pyBrushes", NULL
};
7976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxDC__DrawPolygonList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
))
7979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
7995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7996 _result
= (PyObject
*)wxDC__DrawPolygonList(_arg0
,_arg1
,_arg2
,_arg3
);
7998 wxPyEndAllowThreads(__tstate
);
7999 if (PyErr_Occurred()) return NULL
;
8001 _resultobj
= _result
;
8006 static PyObject
* wxDC__DrawTextList(wxDC
*self
,PyObject
* textList
,PyObject
* pyPoints
,PyObject
* foregroundList
,PyObject
* backgroundList
) {
8007 return wxPyDrawTextList(*self
, textList
, pyPoints
, foregroundList
, backgroundList
);
8009 static PyObject
*_wrap_wxDC__DrawTextList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8010 PyObject
* _resultobj
;
8017 PyObject
* _argo0
= 0;
8018 PyObject
* _obj1
= 0;
8019 PyObject
* _obj2
= 0;
8020 PyObject
* _obj3
= 0;
8021 PyObject
* _obj4
= 0;
8022 char *_kwnames
[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL
};
8025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:wxDC__DrawTextList",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_obj3
,&_obj4
))
8028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
8047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8048 _result
= (PyObject
*)wxDC__DrawTextList(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8050 wxPyEndAllowThreads(__tstate
);
8051 if (PyErr_Occurred()) return NULL
;
8053 _resultobj
= _result
;
8058 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
8061 src
= (wxMemoryDC
*) ptr
;
8062 dest
= (wxDC
*) src
;
8063 return (void *) dest
;
8066 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
8069 src
= (wxMemoryDC
*) ptr
;
8070 dest
= (wxObject
*) src
;
8071 return (void *) dest
;
8074 #define new_wxMemoryDC() (new wxMemoryDC())
8075 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8076 PyObject
* _resultobj
;
8077 wxMemoryDC
* _result
;
8078 char *_kwnames
[] = { NULL
};
8082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
8085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8086 _result
= (wxMemoryDC
*)new_wxMemoryDC();
8088 wxPyEndAllowThreads(__tstate
);
8089 if (PyErr_Occurred()) return NULL
;
8091 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
8092 _resultobj
= Py_BuildValue("s",_ptemp
);
8095 _resultobj
= Py_None
;
8100 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8101 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8102 PyObject
* _resultobj
;
8105 PyObject
* _argo0
= 0;
8106 PyObject
* _argo1
= 0;
8107 char *_kwnames
[] = { "self","bitmap", NULL
};
8110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
8113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
8115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8120 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8127 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
8129 wxPyEndAllowThreads(__tstate
);
8130 if (PyErr_Occurred()) return NULL
;
8131 } Py_INCREF(Py_None
);
8132 _resultobj
= Py_None
;
8136 static void *SwigwxBufferedDCTowxMemoryDC(void *ptr
) {
8139 src
= (wxBufferedDC
*) ptr
;
8140 dest
= (wxMemoryDC
*) src
;
8141 return (void *) dest
;
8144 static void *SwigwxBufferedDCTowxDC(void *ptr
) {
8147 src
= (wxBufferedDC
*) ptr
;
8148 dest
= (wxDC
*) src
;
8149 return (void *) dest
;
8152 static void *SwigwxBufferedDCTowxObject(void *ptr
) {
8155 src
= (wxBufferedDC
*) ptr
;
8156 dest
= (wxObject
*) src
;
8157 return (void *) dest
;
8160 #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8161 static PyObject
*_wrap_new_wxBufferedDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8162 PyObject
* _resultobj
;
8163 wxBufferedDC
* _result
;
8166 PyObject
* _argo0
= 0;
8167 PyObject
* _argo1
= 0;
8168 char *_kwnames
[] = { "dc","buffer", NULL
};
8172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDC",_kwnames
,&_argo0
,&_argo1
))
8175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
8182 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
8188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8189 _result
= (wxBufferedDC
*)new_wxBufferedDC(_arg0
,*_arg1
);
8191 wxPyEndAllowThreads(__tstate
);
8192 if (PyErr_Occurred()) return NULL
;
8194 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8195 _resultobj
= Py_BuildValue("s",_ptemp
);
8198 _resultobj
= Py_None
;
8203 #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8204 static PyObject
*_wrap_new_wxBufferedDCInternalBuffer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8205 PyObject
* _resultobj
;
8206 wxBufferedDC
* _result
;
8209 PyObject
* _argo0
= 0;
8211 PyObject
* _obj1
= 0;
8212 char *_kwnames
[] = { "dc","area", NULL
};
8216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:new_wxBufferedDCInternalBuffer",_kwnames
,&_argo0
,&_obj1
))
8219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8227 if (! wxSize_helper(_obj1
, &_arg1
))
8231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8232 _result
= (wxBufferedDC
*)new_wxBufferedDCInternalBuffer(_arg0
,*_arg1
);
8234 wxPyEndAllowThreads(__tstate
);
8235 if (PyErr_Occurred()) return NULL
;
8237 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedDC_p");
8238 _resultobj
= Py_BuildValue("s",_ptemp
);
8241 _resultobj
= Py_None
;
8246 #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
8247 static PyObject
*_wrap_wxBufferedDC_UnMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8248 PyObject
* _resultobj
;
8249 wxBufferedDC
* _arg0
;
8250 PyObject
* _argo0
= 0;
8251 char *_kwnames
[] = { "self", NULL
};
8254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBufferedDC_UnMask",_kwnames
,&_argo0
))
8257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBufferedDC_p")) {
8259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
8264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8265 wxBufferedDC_UnMask(_arg0
);
8267 wxPyEndAllowThreads(__tstate
);
8268 if (PyErr_Occurred()) return NULL
;
8269 } Py_INCREF(Py_None
);
8270 _resultobj
= Py_None
;
8274 static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr
) {
8275 wxBufferedPaintDC
*src
;
8277 src
= (wxBufferedPaintDC
*) ptr
;
8278 dest
= (wxBufferedDC
*) src
;
8279 return (void *) dest
;
8282 static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr
) {
8283 wxBufferedPaintDC
*src
;
8285 src
= (wxBufferedPaintDC
*) ptr
;
8286 dest
= (wxMemoryDC
*) src
;
8287 return (void *) dest
;
8290 static void *SwigwxBufferedPaintDCTowxDC(void *ptr
) {
8291 wxBufferedPaintDC
*src
;
8293 src
= (wxBufferedPaintDC
*) ptr
;
8294 dest
= (wxDC
*) src
;
8295 return (void *) dest
;
8298 static void *SwigwxBufferedPaintDCTowxObject(void *ptr
) {
8299 wxBufferedPaintDC
*src
;
8301 src
= (wxBufferedPaintDC
*) ptr
;
8302 dest
= (wxObject
*) src
;
8303 return (void *) dest
;
8306 #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
8307 static PyObject
*_wrap_new_wxBufferedPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8308 PyObject
* _resultobj
;
8309 wxBufferedPaintDC
* _result
;
8311 wxBitmap
* _arg1
= (wxBitmap
*) &wxNullBitmap
;
8312 PyObject
* _argo0
= 0;
8313 PyObject
* _argo1
= 0;
8314 char *_kwnames
[] = { "window","buffer", NULL
};
8318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxBufferedPaintDC",_kwnames
,&_argo0
,&_argo1
))
8321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8328 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8335 _result
= (wxBufferedPaintDC
*)new_wxBufferedPaintDC(_arg0
,*_arg1
);
8337 wxPyEndAllowThreads(__tstate
);
8338 if (PyErr_Occurred()) return NULL
;
8340 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBufferedPaintDC_p");
8341 _resultobj
= Py_BuildValue("s",_ptemp
);
8344 _resultobj
= Py_None
;
8349 static void *SwigwxScreenDCTowxDC(void *ptr
) {
8352 src
= (wxScreenDC
*) ptr
;
8353 dest
= (wxDC
*) src
;
8354 return (void *) dest
;
8357 static void *SwigwxScreenDCTowxObject(void *ptr
) {
8360 src
= (wxScreenDC
*) ptr
;
8361 dest
= (wxObject
*) src
;
8362 return (void *) dest
;
8365 #define new_wxScreenDC() (new wxScreenDC())
8366 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8367 PyObject
* _resultobj
;
8368 wxScreenDC
* _result
;
8369 char *_kwnames
[] = { NULL
};
8373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
8376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8377 _result
= (wxScreenDC
*)new_wxScreenDC();
8379 wxPyEndAllowThreads(__tstate
);
8380 if (PyErr_Occurred()) return NULL
;
8382 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
8383 _resultobj
= Py_BuildValue("s",_ptemp
);
8386 _resultobj
= Py_None
;
8391 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8392 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8393 PyObject
* _resultobj
;
8397 PyObject
* _argo0
= 0;
8398 PyObject
* _argo1
= 0;
8399 char *_kwnames
[] = { "self","window", NULL
};
8402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
8405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8412 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8413 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8420 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
8422 wxPyEndAllowThreads(__tstate
);
8423 if (PyErr_Occurred()) return NULL
;
8424 } _resultobj
= Py_BuildValue("i",_result
);
8428 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8429 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8430 PyObject
* _resultobj
;
8433 wxRect
* _arg1
= (wxRect
*) NULL
;
8434 PyObject
* _argo0
= 0;
8436 PyObject
* _obj1
= 0;
8437 char *_kwnames
[] = { "self","rect", NULL
};
8440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
8443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8452 if (! wxRect_helper(_obj1
, &_arg1
))
8456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8457 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
8459 wxPyEndAllowThreads(__tstate
);
8460 if (PyErr_Occurred()) return NULL
;
8461 } _resultobj
= Py_BuildValue("i",_result
);
8465 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8466 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8467 PyObject
* _resultobj
;
8470 PyObject
* _argo0
= 0;
8471 char *_kwnames
[] = { "self", NULL
};
8474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
8477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
8479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8485 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
8487 wxPyEndAllowThreads(__tstate
);
8488 if (PyErr_Occurred()) return NULL
;
8489 } _resultobj
= Py_BuildValue("i",_result
);
8493 static void *SwigwxClientDCTowxDC(void *ptr
) {
8496 src
= (wxClientDC
*) ptr
;
8497 dest
= (wxDC
*) src
;
8498 return (void *) dest
;
8501 static void *SwigwxClientDCTowxObject(void *ptr
) {
8504 src
= (wxClientDC
*) ptr
;
8505 dest
= (wxObject
*) src
;
8506 return (void *) dest
;
8509 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8510 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8511 PyObject
* _resultobj
;
8512 wxClientDC
* _result
;
8514 PyObject
* _argo0
= 0;
8515 char *_kwnames
[] = { "win", NULL
};
8519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
8522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8530 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
8532 wxPyEndAllowThreads(__tstate
);
8533 if (PyErr_Occurred()) return NULL
;
8535 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
8536 _resultobj
= Py_BuildValue("s",_ptemp
);
8539 _resultobj
= Py_None
;
8544 static void *SwigwxPaintDCTowxDC(void *ptr
) {
8547 src
= (wxPaintDC
*) ptr
;
8548 dest
= (wxDC
*) src
;
8549 return (void *) dest
;
8552 static void *SwigwxPaintDCTowxObject(void *ptr
) {
8555 src
= (wxPaintDC
*) ptr
;
8556 dest
= (wxObject
*) src
;
8557 return (void *) dest
;
8560 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8561 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8562 PyObject
* _resultobj
;
8563 wxPaintDC
* _result
;
8565 PyObject
* _argo0
= 0;
8566 char *_kwnames
[] = { "win", NULL
};
8570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
8573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8581 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
8583 wxPyEndAllowThreads(__tstate
);
8584 if (PyErr_Occurred()) return NULL
;
8586 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
8587 _resultobj
= Py_BuildValue("s",_ptemp
);
8590 _resultobj
= Py_None
;
8595 static void *SwigwxWindowDCTowxDC(void *ptr
) {
8598 src
= (wxWindowDC
*) ptr
;
8599 dest
= (wxDC
*) src
;
8600 return (void *) dest
;
8603 static void *SwigwxWindowDCTowxObject(void *ptr
) {
8606 src
= (wxWindowDC
*) ptr
;
8607 dest
= (wxObject
*) src
;
8608 return (void *) dest
;
8611 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8612 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8613 PyObject
* _resultobj
;
8614 wxWindowDC
* _result
;
8616 PyObject
* _argo0
= 0;
8617 char *_kwnames
[] = { "win", NULL
};
8621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
8624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
8626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8632 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
8634 wxPyEndAllowThreads(__tstate
);
8635 if (PyErr_Occurred()) return NULL
;
8637 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
8638 _resultobj
= Py_BuildValue("s",_ptemp
);
8641 _resultobj
= Py_None
;
8646 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
8649 src
= (wxPalette
*) ptr
;
8650 dest
= (wxGDIObject
*) src
;
8651 return (void *) dest
;
8654 static void *SwigwxPaletteTowxObject(void *ptr
) {
8657 src
= (wxPalette
*) ptr
;
8658 dest
= (wxObject
*) src
;
8659 return (void *) dest
;
8662 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8663 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8664 PyObject
* _resultobj
;
8665 wxPalette
* _result
;
8670 PyObject
* _obj1
= 0;
8671 PyObject
* _obj2
= 0;
8672 PyObject
* _obj3
= 0;
8673 char *_kwnames
[] = { "choices","choices","choices", NULL
};
8677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
8680 _arg1
= byte_LIST_helper(_obj1
);
8681 if (_arg1
== NULL
) {
8686 _arg2
= byte_LIST_helper(_obj2
);
8687 if (_arg2
== NULL
) {
8693 _arg3
= byte_LIST_helper(_obj3
);
8694 if (_arg3
== NULL
) {
8700 _arg0
= PyList_Size(_obj1
);
8707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8708 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
8710 wxPyEndAllowThreads(__tstate
);
8711 if (PyErr_Occurred()) return NULL
;
8713 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
8714 _resultobj
= Py_BuildValue("s",_ptemp
);
8717 _resultobj
= Py_None
;
8731 #define delete_wxPalette(_swigobj) (delete _swigobj)
8732 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8733 PyObject
* _resultobj
;
8735 PyObject
* _argo0
= 0;
8736 char *_kwnames
[] = { "self", NULL
};
8739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
8742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8749 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8750 delete_wxPalette(_arg0
);
8752 wxPyEndAllowThreads(__tstate
);
8753 if (PyErr_Occurred()) return NULL
;
8754 } Py_INCREF(Py_None
);
8755 _resultobj
= Py_None
;
8759 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8760 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8761 PyObject
* _resultobj
;
8767 PyObject
* _argo0
= 0;
8768 char *_kwnames
[] = { "self","red","green","blue", NULL
};
8771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
8774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8782 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
8784 wxPyEndAllowThreads(__tstate
);
8785 if (PyErr_Occurred()) return NULL
;
8786 } _resultobj
= Py_BuildValue("i",_result
);
8790 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8791 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8792 PyObject
* _resultobj
;
8802 PyObject
* _argo0
= 0;
8803 char *_kwnames
[] = { "self","pixel", NULL
};
8807 _arg2
= (byte
*)&temp
;
8810 _arg3
= (byte
*)&temp0
;
8813 _arg4
= (byte
*)&temp1
;
8815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
8818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8826 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8828 wxPyEndAllowThreads(__tstate
);
8829 if (PyErr_Occurred()) return NULL
;
8830 } _resultobj
= Py_BuildValue("i",_result
);
8833 o
= PyInt_FromLong((long) (*_arg2
));
8834 _resultobj
= t_output_helper(_resultobj
, o
);
8838 o
= PyInt_FromLong((long) (*_arg3
));
8839 _resultobj
= t_output_helper(_resultobj
, o
);
8843 o
= PyInt_FromLong((long) (*_arg4
));
8844 _resultobj
= t_output_helper(_resultobj
, o
);
8849 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8850 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8851 PyObject
* _resultobj
;
8854 PyObject
* _argo0
= 0;
8855 char *_kwnames
[] = { "self", NULL
};
8858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
8861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
8863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8868 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8869 _result
= (bool )wxPalette_Ok(_arg0
);
8871 wxPyEndAllowThreads(__tstate
);
8872 if (PyErr_Occurred()) return NULL
;
8873 } _resultobj
= Py_BuildValue("i",_result
);
8877 static void *SwigwxImageListTowxObject(void *ptr
) {
8880 src
= (wxImageList
*) ptr
;
8881 dest
= (wxObject
*) src
;
8882 return (void *) dest
;
8885 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8886 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8887 PyObject
* _resultobj
;
8888 wxImageList
* _result
;
8891 int _arg2
= (int ) TRUE
;
8892 int _arg3
= (int ) 1;
8893 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
8897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
8900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8901 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
8903 wxPyEndAllowThreads(__tstate
);
8904 if (PyErr_Occurred()) return NULL
;
8906 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
8907 _resultobj
= Py_BuildValue("s",_ptemp
);
8910 _resultobj
= Py_None
;
8915 #define delete_wxImageList(_swigobj) (delete _swigobj)
8916 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8917 PyObject
* _resultobj
;
8918 wxImageList
* _arg0
;
8919 PyObject
* _argo0
= 0;
8920 char *_kwnames
[] = { "self", NULL
};
8923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
8926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8934 delete_wxImageList(_arg0
);
8936 wxPyEndAllowThreads(__tstate
);
8937 if (PyErr_Occurred()) return NULL
;
8938 } Py_INCREF(Py_None
);
8939 _resultobj
= Py_None
;
8943 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8944 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8945 PyObject
* _resultobj
;
8947 wxImageList
* _arg0
;
8949 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
8950 PyObject
* _argo0
= 0;
8951 PyObject
* _argo1
= 0;
8952 PyObject
* _argo2
= 0;
8953 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
8956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
8959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
8961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8966 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
8967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8972 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
8973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8979 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
8981 wxPyEndAllowThreads(__tstate
);
8982 if (PyErr_Occurred()) return NULL
;
8983 } _resultobj
= Py_BuildValue("i",_result
);
8987 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8988 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8989 PyObject
* _resultobj
;
8991 wxImageList
* _arg0
;
8994 PyObject
* _argo0
= 0;
8995 PyObject
* _argo1
= 0;
8997 PyObject
* _obj2
= 0;
8998 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
9001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
9004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9011 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9018 if (! wxColour_helper(_obj2
, &_arg2
))
9022 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9023 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
9025 wxPyEndAllowThreads(__tstate
);
9026 if (PyErr_Occurred()) return NULL
;
9027 } _resultobj
= Py_BuildValue("i",_result
);
9031 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9032 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9033 PyObject
* _resultobj
;
9035 wxImageList
* _arg0
;
9037 PyObject
* _argo0
= 0;
9038 PyObject
* _argo1
= 0;
9039 char *_kwnames
[] = { "self","icon", NULL
};
9042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
9045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9052 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
9053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9059 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
9061 wxPyEndAllowThreads(__tstate
);
9062 if (PyErr_Occurred()) return NULL
;
9063 } _resultobj
= Py_BuildValue("i",_result
);
9067 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
9068 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9069 PyObject
* _resultobj
;
9071 wxImageList
* _arg0
;
9074 PyObject
* _argo0
= 0;
9075 PyObject
* _argo2
= 0;
9076 char *_kwnames
[] = { "self","index","bitmap", NULL
};
9079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
9082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9089 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
9090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9096 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
9098 wxPyEndAllowThreads(__tstate
);
9099 if (PyErr_Occurred()) return NULL
;
9100 } _resultobj
= Py_BuildValue("i",_result
);
9104 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9105 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9106 PyObject
* _resultobj
;
9108 wxImageList
* _arg0
;
9113 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
9114 bool _arg6
= (bool ) FALSE
;
9115 PyObject
* _argo0
= 0;
9116 PyObject
* _argo2
= 0;
9117 int tempbool6
= (int) FALSE
;
9118 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
9121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
9124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9131 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
9132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9136 _arg6
= (bool ) tempbool6
;
9138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9139 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
9141 wxPyEndAllowThreads(__tstate
);
9142 if (PyErr_Occurred()) return NULL
;
9143 } _resultobj
= Py_BuildValue("i",_result
);
9147 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9148 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9149 PyObject
* _resultobj
;
9151 wxImageList
* _arg0
;
9152 PyObject
* _argo0
= 0;
9153 char *_kwnames
[] = { "self", NULL
};
9156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
9159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9167 _result
= (int )wxImageList_GetImageCount(_arg0
);
9169 wxPyEndAllowThreads(__tstate
);
9170 if (PyErr_Occurred()) return NULL
;
9171 } _resultobj
= Py_BuildValue("i",_result
);
9175 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9176 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9177 PyObject
* _resultobj
;
9179 wxImageList
* _arg0
;
9181 PyObject
* _argo0
= 0;
9182 char *_kwnames
[] = { "self","index", NULL
};
9185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
9188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9196 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
9198 wxPyEndAllowThreads(__tstate
);
9199 if (PyErr_Occurred()) return NULL
;
9200 } _resultobj
= Py_BuildValue("i",_result
);
9204 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9205 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9206 PyObject
* _resultobj
;
9208 wxImageList
* _arg0
;
9209 PyObject
* _argo0
= 0;
9210 char *_kwnames
[] = { "self", NULL
};
9213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
9216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9224 _result
= (bool )wxImageList_RemoveAll(_arg0
);
9226 wxPyEndAllowThreads(__tstate
);
9227 if (PyErr_Occurred()) return NULL
;
9228 } _resultobj
= Py_BuildValue("i",_result
);
9232 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9233 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9234 PyObject
* _resultobj
;
9235 wxImageList
* _arg0
;
9241 PyObject
* _argo0
= 0;
9242 char *_kwnames
[] = { "self","index", NULL
};
9251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
9254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
9256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9262 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
9264 wxPyEndAllowThreads(__tstate
);
9265 if (PyErr_Occurred()) return NULL
;
9266 } Py_INCREF(Py_None
);
9267 _resultobj
= Py_None
;
9270 o
= PyInt_FromLong((long) (*_arg2
));
9271 _resultobj
= t_output_helper(_resultobj
, o
);
9275 o
= PyInt_FromLong((long) (*_arg3
));
9276 _resultobj
= t_output_helper(_resultobj
, o
);
9281 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
9284 src
= (wxRegion
*) ptr
;
9285 dest
= (wxGDIObject
*) src
;
9286 return (void *) dest
;
9289 static void *SwigwxRegionTowxObject(void *ptr
) {
9292 src
= (wxRegion
*) ptr
;
9293 dest
= (wxObject
*) src
;
9294 return (void *) dest
;
9297 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9298 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9299 PyObject
* _resultobj
;
9301 wxCoord _arg0
= (wxCoord
) 0;
9302 wxCoord _arg1
= (wxCoord
) 0;
9303 wxCoord _arg2
= (wxCoord
) 0;
9304 wxCoord _arg3
= (wxCoord
) 0;
9305 char *_kwnames
[] = { "x","y","width","height", NULL
};
9309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
9312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9313 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
9315 wxPyEndAllowThreads(__tstate
);
9316 if (PyErr_Occurred()) return NULL
;
9318 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
9319 _resultobj
= Py_BuildValue("s",_ptemp
);
9322 _resultobj
= Py_None
;
9327 #define delete_wxRegion(_swigobj) (delete _swigobj)
9328 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9329 PyObject
* _resultobj
;
9331 PyObject
* _argo0
= 0;
9332 char *_kwnames
[] = { "self", NULL
};
9335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
9338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9346 delete_wxRegion(_arg0
);
9348 wxPyEndAllowThreads(__tstate
);
9349 if (PyErr_Occurred()) return NULL
;
9350 } Py_INCREF(Py_None
);
9351 _resultobj
= Py_None
;
9355 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9356 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9357 PyObject
* _resultobj
;
9359 PyObject
* _argo0
= 0;
9360 char *_kwnames
[] = { "self", NULL
};
9363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
9366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9374 wxRegion_Clear(_arg0
);
9376 wxPyEndAllowThreads(__tstate
);
9377 if (PyErr_Occurred()) return NULL
;
9378 } Py_INCREF(Py_None
);
9379 _resultobj
= Py_None
;
9383 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9384 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9385 PyObject
* _resultobj
;
9386 wxRegionContain _result
;
9390 PyObject
* _argo0
= 0;
9391 char *_kwnames
[] = { "self","x","y", NULL
};
9394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9405 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
9407 wxPyEndAllowThreads(__tstate
);
9408 if (PyErr_Occurred()) return NULL
;
9409 } _resultobj
= Py_BuildValue("i",_result
);
9413 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9414 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9415 PyObject
* _resultobj
;
9416 wxRegionContain _result
;
9419 PyObject
* _argo0
= 0;
9421 PyObject
* _obj1
= 0;
9422 char *_kwnames
[] = { "self","pt", NULL
};
9425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
9428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9436 if (! wxPoint_helper(_obj1
, &_arg1
))
9440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9441 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
9443 wxPyEndAllowThreads(__tstate
);
9444 if (PyErr_Occurred()) return NULL
;
9445 } _resultobj
= Py_BuildValue("i",_result
);
9449 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9450 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9451 PyObject
* _resultobj
;
9452 wxRegionContain _result
;
9455 PyObject
* _argo0
= 0;
9457 PyObject
* _obj1
= 0;
9458 char *_kwnames
[] = { "self","rect", NULL
};
9461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
9464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9472 if (! wxRect_helper(_obj1
, &_arg1
))
9476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9477 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
9479 wxPyEndAllowThreads(__tstate
);
9480 if (PyErr_Occurred()) return NULL
;
9481 } _resultobj
= Py_BuildValue("i",_result
);
9485 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9486 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9487 PyObject
* _resultobj
;
9488 wxRegionContain _result
;
9494 PyObject
* _argo0
= 0;
9495 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
9498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9509 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9511 wxPyEndAllowThreads(__tstate
);
9512 if (PyErr_Occurred()) return NULL
;
9513 } _resultobj
= Py_BuildValue("i",_result
);
9517 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9518 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9519 PyObject
* _resultobj
;
9522 PyObject
* _argo0
= 0;
9523 char *_kwnames
[] = { "self", NULL
};
9527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
9530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9538 _result
= new wxRect (wxRegion_GetBox(_arg0
));
9540 wxPyEndAllowThreads(__tstate
);
9541 if (PyErr_Occurred()) return NULL
;
9542 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
9543 _resultobj
= Py_BuildValue("s",_ptemp
);
9547 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9548 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9549 PyObject
* _resultobj
;
9556 PyObject
* _argo0
= 0;
9557 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9571 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9573 wxPyEndAllowThreads(__tstate
);
9574 if (PyErr_Occurred()) return NULL
;
9575 } _resultobj
= Py_BuildValue("i",_result
);
9579 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9580 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9581 PyObject
* _resultobj
;
9585 PyObject
* _argo0
= 0;
9587 PyObject
* _obj1
= 0;
9588 char *_kwnames
[] = { "self","rect", NULL
};
9591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
9594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9602 if (! wxRect_helper(_obj1
, &_arg1
))
9606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9607 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
9609 wxPyEndAllowThreads(__tstate
);
9610 if (PyErr_Occurred()) return NULL
;
9611 } _resultobj
= Py_BuildValue("i",_result
);
9615 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9616 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9617 PyObject
* _resultobj
;
9621 PyObject
* _argo0
= 0;
9622 PyObject
* _argo1
= 0;
9623 char *_kwnames
[] = { "self","region", NULL
};
9626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
9629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9636 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9643 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
9645 wxPyEndAllowThreads(__tstate
);
9646 if (PyErr_Occurred()) return NULL
;
9647 } _resultobj
= Py_BuildValue("i",_result
);
9651 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9652 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9653 PyObject
* _resultobj
;
9656 PyObject
* _argo0
= 0;
9657 char *_kwnames
[] = { "self", NULL
};
9660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
9663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9671 _result
= (bool )wxRegion_IsEmpty(_arg0
);
9673 wxPyEndAllowThreads(__tstate
);
9674 if (PyErr_Occurred()) return NULL
;
9675 } _resultobj
= Py_BuildValue("i",_result
);
9679 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9680 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9681 PyObject
* _resultobj
;
9688 PyObject
* _argo0
= 0;
9689 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9703 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9705 wxPyEndAllowThreads(__tstate
);
9706 if (PyErr_Occurred()) return NULL
;
9707 } _resultobj
= Py_BuildValue("i",_result
);
9711 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9712 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9713 PyObject
* _resultobj
;
9717 PyObject
* _argo0
= 0;
9719 PyObject
* _obj1
= 0;
9720 char *_kwnames
[] = { "self","rect", NULL
};
9723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
9726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9734 if (! wxRect_helper(_obj1
, &_arg1
))
9738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9739 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
9741 wxPyEndAllowThreads(__tstate
);
9742 if (PyErr_Occurred()) return NULL
;
9743 } _resultobj
= Py_BuildValue("i",_result
);
9747 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9748 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9749 PyObject
* _resultobj
;
9753 PyObject
* _argo0
= 0;
9754 PyObject
* _argo1
= 0;
9755 char *_kwnames
[] = { "self","region", NULL
};
9758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
9761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9768 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9775 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
9777 wxPyEndAllowThreads(__tstate
);
9778 if (PyErr_Occurred()) return NULL
;
9779 } _resultobj
= Py_BuildValue("i",_result
);
9783 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9784 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9785 PyObject
* _resultobj
;
9792 PyObject
* _argo0
= 0;
9793 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9807 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9809 wxPyEndAllowThreads(__tstate
);
9810 if (PyErr_Occurred()) return NULL
;
9811 } _resultobj
= Py_BuildValue("i",_result
);
9815 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9816 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9817 PyObject
* _resultobj
;
9821 PyObject
* _argo0
= 0;
9823 PyObject
* _obj1
= 0;
9824 char *_kwnames
[] = { "self","rect", NULL
};
9827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
9830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9838 if (! wxRect_helper(_obj1
, &_arg1
))
9842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9843 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
9845 wxPyEndAllowThreads(__tstate
);
9846 if (PyErr_Occurred()) return NULL
;
9847 } _resultobj
= Py_BuildValue("i",_result
);
9851 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9852 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9853 PyObject
* _resultobj
;
9857 PyObject
* _argo0
= 0;
9858 PyObject
* _argo1
= 0;
9859 char *_kwnames
[] = { "self","region", NULL
};
9862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
9865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9872 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9879 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
9881 wxPyEndAllowThreads(__tstate
);
9882 if (PyErr_Occurred()) return NULL
;
9883 } _resultobj
= Py_BuildValue("i",_result
);
9887 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9888 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9889 PyObject
* _resultobj
;
9896 PyObject
* _argo0
= 0;
9897 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
9900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
9903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9910 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9911 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9913 wxPyEndAllowThreads(__tstate
);
9914 if (PyErr_Occurred()) return NULL
;
9915 } _resultobj
= Py_BuildValue("i",_result
);
9919 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9920 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9921 PyObject
* _resultobj
;
9925 PyObject
* _argo0
= 0;
9927 PyObject
* _obj1
= 0;
9928 char *_kwnames
[] = { "self","rect", NULL
};
9931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
9934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9942 if (! wxRect_helper(_obj1
, &_arg1
))
9946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9947 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
9949 wxPyEndAllowThreads(__tstate
);
9950 if (PyErr_Occurred()) return NULL
;
9951 } _resultobj
= Py_BuildValue("i",_result
);
9955 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9956 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9957 PyObject
* _resultobj
;
9961 PyObject
* _argo0
= 0;
9962 PyObject
* _argo1
= 0;
9963 char *_kwnames
[] = { "self","region", NULL
};
9966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
9969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
9971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9976 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
9977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9983 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
9985 wxPyEndAllowThreads(__tstate
);
9986 if (PyErr_Occurred()) return NULL
;
9987 } _resultobj
= Py_BuildValue("i",_result
);
9991 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
9992 wxRegionIterator
*src
;
9994 src
= (wxRegionIterator
*) ptr
;
9995 dest
= (wxObject
*) src
;
9996 return (void *) dest
;
9999 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10000 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10001 PyObject
* _resultobj
;
10002 wxRegionIterator
* _result
;
10004 PyObject
* _argo0
= 0;
10005 char *_kwnames
[] = { "region", NULL
};
10009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
10012 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10019 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
10021 wxPyEndAllowThreads(__tstate
);
10022 if (PyErr_Occurred()) return NULL
;
10024 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
10025 _resultobj
= Py_BuildValue("s",_ptemp
);
10027 Py_INCREF(Py_None
);
10028 _resultobj
= Py_None
;
10033 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10034 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10035 PyObject
* _resultobj
;
10036 wxRegionIterator
* _arg0
;
10037 PyObject
* _argo0
= 0;
10038 char *_kwnames
[] = { "self", NULL
};
10041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
10044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10052 delete_wxRegionIterator(_arg0
);
10054 wxPyEndAllowThreads(__tstate
);
10055 if (PyErr_Occurred()) return NULL
;
10056 } Py_INCREF(Py_None
);
10057 _resultobj
= Py_None
;
10061 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10062 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10063 PyObject
* _resultobj
;
10065 wxRegionIterator
* _arg0
;
10066 PyObject
* _argo0
= 0;
10067 char *_kwnames
[] = { "self", NULL
};
10070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
10073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10081 _result
= (wxCoord
)wxRegionIterator_GetX(_arg0
);
10083 wxPyEndAllowThreads(__tstate
);
10084 if (PyErr_Occurred()) return NULL
;
10085 } _resultobj
= Py_BuildValue("i",_result
);
10089 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10090 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10091 PyObject
* _resultobj
;
10093 wxRegionIterator
* _arg0
;
10094 PyObject
* _argo0
= 0;
10095 char *_kwnames
[] = { "self", NULL
};
10098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
10101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10109 _result
= (wxCoord
)wxRegionIterator_GetY(_arg0
);
10111 wxPyEndAllowThreads(__tstate
);
10112 if (PyErr_Occurred()) return NULL
;
10113 } _resultobj
= Py_BuildValue("i",_result
);
10117 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10118 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10119 PyObject
* _resultobj
;
10121 wxRegionIterator
* _arg0
;
10122 PyObject
* _argo0
= 0;
10123 char *_kwnames
[] = { "self", NULL
};
10126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
10129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10137 _result
= (wxCoord
)wxRegionIterator_GetW(_arg0
);
10139 wxPyEndAllowThreads(__tstate
);
10140 if (PyErr_Occurred()) return NULL
;
10141 } _resultobj
= Py_BuildValue("i",_result
);
10145 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10146 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10147 PyObject
* _resultobj
;
10149 wxRegionIterator
* _arg0
;
10150 PyObject
* _argo0
= 0;
10151 char *_kwnames
[] = { "self", NULL
};
10154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
10157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10165 _result
= (wxCoord
)wxRegionIterator_GetWidth(_arg0
);
10167 wxPyEndAllowThreads(__tstate
);
10168 if (PyErr_Occurred()) return NULL
;
10169 } _resultobj
= Py_BuildValue("i",_result
);
10173 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10174 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10175 PyObject
* _resultobj
;
10177 wxRegionIterator
* _arg0
;
10178 PyObject
* _argo0
= 0;
10179 char *_kwnames
[] = { "self", NULL
};
10182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
10185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10193 _result
= (wxCoord
)wxRegionIterator_GetH(_arg0
);
10195 wxPyEndAllowThreads(__tstate
);
10196 if (PyErr_Occurred()) return NULL
;
10197 } _resultobj
= Py_BuildValue("i",_result
);
10201 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10202 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10203 PyObject
* _resultobj
;
10205 wxRegionIterator
* _arg0
;
10206 PyObject
* _argo0
= 0;
10207 char *_kwnames
[] = { "self", NULL
};
10210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
10213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10221 _result
= (wxCoord
)wxRegionIterator_GetHeight(_arg0
);
10223 wxPyEndAllowThreads(__tstate
);
10224 if (PyErr_Occurred()) return NULL
;
10225 } _resultobj
= Py_BuildValue("i",_result
);
10229 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10230 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10231 PyObject
* _resultobj
;
10233 wxRegionIterator
* _arg0
;
10234 PyObject
* _argo0
= 0;
10235 char *_kwnames
[] = { "self", NULL
};
10239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
10242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10250 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
10252 wxPyEndAllowThreads(__tstate
);
10253 if (PyErr_Occurred()) return NULL
;
10254 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10255 _resultobj
= Py_BuildValue("s",_ptemp
);
10259 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10260 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10261 PyObject
* _resultobj
;
10263 wxRegionIterator
* _arg0
;
10264 PyObject
* _argo0
= 0;
10265 char *_kwnames
[] = { "self", NULL
};
10268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
10271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10278 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10279 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
10281 wxPyEndAllowThreads(__tstate
);
10282 if (PyErr_Occurred()) return NULL
;
10283 } _resultobj
= Py_BuildValue("i",_result
);
10287 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10288 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10289 PyObject
* _resultobj
;
10290 wxRegionIterator
* _arg0
;
10291 PyObject
* _argo0
= 0;
10292 char *_kwnames
[] = { "self", NULL
};
10295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
10298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10306 wxRegionIterator_Reset(_arg0
);
10308 wxPyEndAllowThreads(__tstate
);
10309 if (PyErr_Occurred()) return NULL
;
10310 } Py_INCREF(Py_None
);
10311 _resultobj
= Py_None
;
10315 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
10318 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10319 PyObject
* _resultobj
;
10320 wxRegionIterator
* _arg0
;
10321 PyObject
* _argo0
= 0;
10322 char *_kwnames
[] = { "self", NULL
};
10325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
10328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
10330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10336 wxRegionIterator_Next(_arg0
);
10338 wxPyEndAllowThreads(__tstate
);
10339 if (PyErr_Occurred()) return NULL
;
10340 } Py_INCREF(Py_None
);
10341 _resultobj
= Py_None
;
10345 static PyMethodDef gdicMethods
[] = {
10346 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10391 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
10392 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10393 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10394 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
10395 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
10396 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10397 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
10398 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10399 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
10400 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
10401 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
10402 { "new_wxBufferedPaintDC", (PyCFunction
) _wrap_new_wxBufferedPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
10403 { "wxBufferedDC_UnMask", (PyCFunction
) _wrap_wxBufferedDC_UnMask
, METH_VARARGS
| METH_KEYWORDS
},
10404 { "new_wxBufferedDCInternalBuffer", (PyCFunction
) _wrap_new_wxBufferedDCInternalBuffer
, METH_VARARGS
| METH_KEYWORDS
},
10405 { "new_wxBufferedDC", (PyCFunction
) _wrap_new_wxBufferedDC
, METH_VARARGS
| METH_KEYWORDS
},
10406 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
10407 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
10408 { "wxDC__DrawTextList", (PyCFunction
) _wrap_wxDC__DrawTextList
, METH_VARARGS
| METH_KEYWORDS
},
10409 { "wxDC__DrawPolygonList", (PyCFunction
) _wrap_wxDC__DrawPolygonList
, METH_VARARGS
| METH_KEYWORDS
},
10410 { "wxDC__DrawEllipseList", (PyCFunction
) _wrap_wxDC__DrawEllipseList
, METH_VARARGS
| METH_KEYWORDS
},
10411 { "wxDC__DrawRectangleList", (PyCFunction
) _wrap_wxDC__DrawRectangleList
, METH_VARARGS
| METH_KEYWORDS
},
10412 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
10413 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
10414 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10415 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10416 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
10417 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
10418 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10419 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10420 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10421 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
10422 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10423 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10424 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10425 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10426 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
10427 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
10428 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10429 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10430 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10431 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
10432 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10433 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10434 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10435 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10436 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10437 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10438 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10439 { "wxDC_SetClippingRect", (PyCFunction
) _wrap_wxDC_SetClippingRect
, METH_VARARGS
| METH_KEYWORDS
},
10440 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
10441 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10442 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
10443 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10444 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10445 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10446 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
10447 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
10448 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
10449 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
10450 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
10451 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
10452 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
10453 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
10454 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
10455 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
10456 { "wxDC_GetMultiLineTextExtent", (PyCFunction
) _wrap_wxDC_GetMultiLineTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10457 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10458 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10459 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
10460 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
10461 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxDC_DrawRectangleRect", (PyCFunction
) _wrap_wxDC_DrawRectangleRect
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxPen_GetDashes", (PyCFunction
) _wrap_wxPen_GetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxColour___ne__", (PyCFunction
) _wrap_wxColour___ne__
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxColour___eq__", (PyCFunction
) _wrap_wxColour___eq__
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxIconBundle_GetIcon", (PyCFunction
) _wrap_wxIconBundle_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxIconBundle_AddIconFromFile", (PyCFunction
) _wrap_wxIconBundle_AddIconFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxIconBundle_AddIcon", (PyCFunction
) _wrap_wxIconBundle_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "delete_wxIconBundle", (PyCFunction
) _wrap_delete_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "new_wxIconBundleFromIcon", (PyCFunction
) _wrap_new_wxIconBundleFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "new_wxIconBundleFromFile", (PyCFunction
) _wrap_new_wxIconBundleFromFile
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "new_wxIconBundle", (PyCFunction
) _wrap_new_wxIconBundle
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10591 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
10592 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10593 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
10594 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10595 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
10596 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
10597 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
10598 { "wxCursorFromImage", (PyCFunction
) _wrap_wxCursorFromImage
, METH_VARARGS
| METH_KEYWORDS
},
10599 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
10600 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10601 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10602 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
10603 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
10604 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
10605 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
10606 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
10607 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10614 * This table is used by the pointer type-checker
10616 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10617 { "_signed_long","_long",0},
10618 { "_wxPrintQuality","_wxCoord",0},
10619 { "_wxPrintQuality","_int",0},
10620 { "_wxPrintQuality","_signed_int",0},
10621 { "_wxPrintQuality","_unsigned_int",0},
10622 { "_wxPrintQuality","_wxWindowID",0},
10623 { "_wxPrintQuality","_uint",0},
10624 { "_wxPrintQuality","_EBool",0},
10625 { "_wxPrintQuality","_size_t",0},
10626 { "_wxPrintQuality","_time_t",0},
10627 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
10628 { "_byte","_unsigned_char",0},
10629 { "_long","_unsigned_long",0},
10630 { "_long","_signed_long",0},
10631 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
10632 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
10633 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
10634 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
10635 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
10636 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
10637 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
10638 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
10639 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
10640 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
10641 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
10642 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
10643 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC
},
10644 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC
},
10645 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
10646 { "_size_t","_wxCoord",0},
10647 { "_size_t","_wxPrintQuality",0},
10648 { "_size_t","_time_t",0},
10649 { "_size_t","_unsigned_int",0},
10650 { "_size_t","_int",0},
10651 { "_size_t","_wxWindowID",0},
10652 { "_size_t","_uint",0},
10653 { "_uint","_wxCoord",0},
10654 { "_uint","_wxPrintQuality",0},
10655 { "_uint","_time_t",0},
10656 { "_uint","_size_t",0},
10657 { "_uint","_unsigned_int",0},
10658 { "_uint","_int",0},
10659 { "_uint","_wxWindowID",0},
10660 { "_wxChar","_char",0},
10661 { "_char","_wxChar",0},
10662 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC
},
10663 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10664 { "_EBool","_wxCoord",0},
10665 { "_EBool","_wxPrintQuality",0},
10666 { "_EBool","_signed_int",0},
10667 { "_EBool","_int",0},
10668 { "_EBool","_wxWindowID",0},
10669 { "_unsigned_long","_long",0},
10670 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10671 { "_signed_int","_wxCoord",0},
10672 { "_signed_int","_wxPrintQuality",0},
10673 { "_signed_int","_EBool",0},
10674 { "_signed_int","_wxWindowID",0},
10675 { "_signed_int","_int",0},
10676 { "_WXTYPE","_short",0},
10677 { "_WXTYPE","_signed_short",0},
10678 { "_WXTYPE","_unsigned_short",0},
10679 { "_unsigned_short","_WXTYPE",0},
10680 { "_unsigned_short","_short",0},
10681 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
10682 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
10683 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
10684 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
10685 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
10686 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
10687 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
10688 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
10689 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject
},
10690 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject
},
10691 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
10692 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
10693 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
10694 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
10695 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
10696 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
10697 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
10698 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
10699 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
10700 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
10701 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
10702 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
10703 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
10704 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
10705 { "_signed_short","_WXTYPE",0},
10706 { "_signed_short","_short",0},
10707 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC
},
10708 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC
},
10709 { "_unsigned_char","_byte",0},
10710 { "_unsigned_int","_wxCoord",0},
10711 { "_unsigned_int","_wxPrintQuality",0},
10712 { "_unsigned_int","_time_t",0},
10713 { "_unsigned_int","_size_t",0},
10714 { "_unsigned_int","_uint",0},
10715 { "_unsigned_int","_wxWindowID",0},
10716 { "_unsigned_int","_int",0},
10717 { "_short","_WXTYPE",0},
10718 { "_short","_unsigned_short",0},
10719 { "_short","_signed_short",0},
10720 { "_wxWindowID","_wxCoord",0},
10721 { "_wxWindowID","_wxPrintQuality",0},
10722 { "_wxWindowID","_time_t",0},
10723 { "_wxWindowID","_size_t",0},
10724 { "_wxWindowID","_EBool",0},
10725 { "_wxWindowID","_uint",0},
10726 { "_wxWindowID","_int",0},
10727 { "_wxWindowID","_signed_int",0},
10728 { "_wxWindowID","_unsigned_int",0},
10729 { "_int","_wxCoord",0},
10730 { "_int","_wxPrintQuality",0},
10731 { "_int","_time_t",0},
10732 { "_int","_size_t",0},
10733 { "_int","_EBool",0},
10734 { "_int","_uint",0},
10735 { "_int","_wxWindowID",0},
10736 { "_int","_unsigned_int",0},
10737 { "_int","_signed_int",0},
10738 { "_time_t","_wxCoord",0},
10739 { "_time_t","_wxPrintQuality",0},
10740 { "_time_t","_unsigned_int",0},
10741 { "_time_t","_int",0},
10742 { "_time_t","_wxWindowID",0},
10743 { "_time_t","_uint",0},
10744 { "_time_t","_size_t",0},
10745 { "_wxCoord","_int",0},
10746 { "_wxCoord","_signed_int",0},
10747 { "_wxCoord","_unsigned_int",0},
10748 { "_wxCoord","_wxWindowID",0},
10749 { "_wxCoord","_uint",0},
10750 { "_wxCoord","_EBool",0},
10751 { "_wxCoord","_size_t",0},
10752 { "_wxCoord","_time_t",0},
10753 { "_wxCoord","_wxPrintQuality",0},
10756 static PyObject
*SWIG_globals
;
10760 SWIGEXPORT(void) initgdic() {
10762 SWIG_globals
= SWIG_newvarlink();
10763 m
= Py_InitModule("gdic", gdicMethods
);
10764 d
= PyModule_GetDict(m
);
10765 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
10766 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
10767 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
10768 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
10769 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
10770 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
10771 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
10772 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
10773 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
10774 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
10775 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
10776 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
10777 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
10778 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
10779 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
10780 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
10781 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
10782 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
10783 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
10784 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
10785 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
10786 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
10787 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
10788 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
10789 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
10790 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
10791 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
10792 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
10793 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
10794 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
10795 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
10796 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
10797 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
10798 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
10799 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
10800 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
10801 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
10802 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
10803 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
10804 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
10805 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
10806 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
10807 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
10808 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
10809 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
10810 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
10811 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
10812 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
10813 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
10814 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
10815 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
10816 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
10817 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
10818 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
10819 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
10820 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
10821 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
10824 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10825 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);