2 * FILE : src/gtk/gdi.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initgdic
56 #define SWIG_name "gdic"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
66 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
72 } else if (target
== Py_None
) {
76 if (!PyTuple_Check(target
)) {
78 target
= PyTuple_New(1);
79 PyTuple_SetItem(target
, 0, o2
);
82 PyTuple_SetItem(o3
, 0, o
);
85 target
= PySequence_Concat(o2
, o3
);
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg
= "String or Unicode type required";
95 static char* wxStringErrorMsg
= "String type required";
97 // Implementations of some alternate "constructors"
99 wxBitmap
* wxEmptyBitmap(int width
, int height
, int depth
=-1) {
100 return new wxBitmap(width
, height
, depth
);
103 static char** ConvertListOfStrings(PyObject
* listOfStrings
) {
104 char** cArray
= NULL
;
107 if (!PyList_Check(listOfStrings
)) {
108 PyErr_SetString(PyExc_TypeError
, "Expected a list of strings.");
111 count
= PyList_Size(listOfStrings
);
112 cArray
= new char*[count
];
114 for(int x
=0; x
<count
; x
++) {
115 // TODO: Need some validation and error checking here
116 cArray
[x
] = PyString_AsString(PyList_GET_ITEM(listOfStrings
, x
));
122 wxBitmap
* wxBitmapFromXPMData(PyObject
* listOfStrings
) {
123 char** cArray
= NULL
;
126 cArray
= ConvertListOfStrings(listOfStrings
);
129 bmp
= new wxBitmap(cArray
);
135 wxBitmap
* wxBitmapFromIcon(const wxIcon
& icon
) {
136 return new wxBitmap(icon
);
140 wxBitmap
* wxBitmapFromBits(char* bits
, int width
, int height
, int depth
= 1 ) {
141 return new wxBitmap(bits
, width
, height
, depth
);
146 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
147 // int width, int height, int depth = 1) {
148 // if (! PyString_Check(data)) {
149 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
156 wxMask
* wxMaskColour(const wxBitmap
& bitmap
, const wxColour
& colour
) {
157 return new wxMask(bitmap
, colour
);
159 // Implementations of some alternate "constructors"
160 wxIcon
* wxEmptyIcon() {
164 wxIcon
* wxIconFromXPMData(PyObject
* listOfStrings
) {
165 char** cArray
= NULL
;
168 cArray
= ConvertListOfStrings(listOfStrings
);
171 icon
= new wxIcon(cArray
);
176 wxIcon
* wxIconFromBitmap(const wxBitmap
& bmp
) {
177 wxIcon
* icon
= new wxIcon();
178 icon
->CopyFromBitmap(bmp
);
181 // Alternate 'constructor'
182 wxCursor
* wxPyStockCursor(int id
) {
183 return new wxCursor(id
);
185 // Alternate 'constructor'
186 wxColour
* wxNamedColour(const wxString
& colorName
) {
187 return new wxColour(colorName
);
190 class wxPyPen
: public wxPen
{
192 wxPyPen(wxColour
& colour
, int width
=1, int style
=wxSOLID
)
193 : wxPen(colour
, width
, style
)
200 void SetDashes(int nb_dashes
, const wxDash
*dash
) {
203 m_dash
= new wxDash
[nb_dashes
];
204 for (int i
=0; i
<nb_dashes
; i
++) {
207 wxPen::SetDashes(nb_dashes
, m_dash
);
214 static void wxDC_GetBoundingBox(wxDC
* dc
, int* x1
, int* y1
, int* x2
, int* y2
) {
220 // Alternate 'constructor'
221 wxMemoryDC
* wxMemoryDCFromDC(wxDC
* oldDC
) {
222 return new wxMemoryDC(oldDC
);
226 extern wxFont
* wxNORMAL_FONT
;
227 extern wxFont
* wxSMALL_FONT
;
228 extern wxFont
* wxITALIC_FONT
;
229 extern wxFont
* wxSWISS_FONT
;
230 extern wxPen
* wxRED_PEN
;
231 extern wxPen
* wxCYAN_PEN
;
232 extern wxPen
* wxGREEN_PEN
;
233 extern wxPen
* wxBLACK_PEN
;
234 extern wxPen
* wxWHITE_PEN
;
235 extern wxPen
* wxTRANSPARENT_PEN
;
236 extern wxPen
* wxBLACK_DASHED_PEN
;
237 extern wxPen
* wxGREY_PEN
;
238 extern wxPen
* wxMEDIUM_GREY_PEN
;
239 extern wxPen
* wxLIGHT_GREY_PEN
;
240 extern wxBrush
* wxBLUE_BRUSH
;
241 extern wxBrush
* wxGREEN_BRUSH
;
242 extern wxBrush
* wxWHITE_BRUSH
;
243 extern wxBrush
* wxBLACK_BRUSH
;
244 extern wxBrush
* wxTRANSPARENT_BRUSH
;
245 extern wxBrush
* wxCYAN_BRUSH
;
246 extern wxBrush
* wxRED_BRUSH
;
247 extern wxBrush
* wxGREY_BRUSH
;
248 extern wxBrush
* wxMEDIUM_GREY_BRUSH
;
249 extern wxBrush
* wxLIGHT_GREY_BRUSH
;
250 extern wxColour
* wxBLACK
;
251 extern wxColour
* wxWHITE
;
252 extern wxColour
* wxRED
;
253 extern wxColour
* wxBLUE
;
254 extern wxColour
* wxGREEN
;
255 extern wxColour
* wxCYAN
;
256 extern wxColour
* wxLIGHT_GREY
;
257 extern wxCursor
* wxSTANDARD_CURSOR
;
258 extern wxCursor
* wxHOURGLASS_CURSOR
;
259 extern wxCursor
* wxCROSS_CURSOR
;
260 extern wxBitmap wxNullBitmap
;
261 extern wxIcon wxNullIcon
;
262 extern wxCursor wxNullCursor
;
263 extern wxPen wxNullPen
;
264 extern wxBrush wxNullBrush
;
265 extern wxPalette wxNullPalette
;
266 extern wxFont wxNullFont
;
267 extern wxColour wxNullColour
;
268 extern wxFontList
* wxTheFontList
;
269 extern wxPenList
* wxThePenList
;
270 extern wxBrushList
* wxTheBrushList
;
271 extern wxColourDatabase
* wxTheColourDatabase
;
277 static PyObject
*_wrap_wxEmptyBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
278 PyObject
* _resultobj
;
282 int _arg2
= (int ) -1;
283 char *_kwnames
[] = { "width","height","depth", NULL
};
287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|i:wxEmptyBitmap",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
291 _result
= (wxBitmap
*)wxEmptyBitmap(_arg0
,_arg1
,_arg2
);
293 wxPyEndAllowThreads(__tstate
);
294 if (PyErr_Occurred()) return NULL
;
296 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
297 _resultobj
= Py_BuildValue("s",_ptemp
);
300 _resultobj
= Py_None
;
305 static PyObject
*_wrap_wxBitmapFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
306 PyObject
* _resultobj
;
309 PyObject
* _obj0
= 0;
310 char *_kwnames
[] = { "listOfStrings", NULL
};
314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromXPMData",_kwnames
,&_obj0
))
320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
321 _result
= (wxBitmap
*)wxBitmapFromXPMData(_arg0
);
323 wxPyEndAllowThreads(__tstate
);
324 if (PyErr_Occurred()) return NULL
;
326 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
327 _resultobj
= Py_BuildValue("s",_ptemp
);
330 _resultobj
= Py_None
;
335 static PyObject
*_wrap_wxBitmapFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
336 PyObject
* _resultobj
;
339 PyObject
* _argo0
= 0;
340 char *_kwnames
[] = { "icon", NULL
};
344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapFromIcon",_kwnames
,&_argo0
))
347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
355 _result
= (wxBitmap
*)wxBitmapFromIcon(*_arg0
);
357 wxPyEndAllowThreads(__tstate
);
358 if (PyErr_Occurred()) return NULL
;
360 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
361 _resultobj
= Py_BuildValue("s",_ptemp
);
364 _resultobj
= Py_None
;
369 static PyObject
*_wrap_wxBitmapFromBits(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
370 PyObject
* _resultobj
;
375 int _arg3
= (int ) 1;
376 char *_kwnames
[] = { "bits","width","height","depth", NULL
};
380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"sii|i:wxBitmapFromBits",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
384 _result
= (wxBitmap
*)wxBitmapFromBits(_arg0
,_arg1
,_arg2
,_arg3
);
386 wxPyEndAllowThreads(__tstate
);
387 if (PyErr_Occurred()) return NULL
;
389 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
390 _resultobj
= Py_BuildValue("s",_ptemp
);
393 _resultobj
= Py_None
;
398 static PyObject
*_wrap_wxMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
399 PyObject
* _resultobj
;
403 PyObject
* _argo0
= 0;
405 PyObject
* _obj1
= 0;
406 char *_kwnames
[] = { "bitmap","colour", NULL
};
410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMaskColour",_kwnames
,&_argo0
,&_obj1
))
413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
421 if (! wxColour_helper(_obj1
, &_arg1
))
425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
426 _result
= (wxMask
*)wxMaskColour(*_arg0
,*_arg1
);
428 wxPyEndAllowThreads(__tstate
);
429 if (PyErr_Occurred()) return NULL
;
431 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
432 _resultobj
= Py_BuildValue("s",_ptemp
);
435 _resultobj
= Py_None
;
440 static PyObject
*_wrap_wxEmptyIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
441 PyObject
* _resultobj
;
443 char *_kwnames
[] = { NULL
};
447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxEmptyIcon",_kwnames
))
450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
451 _result
= (wxIcon
*)wxEmptyIcon();
453 wxPyEndAllowThreads(__tstate
);
454 if (PyErr_Occurred()) return NULL
;
456 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
457 _resultobj
= Py_BuildValue("s",_ptemp
);
460 _resultobj
= Py_None
;
465 static PyObject
*_wrap_wxIconFromXPMData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
466 PyObject
* _resultobj
;
469 PyObject
* _obj0
= 0;
470 char *_kwnames
[] = { "listOfStrings", NULL
};
474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromXPMData",_kwnames
,&_obj0
))
480 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
481 _result
= (wxIcon
*)wxIconFromXPMData(_arg0
);
483 wxPyEndAllowThreads(__tstate
);
484 if (PyErr_Occurred()) return NULL
;
486 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
487 _resultobj
= Py_BuildValue("s",_ptemp
);
490 _resultobj
= Py_None
;
495 static PyObject
*_wrap_wxIconFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
496 PyObject
* _resultobj
;
499 PyObject
* _argo0
= 0;
500 char *_kwnames
[] = { "bmp", NULL
};
504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIconFromBitmap",_kwnames
,&_argo0
))
507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
515 _result
= (wxIcon
*)wxIconFromBitmap(*_arg0
);
517 wxPyEndAllowThreads(__tstate
);
518 if (PyErr_Occurred()) return NULL
;
520 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
521 _resultobj
= Py_BuildValue("s",_ptemp
);
524 _resultobj
= Py_None
;
529 static PyObject
*_wrap_wxStockCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
530 PyObject
* _resultobj
;
533 char *_kwnames
[] = { "id", NULL
};
537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxStockCursor",_kwnames
,&_arg0
))
540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
541 _result
= (wxCursor
*)wxPyStockCursor(_arg0
);
543 wxPyEndAllowThreads(__tstate
);
544 if (PyErr_Occurred()) return NULL
;
546 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCursor_p");
547 _resultobj
= Py_BuildValue("s",_ptemp
);
550 _resultobj
= Py_None
;
555 static PyObject
*_wrap_wxNamedColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
556 PyObject
* _resultobj
;
559 PyObject
* _obj0
= 0;
560 char *_kwnames
[] = { "colorName", NULL
};
564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNamedColour",_kwnames
,&_obj0
))
567 #if PYTHON_API_VERSION >= 1009
568 char* tmpPtr
; int tmpSize
;
569 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
570 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
573 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
575 _arg0
= new wxString(tmpPtr
, tmpSize
);
577 if (!PyString_Check(_obj0
)) {
578 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
581 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
586 _result
= (wxColour
*)wxNamedColour(*_arg0
);
588 wxPyEndAllowThreads(__tstate
);
589 if (PyErr_Occurred()) return NULL
;
591 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
592 _resultobj
= Py_BuildValue("s",_ptemp
);
595 _resultobj
= Py_None
;
604 static PyObject
*_wrap_wxMemoryDCFromDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
606 wxMemoryDC
* _result
;
608 PyObject
* _argo0
= 0;
609 char *_kwnames
[] = { "oldDC", NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryDCFromDC",_kwnames
,&_argo0
))
616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
624 _result
= (wxMemoryDC
*)wxMemoryDCFromDC(_arg0
);
626 wxPyEndAllowThreads(__tstate
);
627 if (PyErr_Occurred()) return NULL
;
629 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
630 _resultobj
= Py_BuildValue("s",_ptemp
);
633 _resultobj
= Py_None
;
638 static int _wrap_wxNORMAL_FONT_set(PyObject
*val
) {
640 PyErr_SetString(PyExc_TypeError
,"Variable wxNORMAL_FONT is read-only.");
644 static PyObject
*_wrap_wxNORMAL_FONT_get() {
648 SWIG_MakePtr(ptemp
, (char *) wxNORMAL_FONT
,"_wxFont_p");
649 pyobj
= PyString_FromString(ptemp
);
653 static int _wrap_wxSMALL_FONT_set(PyObject
*val
) {
655 PyErr_SetString(PyExc_TypeError
,"Variable wxSMALL_FONT is read-only.");
659 static PyObject
*_wrap_wxSMALL_FONT_get() {
663 SWIG_MakePtr(ptemp
, (char *) wxSMALL_FONT
,"_wxFont_p");
664 pyobj
= PyString_FromString(ptemp
);
668 static int _wrap_wxITALIC_FONT_set(PyObject
*val
) {
670 PyErr_SetString(PyExc_TypeError
,"Variable wxITALIC_FONT is read-only.");
674 static PyObject
*_wrap_wxITALIC_FONT_get() {
678 SWIG_MakePtr(ptemp
, (char *) wxITALIC_FONT
,"_wxFont_p");
679 pyobj
= PyString_FromString(ptemp
);
683 static int _wrap_wxSWISS_FONT_set(PyObject
*val
) {
685 PyErr_SetString(PyExc_TypeError
,"Variable wxSWISS_FONT is read-only.");
689 static PyObject
*_wrap_wxSWISS_FONT_get() {
693 SWIG_MakePtr(ptemp
, (char *) wxSWISS_FONT
,"_wxFont_p");
694 pyobj
= PyString_FromString(ptemp
);
698 static int _wrap_wxRED_PEN_set(PyObject
*val
) {
700 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_PEN is read-only.");
704 static PyObject
*_wrap_wxRED_PEN_get() {
708 SWIG_MakePtr(ptemp
, (char *) wxRED_PEN
,"_wxPen_p");
709 pyobj
= PyString_FromString(ptemp
);
713 static int _wrap_wxCYAN_PEN_set(PyObject
*val
) {
715 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_PEN is read-only.");
719 static PyObject
*_wrap_wxCYAN_PEN_get() {
723 SWIG_MakePtr(ptemp
, (char *) wxCYAN_PEN
,"_wxPen_p");
724 pyobj
= PyString_FromString(ptemp
);
728 static int _wrap_wxGREEN_PEN_set(PyObject
*val
) {
730 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_PEN is read-only.");
734 static PyObject
*_wrap_wxGREEN_PEN_get() {
738 SWIG_MakePtr(ptemp
, (char *) wxGREEN_PEN
,"_wxPen_p");
739 pyobj
= PyString_FromString(ptemp
);
743 static int _wrap_wxBLACK_PEN_set(PyObject
*val
) {
745 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_PEN is read-only.");
749 static PyObject
*_wrap_wxBLACK_PEN_get() {
753 SWIG_MakePtr(ptemp
, (char *) wxBLACK_PEN
,"_wxPen_p");
754 pyobj
= PyString_FromString(ptemp
);
758 static int _wrap_wxWHITE_PEN_set(PyObject
*val
) {
760 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_PEN is read-only.");
764 static PyObject
*_wrap_wxWHITE_PEN_get() {
768 SWIG_MakePtr(ptemp
, (char *) wxWHITE_PEN
,"_wxPen_p");
769 pyobj
= PyString_FromString(ptemp
);
773 static int _wrap_wxTRANSPARENT_PEN_set(PyObject
*val
) {
775 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_PEN is read-only.");
779 static PyObject
*_wrap_wxTRANSPARENT_PEN_get() {
783 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_PEN
,"_wxPen_p");
784 pyobj
= PyString_FromString(ptemp
);
788 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject
*val
) {
790 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_DASHED_PEN is read-only.");
794 static PyObject
*_wrap_wxBLACK_DASHED_PEN_get() {
798 SWIG_MakePtr(ptemp
, (char *) wxBLACK_DASHED_PEN
,"_wxPen_p");
799 pyobj
= PyString_FromString(ptemp
);
803 static int _wrap_wxGREY_PEN_set(PyObject
*val
) {
805 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_PEN is read-only.");
809 static PyObject
*_wrap_wxGREY_PEN_get() {
813 SWIG_MakePtr(ptemp
, (char *) wxGREY_PEN
,"_wxPen_p");
814 pyobj
= PyString_FromString(ptemp
);
818 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject
*val
) {
820 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_PEN is read-only.");
824 static PyObject
*_wrap_wxMEDIUM_GREY_PEN_get() {
828 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_PEN
,"_wxPen_p");
829 pyobj
= PyString_FromString(ptemp
);
833 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject
*val
) {
835 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_PEN is read-only.");
839 static PyObject
*_wrap_wxLIGHT_GREY_PEN_get() {
843 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_PEN
,"_wxPen_p");
844 pyobj
= PyString_FromString(ptemp
);
848 static int _wrap_wxBLUE_BRUSH_set(PyObject
*val
) {
850 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE_BRUSH is read-only.");
854 static PyObject
*_wrap_wxBLUE_BRUSH_get() {
858 SWIG_MakePtr(ptemp
, (char *) wxBLUE_BRUSH
,"_wxBrush_p");
859 pyobj
= PyString_FromString(ptemp
);
863 static int _wrap_wxGREEN_BRUSH_set(PyObject
*val
) {
865 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN_BRUSH is read-only.");
869 static PyObject
*_wrap_wxGREEN_BRUSH_get() {
873 SWIG_MakePtr(ptemp
, (char *) wxGREEN_BRUSH
,"_wxBrush_p");
874 pyobj
= PyString_FromString(ptemp
);
878 static int _wrap_wxWHITE_BRUSH_set(PyObject
*val
) {
880 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE_BRUSH is read-only.");
884 static PyObject
*_wrap_wxWHITE_BRUSH_get() {
888 SWIG_MakePtr(ptemp
, (char *) wxWHITE_BRUSH
,"_wxBrush_p");
889 pyobj
= PyString_FromString(ptemp
);
893 static int _wrap_wxBLACK_BRUSH_set(PyObject
*val
) {
895 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK_BRUSH is read-only.");
899 static PyObject
*_wrap_wxBLACK_BRUSH_get() {
903 SWIG_MakePtr(ptemp
, (char *) wxBLACK_BRUSH
,"_wxBrush_p");
904 pyobj
= PyString_FromString(ptemp
);
908 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject
*val
) {
910 PyErr_SetString(PyExc_TypeError
,"Variable wxTRANSPARENT_BRUSH is read-only.");
914 static PyObject
*_wrap_wxTRANSPARENT_BRUSH_get() {
918 SWIG_MakePtr(ptemp
, (char *) wxTRANSPARENT_BRUSH
,"_wxBrush_p");
919 pyobj
= PyString_FromString(ptemp
);
923 static int _wrap_wxCYAN_BRUSH_set(PyObject
*val
) {
925 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN_BRUSH is read-only.");
929 static PyObject
*_wrap_wxCYAN_BRUSH_get() {
933 SWIG_MakePtr(ptemp
, (char *) wxCYAN_BRUSH
,"_wxBrush_p");
934 pyobj
= PyString_FromString(ptemp
);
938 static int _wrap_wxRED_BRUSH_set(PyObject
*val
) {
940 PyErr_SetString(PyExc_TypeError
,"Variable wxRED_BRUSH is read-only.");
944 static PyObject
*_wrap_wxRED_BRUSH_get() {
948 SWIG_MakePtr(ptemp
, (char *) wxRED_BRUSH
,"_wxBrush_p");
949 pyobj
= PyString_FromString(ptemp
);
953 static int _wrap_wxGREY_BRUSH_set(PyObject
*val
) {
955 PyErr_SetString(PyExc_TypeError
,"Variable wxGREY_BRUSH is read-only.");
959 static PyObject
*_wrap_wxGREY_BRUSH_get() {
963 SWIG_MakePtr(ptemp
, (char *) wxGREY_BRUSH
,"_wxBrush_p");
964 pyobj
= PyString_FromString(ptemp
);
968 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject
*val
) {
970 PyErr_SetString(PyExc_TypeError
,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
974 static PyObject
*_wrap_wxMEDIUM_GREY_BRUSH_get() {
978 SWIG_MakePtr(ptemp
, (char *) wxMEDIUM_GREY_BRUSH
,"_wxBrush_p");
979 pyobj
= PyString_FromString(ptemp
);
983 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject
*val
) {
985 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY_BRUSH is read-only.");
989 static PyObject
*_wrap_wxLIGHT_GREY_BRUSH_get() {
993 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY_BRUSH
,"_wxBrush_p");
994 pyobj
= PyString_FromString(ptemp
);
998 static int _wrap_wxBLACK_set(PyObject
*val
) {
1000 PyErr_SetString(PyExc_TypeError
,"Variable wxBLACK is read-only.");
1004 static PyObject
*_wrap_wxBLACK_get() {
1008 SWIG_MakePtr(ptemp
, (char *) wxBLACK
,"_wxColour_p");
1009 pyobj
= PyString_FromString(ptemp
);
1013 static int _wrap_wxWHITE_set(PyObject
*val
) {
1015 PyErr_SetString(PyExc_TypeError
,"Variable wxWHITE is read-only.");
1019 static PyObject
*_wrap_wxWHITE_get() {
1023 SWIG_MakePtr(ptemp
, (char *) wxWHITE
,"_wxColour_p");
1024 pyobj
= PyString_FromString(ptemp
);
1028 static int _wrap_wxRED_set(PyObject
*val
) {
1030 PyErr_SetString(PyExc_TypeError
,"Variable wxRED is read-only.");
1034 static PyObject
*_wrap_wxRED_get() {
1038 SWIG_MakePtr(ptemp
, (char *) wxRED
,"_wxColour_p");
1039 pyobj
= PyString_FromString(ptemp
);
1043 static int _wrap_wxBLUE_set(PyObject
*val
) {
1045 PyErr_SetString(PyExc_TypeError
,"Variable wxBLUE is read-only.");
1049 static PyObject
*_wrap_wxBLUE_get() {
1053 SWIG_MakePtr(ptemp
, (char *) wxBLUE
,"_wxColour_p");
1054 pyobj
= PyString_FromString(ptemp
);
1058 static int _wrap_wxGREEN_set(PyObject
*val
) {
1060 PyErr_SetString(PyExc_TypeError
,"Variable wxGREEN is read-only.");
1064 static PyObject
*_wrap_wxGREEN_get() {
1068 SWIG_MakePtr(ptemp
, (char *) wxGREEN
,"_wxColour_p");
1069 pyobj
= PyString_FromString(ptemp
);
1073 static int _wrap_wxCYAN_set(PyObject
*val
) {
1075 PyErr_SetString(PyExc_TypeError
,"Variable wxCYAN is read-only.");
1079 static PyObject
*_wrap_wxCYAN_get() {
1083 SWIG_MakePtr(ptemp
, (char *) wxCYAN
,"_wxColour_p");
1084 pyobj
= PyString_FromString(ptemp
);
1088 static int _wrap_wxLIGHT_GREY_set(PyObject
*val
) {
1090 PyErr_SetString(PyExc_TypeError
,"Variable wxLIGHT_GREY is read-only.");
1094 static PyObject
*_wrap_wxLIGHT_GREY_get() {
1098 SWIG_MakePtr(ptemp
, (char *) wxLIGHT_GREY
,"_wxColour_p");
1099 pyobj
= PyString_FromString(ptemp
);
1103 static int _wrap_wxSTANDARD_CURSOR_set(PyObject
*val
) {
1105 PyErr_SetString(PyExc_TypeError
,"Variable wxSTANDARD_CURSOR is read-only.");
1109 static PyObject
*_wrap_wxSTANDARD_CURSOR_get() {
1113 SWIG_MakePtr(ptemp
, (char *) wxSTANDARD_CURSOR
,"_wxCursor_p");
1114 pyobj
= PyString_FromString(ptemp
);
1118 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject
*val
) {
1120 PyErr_SetString(PyExc_TypeError
,"Variable wxHOURGLASS_CURSOR is read-only.");
1124 static PyObject
*_wrap_wxHOURGLASS_CURSOR_get() {
1128 SWIG_MakePtr(ptemp
, (char *) wxHOURGLASS_CURSOR
,"_wxCursor_p");
1129 pyobj
= PyString_FromString(ptemp
);
1133 static int _wrap_wxCROSS_CURSOR_set(PyObject
*val
) {
1135 PyErr_SetString(PyExc_TypeError
,"Variable wxCROSS_CURSOR is read-only.");
1139 static PyObject
*_wrap_wxCROSS_CURSOR_get() {
1143 SWIG_MakePtr(ptemp
, (char *) wxCROSS_CURSOR
,"_wxCursor_p");
1144 pyobj
= PyString_FromString(ptemp
);
1148 static int _wrap_wxNullBitmap_set(PyObject
*val
) {
1150 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBitmap is read-only.");
1154 static PyObject
*_wrap_wxNullBitmap_get() {
1158 SWIG_MakePtr(ptemp
,(char *) &wxNullBitmap
,"_wxBitmap_p");
1159 pyobj
= PyString_FromString(ptemp
);
1163 static int _wrap_wxNullIcon_set(PyObject
*val
) {
1165 PyErr_SetString(PyExc_TypeError
,"Variable wxNullIcon is read-only.");
1169 static PyObject
*_wrap_wxNullIcon_get() {
1173 SWIG_MakePtr(ptemp
,(char *) &wxNullIcon
,"_wxIcon_p");
1174 pyobj
= PyString_FromString(ptemp
);
1178 static int _wrap_wxNullCursor_set(PyObject
*val
) {
1180 PyErr_SetString(PyExc_TypeError
,"Variable wxNullCursor is read-only.");
1184 static PyObject
*_wrap_wxNullCursor_get() {
1188 SWIG_MakePtr(ptemp
,(char *) &wxNullCursor
,"_wxCursor_p");
1189 pyobj
= PyString_FromString(ptemp
);
1193 static int _wrap_wxNullPen_set(PyObject
*val
) {
1195 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPen is read-only.");
1199 static PyObject
*_wrap_wxNullPen_get() {
1203 SWIG_MakePtr(ptemp
,(char *) &wxNullPen
,"_wxPen_p");
1204 pyobj
= PyString_FromString(ptemp
);
1208 static int _wrap_wxNullBrush_set(PyObject
*val
) {
1210 PyErr_SetString(PyExc_TypeError
,"Variable wxNullBrush is read-only.");
1214 static PyObject
*_wrap_wxNullBrush_get() {
1218 SWIG_MakePtr(ptemp
,(char *) &wxNullBrush
,"_wxBrush_p");
1219 pyobj
= PyString_FromString(ptemp
);
1223 static int _wrap_wxNullPalette_set(PyObject
*val
) {
1225 PyErr_SetString(PyExc_TypeError
,"Variable wxNullPalette is read-only.");
1229 static PyObject
*_wrap_wxNullPalette_get() {
1233 SWIG_MakePtr(ptemp
,(char *) &wxNullPalette
,"_wxPalette_p");
1234 pyobj
= PyString_FromString(ptemp
);
1238 static int _wrap_wxNullFont_set(PyObject
*val
) {
1240 PyErr_SetString(PyExc_TypeError
,"Variable wxNullFont is read-only.");
1244 static PyObject
*_wrap_wxNullFont_get() {
1248 SWIG_MakePtr(ptemp
,(char *) &wxNullFont
,"_wxFont_p");
1249 pyobj
= PyString_FromString(ptemp
);
1253 static int _wrap_wxNullColour_set(PyObject
*val
) {
1255 PyErr_SetString(PyExc_TypeError
,"Variable wxNullColour is read-only.");
1259 static PyObject
*_wrap_wxNullColour_get() {
1263 SWIG_MakePtr(ptemp
,(char *) &wxNullColour
,"_wxColour_p");
1264 pyobj
= PyString_FromString(ptemp
);
1268 static int _wrap_wxTheFontList_set(PyObject
*val
) {
1270 PyErr_SetString(PyExc_TypeError
,"Variable wxTheFontList is read-only.");
1274 static PyObject
*_wrap_wxTheFontList_get() {
1278 SWIG_MakePtr(ptemp
, (char *) wxTheFontList
,"_wxFontList_p");
1279 pyobj
= PyString_FromString(ptemp
);
1283 static int _wrap_wxThePenList_set(PyObject
*val
) {
1285 PyErr_SetString(PyExc_TypeError
,"Variable wxThePenList is read-only.");
1289 static PyObject
*_wrap_wxThePenList_get() {
1293 SWIG_MakePtr(ptemp
, (char *) wxThePenList
,"_wxPenList_p");
1294 pyobj
= PyString_FromString(ptemp
);
1298 static int _wrap_wxTheBrushList_set(PyObject
*val
) {
1300 PyErr_SetString(PyExc_TypeError
,"Variable wxTheBrushList is read-only.");
1304 static PyObject
*_wrap_wxTheBrushList_get() {
1308 SWIG_MakePtr(ptemp
, (char *) wxTheBrushList
,"_wxBrushList_p");
1309 pyobj
= PyString_FromString(ptemp
);
1313 static int _wrap_wxTheColourDatabase_set(PyObject
*val
) {
1315 PyErr_SetString(PyExc_TypeError
,"Variable wxTheColourDatabase is read-only.");
1319 static PyObject
*_wrap_wxTheColourDatabase_get() {
1323 SWIG_MakePtr(ptemp
, (char *) wxTheColourDatabase
,"_wxColourDatabase_p");
1324 pyobj
= PyString_FromString(ptemp
);
1328 static void *SwigwxGDIObjectTowxObject(void *ptr
) {
1331 src
= (wxGDIObject
*) ptr
;
1332 dest
= (wxObject
*) src
;
1333 return (void *) dest
;
1336 #define new_wxGDIObject() (new wxGDIObject())
1337 static PyObject
*_wrap_new_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1338 PyObject
* _resultobj
;
1339 wxGDIObject
* _result
;
1340 char *_kwnames
[] = { NULL
};
1344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGDIObject",_kwnames
))
1347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1348 _result
= (wxGDIObject
*)new_wxGDIObject();
1350 wxPyEndAllowThreads(__tstate
);
1351 if (PyErr_Occurred()) return NULL
;
1353 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGDIObject_p");
1354 _resultobj
= Py_BuildValue("s",_ptemp
);
1357 _resultobj
= Py_None
;
1362 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1363 static PyObject
*_wrap_delete_wxGDIObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1364 PyObject
* _resultobj
;
1365 wxGDIObject
* _arg0
;
1366 PyObject
* _argo0
= 0;
1367 char *_kwnames
[] = { "self", NULL
};
1370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGDIObject",_kwnames
,&_argo0
))
1373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1381 delete_wxGDIObject(_arg0
);
1383 wxPyEndAllowThreads(__tstate
);
1384 if (PyErr_Occurred()) return NULL
;
1385 } Py_INCREF(Py_None
);
1386 _resultobj
= Py_None
;
1390 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1391 static PyObject
*_wrap_wxGDIObject_GetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1392 PyObject
* _resultobj
;
1394 wxGDIObject
* _arg0
;
1395 PyObject
* _argo0
= 0;
1396 char *_kwnames
[] = { "self", NULL
};
1399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_GetVisible",_kwnames
,&_argo0
))
1402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1410 _result
= (bool )wxGDIObject_GetVisible(_arg0
);
1412 wxPyEndAllowThreads(__tstate
);
1413 if (PyErr_Occurred()) return NULL
;
1414 } _resultobj
= Py_BuildValue("i",_result
);
1418 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1419 static PyObject
*_wrap_wxGDIObject_SetVisible(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1420 PyObject
* _resultobj
;
1421 wxGDIObject
* _arg0
;
1423 PyObject
* _argo0
= 0;
1425 char *_kwnames
[] = { "self","visible", NULL
};
1428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxGDIObject_SetVisible",_kwnames
,&_argo0
,&tempbool1
))
1431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGDIObject_p")) {
1433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1437 _arg1
= (bool ) tempbool1
;
1439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1440 wxGDIObject_SetVisible(_arg0
,_arg1
);
1442 wxPyEndAllowThreads(__tstate
);
1443 if (PyErr_Occurred()) return NULL
;
1444 } Py_INCREF(Py_None
);
1445 _resultobj
= Py_None
;
1449 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1450 static PyObject
*_wrap_wxGDIObject_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1451 PyObject
* _resultobj
;
1453 wxGDIObject
* _arg0
;
1454 PyObject
* _argo0
= 0;
1455 char *_kwnames
[] = { "self", NULL
};
1458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGDIObject_IsNull",_kwnames
,&_argo0
))
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_IsNull. Expected _wxGDIObject_p.");
1468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1469 _result
= (bool )wxGDIObject_IsNull(_arg0
);
1471 wxPyEndAllowThreads(__tstate
);
1472 if (PyErr_Occurred()) return NULL
;
1473 } _resultobj
= Py_BuildValue("i",_result
);
1477 static void *SwigwxBitmapTowxGDIObject(void *ptr
) {
1480 src
= (wxBitmap
*) ptr
;
1481 dest
= (wxGDIObject
*) src
;
1482 return (void *) dest
;
1485 static void *SwigwxBitmapTowxObject(void *ptr
) {
1488 src
= (wxBitmap
*) ptr
;
1489 dest
= (wxObject
*) src
;
1490 return (void *) dest
;
1493 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1494 static PyObject
*_wrap_new_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1495 PyObject
* _resultobj
;
1498 wxBitmapType _arg1
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1499 PyObject
* _obj0
= 0;
1500 char *_kwnames
[] = { "name","type", NULL
};
1504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBitmap",_kwnames
,&_obj0
,&_arg1
))
1507 #if PYTHON_API_VERSION >= 1009
1508 char* tmpPtr
; int tmpSize
;
1509 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1510 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1513 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1515 _arg0
= new wxString(tmpPtr
, tmpSize
);
1517 if (!PyString_Check(_obj0
)) {
1518 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1521 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1526 _result
= (wxBitmap
*)new_wxBitmap(*_arg0
,_arg1
);
1528 wxPyEndAllowThreads(__tstate
);
1529 if (PyErr_Occurred()) return NULL
;
1531 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1532 _resultobj
= Py_BuildValue("s",_ptemp
);
1535 _resultobj
= Py_None
;
1544 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1545 static PyObject
*_wrap_delete_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1546 PyObject
* _resultobj
;
1548 PyObject
* _argo0
= 0;
1549 char *_kwnames
[] = { "self", NULL
};
1552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBitmap",_kwnames
,&_argo0
))
1555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1563 delete_wxBitmap(_arg0
);
1565 wxPyEndAllowThreads(__tstate
);
1566 if (PyErr_Occurred()) return NULL
;
1567 } Py_INCREF(Py_None
);
1568 _resultobj
= Py_None
;
1572 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1573 static PyObject
*_wrap_wxBitmap_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1574 PyObject
* _resultobj
;
1575 wxPalette
* _result
;
1577 PyObject
* _argo0
= 0;
1578 char *_kwnames
[] = { "self", NULL
};
1582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetPalette",_kwnames
,&_argo0
))
1585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1593 _result
= (wxPalette
*)wxBitmap_GetPalette(_arg0
);
1595 wxPyEndAllowThreads(__tstate
);
1596 if (PyErr_Occurred()) return NULL
;
1598 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
1599 _resultobj
= Py_BuildValue("s",_ptemp
);
1602 _resultobj
= Py_None
;
1607 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1608 static PyObject
*_wrap_wxBitmap_GetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1609 PyObject
* _resultobj
;
1612 PyObject
* _argo0
= 0;
1613 char *_kwnames
[] = { "self", NULL
};
1617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetMask",_kwnames
,&_argo0
))
1620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1628 _result
= (wxMask
*)wxBitmap_GetMask(_arg0
);
1630 wxPyEndAllowThreads(__tstate
);
1631 if (PyErr_Occurred()) return NULL
;
1633 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
1634 _resultobj
= Py_BuildValue("s",_ptemp
);
1637 _resultobj
= Py_None
;
1642 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1643 static PyObject
*_wrap_wxBitmap_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1644 PyObject
* _resultobj
;
1648 wxBitmapType _arg2
= (wxBitmapType
) wxBITMAP_TYPE_ANY
;
1649 PyObject
* _argo0
= 0;
1650 PyObject
* _obj1
= 0;
1651 char *_kwnames
[] = { "self","name","type", NULL
};
1654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxBitmap_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1664 #if PYTHON_API_VERSION >= 1009
1665 char* tmpPtr
; int tmpSize
;
1666 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1667 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1670 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1672 _arg1
= new wxString(tmpPtr
, tmpSize
);
1674 if (!PyString_Check(_obj1
)) {
1675 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1678 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1683 _result
= (bool )wxBitmap_LoadFile(_arg0
,*_arg1
,_arg2
);
1685 wxPyEndAllowThreads(__tstate
);
1686 if (PyErr_Occurred()) return NULL
;
1687 } _resultobj
= Py_BuildValue("i",_result
);
1695 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1696 static PyObject
*_wrap_wxBitmap_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1697 PyObject
* _resultobj
;
1702 wxPalette
* _arg3
= (wxPalette
*) NULL
;
1703 PyObject
* _argo0
= 0;
1704 PyObject
* _obj1
= 0;
1705 PyObject
* _argo3
= 0;
1706 char *_kwnames
[] = { "self","name","type","palette", NULL
};
1709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|O:wxBitmap_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_argo3
))
1712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1719 #if PYTHON_API_VERSION >= 1009
1720 char* tmpPtr
; int tmpSize
;
1721 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1722 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1725 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1727 _arg1
= new wxString(tmpPtr
, tmpSize
);
1729 if (!PyString_Check(_obj1
)) {
1730 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1733 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1737 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1738 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxPalette_p")) {
1739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1745 _result
= (bool )wxBitmap_SaveFile(_arg0
,*_arg1
,_arg2
,_arg3
);
1747 wxPyEndAllowThreads(__tstate
);
1748 if (PyErr_Occurred()) return NULL
;
1749 } _resultobj
= Py_BuildValue("i",_result
);
1757 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1758 static PyObject
*_wrap_wxBitmap_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1759 PyObject
* _resultobj
;
1762 PyObject
* _argo0
= 0;
1763 PyObject
* _argo1
= 0;
1764 char *_kwnames
[] = { "self","mask", NULL
};
1767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_SetMask",_kwnames
,&_argo0
,&_argo1
))
1770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1777 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1778 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMask_p")) {
1779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1785 wxBitmap_SetMask(_arg0
,_arg1
);
1787 wxPyEndAllowThreads(__tstate
);
1788 if (PyErr_Occurred()) return NULL
;
1789 } Py_INCREF(Py_None
);
1790 _resultobj
= Py_None
;
1794 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1795 static PyObject
*_wrap_wxBitmap_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1796 PyObject
* _resultobj
;
1799 PyObject
* _argo0
= 0;
1800 char *_kwnames
[] = { "self", NULL
};
1803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_Ok",_kwnames
,&_argo0
))
1806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1813 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1814 _result
= (bool )wxBitmap_Ok(_arg0
);
1816 wxPyEndAllowThreads(__tstate
);
1817 if (PyErr_Occurred()) return NULL
;
1818 } _resultobj
= Py_BuildValue("i",_result
);
1822 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1823 static PyObject
*_wrap_wxBitmap_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1824 PyObject
* _resultobj
;
1827 PyObject
* _argo0
= 0;
1828 char *_kwnames
[] = { "self", NULL
};
1831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetWidth",_kwnames
,&_argo0
))
1834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1842 _result
= (int )wxBitmap_GetWidth(_arg0
);
1844 wxPyEndAllowThreads(__tstate
);
1845 if (PyErr_Occurred()) return NULL
;
1846 } _resultobj
= Py_BuildValue("i",_result
);
1850 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1851 static PyObject
*_wrap_wxBitmap_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1852 PyObject
* _resultobj
;
1855 PyObject
* _argo0
= 0;
1856 char *_kwnames
[] = { "self", NULL
};
1859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetHeight",_kwnames
,&_argo0
))
1862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1870 _result
= (int )wxBitmap_GetHeight(_arg0
);
1872 wxPyEndAllowThreads(__tstate
);
1873 if (PyErr_Occurred()) return NULL
;
1874 } _resultobj
= Py_BuildValue("i",_result
);
1878 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1879 static PyObject
*_wrap_wxBitmap_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1880 PyObject
* _resultobj
;
1883 PyObject
* _argo0
= 0;
1884 char *_kwnames
[] = { "self", NULL
};
1887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmap_GetDepth",_kwnames
,&_argo0
))
1890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1898 _result
= (int )wxBitmap_GetDepth(_arg0
);
1900 wxPyEndAllowThreads(__tstate
);
1901 if (PyErr_Occurred()) return NULL
;
1902 } _resultobj
= Py_BuildValue("i",_result
);
1906 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1907 static PyObject
*_wrap_wxBitmap_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1908 PyObject
* _resultobj
;
1911 PyObject
* _argo0
= 0;
1912 char *_kwnames
[] = { "self","w", NULL
};
1915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetWidth",_kwnames
,&_argo0
,&_arg1
))
1918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1926 wxBitmap_SetWidth(_arg0
,_arg1
);
1928 wxPyEndAllowThreads(__tstate
);
1929 if (PyErr_Occurred()) return NULL
;
1930 } Py_INCREF(Py_None
);
1931 _resultobj
= Py_None
;
1935 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1936 static PyObject
*_wrap_wxBitmap_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1937 PyObject
* _resultobj
;
1940 PyObject
* _argo0
= 0;
1941 char *_kwnames
[] = { "self","h", NULL
};
1944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetHeight",_kwnames
,&_argo0
,&_arg1
))
1947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
1954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1955 wxBitmap_SetHeight(_arg0
,_arg1
);
1957 wxPyEndAllowThreads(__tstate
);
1958 if (PyErr_Occurred()) return NULL
;
1959 } Py_INCREF(Py_None
);
1960 _resultobj
= Py_None
;
1964 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1965 static PyObject
*_wrap_wxBitmap_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1966 PyObject
* _resultobj
;
1969 PyObject
* _argo0
= 0;
1970 char *_kwnames
[] = { "self","d", NULL
};
1973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBitmap_SetDepth",_kwnames
,&_argo0
,&_arg1
))
1976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
1983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1984 wxBitmap_SetDepth(_arg0
,_arg1
);
1986 wxPyEndAllowThreads(__tstate
);
1987 if (PyErr_Occurred()) return NULL
;
1988 } Py_INCREF(Py_None
);
1989 _resultobj
= Py_None
;
1993 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1994 static PyObject
*_wrap_wxBitmap_GetSubBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
* _resultobj
;
1999 PyObject
* _argo0
= 0;
2001 PyObject
* _obj1
= 0;
2002 char *_kwnames
[] = { "self","rect", NULL
};
2006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_GetSubBitmap",_kwnames
,&_argo0
,&_obj1
))
2009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2017 if (! wxRect_helper(_obj1
, &_arg1
))
2021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2022 _result
= new wxBitmap (wxBitmap_GetSubBitmap(_arg0
,*_arg1
));
2024 wxPyEndAllowThreads(__tstate
);
2025 if (PyErr_Occurred()) return NULL
;
2026 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
2027 _resultobj
= Py_BuildValue("s",_ptemp
);
2031 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2032 static PyObject
*_wrap_wxBitmap_CopyFromIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2033 PyObject
* _resultobj
;
2037 PyObject
* _argo0
= 0;
2038 PyObject
* _argo1
= 0;
2039 char *_kwnames
[] = { "self","icon", NULL
};
2042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmap_CopyFromIcon",_kwnames
,&_argo0
,&_argo1
))
2045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2052 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2053 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2060 _result
= (bool )wxBitmap_CopyFromIcon(_arg0
,*_arg1
);
2062 wxPyEndAllowThreads(__tstate
);
2063 if (PyErr_Occurred()) return NULL
;
2064 } _resultobj
= Py_BuildValue("i",_result
);
2068 static void *SwigwxMaskTowxObject(void *ptr
) {
2071 src
= (wxMask
*) ptr
;
2072 dest
= (wxObject
*) src
;
2073 return (void *) dest
;
2076 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2077 static PyObject
*_wrap_new_wxMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2078 PyObject
* _resultobj
;
2081 PyObject
* _argo0
= 0;
2082 char *_kwnames
[] = { "bitmap", NULL
};
2086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxMask",_kwnames
,&_argo0
))
2089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2097 _result
= (wxMask
*)new_wxMask(*_arg0
);
2099 wxPyEndAllowThreads(__tstate
);
2100 if (PyErr_Occurred()) return NULL
;
2102 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMask_p");
2103 _resultobj
= Py_BuildValue("s",_ptemp
);
2106 _resultobj
= Py_None
;
2111 static void wxMask_Destroy(wxMask
*self
) { delete self
; }
2112 static PyObject
*_wrap_wxMask_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2113 PyObject
* _resultobj
;
2115 PyObject
* _argo0
= 0;
2116 char *_kwnames
[] = { "self", NULL
};
2119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMask_Destroy",_kwnames
,&_argo0
))
2122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMask_p")) {
2124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2130 wxMask_Destroy(_arg0
);
2132 wxPyEndAllowThreads(__tstate
);
2133 if (PyErr_Occurred()) return NULL
;
2134 } Py_INCREF(Py_None
);
2135 _resultobj
= Py_None
;
2139 static void *SwigwxIconTowxGDIObject(void *ptr
) {
2142 src
= (wxIcon
*) ptr
;
2143 dest
= (wxGDIObject
*) src
;
2144 return (void *) dest
;
2147 static void *SwigwxIconTowxObject(void *ptr
) {
2150 src
= (wxIcon
*) ptr
;
2151 dest
= (wxObject
*) src
;
2152 return (void *) dest
;
2155 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2156 static PyObject
*_wrap_new_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2157 PyObject
* _resultobj
;
2161 int _arg2
= (int ) -1;
2162 int _arg3
= (int ) -1;
2163 PyObject
* _obj0
= 0;
2164 char *_kwnames
[] = { "name","flags","desiredWidth","desiredHeight", NULL
};
2168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol|ii:new_wxIcon",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
2171 #if PYTHON_API_VERSION >= 1009
2172 char* tmpPtr
; int tmpSize
;
2173 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2174 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2177 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2179 _arg0
= new wxString(tmpPtr
, tmpSize
);
2181 if (!PyString_Check(_obj0
)) {
2182 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2185 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2190 _result
= (wxIcon
*)new_wxIcon(*_arg0
,_arg1
,_arg2
,_arg3
);
2192 wxPyEndAllowThreads(__tstate
);
2193 if (PyErr_Occurred()) return NULL
;
2195 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
2196 _resultobj
= Py_BuildValue("s",_ptemp
);
2199 _resultobj
= Py_None
;
2208 #define delete_wxIcon(_swigobj) (delete _swigobj)
2209 static PyObject
*_wrap_delete_wxIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2210 PyObject
* _resultobj
;
2212 PyObject
* _argo0
= 0;
2213 char *_kwnames
[] = { "self", NULL
};
2216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxIcon",_kwnames
,&_argo0
))
2219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2227 delete_wxIcon(_arg0
);
2229 wxPyEndAllowThreads(__tstate
);
2230 if (PyErr_Occurred()) return NULL
;
2231 } Py_INCREF(Py_None
);
2232 _resultobj
= Py_None
;
2236 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2237 static PyObject
*_wrap_wxIcon_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2238 PyObject
* _resultobj
;
2243 PyObject
* _argo0
= 0;
2244 PyObject
* _obj1
= 0;
2245 char *_kwnames
[] = { "self","name","flags", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxIcon_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2258 #if PYTHON_API_VERSION >= 1009
2259 char* tmpPtr
; int tmpSize
;
2260 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2261 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2264 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2266 _arg1
= new wxString(tmpPtr
, tmpSize
);
2268 if (!PyString_Check(_obj1
)) {
2269 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2272 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2277 _result
= (bool )wxIcon_LoadFile(_arg0
,*_arg1
,_arg2
);
2279 wxPyEndAllowThreads(__tstate
);
2280 if (PyErr_Occurred()) return NULL
;
2281 } _resultobj
= Py_BuildValue("i",_result
);
2289 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2290 static PyObject
*_wrap_wxIcon_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2291 PyObject
* _resultobj
;
2294 PyObject
* _argo0
= 0;
2295 char *_kwnames
[] = { "self", NULL
};
2298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_Ok",_kwnames
,&_argo0
))
2301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2309 _result
= (bool )wxIcon_Ok(_arg0
);
2311 wxPyEndAllowThreads(__tstate
);
2312 if (PyErr_Occurred()) return NULL
;
2313 } _resultobj
= Py_BuildValue("i",_result
);
2317 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2318 static PyObject
*_wrap_wxIcon_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2319 PyObject
* _resultobj
;
2322 PyObject
* _argo0
= 0;
2323 char *_kwnames
[] = { "self", NULL
};
2326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetWidth",_kwnames
,&_argo0
))
2329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2337 _result
= (int )wxIcon_GetWidth(_arg0
);
2339 wxPyEndAllowThreads(__tstate
);
2340 if (PyErr_Occurred()) return NULL
;
2341 } _resultobj
= Py_BuildValue("i",_result
);
2345 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2346 static PyObject
*_wrap_wxIcon_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2347 PyObject
* _resultobj
;
2350 PyObject
* _argo0
= 0;
2351 char *_kwnames
[] = { "self", NULL
};
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetHeight",_kwnames
,&_argo0
))
2357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2365 _result
= (int )wxIcon_GetHeight(_arg0
);
2367 wxPyEndAllowThreads(__tstate
);
2368 if (PyErr_Occurred()) return NULL
;
2369 } _resultobj
= Py_BuildValue("i",_result
);
2373 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2374 static PyObject
*_wrap_wxIcon_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2375 PyObject
* _resultobj
;
2378 PyObject
* _argo0
= 0;
2379 char *_kwnames
[] = { "self", NULL
};
2382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxIcon_GetDepth",_kwnames
,&_argo0
))
2385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2393 _result
= (int )wxIcon_GetDepth(_arg0
);
2395 wxPyEndAllowThreads(__tstate
);
2396 if (PyErr_Occurred()) return NULL
;
2397 } _resultobj
= Py_BuildValue("i",_result
);
2401 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2402 static PyObject
*_wrap_wxIcon_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2403 PyObject
* _resultobj
;
2406 PyObject
* _argo0
= 0;
2407 char *_kwnames
[] = { "self","w", NULL
};
2410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetWidth",_kwnames
,&_argo0
,&_arg1
))
2413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2421 wxIcon_SetWidth(_arg0
,_arg1
);
2423 wxPyEndAllowThreads(__tstate
);
2424 if (PyErr_Occurred()) return NULL
;
2425 } Py_INCREF(Py_None
);
2426 _resultobj
= Py_None
;
2430 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2431 static PyObject
*_wrap_wxIcon_SetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2432 PyObject
* _resultobj
;
2435 PyObject
* _argo0
= 0;
2436 char *_kwnames
[] = { "self","h", NULL
};
2439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetHeight",_kwnames
,&_argo0
,&_arg1
))
2442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2449 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2450 wxIcon_SetHeight(_arg0
,_arg1
);
2452 wxPyEndAllowThreads(__tstate
);
2453 if (PyErr_Occurred()) return NULL
;
2454 } Py_INCREF(Py_None
);
2455 _resultobj
= Py_None
;
2459 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2460 static PyObject
*_wrap_wxIcon_SetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2461 PyObject
* _resultobj
;
2464 PyObject
* _argo0
= 0;
2465 char *_kwnames
[] = { "self","d", NULL
};
2468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxIcon_SetDepth",_kwnames
,&_argo0
,&_arg1
))
2471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2479 wxIcon_SetDepth(_arg0
,_arg1
);
2481 wxPyEndAllowThreads(__tstate
);
2482 if (PyErr_Occurred()) return NULL
;
2483 } Py_INCREF(Py_None
);
2484 _resultobj
= Py_None
;
2488 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2489 static PyObject
*_wrap_wxIcon_CopyFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2490 PyObject
* _resultobj
;
2493 PyObject
* _argo0
= 0;
2494 PyObject
* _argo1
= 0;
2495 char *_kwnames
[] = { "self","bmp", NULL
};
2498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxIcon_CopyFromBitmap",_kwnames
,&_argo0
,&_argo1
))
2501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxIcon_p")) {
2503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2508 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2509 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2516 wxIcon_CopyFromBitmap(_arg0
,*_arg1
);
2518 wxPyEndAllowThreads(__tstate
);
2519 if (PyErr_Occurred()) return NULL
;
2520 } Py_INCREF(Py_None
);
2521 _resultobj
= Py_None
;
2525 static void *SwigwxCursorTowxGDIObject(void *ptr
) {
2528 src
= (wxCursor
*) ptr
;
2529 dest
= (wxGDIObject
*) src
;
2530 return (void *) dest
;
2533 static void *SwigwxCursorTowxObject(void *ptr
) {
2536 src
= (wxCursor
*) ptr
;
2537 dest
= (wxObject
*) src
;
2538 return (void *) dest
;
2541 #define delete_wxCursor(_swigobj) (delete _swigobj)
2542 static PyObject
*_wrap_delete_wxCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2543 PyObject
* _resultobj
;
2545 PyObject
* _argo0
= 0;
2546 char *_kwnames
[] = { "self", NULL
};
2549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxCursor",_kwnames
,&_argo0
))
2552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2560 delete_wxCursor(_arg0
);
2562 wxPyEndAllowThreads(__tstate
);
2563 if (PyErr_Occurred()) return NULL
;
2564 } Py_INCREF(Py_None
);
2565 _resultobj
= Py_None
;
2569 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2570 static PyObject
*_wrap_wxCursor_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2571 PyObject
* _resultobj
;
2574 PyObject
* _argo0
= 0;
2575 char *_kwnames
[] = { "self", NULL
};
2578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCursor_Ok",_kwnames
,&_argo0
))
2581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCursor_p")) {
2583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2589 _result
= (bool )wxCursor_Ok(_arg0
);
2591 wxPyEndAllowThreads(__tstate
);
2592 if (PyErr_Occurred()) return NULL
;
2593 } _resultobj
= Py_BuildValue("i",_result
);
2597 #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2598 static PyObject
*_wrap_wxNativeFontInfo_FromXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2599 PyObject
* _resultobj
;
2601 wxNativeFontInfo
* _arg0
;
2603 PyObject
* _argo0
= 0;
2604 PyObject
* _obj1
= 0;
2605 char *_kwnames
[] = { "self","xFontName", NULL
};
2608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromXFontName",_kwnames
,&_argo0
,&_obj1
))
2611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2618 #if PYTHON_API_VERSION >= 1009
2619 char* tmpPtr
; int tmpSize
;
2620 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2621 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2624 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2626 _arg1
= new wxString(tmpPtr
, tmpSize
);
2628 if (!PyString_Check(_obj1
)) {
2629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2632 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2637 _result
= (bool )wxNativeFontInfo_FromXFontName(_arg0
,*_arg1
);
2639 wxPyEndAllowThreads(__tstate
);
2640 if (PyErr_Occurred()) return NULL
;
2641 } _resultobj
= Py_BuildValue("i",_result
);
2649 #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
2650 static PyObject
*_wrap_wxNativeFontInfo_IsDefault(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2651 PyObject
* _resultobj
;
2653 wxNativeFontInfo
* _arg0
;
2654 PyObject
* _argo0
= 0;
2655 char *_kwnames
[] = { "self", NULL
};
2658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_IsDefault",_kwnames
,&_argo0
))
2661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
2668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2669 _result
= (bool )wxNativeFontInfo_IsDefault(_arg0
);
2671 wxPyEndAllowThreads(__tstate
);
2672 if (PyErr_Occurred()) return NULL
;
2673 } _resultobj
= Py_BuildValue("i",_result
);
2677 #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2678 static PyObject
*_wrap_wxNativeFontInfo_GetXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2681 wxNativeFontInfo
* _arg0
;
2682 PyObject
* _argo0
= 0;
2683 char *_kwnames
[] = { "self", NULL
};
2686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_GetXFontName",_kwnames
,&_argo0
))
2689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2697 _result
= new wxString (wxNativeFontInfo_GetXFontName(_arg0
));
2699 wxPyEndAllowThreads(__tstate
);
2700 if (PyErr_Occurred()) return NULL
;
2702 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2710 #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
2711 static PyObject
*_wrap_wxNativeFontInfo_SetXFontName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2712 PyObject
* _resultobj
;
2713 wxNativeFontInfo
* _arg0
;
2715 PyObject
* _argo0
= 0;
2716 PyObject
* _obj1
= 0;
2717 char *_kwnames
[] = { "self","xFontName", NULL
};
2720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_SetXFontName",_kwnames
,&_argo0
,&_obj1
))
2723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
2730 #if PYTHON_API_VERSION >= 1009
2731 char* tmpPtr
; int tmpSize
;
2732 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2733 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2736 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2738 _arg1
= new wxString(tmpPtr
, tmpSize
);
2740 if (!PyString_Check(_obj1
)) {
2741 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2744 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2749 wxNativeFontInfo_SetXFontName(_arg0
,*_arg1
);
2751 wxPyEndAllowThreads(__tstate
);
2752 if (PyErr_Occurred()) return NULL
;
2753 } Py_INCREF(Py_None
);
2754 _resultobj
= Py_None
;
2762 #define new_wxNativeFontInfo() (new wxNativeFontInfo())
2763 static PyObject
*_wrap_new_wxNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2764 PyObject
* _resultobj
;
2765 wxNativeFontInfo
* _result
;
2766 char *_kwnames
[] = { NULL
};
2770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxNativeFontInfo",_kwnames
))
2773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2774 _result
= (wxNativeFontInfo
*)new_wxNativeFontInfo();
2776 wxPyEndAllowThreads(__tstate
);
2777 if (PyErr_Occurred()) return NULL
;
2779 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
2780 _resultobj
= Py_BuildValue("s",_ptemp
);
2783 _resultobj
= Py_None
;
2788 #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2789 static PyObject
*_wrap_wxNativeFontInfo_Init(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2790 PyObject
* _resultobj
;
2791 wxNativeFontInfo
* _arg0
;
2792 PyObject
* _argo0
= 0;
2793 char *_kwnames
[] = { "self", NULL
};
2796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_Init",_kwnames
,&_argo0
))
2799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2807 wxNativeFontInfo_Init(_arg0
);
2809 wxPyEndAllowThreads(__tstate
);
2810 if (PyErr_Occurred()) return NULL
;
2811 } Py_INCREF(Py_None
);
2812 _resultobj
= Py_None
;
2816 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2817 static PyObject
*_wrap_wxNativeFontInfo_FromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2818 PyObject
* _resultobj
;
2820 wxNativeFontInfo
* _arg0
;
2822 PyObject
* _argo0
= 0;
2823 PyObject
* _obj1
= 0;
2824 char *_kwnames
[] = { "self","s", NULL
};
2827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromString",_kwnames
,&_argo0
,&_obj1
))
2830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2837 #if PYTHON_API_VERSION >= 1009
2838 char* tmpPtr
; int tmpSize
;
2839 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2843 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2845 _arg1
= new wxString(tmpPtr
, tmpSize
);
2847 if (!PyString_Check(_obj1
)) {
2848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2851 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2856 _result
= (bool )wxNativeFontInfo_FromString(_arg0
,*_arg1
);
2858 wxPyEndAllowThreads(__tstate
);
2859 if (PyErr_Occurred()) return NULL
;
2860 } _resultobj
= Py_BuildValue("i",_result
);
2868 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2869 static PyObject
*_wrap_wxNativeFontInfo_ToString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2872 wxNativeFontInfo
* _arg0
;
2873 PyObject
* _argo0
= 0;
2874 char *_kwnames
[] = { "self", NULL
};
2877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToString",_kwnames
,&_argo0
))
2880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
2887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2888 _result
= new wxString (wxNativeFontInfo_ToString(_arg0
));
2890 wxPyEndAllowThreads(__tstate
);
2891 if (PyErr_Occurred()) return NULL
;
2893 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2901 static wxString
wxNativeFontInfo___str__(wxNativeFontInfo
*self
) {
2902 return self
->ToString();
2904 static PyObject
*_wrap_wxNativeFontInfo___str__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2905 PyObject
* _resultobj
;
2907 wxNativeFontInfo
* _arg0
;
2908 PyObject
* _argo0
= 0;
2909 char *_kwnames
[] = { "self", NULL
};
2912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo___str__",_kwnames
,&_argo0
))
2915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
2922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2923 _result
= new wxString (wxNativeFontInfo___str__(_arg0
));
2925 wxPyEndAllowThreads(__tstate
);
2926 if (PyErr_Occurred()) return NULL
;
2928 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2936 #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2937 static PyObject
*_wrap_wxNativeFontInfo_FromUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2938 PyObject
* _resultobj
;
2940 wxNativeFontInfo
* _arg0
;
2942 PyObject
* _argo0
= 0;
2943 PyObject
* _obj1
= 0;
2944 char *_kwnames
[] = { "self","s", NULL
};
2947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxNativeFontInfo_FromUserString",_kwnames
,&_argo0
,&_obj1
))
2950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
2952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2957 #if PYTHON_API_VERSION >= 1009
2958 char* tmpPtr
; int tmpSize
;
2959 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2960 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2963 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2965 _arg1
= new wxString(tmpPtr
, tmpSize
);
2967 if (!PyString_Check(_obj1
)) {
2968 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2971 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2976 _result
= (bool )wxNativeFontInfo_FromUserString(_arg0
,*_arg1
);
2978 wxPyEndAllowThreads(__tstate
);
2979 if (PyErr_Occurred()) return NULL
;
2980 } _resultobj
= Py_BuildValue("i",_result
);
2988 #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2989 static PyObject
*_wrap_wxNativeFontInfo_ToUserString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2990 PyObject
* _resultobj
;
2992 wxNativeFontInfo
* _arg0
;
2993 PyObject
* _argo0
= 0;
2994 char *_kwnames
[] = { "self", NULL
};
2997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxNativeFontInfo_ToUserString",_kwnames
,&_argo0
))
3000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
3007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3008 _result
= new wxString (wxNativeFontInfo_ToUserString(_arg0
));
3010 wxPyEndAllowThreads(__tstate
);
3011 if (PyErr_Occurred()) return NULL
;
3013 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3021 #define new_wxFontMapper() (new wxFontMapper())
3022 static PyObject
*_wrap_new_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3023 PyObject
* _resultobj
;
3024 wxFontMapper
* _result
;
3025 char *_kwnames
[] = { NULL
};
3029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFontMapper",_kwnames
))
3032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3033 _result
= (wxFontMapper
*)new_wxFontMapper();
3035 wxPyEndAllowThreads(__tstate
);
3036 if (PyErr_Occurred()) return NULL
;
3038 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFontMapper_p");
3039 _resultobj
= Py_BuildValue("s",_ptemp
);
3042 _resultobj
= Py_None
;
3047 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3048 static PyObject
*_wrap_delete_wxFontMapper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3049 PyObject
* _resultobj
;
3050 wxFontMapper
* _arg0
;
3051 PyObject
* _argo0
= 0;
3052 char *_kwnames
[] = { "self", NULL
};
3055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFontMapper",_kwnames
,&_argo0
))
3058 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3059 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3066 delete_wxFontMapper(_arg0
);
3068 wxPyEndAllowThreads(__tstate
);
3069 if (PyErr_Occurred()) return NULL
;
3070 } Py_INCREF(Py_None
);
3071 _resultobj
= Py_None
;
3075 static PyObject
* wxFontMapper_GetAltForEncoding(wxFontMapper
*self
,wxFontEncoding encoding
,const wxString
& facename
,bool interactive
) {
3076 wxFontEncoding alt_enc
;
3077 if (self
->GetAltForEncoding(encoding
, &alt_enc
, facename
, interactive
))
3078 return PyInt_FromLong(alt_enc
);
3084 static PyObject
*_wrap_wxFontMapper_GetAltForEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3085 PyObject
* _resultobj
;
3087 wxFontMapper
* _arg0
;
3088 wxFontEncoding _arg1
;
3089 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3090 bool _arg3
= (bool ) TRUE
;
3091 PyObject
* _argo0
= 0;
3092 PyObject
* _obj2
= 0;
3093 int tempbool3
= (int) TRUE
;
3094 char *_kwnames
[] = { "self","encoding","facename","interactive", NULL
};
3097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
))
3100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3108 #if PYTHON_API_VERSION >= 1009
3109 char* tmpPtr
; int tmpSize
;
3110 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3111 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3114 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3116 _arg2
= new wxString(tmpPtr
, tmpSize
);
3118 if (!PyString_Check(_obj2
)) {
3119 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3122 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3125 _arg3
= (bool ) tempbool3
;
3127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3128 _result
= (PyObject
*)wxFontMapper_GetAltForEncoding(_arg0
,_arg1
,*_arg2
,_arg3
);
3130 wxPyEndAllowThreads(__tstate
);
3131 if (PyErr_Occurred()) return NULL
;
3133 _resultobj
= _result
;
3142 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3143 static PyObject
*_wrap_wxFontMapper_IsEncodingAvailable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3144 PyObject
* _resultobj
;
3146 wxFontMapper
* _arg0
;
3147 wxFontEncoding _arg1
;
3148 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
3149 PyObject
* _argo0
= 0;
3150 PyObject
* _obj2
= 0;
3151 char *_kwnames
[] = { "self","encoding","facename", NULL
};
3154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
3157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3165 #if PYTHON_API_VERSION >= 1009
3166 char* tmpPtr
; int tmpSize
;
3167 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3168 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3171 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3173 _arg2
= new wxString(tmpPtr
, tmpSize
);
3175 if (!PyString_Check(_obj2
)) {
3176 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3179 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3184 _result
= (bool )wxFontMapper_IsEncodingAvailable(_arg0
,_arg1
,*_arg2
);
3186 wxPyEndAllowThreads(__tstate
);
3187 if (PyErr_Occurred()) return NULL
;
3188 } _resultobj
= Py_BuildValue("i",_result
);
3196 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3197 static PyObject
*_wrap_wxFontMapper_CharsetToEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3198 PyObject
* _resultobj
;
3199 wxFontEncoding _result
;
3200 wxFontMapper
* _arg0
;
3202 bool _arg2
= (bool ) TRUE
;
3203 PyObject
* _argo0
= 0;
3204 PyObject
* _obj1
= 0;
3205 int tempbool2
= (int) TRUE
;
3206 char *_kwnames
[] = { "self","charset","interactive", NULL
};
3209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3219 #if PYTHON_API_VERSION >= 1009
3220 char* tmpPtr
; int tmpSize
;
3221 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3225 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3227 _arg1
= new wxString(tmpPtr
, tmpSize
);
3229 if (!PyString_Check(_obj1
)) {
3230 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3233 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3236 _arg2
= (bool ) tempbool2
;
3238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3239 _result
= (wxFontEncoding
)wxFontMapper_CharsetToEncoding(_arg0
,*_arg1
,_arg2
);
3241 wxPyEndAllowThreads(__tstate
);
3242 if (PyErr_Occurred()) return NULL
;
3243 } _resultobj
= Py_BuildValue("i",_result
);
3251 static PyObject
*_wrap_wxFontMapper_GetEncodingName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3252 PyObject
* _resultobj
;
3254 wxFontEncoding _arg0
;
3255 char *_kwnames
[] = { "encoding", NULL
};
3258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingName",_kwnames
,&_arg0
))
3261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3262 _result
= new wxString (wxFontMapper::GetEncodingName(_arg0
));
3264 wxPyEndAllowThreads(__tstate
);
3265 if (PyErr_Occurred()) return NULL
;
3267 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3275 static PyObject
*_wrap_wxFontMapper_GetEncodingDescription(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3276 PyObject
* _resultobj
;
3278 wxFontEncoding _arg0
;
3279 char *_kwnames
[] = { "encoding", NULL
};
3282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFontMapper_GetEncodingDescription",_kwnames
,&_arg0
))
3285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3286 _result
= new wxString (wxFontMapper::GetEncodingDescription(_arg0
));
3288 wxPyEndAllowThreads(__tstate
);
3289 if (PyErr_Occurred()) return NULL
;
3291 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3299 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3300 static PyObject
*_wrap_wxFontMapper_SetDialogParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3301 PyObject
* _resultobj
;
3302 wxFontMapper
* _arg0
;
3304 PyObject
* _argo0
= 0;
3305 PyObject
* _argo1
= 0;
3306 char *_kwnames
[] = { "self","parent", NULL
};
3309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogParent",_kwnames
,&_argo0
,&_argo1
))
3312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3319 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3320 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3327 wxFontMapper_SetDialogParent(_arg0
,_arg1
);
3329 wxPyEndAllowThreads(__tstate
);
3330 if (PyErr_Occurred()) return NULL
;
3331 } Py_INCREF(Py_None
);
3332 _resultobj
= Py_None
;
3336 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3337 static PyObject
*_wrap_wxFontMapper_SetDialogTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
* _resultobj
;
3339 wxFontMapper
* _arg0
;
3341 PyObject
* _argo0
= 0;
3342 PyObject
* _obj1
= 0;
3343 char *_kwnames
[] = { "self","title", NULL
};
3346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetDialogTitle",_kwnames
,&_argo0
,&_obj1
))
3349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3356 #if PYTHON_API_VERSION >= 1009
3357 char* tmpPtr
; int tmpSize
;
3358 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3359 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3362 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3364 _arg1
= new wxString(tmpPtr
, tmpSize
);
3366 if (!PyString_Check(_obj1
)) {
3367 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3370 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3375 wxFontMapper_SetDialogTitle(_arg0
,*_arg1
);
3377 wxPyEndAllowThreads(__tstate
);
3378 if (PyErr_Occurred()) return NULL
;
3379 } Py_INCREF(Py_None
);
3380 _resultobj
= Py_None
;
3388 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3389 static PyObject
*_wrap_wxFontMapper_SetConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3390 PyObject
* _resultobj
;
3391 wxFontMapper
* _arg0
;
3392 wxConfigBase
* _arg1
;
3393 PyObject
* _argo0
= 0;
3394 PyObject
* _argo1
= 0;
3395 char *_kwnames
[] = { "self","config", NULL
};
3398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfig",_kwnames
,&_argo0
,&_argo1
))
3401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3408 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3409 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxConfigBase_p")) {
3410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3416 wxFontMapper_SetConfig(_arg0
,_arg1
);
3418 wxPyEndAllowThreads(__tstate
);
3419 if (PyErr_Occurred()) return NULL
;
3420 } Py_INCREF(Py_None
);
3421 _resultobj
= Py_None
;
3425 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3426 static PyObject
*_wrap_wxFontMapper_SetConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3427 PyObject
* _resultobj
;
3428 wxFontMapper
* _arg0
;
3430 PyObject
* _argo0
= 0;
3431 PyObject
* _obj1
= 0;
3432 char *_kwnames
[] = { "self","prefix", NULL
};
3435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontMapper_SetConfigPath",_kwnames
,&_argo0
,&_obj1
))
3438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontMapper_p")) {
3440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3445 #if PYTHON_API_VERSION >= 1009
3446 char* tmpPtr
; int tmpSize
;
3447 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
3448 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3451 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
3453 _arg1
= new wxString(tmpPtr
, tmpSize
);
3455 if (!PyString_Check(_obj1
)) {
3456 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3459 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
3463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3464 wxFontMapper_SetConfigPath(_arg0
,*_arg1
);
3466 wxPyEndAllowThreads(__tstate
);
3467 if (PyErr_Occurred()) return NULL
;
3468 } Py_INCREF(Py_None
);
3469 _resultobj
= Py_None
;
3477 static PyObject
*_wrap_wxFontMapper_GetDefaultConfigPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3478 PyObject
* _resultobj
;
3480 char *_kwnames
[] = { NULL
};
3483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFontMapper_GetDefaultConfigPath",_kwnames
))
3486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3487 _result
= (wxChar
*)wxFontMapper::GetDefaultConfigPath();
3489 wxPyEndAllowThreads(__tstate
);
3490 if (PyErr_Occurred()) return NULL
;
3491 } _resultobj
= Py_BuildValue("s", _result
);
3495 static void *SwigwxFontTowxGDIObject(void *ptr
) {
3498 src
= (wxFont
*) ptr
;
3499 dest
= (wxGDIObject
*) src
;
3500 return (void *) dest
;
3503 static void *SwigwxFontTowxObject(void *ptr
) {
3506 src
= (wxFont
*) ptr
;
3507 dest
= (wxObject
*) src
;
3508 return (void *) dest
;
3511 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3512 static PyObject
*_wrap_new_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3513 PyObject
* _resultobj
;
3519 int _arg4
= (int ) FALSE
;
3520 char * _arg5
= (char *) "";
3521 wxFontEncoding _arg6
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
3522 char *_kwnames
[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL
};
3526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iiii|isi:new_wxFont",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
3529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3530 _result
= (wxFont
*)new_wxFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
3532 wxPyEndAllowThreads(__tstate
);
3533 if (PyErr_Occurred()) return NULL
;
3535 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3536 _resultobj
= Py_BuildValue("s",_ptemp
);
3539 _resultobj
= Py_None
;
3544 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3545 static PyObject
*_wrap_new_wxFontFromNativeInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3546 PyObject
* _resultobj
;
3548 wxNativeFontInfo
* _arg0
;
3549 PyObject
* _argo0
= 0;
3550 char *_kwnames
[] = { "info", NULL
};
3554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxFontFromNativeInfo",_kwnames
,&_argo0
))
3557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxNativeFontInfo_p")) {
3559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3565 _result
= (wxFont
*)new_wxFontFromNativeInfo(*_arg0
);
3567 wxPyEndAllowThreads(__tstate
);
3568 if (PyErr_Occurred()) return NULL
;
3570 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
3571 _resultobj
= Py_BuildValue("s",_ptemp
);
3574 _resultobj
= Py_None
;
3579 #define delete_wxFont(_swigobj) (delete _swigobj)
3580 static PyObject
*_wrap_delete_wxFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3581 PyObject
* _resultobj
;
3583 PyObject
* _argo0
= 0;
3584 char *_kwnames
[] = { "self", NULL
};
3587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFont",_kwnames
,&_argo0
))
3590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3598 delete_wxFont(_arg0
);
3600 wxPyEndAllowThreads(__tstate
);
3601 if (PyErr_Occurred()) return NULL
;
3602 } Py_INCREF(Py_None
);
3603 _resultobj
= Py_None
;
3607 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3608 static PyObject
*_wrap_wxFont_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3609 PyObject
* _resultobj
;
3612 PyObject
* _argo0
= 0;
3613 char *_kwnames
[] = { "self", NULL
};
3616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_Ok",_kwnames
,&_argo0
))
3619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3627 _result
= (bool )wxFont_Ok(_arg0
);
3629 wxPyEndAllowThreads(__tstate
);
3630 if (PyErr_Occurred()) return NULL
;
3631 } _resultobj
= Py_BuildValue("i",_result
);
3635 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3636 static PyObject
*_wrap_wxFont_GetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3637 PyObject
* _resultobj
;
3640 PyObject
* _argo0
= 0;
3641 char *_kwnames
[] = { "self", NULL
};
3644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetPointSize",_kwnames
,&_argo0
))
3647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3655 _result
= (int )wxFont_GetPointSize(_arg0
);
3657 wxPyEndAllowThreads(__tstate
);
3658 if (PyErr_Occurred()) return NULL
;
3659 } _resultobj
= Py_BuildValue("i",_result
);
3663 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3664 static PyObject
*_wrap_wxFont_GetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3665 PyObject
* _resultobj
;
3668 PyObject
* _argo0
= 0;
3669 char *_kwnames
[] = { "self", NULL
};
3672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamily",_kwnames
,&_argo0
))
3675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3683 _result
= (int )wxFont_GetFamily(_arg0
);
3685 wxPyEndAllowThreads(__tstate
);
3686 if (PyErr_Occurred()) return NULL
;
3687 } _resultobj
= Py_BuildValue("i",_result
);
3691 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3692 static PyObject
*_wrap_wxFont_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3693 PyObject
* _resultobj
;
3696 PyObject
* _argo0
= 0;
3697 char *_kwnames
[] = { "self", NULL
};
3700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyle",_kwnames
,&_argo0
))
3703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3711 _result
= (int )wxFont_GetStyle(_arg0
);
3713 wxPyEndAllowThreads(__tstate
);
3714 if (PyErr_Occurred()) return NULL
;
3715 } _resultobj
= Py_BuildValue("i",_result
);
3719 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3720 static PyObject
*_wrap_wxFont_GetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3721 PyObject
* _resultobj
;
3724 PyObject
* _argo0
= 0;
3725 char *_kwnames
[] = { "self", NULL
};
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeight",_kwnames
,&_argo0
))
3731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3739 _result
= (int )wxFont_GetWeight(_arg0
);
3741 wxPyEndAllowThreads(__tstate
);
3742 if (PyErr_Occurred()) return NULL
;
3743 } _resultobj
= Py_BuildValue("i",_result
);
3747 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3748 static PyObject
*_wrap_wxFont_GetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3749 PyObject
* _resultobj
;
3752 PyObject
* _argo0
= 0;
3753 char *_kwnames
[] = { "self", NULL
};
3756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetUnderlined",_kwnames
,&_argo0
))
3759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3767 _result
= (bool )wxFont_GetUnderlined(_arg0
);
3769 wxPyEndAllowThreads(__tstate
);
3770 if (PyErr_Occurred()) return NULL
;
3771 } _resultobj
= Py_BuildValue("i",_result
);
3775 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3776 static PyObject
*_wrap_wxFont_GetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3777 PyObject
* _resultobj
;
3780 PyObject
* _argo0
= 0;
3781 char *_kwnames
[] = { "self", NULL
};
3784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFaceName",_kwnames
,&_argo0
))
3787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3795 _result
= new wxString (wxFont_GetFaceName(_arg0
));
3797 wxPyEndAllowThreads(__tstate
);
3798 if (PyErr_Occurred()) return NULL
;
3800 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3808 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3809 static PyObject
*_wrap_wxFont_GetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3810 PyObject
* _resultobj
;
3811 wxFontEncoding _result
;
3813 PyObject
* _argo0
= 0;
3814 char *_kwnames
[] = { "self", NULL
};
3817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetEncoding",_kwnames
,&_argo0
))
3820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3828 _result
= (wxFontEncoding
)wxFont_GetEncoding(_arg0
);
3830 wxPyEndAllowThreads(__tstate
);
3831 if (PyErr_Occurred()) return NULL
;
3832 } _resultobj
= Py_BuildValue("i",_result
);
3836 #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
3837 static PyObject
*_wrap_wxFont_IsFixedWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3841 PyObject
* _argo0
= 0;
3842 char *_kwnames
[] = { "self", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_IsFixedWidth",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
3855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3856 _result
= (bool )wxFont_IsFixedWidth(_arg0
);
3858 wxPyEndAllowThreads(__tstate
);
3859 if (PyErr_Occurred()) return NULL
;
3860 } _resultobj
= Py_BuildValue("i",_result
);
3864 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3865 static PyObject
*_wrap_wxFont_GetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3866 PyObject
* _resultobj
;
3867 wxNativeFontInfo
* _result
;
3869 PyObject
* _argo0
= 0;
3870 char *_kwnames
[] = { "self", NULL
};
3874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfo",_kwnames
,&_argo0
))
3877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
3884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3885 _result
= (wxNativeFontInfo
*)wxFont_GetNativeFontInfo(_arg0
);
3887 wxPyEndAllowThreads(__tstate
);
3888 if (PyErr_Occurred()) return NULL
;
3890 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxNativeFontInfo_p");
3891 _resultobj
= Py_BuildValue("s",_ptemp
);
3894 _resultobj
= Py_None
;
3899 #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3900 static PyObject
*_wrap_wxFont_GetNativeFontInfoDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3901 PyObject
* _resultobj
;
3904 PyObject
* _argo0
= 0;
3905 char *_kwnames
[] = { "self", NULL
};
3908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoDesc",_kwnames
,&_argo0
))
3911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3919 _result
= new wxString (wxFont_GetNativeFontInfoDesc(_arg0
));
3921 wxPyEndAllowThreads(__tstate
);
3922 if (PyErr_Occurred()) return NULL
;
3924 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3932 #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3933 static PyObject
*_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3934 PyObject
* _resultobj
;
3937 PyObject
* _argo0
= 0;
3938 char *_kwnames
[] = { "self", NULL
};
3941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames
,&_argo0
))
3944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3952 _result
= new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0
));
3954 wxPyEndAllowThreads(__tstate
);
3955 if (PyErr_Occurred()) return NULL
;
3957 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
3965 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3966 static PyObject
*_wrap_wxFont_SetPointSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3967 PyObject
* _resultobj
;
3970 PyObject
* _argo0
= 0;
3971 char *_kwnames
[] = { "self","pointSize", NULL
};
3974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetPointSize",_kwnames
,&_argo0
,&_arg1
))
3977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
3979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3985 wxFont_SetPointSize(_arg0
,_arg1
);
3987 wxPyEndAllowThreads(__tstate
);
3988 if (PyErr_Occurred()) return NULL
;
3989 } Py_INCREF(Py_None
);
3990 _resultobj
= Py_None
;
3994 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3995 static PyObject
*_wrap_wxFont_SetFamily(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3996 PyObject
* _resultobj
;
3999 PyObject
* _argo0
= 0;
4000 char *_kwnames
[] = { "self","family", NULL
};
4003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetFamily",_kwnames
,&_argo0
,&_arg1
))
4006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4014 wxFont_SetFamily(_arg0
,_arg1
);
4016 wxPyEndAllowThreads(__tstate
);
4017 if (PyErr_Occurred()) return NULL
;
4018 } Py_INCREF(Py_None
);
4019 _resultobj
= Py_None
;
4023 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4024 static PyObject
*_wrap_wxFont_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4025 PyObject
* _resultobj
;
4028 PyObject
* _argo0
= 0;
4029 char *_kwnames
[] = { "self","style", NULL
};
4032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetStyle",_kwnames
,&_argo0
,&_arg1
))
4035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4043 wxFont_SetStyle(_arg0
,_arg1
);
4045 wxPyEndAllowThreads(__tstate
);
4046 if (PyErr_Occurred()) return NULL
;
4047 } Py_INCREF(Py_None
);
4048 _resultobj
= Py_None
;
4052 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4053 static PyObject
*_wrap_wxFont_SetWeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4054 PyObject
* _resultobj
;
4057 PyObject
* _argo0
= 0;
4058 char *_kwnames
[] = { "self","weight", NULL
};
4061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetWeight",_kwnames
,&_argo0
,&_arg1
))
4064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4072 wxFont_SetWeight(_arg0
,_arg1
);
4074 wxPyEndAllowThreads(__tstate
);
4075 if (PyErr_Occurred()) return NULL
;
4076 } Py_INCREF(Py_None
);
4077 _resultobj
= Py_None
;
4081 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4082 static PyObject
*_wrap_wxFont_SetFaceName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4083 PyObject
* _resultobj
;
4086 PyObject
* _argo0
= 0;
4087 PyObject
* _obj1
= 0;
4088 char *_kwnames
[] = { "self","faceName", NULL
};
4091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetFaceName",_kwnames
,&_argo0
,&_obj1
))
4094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4101 #if PYTHON_API_VERSION >= 1009
4102 char* tmpPtr
; int tmpSize
;
4103 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4107 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4109 _arg1
= new wxString(tmpPtr
, tmpSize
);
4111 if (!PyString_Check(_obj1
)) {
4112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4115 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4120 wxFont_SetFaceName(_arg0
,*_arg1
);
4122 wxPyEndAllowThreads(__tstate
);
4123 if (PyErr_Occurred()) return NULL
;
4124 } Py_INCREF(Py_None
);
4125 _resultobj
= Py_None
;
4133 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4134 static PyObject
*_wrap_wxFont_SetUnderlined(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4135 PyObject
* _resultobj
;
4138 PyObject
* _argo0
= 0;
4140 char *_kwnames
[] = { "self","underlined", NULL
};
4143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetUnderlined",_kwnames
,&_argo0
,&tempbool1
))
4146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4152 _arg1
= (bool ) tempbool1
;
4154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4155 wxFont_SetUnderlined(_arg0
,_arg1
);
4157 wxPyEndAllowThreads(__tstate
);
4158 if (PyErr_Occurred()) return NULL
;
4159 } Py_INCREF(Py_None
);
4160 _resultobj
= Py_None
;
4164 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4165 static PyObject
*_wrap_wxFont_SetEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4166 PyObject
* _resultobj
;
4168 wxFontEncoding _arg1
;
4169 PyObject
* _argo0
= 0;
4170 char *_kwnames
[] = { "self","encoding", NULL
};
4173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFont_SetEncoding",_kwnames
,&_argo0
,&_arg1
))
4176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4184 wxFont_SetEncoding(_arg0
,_arg1
);
4186 wxPyEndAllowThreads(__tstate
);
4187 if (PyErr_Occurred()) return NULL
;
4188 } Py_INCREF(Py_None
);
4189 _resultobj
= Py_None
;
4193 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4194 static PyObject
*_wrap_wxFont_SetNativeFontInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4195 PyObject
* _resultobj
;
4197 wxNativeFontInfo
* _arg1
;
4198 PyObject
* _argo0
= 0;
4199 PyObject
* _argo1
= 0;
4200 char *_kwnames
[] = { "self","info", NULL
};
4203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfo",_kwnames
,&_argo0
,&_argo1
))
4206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4213 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4214 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxNativeFontInfo_p")) {
4215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4221 wxFont_SetNativeFontInfo(_arg0
,*_arg1
);
4223 wxPyEndAllowThreads(__tstate
);
4224 if (PyErr_Occurred()) return NULL
;
4225 } Py_INCREF(Py_None
);
4226 _resultobj
= Py_None
;
4230 #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4231 static PyObject
*_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4232 PyObject
* _resultobj
;
4235 PyObject
* _argo0
= 0;
4236 PyObject
* _obj1
= 0;
4237 char *_kwnames
[] = { "self","info", NULL
};
4240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames
,&_argo0
,&_obj1
))
4243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4250 #if PYTHON_API_VERSION >= 1009
4251 char* tmpPtr
; int tmpSize
;
4252 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4253 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4256 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4258 _arg1
= new wxString(tmpPtr
, tmpSize
);
4260 if (!PyString_Check(_obj1
)) {
4261 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4264 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4269 wxFont_SetNativeFontInfoUserDesc(_arg0
,*_arg1
);
4271 wxPyEndAllowThreads(__tstate
);
4272 if (PyErr_Occurred()) return NULL
;
4273 } Py_INCREF(Py_None
);
4274 _resultobj
= Py_None
;
4282 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4283 static PyObject
*_wrap_wxFont_GetFamilyString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4284 PyObject
* _resultobj
;
4287 PyObject
* _argo0
= 0;
4288 char *_kwnames
[] = { "self", NULL
};
4291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetFamilyString",_kwnames
,&_argo0
))
4294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4302 _result
= new wxString (wxFont_GetFamilyString(_arg0
));
4304 wxPyEndAllowThreads(__tstate
);
4305 if (PyErr_Occurred()) return NULL
;
4307 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4315 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4316 static PyObject
*_wrap_wxFont_GetStyleString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4317 PyObject
* _resultobj
;
4320 PyObject
* _argo0
= 0;
4321 char *_kwnames
[] = { "self", NULL
};
4324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetStyleString",_kwnames
,&_argo0
))
4327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4335 _result
= new wxString (wxFont_GetStyleString(_arg0
));
4337 wxPyEndAllowThreads(__tstate
);
4338 if (PyErr_Occurred()) return NULL
;
4340 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4348 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4349 static PyObject
*_wrap_wxFont_GetWeightString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4350 PyObject
* _resultobj
;
4353 PyObject
* _argo0
= 0;
4354 char *_kwnames
[] = { "self", NULL
};
4357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFont_GetWeightString",_kwnames
,&_argo0
))
4360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFont_p")) {
4362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4368 _result
= new wxString (wxFont_GetWeightString(_arg0
));
4370 wxPyEndAllowThreads(__tstate
);
4371 if (PyErr_Occurred()) return NULL
;
4373 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4381 static PyObject
*_wrap_wxFont_GetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4382 PyObject
* _resultobj
;
4383 wxFontEncoding _result
;
4384 char *_kwnames
[] = { NULL
};
4387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFont_GetDefaultEncoding",_kwnames
))
4390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4391 _result
= (wxFontEncoding
)wxFont::GetDefaultEncoding();
4393 wxPyEndAllowThreads(__tstate
);
4394 if (PyErr_Occurred()) return NULL
;
4395 } _resultobj
= Py_BuildValue("i",_result
);
4399 static PyObject
*_wrap_wxFont_SetDefaultEncoding(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4400 PyObject
* _resultobj
;
4401 wxFontEncoding _arg0
;
4402 char *_kwnames
[] = { "encoding", NULL
};
4405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxFont_SetDefaultEncoding",_kwnames
,&_arg0
))
4408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4409 wxFont::SetDefaultEncoding(_arg0
);
4411 wxPyEndAllowThreads(__tstate
);
4412 if (PyErr_Occurred()) return NULL
;
4413 } Py_INCREF(Py_None
);
4414 _resultobj
= Py_None
;
4418 static void *SwigwxFontListTowxObject(void *ptr
) {
4421 src
= (wxFontList
*) ptr
;
4422 dest
= (wxObject
*) src
;
4423 return (void *) dest
;
4426 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4427 static PyObject
*_wrap_wxFontList_AddFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4428 PyObject
* _resultobj
;
4431 PyObject
* _argo0
= 0;
4432 PyObject
* _argo1
= 0;
4433 char *_kwnames
[] = { "self","font", NULL
};
4436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_AddFont",_kwnames
,&_argo0
,&_argo1
))
4439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4446 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4447 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4454 wxFontList_AddFont(_arg0
,_arg1
);
4456 wxPyEndAllowThreads(__tstate
);
4457 if (PyErr_Occurred()) return NULL
;
4458 } Py_INCREF(Py_None
);
4459 _resultobj
= Py_None
;
4463 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4464 static PyObject
*_wrap_wxFontList_FindOrCreateFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4465 PyObject
* _resultobj
;
4472 bool _arg5
= (bool ) FALSE
;
4473 char * _arg6
= (char *) NULL
;
4474 wxFontEncoding _arg7
= (wxFontEncoding
) (wxFONTENCODING_DEFAULT
);
4475 PyObject
* _argo0
= 0;
4476 int tempbool5
= (int) FALSE
;
4477 char *_kwnames
[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL
};
4481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&tempbool5
,&_arg6
,&_arg7
))
4484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4490 _arg5
= (bool ) tempbool5
;
4492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4493 _result
= (wxFont
*)wxFontList_FindOrCreateFont(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
4495 wxPyEndAllowThreads(__tstate
);
4496 if (PyErr_Occurred()) return NULL
;
4498 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
4499 _resultobj
= Py_BuildValue("s",_ptemp
);
4502 _resultobj
= Py_None
;
4507 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4508 static PyObject
*_wrap_wxFontList_RemoveFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4509 PyObject
* _resultobj
;
4512 PyObject
* _argo0
= 0;
4513 PyObject
* _argo1
= 0;
4514 char *_kwnames
[] = { "self","font", NULL
};
4517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFontList_RemoveFont",_kwnames
,&_argo0
,&_argo1
))
4520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4527 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4528 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4535 wxFontList_RemoveFont(_arg0
,_arg1
);
4537 wxPyEndAllowThreads(__tstate
);
4538 if (PyErr_Occurred()) return NULL
;
4539 } Py_INCREF(Py_None
);
4540 _resultobj
= Py_None
;
4544 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4545 static PyObject
*_wrap_wxFontList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4546 PyObject
* _resultobj
;
4549 PyObject
* _argo0
= 0;
4550 char *_kwnames
[] = { "self", NULL
};
4553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFontList_GetCount",_kwnames
,&_argo0
))
4556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFontList_p")) {
4558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4564 _result
= (int )wxFontList_GetCount(_arg0
);
4566 wxPyEndAllowThreads(__tstate
);
4567 if (PyErr_Occurred()) return NULL
;
4568 } _resultobj
= Py_BuildValue("i",_result
);
4572 static void *SwigwxColourTowxObject(void *ptr
) {
4575 src
= (wxColour
*) ptr
;
4576 dest
= (wxObject
*) src
;
4577 return (void *) dest
;
4580 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4581 static PyObject
*_wrap_new_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4582 PyObject
* _resultobj
;
4584 unsigned char _arg0
= (unsigned char ) 0;
4585 unsigned char _arg1
= (unsigned char ) 0;
4586 unsigned char _arg2
= (unsigned char ) 0;
4587 char *_kwnames
[] = { "red","green","blue", NULL
};
4591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|bbb:new_wxColour",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
4594 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4595 _result
= (wxColour
*)new_wxColour(_arg0
,_arg1
,_arg2
);
4597 wxPyEndAllowThreads(__tstate
);
4598 if (PyErr_Occurred()) return NULL
;
4600 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4601 _resultobj
= Py_BuildValue("s",_ptemp
);
4604 _resultobj
= Py_None
;
4609 #define delete_wxColour(_swigobj) (delete _swigobj)
4610 static PyObject
*_wrap_delete_wxColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4611 PyObject
* _resultobj
;
4614 PyObject
* _obj0
= 0;
4615 char *_kwnames
[] = { "self", NULL
};
4618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxColour",_kwnames
,&_obj0
))
4622 if (! wxColour_helper(_obj0
, &_arg0
))
4626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4627 delete_wxColour(_arg0
);
4629 wxPyEndAllowThreads(__tstate
);
4630 if (PyErr_Occurred()) return NULL
;
4631 } Py_INCREF(Py_None
);
4632 _resultobj
= Py_None
;
4636 #define wxColour_Red(_swigobj) (_swigobj->Red())
4637 static PyObject
*_wrap_wxColour_Red(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4638 PyObject
* _resultobj
;
4639 unsigned char _result
;
4642 PyObject
* _obj0
= 0;
4643 char *_kwnames
[] = { "self", NULL
};
4646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Red",_kwnames
,&_obj0
))
4650 if (! wxColour_helper(_obj0
, &_arg0
))
4654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4655 _result
= (unsigned char )wxColour_Red(_arg0
);
4657 wxPyEndAllowThreads(__tstate
);
4658 if (PyErr_Occurred()) return NULL
;
4659 } _resultobj
= Py_BuildValue("b",_result
);
4663 #define wxColour_Green(_swigobj) (_swigobj->Green())
4664 static PyObject
*_wrap_wxColour_Green(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4665 PyObject
* _resultobj
;
4666 unsigned char _result
;
4669 PyObject
* _obj0
= 0;
4670 char *_kwnames
[] = { "self", NULL
};
4673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Green",_kwnames
,&_obj0
))
4677 if (! wxColour_helper(_obj0
, &_arg0
))
4681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4682 _result
= (unsigned char )wxColour_Green(_arg0
);
4684 wxPyEndAllowThreads(__tstate
);
4685 if (PyErr_Occurred()) return NULL
;
4686 } _resultobj
= Py_BuildValue("b",_result
);
4690 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4691 static PyObject
*_wrap_wxColour_Blue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4692 PyObject
* _resultobj
;
4693 unsigned char _result
;
4696 PyObject
* _obj0
= 0;
4697 char *_kwnames
[] = { "self", NULL
};
4700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Blue",_kwnames
,&_obj0
))
4704 if (! wxColour_helper(_obj0
, &_arg0
))
4708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4709 _result
= (unsigned char )wxColour_Blue(_arg0
);
4711 wxPyEndAllowThreads(__tstate
);
4712 if (PyErr_Occurred()) return NULL
;
4713 } _resultobj
= Py_BuildValue("b",_result
);
4717 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4718 static PyObject
*_wrap_wxColour_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4719 PyObject
* _resultobj
;
4723 PyObject
* _obj0
= 0;
4724 char *_kwnames
[] = { "self", NULL
};
4727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Ok",_kwnames
,&_obj0
))
4731 if (! wxColour_helper(_obj0
, &_arg0
))
4735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4736 _result
= (bool )wxColour_Ok(_arg0
);
4738 wxPyEndAllowThreads(__tstate
);
4739 if (PyErr_Occurred()) return NULL
;
4740 } _resultobj
= Py_BuildValue("i",_result
);
4744 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4745 static PyObject
*_wrap_wxColour_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4746 PyObject
* _resultobj
;
4748 unsigned char _arg1
;
4749 unsigned char _arg2
;
4750 unsigned char _arg3
;
4752 PyObject
* _obj0
= 0;
4753 char *_kwnames
[] = { "self","red","green","blue", NULL
};
4756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxColour_Set",_kwnames
,&_obj0
,&_arg1
,&_arg2
,&_arg3
))
4760 if (! wxColour_helper(_obj0
, &_arg0
))
4764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4765 wxColour_Set(_arg0
,_arg1
,_arg2
,_arg3
);
4767 wxPyEndAllowThreads(__tstate
);
4768 if (PyErr_Occurred()) return NULL
;
4769 } Py_INCREF(Py_None
);
4770 _resultobj
= Py_None
;
4774 static PyObject
* wxColour_Get(wxColour
*self
) {
4775 PyObject
* rv
= PyTuple_New(3);
4776 PyTuple_SetItem(rv
, 0, PyInt_FromLong(self
->Red()));
4777 PyTuple_SetItem(rv
, 1, PyInt_FromLong(self
->Green()));
4778 PyTuple_SetItem(rv
, 2, PyInt_FromLong(self
->Blue()));
4781 static PyObject
*_wrap_wxColour_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4782 PyObject
* _resultobj
;
4786 PyObject
* _obj0
= 0;
4787 char *_kwnames
[] = { "self", NULL
};
4790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxColour_Get",_kwnames
,&_obj0
))
4794 if (! wxColour_helper(_obj0
, &_arg0
))
4798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4799 _result
= (PyObject
*)wxColour_Get(_arg0
);
4801 wxPyEndAllowThreads(__tstate
);
4802 if (PyErr_Occurred()) return NULL
;
4804 _resultobj
= _result
;
4809 static void *SwigwxColourDatabaseTowxObject(void *ptr
) {
4810 wxColourDatabase
*src
;
4812 src
= (wxColourDatabase
*) ptr
;
4813 dest
= (wxObject
*) src
;
4814 return (void *) dest
;
4817 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4818 static PyObject
*_wrap_wxColourDatabase_FindColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4819 PyObject
* _resultobj
;
4821 wxColourDatabase
* _arg0
;
4823 PyObject
* _argo0
= 0;
4824 PyObject
* _obj1
= 0;
4825 char *_kwnames
[] = { "self","colour", NULL
};
4829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindColour",_kwnames
,&_argo0
,&_obj1
))
4832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4839 #if PYTHON_API_VERSION >= 1009
4840 char* tmpPtr
; int tmpSize
;
4841 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4842 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4845 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4847 _arg1
= new wxString(tmpPtr
, tmpSize
);
4849 if (!PyString_Check(_obj1
)) {
4850 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4853 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4858 _result
= (wxColour
*)wxColourDatabase_FindColour(_arg0
,*_arg1
);
4860 wxPyEndAllowThreads(__tstate
);
4861 if (PyErr_Occurred()) return NULL
;
4863 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
4864 _resultobj
= Py_BuildValue("s",_ptemp
);
4867 _resultobj
= Py_None
;
4876 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4877 static PyObject
*_wrap_wxColourDatabase_FindName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4878 PyObject
* _resultobj
;
4880 wxColourDatabase
* _arg0
;
4882 PyObject
* _argo0
= 0;
4884 PyObject
* _obj1
= 0;
4885 char *_kwnames
[] = { "self","colour", NULL
};
4888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxColourDatabase_FindName",_kwnames
,&_argo0
,&_obj1
))
4891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4899 if (! wxColour_helper(_obj1
, &_arg1
))
4903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4904 _result
= new wxString (wxColourDatabase_FindName(_arg0
,*_arg1
));
4906 wxPyEndAllowThreads(__tstate
);
4907 if (PyErr_Occurred()) return NULL
;
4909 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
4917 static void wxColourDatabase_Append(wxColourDatabase
*self
,const wxString
& name
,int red
,int green
,int blue
) {
4918 // first see if the name is already there
4919 wxString cName
= name
;
4921 wxString cName2
= cName
;
4922 if ( !cName2
.Replace("GRAY", "GREY") )
4925 wxNode
*node
= self
->First();
4927 const wxChar
*key
= node
->GetKeyString();
4928 if ( cName
== key
|| cName2
== key
) {
4929 wxColour
* c
= (wxColour
*)node
->Data();
4930 c
->Set(red
, green
, blue
);
4933 node
= node
->Next();
4936 // otherwise append the new colour
4937 self
->Append(name
.c_str(), new wxColour(red
, green
, blue
));
4939 static PyObject
*_wrap_wxColourDatabase_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4940 PyObject
* _resultobj
;
4941 wxColourDatabase
* _arg0
;
4946 PyObject
* _argo0
= 0;
4947 PyObject
* _obj1
= 0;
4948 char *_kwnames
[] = { "self","name","red","green","blue", NULL
};
4951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiii:wxColourDatabase_Append",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
4954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxColourDatabase_p")) {
4956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4961 #if PYTHON_API_VERSION >= 1009
4962 char* tmpPtr
; int tmpSize
;
4963 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4964 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4967 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4969 _arg1
= new wxString(tmpPtr
, tmpSize
);
4971 if (!PyString_Check(_obj1
)) {
4972 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4975 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4980 wxColourDatabase_Append(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
4982 wxPyEndAllowThreads(__tstate
);
4983 if (PyErr_Occurred()) return NULL
;
4984 } Py_INCREF(Py_None
);
4985 _resultobj
= Py_None
;
4993 static void *SwigwxPenTowxGDIObject(void *ptr
) {
4996 src
= (wxPen
*) ptr
;
4997 dest
= (wxGDIObject
*) src
;
4998 return (void *) dest
;
5001 static void *SwigwxPenTowxObject(void *ptr
) {
5004 src
= (wxPen
*) ptr
;
5005 dest
= (wxObject
*) src
;
5006 return (void *) dest
;
5009 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5010 static PyObject
*_wrap_new_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5011 PyObject
* _resultobj
;
5014 int _arg1
= (int ) 1;
5015 int _arg2
= (int ) wxSOLID
;
5017 PyObject
* _obj0
= 0;
5018 char *_kwnames
[] = { "colour","width","style", NULL
};
5022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5026 if (! wxColour_helper(_obj0
, &_arg0
))
5030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5031 _result
= (wxPen
*)new_wxPen(*_arg0
,_arg1
,_arg2
);
5033 wxPyEndAllowThreads(__tstate
);
5034 if (PyErr_Occurred()) return NULL
;
5036 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5037 _resultobj
= Py_BuildValue("s",_ptemp
);
5040 _resultobj
= Py_None
;
5045 #define delete_wxPen(_swigobj) (delete _swigobj)
5046 static PyObject
*_wrap_delete_wxPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5047 PyObject
* _resultobj
;
5049 PyObject
* _argo0
= 0;
5050 char *_kwnames
[] = { "self", NULL
};
5053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPen",_kwnames
,&_argo0
))
5056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5064 delete_wxPen(_arg0
);
5066 wxPyEndAllowThreads(__tstate
);
5067 if (PyErr_Occurred()) return NULL
;
5068 } Py_INCREF(Py_None
);
5069 _resultobj
= Py_None
;
5073 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5074 static PyObject
*_wrap_wxPen_GetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5075 PyObject
* _resultobj
;
5078 PyObject
* _argo0
= 0;
5079 char *_kwnames
[] = { "self", NULL
};
5082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetCap",_kwnames
,&_argo0
))
5085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5092 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5093 _result
= (int )wxPen_GetCap(_arg0
);
5095 wxPyEndAllowThreads(__tstate
);
5096 if (PyErr_Occurred()) return NULL
;
5097 } _resultobj
= Py_BuildValue("i",_result
);
5101 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5102 static PyObject
*_wrap_wxPen_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5103 PyObject
* _resultobj
;
5106 PyObject
* _argo0
= 0;
5107 char *_kwnames
[] = { "self", NULL
};
5111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetColour",_kwnames
,&_argo0
))
5114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5122 _result
= new wxColour (wxPen_GetColour(_arg0
));
5124 wxPyEndAllowThreads(__tstate
);
5125 if (PyErr_Occurred()) return NULL
;
5126 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5127 _resultobj
= Py_BuildValue("s",_ptemp
);
5131 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5132 static PyObject
*_wrap_wxPen_GetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5133 PyObject
* _resultobj
;
5136 PyObject
* _argo0
= 0;
5137 char *_kwnames
[] = { "self", NULL
};
5140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetJoin",_kwnames
,&_argo0
))
5143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5151 _result
= (int )wxPen_GetJoin(_arg0
);
5153 wxPyEndAllowThreads(__tstate
);
5154 if (PyErr_Occurred()) return NULL
;
5155 } _resultobj
= Py_BuildValue("i",_result
);
5159 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5160 static PyObject
*_wrap_wxPen_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5161 PyObject
* _resultobj
;
5164 PyObject
* _argo0
= 0;
5165 char *_kwnames
[] = { "self", NULL
};
5168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetStyle",_kwnames
,&_argo0
))
5171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5179 _result
= (int )wxPen_GetStyle(_arg0
);
5181 wxPyEndAllowThreads(__tstate
);
5182 if (PyErr_Occurred()) return NULL
;
5183 } _resultobj
= Py_BuildValue("i",_result
);
5187 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5188 static PyObject
*_wrap_wxPen_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5189 PyObject
* _resultobj
;
5192 PyObject
* _argo0
= 0;
5193 char *_kwnames
[] = { "self", NULL
};
5196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_GetWidth",_kwnames
,&_argo0
))
5199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5207 _result
= (int )wxPen_GetWidth(_arg0
);
5209 wxPyEndAllowThreads(__tstate
);
5210 if (PyErr_Occurred()) return NULL
;
5211 } _resultobj
= Py_BuildValue("i",_result
);
5215 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5216 static PyObject
*_wrap_wxPen_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5217 PyObject
* _resultobj
;
5220 PyObject
* _argo0
= 0;
5221 char *_kwnames
[] = { "self", NULL
};
5224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPen_Ok",_kwnames
,&_argo0
))
5227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5235 _result
= (bool )wxPen_Ok(_arg0
);
5237 wxPyEndAllowThreads(__tstate
);
5238 if (PyErr_Occurred()) return NULL
;
5239 } _resultobj
= Py_BuildValue("i",_result
);
5243 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5244 static PyObject
*_wrap_wxPen_SetCap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5245 PyObject
* _resultobj
;
5248 PyObject
* _argo0
= 0;
5249 char *_kwnames
[] = { "self","cap_style", NULL
};
5252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetCap",_kwnames
,&_argo0
,&_arg1
))
5255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5263 wxPen_SetCap(_arg0
,_arg1
);
5265 wxPyEndAllowThreads(__tstate
);
5266 if (PyErr_Occurred()) return NULL
;
5267 } Py_INCREF(Py_None
);
5268 _resultobj
= Py_None
;
5272 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5273 static PyObject
*_wrap_wxPen_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5274 PyObject
* _resultobj
;
5277 PyObject
* _argo0
= 0;
5279 PyObject
* _obj1
= 0;
5280 char *_kwnames
[] = { "self","colour", NULL
};
5283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetColour",_kwnames
,&_argo0
,&_obj1
))
5286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5294 if (! wxColour_helper(_obj1
, &_arg1
))
5298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5299 wxPen_SetColour(_arg0
,*_arg1
);
5301 wxPyEndAllowThreads(__tstate
);
5302 if (PyErr_Occurred()) return NULL
;
5303 } Py_INCREF(Py_None
);
5304 _resultobj
= Py_None
;
5308 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5309 static PyObject
*_wrap_wxPen_SetJoin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5310 PyObject
* _resultobj
;
5313 PyObject
* _argo0
= 0;
5314 char *_kwnames
[] = { "self","join_style", NULL
};
5317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetJoin",_kwnames
,&_argo0
,&_arg1
))
5320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5328 wxPen_SetJoin(_arg0
,_arg1
);
5330 wxPyEndAllowThreads(__tstate
);
5331 if (PyErr_Occurred()) return NULL
;
5332 } Py_INCREF(Py_None
);
5333 _resultobj
= Py_None
;
5337 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5338 static PyObject
*_wrap_wxPen_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5339 PyObject
* _resultobj
;
5342 PyObject
* _argo0
= 0;
5343 char *_kwnames
[] = { "self","style", NULL
};
5346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetStyle",_kwnames
,&_argo0
,&_arg1
))
5349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5357 wxPen_SetStyle(_arg0
,_arg1
);
5359 wxPyEndAllowThreads(__tstate
);
5360 if (PyErr_Occurred()) return NULL
;
5361 } Py_INCREF(Py_None
);
5362 _resultobj
= Py_None
;
5366 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5367 static PyObject
*_wrap_wxPen_SetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5368 PyObject
* _resultobj
;
5371 PyObject
* _argo0
= 0;
5372 char *_kwnames
[] = { "self","width", NULL
};
5375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPen_SetWidth",_kwnames
,&_argo0
,&_arg1
))
5378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5386 wxPen_SetWidth(_arg0
,_arg1
);
5388 wxPyEndAllowThreads(__tstate
);
5389 if (PyErr_Occurred()) return NULL
;
5390 } Py_INCREF(Py_None
);
5391 _resultobj
= Py_None
;
5395 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5396 static PyObject
*_wrap_wxPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5397 PyObject
* _resultobj
;
5401 PyObject
* _argo0
= 0;
5402 PyObject
* _obj2
= 0;
5403 char *_kwnames
[] = { "self","choices", NULL
};
5406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPen_p")) {
5411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5417 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5418 if (_arg2
== NULL
) {
5424 _arg1
= PyList_Size(_obj2
);
5431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5432 wxPen_SetDashes(_arg0
,_arg1
,_arg2
);
5434 wxPyEndAllowThreads(__tstate
);
5435 if (PyErr_Occurred()) return NULL
;
5436 } Py_INCREF(Py_None
);
5437 _resultobj
= Py_None
;
5444 static void *SwigwxPyPenTowxPen(void *ptr
) {
5447 src
= (wxPyPen
*) ptr
;
5448 dest
= (wxPen
*) src
;
5449 return (void *) dest
;
5452 static void *SwigwxPyPenTowxGDIObject(void *ptr
) {
5455 src
= (wxPyPen
*) ptr
;
5456 dest
= (wxGDIObject
*) src
;
5457 return (void *) dest
;
5460 static void *SwigwxPyPenTowxObject(void *ptr
) {
5463 src
= (wxPyPen
*) ptr
;
5464 dest
= (wxObject
*) src
;
5465 return (void *) dest
;
5468 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5469 static PyObject
*_wrap_new_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5470 PyObject
* _resultobj
;
5473 int _arg1
= (int ) 1;
5474 int _arg2
= (int ) wxSOLID
;
5476 PyObject
* _obj0
= 0;
5477 char *_kwnames
[] = { "colour","width","style", NULL
};
5481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:new_wxPyPen",_kwnames
,&_obj0
,&_arg1
,&_arg2
))
5485 if (! wxColour_helper(_obj0
, &_arg0
))
5489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5490 _result
= (wxPyPen
*)new_wxPyPen(*_arg0
,_arg1
,_arg2
);
5492 wxPyEndAllowThreads(__tstate
);
5493 if (PyErr_Occurred()) return NULL
;
5495 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPen_p");
5496 _resultobj
= Py_BuildValue("s",_ptemp
);
5499 _resultobj
= Py_None
;
5504 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5505 static PyObject
*_wrap_delete_wxPyPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5506 PyObject
* _resultobj
;
5508 PyObject
* _argo0
= 0;
5509 char *_kwnames
[] = { "self", NULL
};
5512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyPen",_kwnames
,&_argo0
))
5515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5523 delete_wxPyPen(_arg0
);
5525 wxPyEndAllowThreads(__tstate
);
5526 if (PyErr_Occurred()) return NULL
;
5527 } Py_INCREF(Py_None
);
5528 _resultobj
= Py_None
;
5532 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5533 static PyObject
*_wrap_wxPyPen_SetDashes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5534 PyObject
* _resultobj
;
5538 PyObject
* _argo0
= 0;
5539 PyObject
* _obj2
= 0;
5540 char *_kwnames
[] = { "self","choices", NULL
};
5543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyPen_SetDashes",_kwnames
,&_argo0
,&_obj2
))
5546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPen_p")) {
5548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5554 _arg2
= (wxDash
*)byte_LIST_helper(_obj2
);
5555 if (_arg2
== NULL
) {
5561 _arg1
= PyList_Size(_obj2
);
5568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5569 wxPyPen_SetDashes(_arg0
,_arg1
,_arg2
);
5571 wxPyEndAllowThreads(__tstate
);
5572 if (PyErr_Occurred()) return NULL
;
5573 } Py_INCREF(Py_None
);
5574 _resultobj
= Py_None
;
5581 static void *SwigwxPenListTowxObject(void *ptr
) {
5584 src
= (wxPenList
*) ptr
;
5585 dest
= (wxObject
*) src
;
5586 return (void *) dest
;
5589 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5590 static PyObject
*_wrap_wxPenList_AddPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5591 PyObject
* _resultobj
;
5594 PyObject
* _argo0
= 0;
5595 PyObject
* _argo1
= 0;
5596 char *_kwnames
[] = { "self","pen", NULL
};
5599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_AddPen",_kwnames
,&_argo0
,&_argo1
))
5602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5609 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5610 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5617 wxPenList_AddPen(_arg0
,_arg1
);
5619 wxPyEndAllowThreads(__tstate
);
5620 if (PyErr_Occurred()) return NULL
;
5621 } Py_INCREF(Py_None
);
5622 _resultobj
= Py_None
;
5626 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5627 static PyObject
*_wrap_wxPenList_FindOrCreatePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5628 PyObject
* _resultobj
;
5634 PyObject
* _argo0
= 0;
5636 PyObject
* _obj1
= 0;
5637 char *_kwnames
[] = { "self","colour","width","style", NULL
};
5641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxPenList_FindOrCreatePen",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
5644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5652 if (! wxColour_helper(_obj1
, &_arg1
))
5656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5657 _result
= (wxPen
*)wxPenList_FindOrCreatePen(_arg0
,*_arg1
,_arg2
,_arg3
);
5659 wxPyEndAllowThreads(__tstate
);
5660 if (PyErr_Occurred()) return NULL
;
5662 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPen_p");
5663 _resultobj
= Py_BuildValue("s",_ptemp
);
5666 _resultobj
= Py_None
;
5671 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5672 static PyObject
*_wrap_wxPenList_RemovePen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5673 PyObject
* _resultobj
;
5676 PyObject
* _argo0
= 0;
5677 PyObject
* _argo1
= 0;
5678 char *_kwnames
[] = { "self","pen", NULL
};
5681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPenList_RemovePen",_kwnames
,&_argo0
,&_argo1
))
5684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5691 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5692 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
5693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5699 wxPenList_RemovePen(_arg0
,_arg1
);
5701 wxPyEndAllowThreads(__tstate
);
5702 if (PyErr_Occurred()) return NULL
;
5703 } Py_INCREF(Py_None
);
5704 _resultobj
= Py_None
;
5708 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5709 static PyObject
*_wrap_wxPenList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5710 PyObject
* _resultobj
;
5713 PyObject
* _argo0
= 0;
5714 char *_kwnames
[] = { "self", NULL
};
5717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPenList_GetCount",_kwnames
,&_argo0
))
5720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPenList_p")) {
5722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5728 _result
= (int )wxPenList_GetCount(_arg0
);
5730 wxPyEndAllowThreads(__tstate
);
5731 if (PyErr_Occurred()) return NULL
;
5732 } _resultobj
= Py_BuildValue("i",_result
);
5736 static void *SwigwxBrushTowxGDIObject(void *ptr
) {
5739 src
= (wxBrush
*) ptr
;
5740 dest
= (wxGDIObject
*) src
;
5741 return (void *) dest
;
5744 static void *SwigwxBrushTowxObject(void *ptr
) {
5747 src
= (wxBrush
*) ptr
;
5748 dest
= (wxObject
*) src
;
5749 return (void *) dest
;
5752 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5753 static PyObject
*_wrap_new_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5754 PyObject
* _resultobj
;
5757 int _arg1
= (int ) wxSOLID
;
5759 PyObject
* _obj0
= 0;
5760 char *_kwnames
[] = { "colour","style", NULL
};
5764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxBrush",_kwnames
,&_obj0
,&_arg1
))
5768 if (! wxColour_helper(_obj0
, &_arg0
))
5772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5773 _result
= (wxBrush
*)new_wxBrush(*_arg0
,_arg1
);
5775 wxPyEndAllowThreads(__tstate
);
5776 if (PyErr_Occurred()) return NULL
;
5778 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
5779 _resultobj
= Py_BuildValue("s",_ptemp
);
5782 _resultobj
= Py_None
;
5787 #define delete_wxBrush(_swigobj) (delete _swigobj)
5788 static PyObject
*_wrap_delete_wxBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5789 PyObject
* _resultobj
;
5791 PyObject
* _argo0
= 0;
5792 char *_kwnames
[] = { "self", NULL
};
5795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxBrush",_kwnames
,&_argo0
))
5798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5806 delete_wxBrush(_arg0
);
5808 wxPyEndAllowThreads(__tstate
);
5809 if (PyErr_Occurred()) return NULL
;
5810 } Py_INCREF(Py_None
);
5811 _resultobj
= Py_None
;
5815 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5816 static PyObject
*_wrap_wxBrush_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5817 PyObject
* _resultobj
;
5820 PyObject
* _argo0
= 0;
5821 char *_kwnames
[] = { "self", NULL
};
5825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetColour",_kwnames
,&_argo0
))
5828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5835 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5836 _result
= new wxColour (wxBrush_GetColour(_arg0
));
5838 wxPyEndAllowThreads(__tstate
);
5839 if (PyErr_Occurred()) return NULL
;
5840 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
5841 _resultobj
= Py_BuildValue("s",_ptemp
);
5845 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5846 static PyObject
*_wrap_wxBrush_GetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5847 PyObject
* _resultobj
;
5850 PyObject
* _argo0
= 0;
5851 char *_kwnames
[] = { "self", NULL
};
5855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStipple",_kwnames
,&_argo0
))
5858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5866 _result
= (wxBitmap
*)wxBrush_GetStipple(_arg0
);
5868 wxPyEndAllowThreads(__tstate
);
5869 if (PyErr_Occurred()) return NULL
;
5871 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
5872 _resultobj
= Py_BuildValue("s",_ptemp
);
5875 _resultobj
= Py_None
;
5880 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5881 static PyObject
*_wrap_wxBrush_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5882 PyObject
* _resultobj
;
5885 PyObject
* _argo0
= 0;
5886 char *_kwnames
[] = { "self", NULL
};
5889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_GetStyle",_kwnames
,&_argo0
))
5892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5900 _result
= (int )wxBrush_GetStyle(_arg0
);
5902 wxPyEndAllowThreads(__tstate
);
5903 if (PyErr_Occurred()) return NULL
;
5904 } _resultobj
= Py_BuildValue("i",_result
);
5908 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5909 static PyObject
*_wrap_wxBrush_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5910 PyObject
* _resultobj
;
5913 PyObject
* _argo0
= 0;
5914 char *_kwnames
[] = { "self", NULL
};
5917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrush_Ok",_kwnames
,&_argo0
))
5920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5928 _result
= (bool )wxBrush_Ok(_arg0
);
5930 wxPyEndAllowThreads(__tstate
);
5931 if (PyErr_Occurred()) return NULL
;
5932 } _resultobj
= Py_BuildValue("i",_result
);
5936 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5937 static PyObject
*_wrap_wxBrush_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5938 PyObject
* _resultobj
;
5941 PyObject
* _argo0
= 0;
5943 PyObject
* _obj1
= 0;
5944 char *_kwnames
[] = { "self","colour", NULL
};
5947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetColour",_kwnames
,&_argo0
,&_obj1
))
5950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5958 if (! wxColour_helper(_obj1
, &_arg1
))
5962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5963 wxBrush_SetColour(_arg0
,*_arg1
);
5965 wxPyEndAllowThreads(__tstate
);
5966 if (PyErr_Occurred()) return NULL
;
5967 } Py_INCREF(Py_None
);
5968 _resultobj
= Py_None
;
5972 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5973 static PyObject
*_wrap_wxBrush_SetStipple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5974 PyObject
* _resultobj
;
5977 PyObject
* _argo0
= 0;
5978 PyObject
* _argo1
= 0;
5979 char *_kwnames
[] = { "self","bitmap", NULL
};
5982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrush_SetStipple",_kwnames
,&_argo0
,&_argo1
))
5985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
5987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5992 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5993 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
5994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6000 wxBrush_SetStipple(_arg0
,*_arg1
);
6002 wxPyEndAllowThreads(__tstate
);
6003 if (PyErr_Occurred()) return NULL
;
6004 } Py_INCREF(Py_None
);
6005 _resultobj
= Py_None
;
6009 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6010 static PyObject
*_wrap_wxBrush_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6011 PyObject
* _resultobj
;
6014 PyObject
* _argo0
= 0;
6015 char *_kwnames
[] = { "self","style", NULL
};
6018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxBrush_SetStyle",_kwnames
,&_argo0
,&_arg1
))
6021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrush_p")) {
6023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6029 wxBrush_SetStyle(_arg0
,_arg1
);
6031 wxPyEndAllowThreads(__tstate
);
6032 if (PyErr_Occurred()) return NULL
;
6033 } Py_INCREF(Py_None
);
6034 _resultobj
= Py_None
;
6038 static void *SwigwxBrushListTowxObject(void *ptr
) {
6041 src
= (wxBrushList
*) ptr
;
6042 dest
= (wxObject
*) src
;
6043 return (void *) dest
;
6046 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6047 static PyObject
*_wrap_wxBrushList_AddBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6048 PyObject
* _resultobj
;
6049 wxBrushList
* _arg0
;
6051 PyObject
* _argo0
= 0;
6052 PyObject
* _argo1
= 0;
6053 char *_kwnames
[] = { "self","brush", NULL
};
6056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_AddBrush",_kwnames
,&_argo0
,&_argo1
))
6059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6066 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6067 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6074 wxBrushList_AddBrush(_arg0
,_arg1
);
6076 wxPyEndAllowThreads(__tstate
);
6077 if (PyErr_Occurred()) return NULL
;
6078 } Py_INCREF(Py_None
);
6079 _resultobj
= Py_None
;
6083 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6084 static PyObject
*_wrap_wxBrushList_FindOrCreateBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6085 PyObject
* _resultobj
;
6087 wxBrushList
* _arg0
;
6090 PyObject
* _argo0
= 0;
6092 PyObject
* _obj1
= 0;
6093 char *_kwnames
[] = { "self","colour","style", NULL
};
6097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxBrushList_FindOrCreateBrush",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
6100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6108 if (! wxColour_helper(_obj1
, &_arg1
))
6112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6113 _result
= (wxBrush
*)wxBrushList_FindOrCreateBrush(_arg0
,*_arg1
,_arg2
);
6115 wxPyEndAllowThreads(__tstate
);
6116 if (PyErr_Occurred()) return NULL
;
6118 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBrush_p");
6119 _resultobj
= Py_BuildValue("s",_ptemp
);
6122 _resultobj
= Py_None
;
6127 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6128 static PyObject
*_wrap_wxBrushList_RemoveBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6129 PyObject
* _resultobj
;
6130 wxBrushList
* _arg0
;
6132 PyObject
* _argo0
= 0;
6133 PyObject
* _argo1
= 0;
6134 char *_kwnames
[] = { "self","brush", NULL
};
6137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBrushList_RemoveBrush",_kwnames
,&_argo0
,&_argo1
))
6140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6147 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6148 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
6149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6155 wxBrushList_RemoveBrush(_arg0
,_arg1
);
6157 wxPyEndAllowThreads(__tstate
);
6158 if (PyErr_Occurred()) return NULL
;
6159 } Py_INCREF(Py_None
);
6160 _resultobj
= Py_None
;
6164 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6165 static PyObject
*_wrap_wxBrushList_GetCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6166 PyObject
* _resultobj
;
6168 wxBrushList
* _arg0
;
6169 PyObject
* _argo0
= 0;
6170 char *_kwnames
[] = { "self", NULL
};
6173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBrushList_GetCount",_kwnames
,&_argo0
))
6176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBrushList_p")) {
6178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6184 _result
= (int )wxBrushList_GetCount(_arg0
);
6186 wxPyEndAllowThreads(__tstate
);
6187 if (PyErr_Occurred()) return NULL
;
6188 } _resultobj
= Py_BuildValue("i",_result
);
6192 static void *SwigwxDCTowxObject(void *ptr
) {
6196 dest
= (wxObject
*) src
;
6197 return (void *) dest
;
6200 #define delete_wxDC(_swigobj) (delete _swigobj)
6201 static PyObject
*_wrap_delete_wxDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6202 PyObject
* _resultobj
;
6204 PyObject
* _argo0
= 0;
6205 char *_kwnames
[] = { "self", NULL
};
6208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDC",_kwnames
,&_argo0
))
6211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6221 wxPyEndAllowThreads(__tstate
);
6222 if (PyErr_Occurred()) return NULL
;
6223 } Py_INCREF(Py_None
);
6224 _resultobj
= Py_None
;
6228 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6229 static PyObject
*_wrap_wxDC_BeginDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6230 PyObject
* _resultobj
;
6232 PyObject
* _argo0
= 0;
6233 char *_kwnames
[] = { "self", NULL
};
6236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_BeginDrawing",_kwnames
,&_argo0
))
6239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6247 wxDC_BeginDrawing(_arg0
);
6249 wxPyEndAllowThreads(__tstate
);
6250 if (PyErr_Occurred()) return NULL
;
6251 } Py_INCREF(Py_None
);
6252 _resultobj
= Py_None
;
6256 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6257 static PyObject
*_wrap_wxDC_Blit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6258 PyObject
* _resultobj
;
6268 int _arg8
= (int ) wxCOPY
;
6269 int _arg9
= (int ) FALSE
;
6270 PyObject
* _argo0
= 0;
6271 PyObject
* _argo5
= 0;
6272 char *_kwnames
[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL
};
6275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllllOll|ii:wxDC_Blit",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_argo5
,&_arg6
,&_arg7
,&_arg8
,&_arg9
))
6278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6285 if (_argo5
== Py_None
) { _arg5
= NULL
; }
6286 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxDC_p")) {
6287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6293 _result
= (bool )wxDC_Blit(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
,_arg8
,_arg9
);
6295 wxPyEndAllowThreads(__tstate
);
6296 if (PyErr_Occurred()) return NULL
;
6297 } _resultobj
= Py_BuildValue("i",_result
);
6301 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6302 static PyObject
*_wrap_wxDC_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6303 PyObject
* _resultobj
;
6305 PyObject
* _argo0
= 0;
6306 char *_kwnames
[] = { "self", NULL
};
6309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Clear",_kwnames
,&_argo0
))
6312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6322 wxPyEndAllowThreads(__tstate
);
6323 if (PyErr_Occurred()) return NULL
;
6324 } Py_INCREF(Py_None
);
6325 _resultobj
= Py_None
;
6329 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6330 static PyObject
*_wrap_wxDC_CrossHair(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6331 PyObject
* _resultobj
;
6335 PyObject
* _argo0
= 0;
6336 char *_kwnames
[] = { "self","x","y", NULL
};
6339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_CrossHair",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6350 wxDC_CrossHair(_arg0
,_arg1
,_arg2
);
6352 wxPyEndAllowThreads(__tstate
);
6353 if (PyErr_Occurred()) return NULL
;
6354 } Py_INCREF(Py_None
);
6355 _resultobj
= Py_None
;
6359 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6360 static PyObject
*_wrap_wxDC_DestroyClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6361 PyObject
* _resultobj
;
6363 PyObject
* _argo0
= 0;
6364 char *_kwnames
[] = { "self", NULL
};
6367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_DestroyClippingRegion",_kwnames
,&_argo0
))
6370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6378 wxDC_DestroyClippingRegion(_arg0
);
6380 wxPyEndAllowThreads(__tstate
);
6381 if (PyErr_Occurred()) return NULL
;
6382 } Py_INCREF(Py_None
);
6383 _resultobj
= Py_None
;
6387 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6388 static PyObject
*_wrap_wxDC_DeviceToLogicalX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6389 PyObject
* _resultobj
;
6393 PyObject
* _argo0
= 0;
6394 char *_kwnames
[] = { "self","x", NULL
};
6397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalX",_kwnames
,&_argo0
,&_arg1
))
6400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6408 _result
= (long )wxDC_DeviceToLogicalX(_arg0
,_arg1
);
6410 wxPyEndAllowThreads(__tstate
);
6411 if (PyErr_Occurred()) return NULL
;
6412 } _resultobj
= Py_BuildValue("l",_result
);
6416 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6417 static PyObject
*_wrap_wxDC_DeviceToLogicalXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6418 PyObject
* _resultobj
;
6422 PyObject
* _argo0
= 0;
6423 char *_kwnames
[] = { "self","x", NULL
};
6426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalXRel",_kwnames
,&_argo0
,&_arg1
))
6429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6437 _result
= (long )wxDC_DeviceToLogicalXRel(_arg0
,_arg1
);
6439 wxPyEndAllowThreads(__tstate
);
6440 if (PyErr_Occurred()) return NULL
;
6441 } _resultobj
= Py_BuildValue("l",_result
);
6445 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6446 static PyObject
*_wrap_wxDC_DeviceToLogicalY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6447 PyObject
* _resultobj
;
6451 PyObject
* _argo0
= 0;
6452 char *_kwnames
[] = { "self","y", NULL
};
6455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalY",_kwnames
,&_argo0
,&_arg1
))
6458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6466 _result
= (long )wxDC_DeviceToLogicalY(_arg0
,_arg1
);
6468 wxPyEndAllowThreads(__tstate
);
6469 if (PyErr_Occurred()) return NULL
;
6470 } _resultobj
= Py_BuildValue("l",_result
);
6474 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6475 static PyObject
*_wrap_wxDC_DeviceToLogicalYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6476 PyObject
* _resultobj
;
6480 PyObject
* _argo0
= 0;
6481 char *_kwnames
[] = { "self","y", NULL
};
6484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_DeviceToLogicalYRel",_kwnames
,&_argo0
,&_arg1
))
6487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6495 _result
= (long )wxDC_DeviceToLogicalYRel(_arg0
,_arg1
);
6497 wxPyEndAllowThreads(__tstate
);
6498 if (PyErr_Occurred()) return NULL
;
6499 } _resultobj
= Py_BuildValue("l",_result
);
6503 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6504 static PyObject
*_wrap_wxDC_DrawArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6505 PyObject
* _resultobj
;
6513 PyObject
* _argo0
= 0;
6514 char *_kwnames
[] = { "self","x1","y1","x2","y2","xc","yc", NULL
};
6517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6528 wxDC_DrawArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6530 wxPyEndAllowThreads(__tstate
);
6531 if (PyErr_Occurred()) return NULL
;
6532 } Py_INCREF(Py_None
);
6533 _resultobj
= Py_None
;
6537 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6538 static PyObject
*_wrap_wxDC_DrawCircle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6539 PyObject
* _resultobj
;
6544 PyObject
* _argo0
= 0;
6545 char *_kwnames
[] = { "self","x","y","radius", NULL
};
6548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Olll:wxDC_DrawCircle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
6551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6559 wxDC_DrawCircle(_arg0
,_arg1
,_arg2
,_arg3
);
6561 wxPyEndAllowThreads(__tstate
);
6562 if (PyErr_Occurred()) return NULL
;
6563 } Py_INCREF(Py_None
);
6564 _resultobj
= Py_None
;
6568 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6569 static PyObject
*_wrap_wxDC_DrawEllipse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6570 PyObject
* _resultobj
;
6576 PyObject
* _argo0
= 0;
6577 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawEllipse",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6591 wxDC_DrawEllipse(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6593 wxPyEndAllowThreads(__tstate
);
6594 if (PyErr_Occurred()) return NULL
;
6595 } Py_INCREF(Py_None
);
6596 _resultobj
= Py_None
;
6600 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6601 static PyObject
*_wrap_wxDC_DrawEllipticArc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6602 PyObject
* _resultobj
;
6610 PyObject
* _argo0
= 0;
6611 char *_kwnames
[] = { "self","x","y","width","height","start","end", NULL
};
6614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollllll:wxDC_DrawEllipticArc",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
6617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6625 wxDC_DrawEllipticArc(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
6627 wxPyEndAllowThreads(__tstate
);
6628 if (PyErr_Occurred()) return NULL
;
6629 } Py_INCREF(Py_None
);
6630 _resultobj
= Py_None
;
6634 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6635 static PyObject
*_wrap_wxDC_DrawIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6636 PyObject
* _resultobj
;
6641 PyObject
* _argo0
= 0;
6642 PyObject
* _argo1
= 0;
6643 char *_kwnames
[] = { "self","icon","x","y", NULL
};
6646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawIcon",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
6649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6656 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6657 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
6658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6664 wxDC_DrawIcon(_arg0
,*_arg1
,_arg2
,_arg3
);
6666 wxPyEndAllowThreads(__tstate
);
6667 if (PyErr_Occurred()) return NULL
;
6668 } Py_INCREF(Py_None
);
6669 _resultobj
= Py_None
;
6673 #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6674 static PyObject
*_wrap_wxDC_DrawLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6675 PyObject
* _resultobj
;
6679 int _arg3
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6680 int _arg4
= (int ) -1;
6681 PyObject
* _argo0
= 0;
6682 PyObject
* _obj1
= 0;
6684 PyObject
* _obj2
= 0;
6685 char *_kwnames
[] = { "self","text","rect","alignment","indexAccel", NULL
};
6688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|ii:wxDC_DrawLabel",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
,&_arg4
))
6691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6698 #if PYTHON_API_VERSION >= 1009
6699 char* tmpPtr
; int tmpSize
;
6700 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6701 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6704 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6706 _arg1
= new wxString(tmpPtr
, tmpSize
);
6708 if (!PyString_Check(_obj1
)) {
6709 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6712 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6717 if (! wxRect_helper(_obj2
, &_arg2
))
6721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6722 wxDC_DrawLabel(_arg0
,*_arg1
,*_arg2
,_arg3
,_arg4
);
6724 wxPyEndAllowThreads(__tstate
);
6725 if (PyErr_Occurred()) return NULL
;
6726 } Py_INCREF(Py_None
);
6727 _resultobj
= Py_None
;
6735 static wxRect
wxDC_DrawImageLabel(wxDC
*self
,const wxString
& text
,const wxBitmap
& image
,const wxRect
& rect
,int alignment
,int indexAccel
) {
6737 self
->DrawLabel(text
, image
, rect
, alignment
, indexAccel
, &rv
);
6740 static PyObject
*_wrap_wxDC_DrawImageLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6741 PyObject
* _resultobj
;
6747 int _arg4
= (int ) wxALIGN_LEFT
|wxALIGN_TOP
;
6748 int _arg5
= (int ) -1;
6749 PyObject
* _argo0
= 0;
6750 PyObject
* _obj1
= 0;
6751 PyObject
* _argo2
= 0;
6753 PyObject
* _obj3
= 0;
6754 char *_kwnames
[] = { "self","text","image","rect","alignment","indexAccel", NULL
};
6758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO|ii:wxDC_DrawImageLabel",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_obj3
,&_arg4
,&_arg5
))
6761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6768 #if PYTHON_API_VERSION >= 1009
6769 char* tmpPtr
; int tmpSize
;
6770 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
6771 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6774 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
6776 _arg1
= new wxString(tmpPtr
, tmpSize
);
6778 if (!PyString_Check(_obj1
)) {
6779 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6782 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
6786 if (_argo2
== Py_None
) { _arg2
= NULL
; }
6787 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
6788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6794 if (! wxRect_helper(_obj3
, &_arg3
))
6798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6799 _result
= new wxRect (wxDC_DrawImageLabel(_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
));
6801 wxPyEndAllowThreads(__tstate
);
6802 if (PyErr_Occurred()) return NULL
;
6803 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
6804 _resultobj
= Py_BuildValue("s",_ptemp
);
6812 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6813 static PyObject
*_wrap_wxDC_DrawLine(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6814 PyObject
* _resultobj
;
6820 PyObject
* _argo0
= 0;
6821 char *_kwnames
[] = { "self","x1","y1","x2","y2", NULL
};
6824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawLine",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6835 wxDC_DrawLine(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6837 wxPyEndAllowThreads(__tstate
);
6838 if (PyErr_Occurred()) return NULL
;
6839 } Py_INCREF(Py_None
);
6840 _resultobj
= Py_None
;
6844 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6845 static PyObject
*_wrap_wxDC_DrawLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6846 PyObject
* _resultobj
;
6850 long _arg3
= (long ) 0;
6851 long _arg4
= (long ) 0;
6852 PyObject
* _argo0
= 0;
6854 PyObject
* _obj2
= 0;
6855 char *_kwnames
[] = { "self","points","xoffset","yoffset", NULL
};
6858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|ll:wxDC_DrawLines",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
))
6861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6869 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6870 if (_arg2
== NULL
) {
6878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6879 wxDC_DrawLines(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6881 wxPyEndAllowThreads(__tstate
);
6882 if (PyErr_Occurred()) return NULL
;
6883 } Py_INCREF(Py_None
);
6884 _resultobj
= Py_None
;
6891 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6892 static PyObject
*_wrap_wxDC_DrawPolygon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6893 PyObject
* _resultobj
;
6897 long _arg3
= (long ) 0;
6898 long _arg4
= (long ) 0;
6899 int _arg5
= (int ) wxODDEVEN_RULE
;
6900 PyObject
* _argo0
= 0;
6902 PyObject
* _obj2
= 0;
6903 char *_kwnames
[] = { "self","points","xoffset","yoffset","fill_style", NULL
};
6906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|lli:wxDC_DrawPolygon",_kwnames
,&_argo0
,&_obj2
,&_arg3
,&_arg4
,&_arg5
))
6909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6917 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
6918 if (_arg2
== NULL
) {
6926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6927 wxDC_DrawPolygon(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
6929 wxPyEndAllowThreads(__tstate
);
6930 if (PyErr_Occurred()) return NULL
;
6931 } Py_INCREF(Py_None
);
6932 _resultobj
= Py_None
;
6939 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6940 static PyObject
*_wrap_wxDC_DrawPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6941 PyObject
* _resultobj
;
6945 PyObject
* _argo0
= 0;
6946 char *_kwnames
[] = { "self","x","y", NULL
};
6949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_DrawPoint",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6960 wxDC_DrawPoint(_arg0
,_arg1
,_arg2
);
6962 wxPyEndAllowThreads(__tstate
);
6963 if (PyErr_Occurred()) return NULL
;
6964 } Py_INCREF(Py_None
);
6965 _resultobj
= Py_None
;
6969 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6970 static PyObject
*_wrap_wxDC_DrawRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6971 PyObject
* _resultobj
;
6977 PyObject
* _argo0
= 0;
6978 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
6981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_DrawRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
6984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
6986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6992 wxDC_DrawRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6994 wxPyEndAllowThreads(__tstate
);
6995 if (PyErr_Occurred()) return NULL
;
6996 } Py_INCREF(Py_None
);
6997 _resultobj
= Py_None
;
7001 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7002 static PyObject
*_wrap_wxDC_DrawRotatedText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7003 PyObject
* _resultobj
;
7009 PyObject
* _argo0
= 0;
7010 PyObject
* _obj1
= 0;
7011 char *_kwnames
[] = { "self","text","x","y","angle", NULL
};
7014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiid:wxDC_DrawRotatedText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
,&_arg4
))
7017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7024 #if PYTHON_API_VERSION >= 1009
7025 char* tmpPtr
; int tmpSize
;
7026 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7027 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7030 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7032 _arg1
= new wxString(tmpPtr
, tmpSize
);
7034 if (!PyString_Check(_obj1
)) {
7035 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7038 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7043 wxDC_DrawRotatedText(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
7045 wxPyEndAllowThreads(__tstate
);
7046 if (PyErr_Occurred()) return NULL
;
7047 } Py_INCREF(Py_None
);
7048 _resultobj
= Py_None
;
7056 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7057 static PyObject
*_wrap_wxDC_DrawRoundedRectangle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7058 PyObject
* _resultobj
;
7064 long _arg5
= (long ) 20;
7065 PyObject
* _argo0
= 0;
7066 char *_kwnames
[] = { "self","x","y","width","height","radius", NULL
};
7069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
7072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7080 wxDC_DrawRoundedRectangle(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
7082 wxPyEndAllowThreads(__tstate
);
7083 if (PyErr_Occurred()) return NULL
;
7084 } Py_INCREF(Py_None
);
7085 _resultobj
= Py_None
;
7089 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7090 static PyObject
*_wrap_wxDC_DrawSpline(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7091 PyObject
* _resultobj
;
7095 PyObject
* _argo0
= 0;
7097 PyObject
* _obj2
= 0;
7098 char *_kwnames
[] = { "self","points", NULL
};
7101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_DrawSpline",_kwnames
,&_argo0
,&_obj2
))
7104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7112 _arg2
= wxPoint_LIST_helper(_obj2
, &NPOINTS
);
7113 if (_arg2
== NULL
) {
7121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7122 wxDC_DrawSpline(_arg0
,_arg1
,_arg2
);
7124 wxPyEndAllowThreads(__tstate
);
7125 if (PyErr_Occurred()) return NULL
;
7126 } Py_INCREF(Py_None
);
7127 _resultobj
= Py_None
;
7134 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7135 static PyObject
*_wrap_wxDC_DrawText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7136 PyObject
* _resultobj
;
7141 PyObject
* _argo0
= 0;
7142 PyObject
* _obj1
= 0;
7143 char *_kwnames
[] = { "self","text","x","y", NULL
};
7146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll:wxDC_DrawText",_kwnames
,&_argo0
,&_obj1
,&_arg2
,&_arg3
))
7149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7156 #if PYTHON_API_VERSION >= 1009
7157 char* tmpPtr
; int tmpSize
;
7158 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7159 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7162 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7164 _arg1
= new wxString(tmpPtr
, tmpSize
);
7166 if (!PyString_Check(_obj1
)) {
7167 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7170 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7175 wxDC_DrawText(_arg0
,*_arg1
,_arg2
,_arg3
);
7177 wxPyEndAllowThreads(__tstate
);
7178 if (PyErr_Occurred()) return NULL
;
7179 } Py_INCREF(Py_None
);
7180 _resultobj
= Py_None
;
7188 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7189 static PyObject
*_wrap_wxDC_EndDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7190 PyObject
* _resultobj
;
7192 PyObject
* _argo0
= 0;
7193 char *_kwnames
[] = { "self", NULL
};
7196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDoc",_kwnames
,&_argo0
))
7199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7209 wxPyEndAllowThreads(__tstate
);
7210 if (PyErr_Occurred()) return NULL
;
7211 } Py_INCREF(Py_None
);
7212 _resultobj
= Py_None
;
7216 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7217 static PyObject
*_wrap_wxDC_EndDrawing(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7218 PyObject
* _resultobj
;
7220 PyObject
* _argo0
= 0;
7221 char *_kwnames
[] = { "self", NULL
};
7224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndDrawing",_kwnames
,&_argo0
))
7227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7235 wxDC_EndDrawing(_arg0
);
7237 wxPyEndAllowThreads(__tstate
);
7238 if (PyErr_Occurred()) return NULL
;
7239 } Py_INCREF(Py_None
);
7240 _resultobj
= Py_None
;
7244 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7245 static PyObject
*_wrap_wxDC_EndPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7246 PyObject
* _resultobj
;
7248 PyObject
* _argo0
= 0;
7249 char *_kwnames
[] = { "self", NULL
};
7252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_EndPage",_kwnames
,&_argo0
))
7255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7263 wxDC_EndPage(_arg0
);
7265 wxPyEndAllowThreads(__tstate
);
7266 if (PyErr_Occurred()) return NULL
;
7267 } Py_INCREF(Py_None
);
7268 _resultobj
= Py_None
;
7272 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7273 static PyObject
*_wrap_wxDC_FloodFill(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7274 PyObject
* _resultobj
;
7279 int _arg4
= (int ) wxFLOOD_SURFACE
;
7280 PyObject
* _argo0
= 0;
7282 PyObject
* _obj3
= 0;
7283 char *_kwnames
[] = { "self","x","y","colour","style", NULL
};
7286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OllO|i:wxDC_FloodFill",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_arg4
))
7289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7297 if (! wxColour_helper(_obj3
, &_arg3
))
7301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7302 wxDC_FloodFill(_arg0
,_arg1
,_arg2
,*_arg3
,_arg4
);
7304 wxPyEndAllowThreads(__tstate
);
7305 if (PyErr_Occurred()) return NULL
;
7306 } Py_INCREF(Py_None
);
7307 _resultobj
= Py_None
;
7311 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7312 static PyObject
*_wrap_wxDC_GetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7313 PyObject
* _resultobj
;
7316 PyObject
* _argo0
= 0;
7317 char *_kwnames
[] = { "self", NULL
};
7321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBackground",_kwnames
,&_argo0
))
7324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7332 _result
= new wxBrush (wxDC_GetBackground(_arg0
));
7334 wxPyEndAllowThreads(__tstate
);
7335 if (PyErr_Occurred()) return NULL
;
7336 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7337 _resultobj
= Py_BuildValue("s",_ptemp
);
7341 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7342 static PyObject
*_wrap_wxDC_GetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7343 PyObject
* _resultobj
;
7346 PyObject
* _argo0
= 0;
7347 char *_kwnames
[] = { "self", NULL
};
7351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBrush",_kwnames
,&_argo0
))
7354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7362 _result
= new wxBrush (wxDC_GetBrush(_arg0
));
7364 wxPyEndAllowThreads(__tstate
);
7365 if (PyErr_Occurred()) return NULL
;
7366 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBrush_p");
7367 _resultobj
= Py_BuildValue("s",_ptemp
);
7371 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7372 static PyObject
*_wrap_wxDC_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7373 PyObject
* _resultobj
;
7376 PyObject
* _argo0
= 0;
7377 char *_kwnames
[] = { "self", NULL
};
7380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharHeight",_kwnames
,&_argo0
))
7383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7391 _result
= (long )wxDC_GetCharHeight(_arg0
);
7393 wxPyEndAllowThreads(__tstate
);
7394 if (PyErr_Occurred()) return NULL
;
7395 } _resultobj
= Py_BuildValue("l",_result
);
7399 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7400 static PyObject
*_wrap_wxDC_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7401 PyObject
* _resultobj
;
7404 PyObject
* _argo0
= 0;
7405 char *_kwnames
[] = { "self", NULL
};
7408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetCharWidth",_kwnames
,&_argo0
))
7411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7419 _result
= (long )wxDC_GetCharWidth(_arg0
);
7421 wxPyEndAllowThreads(__tstate
);
7422 if (PyErr_Occurred()) return NULL
;
7423 } _resultobj
= Py_BuildValue("l",_result
);
7427 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7428 static PyObject
*_wrap_wxDC_GetClippingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7429 PyObject
* _resultobj
;
7439 PyObject
* _argo0
= 0;
7440 char *_kwnames
[] = { "self", NULL
};
7455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetClippingBox",_kwnames
,&_argo0
))
7458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7466 wxDC_GetClippingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
7468 wxPyEndAllowThreads(__tstate
);
7469 if (PyErr_Occurred()) return NULL
;
7470 } Py_INCREF(Py_None
);
7471 _resultobj
= Py_None
;
7474 o
= PyInt_FromLong((long) (*_arg1
));
7475 _resultobj
= t_output_helper(_resultobj
, o
);
7479 o
= PyInt_FromLong((long) (*_arg2
));
7480 _resultobj
= t_output_helper(_resultobj
, o
);
7484 o
= PyInt_FromLong((long) (*_arg3
));
7485 _resultobj
= t_output_helper(_resultobj
, o
);
7489 o
= PyInt_FromLong((long) (*_arg4
));
7490 _resultobj
= t_output_helper(_resultobj
, o
);
7495 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7496 static PyObject
*_wrap_wxDC_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7497 PyObject
* _resultobj
;
7500 PyObject
* _argo0
= 0;
7501 char *_kwnames
[] = { "self", NULL
};
7505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetFont",_kwnames
,&_argo0
))
7508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7515 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7516 _result
= new wxFont (wxDC_GetFont(_arg0
));
7518 wxPyEndAllowThreads(__tstate
);
7519 if (PyErr_Occurred()) return NULL
;
7520 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
7521 _resultobj
= Py_BuildValue("s",_ptemp
);
7525 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7526 static PyObject
*_wrap_wxDC_GetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7527 PyObject
* _resultobj
;
7530 PyObject
* _argo0
= 0;
7531 char *_kwnames
[] = { "self", NULL
};
7534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalFunction",_kwnames
,&_argo0
))
7537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7545 _result
= (int )wxDC_GetLogicalFunction(_arg0
);
7547 wxPyEndAllowThreads(__tstate
);
7548 if (PyErr_Occurred()) return NULL
;
7549 } _resultobj
= Py_BuildValue("i",_result
);
7553 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7554 static PyObject
*_wrap_wxDC_GetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7555 PyObject
* _resultobj
;
7561 PyObject
* _argo0
= 0;
7562 char *_kwnames
[] = { "self", NULL
};
7571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalScale",_kwnames
,&_argo0
))
7574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7582 wxDC_GetLogicalScale(_arg0
,_arg1
,_arg2
);
7584 wxPyEndAllowThreads(__tstate
);
7585 if (PyErr_Occurred()) return NULL
;
7586 } Py_INCREF(Py_None
);
7587 _resultobj
= Py_None
;
7590 o
= PyFloat_FromDouble((double) (*_arg1
));
7591 _resultobj
= t_output_helper(_resultobj
, o
);
7595 o
= PyFloat_FromDouble((double) (*_arg2
));
7596 _resultobj
= t_output_helper(_resultobj
, o
);
7601 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7602 static PyObject
*_wrap_wxDC_GetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7603 PyObject
* _resultobj
;
7606 PyObject
* _argo0
= 0;
7607 char *_kwnames
[] = { "self", NULL
};
7610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetMapMode",_kwnames
,&_argo0
))
7613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7621 _result
= (int )wxDC_GetMapMode(_arg0
);
7623 wxPyEndAllowThreads(__tstate
);
7624 if (PyErr_Occurred()) return NULL
;
7625 } _resultobj
= Py_BuildValue("i",_result
);
7629 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7630 static PyObject
*_wrap_wxDC_GetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7631 PyObject
* _resultobj
;
7634 PyObject
* _argo0
= 0;
7635 char *_kwnames
[] = { "self", NULL
};
7638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetOptimization",_kwnames
,&_argo0
))
7641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7649 _result
= (bool )wxDC_GetOptimization(_arg0
);
7651 wxPyEndAllowThreads(__tstate
);
7652 if (PyErr_Occurred()) return NULL
;
7653 } _resultobj
= Py_BuildValue("i",_result
);
7657 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7658 static PyObject
*_wrap_wxDC_GetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7659 PyObject
* _resultobj
;
7662 PyObject
* _argo0
= 0;
7663 char *_kwnames
[] = { "self", NULL
};
7667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPen",_kwnames
,&_argo0
))
7670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7678 _result
= new wxPen (wxDC_GetPen(_arg0
));
7680 wxPyEndAllowThreads(__tstate
);
7681 if (PyErr_Occurred()) return NULL
;
7682 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPen_p");
7683 _resultobj
= Py_BuildValue("s",_ptemp
);
7687 static wxColour
* wxDC_GetPixel(wxDC
*self
,long x
,long y
) {
7688 wxColour
* wc
= new wxColour();
7689 self
->GetPixel(x
, y
, wc
);
7692 static PyObject
*_wrap_wxDC_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7693 PyObject
* _resultobj
;
7698 PyObject
* _argo0
= 0;
7699 char *_kwnames
[] = { "self","x","y", NULL
};
7703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
7706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7714 _result
= (wxColour
*)wxDC_GetPixel(_arg0
,_arg1
,_arg2
);
7716 wxPyEndAllowThreads(__tstate
);
7717 if (PyErr_Occurred()) return NULL
;
7719 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
7720 _resultobj
= Py_BuildValue("s",_ptemp
);
7723 _resultobj
= Py_None
;
7728 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7729 static PyObject
*_wrap_wxDC_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
* _resultobj
;
7736 PyObject
* _argo0
= 0;
7737 char *_kwnames
[] = { "self", NULL
};
7746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeTuple",_kwnames
,&_argo0
))
7749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7756 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7757 wxDC_GetSizeTuple(_arg0
,_arg1
,_arg2
);
7759 wxPyEndAllowThreads(__tstate
);
7760 if (PyErr_Occurred()) return NULL
;
7761 } Py_INCREF(Py_None
);
7762 _resultobj
= Py_None
;
7765 o
= PyInt_FromLong((long) (*_arg1
));
7766 _resultobj
= t_output_helper(_resultobj
, o
);
7770 o
= PyInt_FromLong((long) (*_arg2
));
7771 _resultobj
= t_output_helper(_resultobj
, o
);
7776 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7777 static PyObject
*_wrap_wxDC_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7778 PyObject
* _resultobj
;
7781 PyObject
* _argo0
= 0;
7782 char *_kwnames
[] = { "self", NULL
};
7786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSize",_kwnames
,&_argo0
))
7789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7797 _result
= new wxSize (wxDC_GetSize(_arg0
));
7799 wxPyEndAllowThreads(__tstate
);
7800 if (PyErr_Occurred()) return NULL
;
7801 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7802 _resultobj
= Py_BuildValue("s",_ptemp
);
7806 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7807 static PyObject
*_wrap_wxDC_GetSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7808 PyObject
* _resultobj
;
7811 PyObject
* _argo0
= 0;
7812 char *_kwnames
[] = { "self", NULL
};
7816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetSizeMM",_kwnames
,&_argo0
))
7819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7827 _result
= new wxSize (wxDC_GetSizeMM(_arg0
));
7829 wxPyEndAllowThreads(__tstate
);
7830 if (PyErr_Occurred()) return NULL
;
7831 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
7832 _resultobj
= Py_BuildValue("s",_ptemp
);
7836 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7837 static PyObject
*_wrap_wxDC_GetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7838 PyObject
* _resultobj
;
7841 PyObject
* _argo0
= 0;
7842 char *_kwnames
[] = { "self", NULL
};
7846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextBackground",_kwnames
,&_argo0
))
7849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7857 _result
= new wxColour (wxDC_GetTextBackground(_arg0
));
7859 wxPyEndAllowThreads(__tstate
);
7860 if (PyErr_Occurred()) return NULL
;
7861 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
7862 _resultobj
= Py_BuildValue("s",_ptemp
);
7866 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7867 static PyObject
*_wrap_wxDC_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7868 PyObject
* _resultobj
;
7875 PyObject
* _argo0
= 0;
7876 PyObject
* _obj1
= 0;
7877 char *_kwnames
[] = { "self","string", NULL
};
7886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
7889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7896 #if PYTHON_API_VERSION >= 1009
7897 char* tmpPtr
; int tmpSize
;
7898 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7899 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7902 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7904 _arg1
= new wxString(tmpPtr
, tmpSize
);
7906 if (!PyString_Check(_obj1
)) {
7907 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7910 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7915 wxDC_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
7917 wxPyEndAllowThreads(__tstate
);
7918 if (PyErr_Occurred()) return NULL
;
7919 } Py_INCREF(Py_None
);
7920 _resultobj
= Py_None
;
7923 o
= PyInt_FromLong((long) (*_arg2
));
7924 _resultobj
= t_output_helper(_resultobj
, o
);
7928 o
= PyInt_FromLong((long) (*_arg3
));
7929 _resultobj
= t_output_helper(_resultobj
, o
);
7938 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7939 static PyObject
*_wrap_wxDC_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7940 PyObject
* _resultobj
;
7951 wxFont
* _arg6
= (wxFont
*) NULL
;
7952 PyObject
* _argo0
= 0;
7953 PyObject
* _obj1
= 0;
7954 PyObject
* _argo6
= 0;
7955 char *_kwnames
[] = { "self","string","font", NULL
};
7970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxDC_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
7973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
7975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7980 #if PYTHON_API_VERSION >= 1009
7981 char* tmpPtr
; int tmpSize
;
7982 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7983 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7986 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7988 _arg1
= new wxString(tmpPtr
, tmpSize
);
7990 if (!PyString_Check(_obj1
)) {
7991 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7994 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7998 if (_argo6
== Py_None
) { _arg6
= NULL
; }
7999 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
8000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8005 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8006 wxDC_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
8008 wxPyEndAllowThreads(__tstate
);
8009 if (PyErr_Occurred()) return NULL
;
8010 } Py_INCREF(Py_None
);
8011 _resultobj
= Py_None
;
8014 o
= PyInt_FromLong((long) (*_arg2
));
8015 _resultobj
= t_output_helper(_resultobj
, o
);
8019 o
= PyInt_FromLong((long) (*_arg3
));
8020 _resultobj
= t_output_helper(_resultobj
, o
);
8024 o
= PyInt_FromLong((long) (*_arg4
));
8025 _resultobj
= t_output_helper(_resultobj
, o
);
8029 o
= PyInt_FromLong((long) (*_arg5
));
8030 _resultobj
= t_output_helper(_resultobj
, o
);
8039 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8040 static PyObject
*_wrap_wxDC_GetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8041 PyObject
* _resultobj
;
8044 PyObject
* _argo0
= 0;
8045 char *_kwnames
[] = { "self", NULL
};
8049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetTextForeground",_kwnames
,&_argo0
))
8052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8060 _result
= new wxColour (wxDC_GetTextForeground(_arg0
));
8062 wxPyEndAllowThreads(__tstate
);
8063 if (PyErr_Occurred()) return NULL
;
8064 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
8065 _resultobj
= Py_BuildValue("s",_ptemp
);
8069 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8070 static PyObject
*_wrap_wxDC_GetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8071 PyObject
* _resultobj
;
8077 PyObject
* _argo0
= 0;
8078 char *_kwnames
[] = { "self", NULL
};
8087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetUserScale",_kwnames
,&_argo0
))
8090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8098 wxDC_GetUserScale(_arg0
,_arg1
,_arg2
);
8100 wxPyEndAllowThreads(__tstate
);
8101 if (PyErr_Occurred()) return NULL
;
8102 } Py_INCREF(Py_None
);
8103 _resultobj
= Py_None
;
8106 o
= PyFloat_FromDouble((double) (*_arg1
));
8107 _resultobj
= t_output_helper(_resultobj
, o
);
8111 o
= PyFloat_FromDouble((double) (*_arg2
));
8112 _resultobj
= t_output_helper(_resultobj
, o
);
8117 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8118 static PyObject
*_wrap_wxDC_LogicalToDeviceX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8119 PyObject
* _resultobj
;
8123 PyObject
* _argo0
= 0;
8124 char *_kwnames
[] = { "self","x", NULL
};
8127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceX",_kwnames
,&_argo0
,&_arg1
))
8130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8138 _result
= (long )wxDC_LogicalToDeviceX(_arg0
,_arg1
);
8140 wxPyEndAllowThreads(__tstate
);
8141 if (PyErr_Occurred()) return NULL
;
8142 } _resultobj
= Py_BuildValue("l",_result
);
8146 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8147 static PyObject
*_wrap_wxDC_LogicalToDeviceXRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8148 PyObject
* _resultobj
;
8152 PyObject
* _argo0
= 0;
8153 char *_kwnames
[] = { "self","x", NULL
};
8156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceXRel",_kwnames
,&_argo0
,&_arg1
))
8159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8167 _result
= (long )wxDC_LogicalToDeviceXRel(_arg0
,_arg1
);
8169 wxPyEndAllowThreads(__tstate
);
8170 if (PyErr_Occurred()) return NULL
;
8171 } _resultobj
= Py_BuildValue("l",_result
);
8175 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8176 static PyObject
*_wrap_wxDC_LogicalToDeviceY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8177 PyObject
* _resultobj
;
8181 PyObject
* _argo0
= 0;
8182 char *_kwnames
[] = { "self","y", NULL
};
8185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceY",_kwnames
,&_argo0
,&_arg1
))
8188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8196 _result
= (long )wxDC_LogicalToDeviceY(_arg0
,_arg1
);
8198 wxPyEndAllowThreads(__tstate
);
8199 if (PyErr_Occurred()) return NULL
;
8200 } _resultobj
= Py_BuildValue("l",_result
);
8204 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8205 static PyObject
*_wrap_wxDC_LogicalToDeviceYRel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8206 PyObject
* _resultobj
;
8210 PyObject
* _argo0
= 0;
8211 char *_kwnames
[] = { "self","y", NULL
};
8214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDC_LogicalToDeviceYRel",_kwnames
,&_argo0
,&_arg1
))
8217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8225 _result
= (long )wxDC_LogicalToDeviceYRel(_arg0
,_arg1
);
8227 wxPyEndAllowThreads(__tstate
);
8228 if (PyErr_Occurred()) return NULL
;
8229 } _resultobj
= Py_BuildValue("l",_result
);
8233 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8234 static PyObject
*_wrap_wxDC_MaxX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8235 PyObject
* _resultobj
;
8238 PyObject
* _argo0
= 0;
8239 char *_kwnames
[] = { "self", NULL
};
8242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxX",_kwnames
,&_argo0
))
8245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8253 _result
= (long )wxDC_MaxX(_arg0
);
8255 wxPyEndAllowThreads(__tstate
);
8256 if (PyErr_Occurred()) return NULL
;
8257 } _resultobj
= Py_BuildValue("l",_result
);
8261 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8262 static PyObject
*_wrap_wxDC_MaxY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8263 PyObject
* _resultobj
;
8266 PyObject
* _argo0
= 0;
8267 char *_kwnames
[] = { "self", NULL
};
8270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MaxY",_kwnames
,&_argo0
))
8273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8281 _result
= (long )wxDC_MaxY(_arg0
);
8283 wxPyEndAllowThreads(__tstate
);
8284 if (PyErr_Occurred()) return NULL
;
8285 } _resultobj
= Py_BuildValue("l",_result
);
8289 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8290 static PyObject
*_wrap_wxDC_MinX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8291 PyObject
* _resultobj
;
8294 PyObject
* _argo0
= 0;
8295 char *_kwnames
[] = { "self", NULL
};
8298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinX",_kwnames
,&_argo0
))
8301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8309 _result
= (long )wxDC_MinX(_arg0
);
8311 wxPyEndAllowThreads(__tstate
);
8312 if (PyErr_Occurred()) return NULL
;
8313 } _resultobj
= Py_BuildValue("l",_result
);
8317 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8318 static PyObject
*_wrap_wxDC_MinY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8319 PyObject
* _resultobj
;
8322 PyObject
* _argo0
= 0;
8323 char *_kwnames
[] = { "self", NULL
};
8326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_MinY",_kwnames
,&_argo0
))
8329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8337 _result
= (long )wxDC_MinY(_arg0
);
8339 wxPyEndAllowThreads(__tstate
);
8340 if (PyErr_Occurred()) return NULL
;
8341 } _resultobj
= Py_BuildValue("l",_result
);
8345 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8346 static PyObject
*_wrap_wxDC_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8347 PyObject
* _resultobj
;
8350 PyObject
* _argo0
= 0;
8351 char *_kwnames
[] = { "self", NULL
};
8354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_Ok",_kwnames
,&_argo0
))
8357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8365 _result
= (bool )wxDC_Ok(_arg0
);
8367 wxPyEndAllowThreads(__tstate
);
8368 if (PyErr_Occurred()) return NULL
;
8369 } _resultobj
= Py_BuildValue("i",_result
);
8373 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8374 static PyObject
*_wrap_wxDC_SetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8375 PyObject
* _resultobj
;
8379 PyObject
* _argo0
= 0;
8380 char *_kwnames
[] = { "self","x","y", NULL
};
8383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxDC_SetDeviceOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8394 wxDC_SetDeviceOrigin(_arg0
,_arg1
,_arg2
);
8396 wxPyEndAllowThreads(__tstate
);
8397 if (PyErr_Occurred()) return NULL
;
8398 } Py_INCREF(Py_None
);
8399 _resultobj
= Py_None
;
8403 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8404 static PyObject
*_wrap_wxDC_SetBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8405 PyObject
* _resultobj
;
8408 PyObject
* _argo0
= 0;
8409 PyObject
* _argo1
= 0;
8410 char *_kwnames
[] = { "self","brush", NULL
};
8413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBackground",_kwnames
,&_argo0
,&_argo1
))
8416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8423 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8424 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8431 wxDC_SetBackground(_arg0
,*_arg1
);
8433 wxPyEndAllowThreads(__tstate
);
8434 if (PyErr_Occurred()) return NULL
;
8435 } Py_INCREF(Py_None
);
8436 _resultobj
= Py_None
;
8440 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8441 static PyObject
*_wrap_wxDC_SetBackgroundMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8442 PyObject
* _resultobj
;
8445 PyObject
* _argo0
= 0;
8446 char *_kwnames
[] = { "self","mode", NULL
};
8449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetBackgroundMode",_kwnames
,&_argo0
,&_arg1
))
8452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8460 wxDC_SetBackgroundMode(_arg0
,_arg1
);
8462 wxPyEndAllowThreads(__tstate
);
8463 if (PyErr_Occurred()) return NULL
;
8464 } Py_INCREF(Py_None
);
8465 _resultobj
= Py_None
;
8469 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8470 static PyObject
*_wrap_wxDC_SetClippingRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8471 PyObject
* _resultobj
;
8477 PyObject
* _argo0
= 0;
8478 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
8481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxDC_SetClippingRegion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
8484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8492 wxDC_SetClippingRegion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
8494 wxPyEndAllowThreads(__tstate
);
8495 if (PyErr_Occurred()) return NULL
;
8496 } Py_INCREF(Py_None
);
8497 _resultobj
= Py_None
;
8501 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8502 static PyObject
*_wrap_wxDC_SetClippingRegionAsRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8503 PyObject
* _resultobj
;
8506 PyObject
* _argo0
= 0;
8507 PyObject
* _argo1
= 0;
8508 char *_kwnames
[] = { "self","region", NULL
};
8511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetClippingRegionAsRegion",_kwnames
,&_argo0
,&_argo1
))
8514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8521 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8522 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
8523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8529 wxDC_SetClippingRegionAsRegion(_arg0
,*_arg1
);
8531 wxPyEndAllowThreads(__tstate
);
8532 if (PyErr_Occurred()) return NULL
;
8533 } Py_INCREF(Py_None
);
8534 _resultobj
= Py_None
;
8538 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8539 static PyObject
*_wrap_wxDC_SetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8540 PyObject
* _resultobj
;
8543 PyObject
* _argo0
= 0;
8544 PyObject
* _argo1
= 0;
8545 char *_kwnames
[] = { "self","colourMap", NULL
};
8548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPalette",_kwnames
,&_argo0
,&_argo1
))
8551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8558 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8559 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
8560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8566 wxDC_SetPalette(_arg0
,*_arg1
);
8568 wxPyEndAllowThreads(__tstate
);
8569 if (PyErr_Occurred()) return NULL
;
8570 } Py_INCREF(Py_None
);
8571 _resultobj
= Py_None
;
8575 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8576 static PyObject
*_wrap_wxDC_SetBrush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8577 PyObject
* _resultobj
;
8580 PyObject
* _argo0
= 0;
8581 PyObject
* _argo1
= 0;
8582 char *_kwnames
[] = { "self","brush", NULL
};
8585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetBrush",_kwnames
,&_argo0
,&_argo1
))
8588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8595 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8596 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBrush_p")) {
8597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8603 wxDC_SetBrush(_arg0
,*_arg1
);
8605 wxPyEndAllowThreads(__tstate
);
8606 if (PyErr_Occurred()) return NULL
;
8607 } Py_INCREF(Py_None
);
8608 _resultobj
= Py_None
;
8612 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8613 static PyObject
*_wrap_wxDC_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8614 PyObject
* _resultobj
;
8617 PyObject
* _argo0
= 0;
8618 PyObject
* _argo1
= 0;
8619 char *_kwnames
[] = { "self","font", NULL
};
8622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetFont",_kwnames
,&_argo0
,&_argo1
))
8625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8632 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8633 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
8634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8640 wxDC_SetFont(_arg0
,*_arg1
);
8642 wxPyEndAllowThreads(__tstate
);
8643 if (PyErr_Occurred()) return NULL
;
8644 } Py_INCREF(Py_None
);
8645 _resultobj
= Py_None
;
8649 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8650 static PyObject
*_wrap_wxDC_SetLogicalFunction(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8651 PyObject
* _resultobj
;
8654 PyObject
* _argo0
= 0;
8655 char *_kwnames
[] = { "self","function", NULL
};
8658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetLogicalFunction",_kwnames
,&_argo0
,&_arg1
))
8661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8669 wxDC_SetLogicalFunction(_arg0
,_arg1
);
8671 wxPyEndAllowThreads(__tstate
);
8672 if (PyErr_Occurred()) return NULL
;
8673 } Py_INCREF(Py_None
);
8674 _resultobj
= Py_None
;
8678 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8679 static PyObject
*_wrap_wxDC_SetLogicalScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8680 PyObject
* _resultobj
;
8684 PyObject
* _argo0
= 0;
8685 char *_kwnames
[] = { "self","x","y", NULL
};
8688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetLogicalScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8699 wxDC_SetLogicalScale(_arg0
,_arg1
,_arg2
);
8701 wxPyEndAllowThreads(__tstate
);
8702 if (PyErr_Occurred()) return NULL
;
8703 } Py_INCREF(Py_None
);
8704 _resultobj
= Py_None
;
8708 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8709 static PyObject
*_wrap_wxDC_SetMapMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8710 PyObject
* _resultobj
;
8713 PyObject
* _argo0
= 0;
8714 char *_kwnames
[] = { "self","mode", NULL
};
8717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetMapMode",_kwnames
,&_argo0
,&_arg1
))
8720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8728 wxDC_SetMapMode(_arg0
,_arg1
);
8730 wxPyEndAllowThreads(__tstate
);
8731 if (PyErr_Occurred()) return NULL
;
8732 } Py_INCREF(Py_None
);
8733 _resultobj
= Py_None
;
8737 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8738 static PyObject
*_wrap_wxDC_SetOptimization(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8739 PyObject
* _resultobj
;
8742 PyObject
* _argo0
= 0;
8744 char *_kwnames
[] = { "self","optimize", NULL
};
8747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDC_SetOptimization",_kwnames
,&_argo0
,&tempbool1
))
8750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8756 _arg1
= (bool ) tempbool1
;
8758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8759 wxDC_SetOptimization(_arg0
,_arg1
);
8761 wxPyEndAllowThreads(__tstate
);
8762 if (PyErr_Occurred()) return NULL
;
8763 } Py_INCREF(Py_None
);
8764 _resultobj
= Py_None
;
8768 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8769 static PyObject
*_wrap_wxDC_SetPen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8770 PyObject
* _resultobj
;
8773 PyObject
* _argo0
= 0;
8774 PyObject
* _argo1
= 0;
8775 char *_kwnames
[] = { "self","pen", NULL
};
8778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetPen",_kwnames
,&_argo0
,&_argo1
))
8781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8788 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8789 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPen_p")) {
8790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8795 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8796 wxDC_SetPen(_arg0
,*_arg1
);
8798 wxPyEndAllowThreads(__tstate
);
8799 if (PyErr_Occurred()) return NULL
;
8800 } Py_INCREF(Py_None
);
8801 _resultobj
= Py_None
;
8805 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8806 static PyObject
*_wrap_wxDC_SetTextBackground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8807 PyObject
* _resultobj
;
8810 PyObject
* _argo0
= 0;
8812 PyObject
* _obj1
= 0;
8813 char *_kwnames
[] = { "self","colour", NULL
};
8816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextBackground",_kwnames
,&_argo0
,&_obj1
))
8819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8827 if (! wxColour_helper(_obj1
, &_arg1
))
8831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8832 wxDC_SetTextBackground(_arg0
,*_arg1
);
8834 wxPyEndAllowThreads(__tstate
);
8835 if (PyErr_Occurred()) return NULL
;
8836 } Py_INCREF(Py_None
);
8837 _resultobj
= Py_None
;
8841 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8842 static PyObject
*_wrap_wxDC_SetTextForeground(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8843 PyObject
* _resultobj
;
8846 PyObject
* _argo0
= 0;
8848 PyObject
* _obj1
= 0;
8849 char *_kwnames
[] = { "self","colour", NULL
};
8852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_SetTextForeground",_kwnames
,&_argo0
,&_obj1
))
8855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8863 if (! wxColour_helper(_obj1
, &_arg1
))
8867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8868 wxDC_SetTextForeground(_arg0
,*_arg1
);
8870 wxPyEndAllowThreads(__tstate
);
8871 if (PyErr_Occurred()) return NULL
;
8872 } Py_INCREF(Py_None
);
8873 _resultobj
= Py_None
;
8877 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8878 static PyObject
*_wrap_wxDC_SetUserScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8879 PyObject
* _resultobj
;
8883 PyObject
* _argo0
= 0;
8884 char *_kwnames
[] = { "self","x_scale","y_scale", NULL
};
8887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxDC_SetUserScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
8890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8898 wxDC_SetUserScale(_arg0
,_arg1
,_arg2
);
8900 wxPyEndAllowThreads(__tstate
);
8901 if (PyErr_Occurred()) return NULL
;
8902 } Py_INCREF(Py_None
);
8903 _resultobj
= Py_None
;
8907 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8908 static PyObject
*_wrap_wxDC_StartDoc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8909 PyObject
* _resultobj
;
8913 PyObject
* _argo0
= 0;
8914 PyObject
* _obj1
= 0;
8915 char *_kwnames
[] = { "self","message", NULL
};
8918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDC_StartDoc",_kwnames
,&_argo0
,&_obj1
))
8921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8928 #if PYTHON_API_VERSION >= 1009
8929 char* tmpPtr
; int tmpSize
;
8930 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8931 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8934 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8936 _arg1
= new wxString(tmpPtr
, tmpSize
);
8938 if (!PyString_Check(_obj1
)) {
8939 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8942 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8947 _result
= (bool )wxDC_StartDoc(_arg0
,*_arg1
);
8949 wxPyEndAllowThreads(__tstate
);
8950 if (PyErr_Occurred()) return NULL
;
8951 } _resultobj
= Py_BuildValue("i",_result
);
8959 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8960 static PyObject
*_wrap_wxDC_StartPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8961 PyObject
* _resultobj
;
8963 PyObject
* _argo0
= 0;
8964 char *_kwnames
[] = { "self", NULL
};
8967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_StartPage",_kwnames
,&_argo0
))
8970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
8972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8977 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8978 wxDC_StartPage(_arg0
);
8980 wxPyEndAllowThreads(__tstate
);
8981 if (PyErr_Occurred()) return NULL
;
8982 } Py_INCREF(Py_None
);
8983 _resultobj
= Py_None
;
8987 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8988 static PyObject
*_wrap_wxDC_DrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8989 PyObject
* _resultobj
;
8994 int _arg4
= (int ) FALSE
;
8995 PyObject
* _argo0
= 0;
8996 PyObject
* _argo1
= 0;
8997 char *_kwnames
[] = { "self","bitmap","x","y","useMask", NULL
};
9000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOll|i:wxDC_DrawBitmap",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
9003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9010 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9011 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9018 wxDC_DrawBitmap(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
);
9020 wxPyEndAllowThreads(__tstate
);
9021 if (PyErr_Occurred()) return NULL
;
9022 } Py_INCREF(Py_None
);
9023 _resultobj
= Py_None
;
9027 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9028 static PyObject
*_wrap_wxDC_CanDrawBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9029 PyObject
* _resultobj
;
9032 PyObject
* _argo0
= 0;
9033 char *_kwnames
[] = { "self", NULL
};
9036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanDrawBitmap",_kwnames
,&_argo0
))
9039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9047 _result
= (bool )wxDC_CanDrawBitmap(_arg0
);
9049 wxPyEndAllowThreads(__tstate
);
9050 if (PyErr_Occurred()) return NULL
;
9051 } _resultobj
= Py_BuildValue("i",_result
);
9055 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9056 static PyObject
*_wrap_wxDC_CanGetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9057 PyObject
* _resultobj
;
9060 PyObject
* _argo0
= 0;
9061 char *_kwnames
[] = { "self", NULL
};
9064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_CanGetTextExtent",_kwnames
,&_argo0
))
9067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9075 _result
= (bool )wxDC_CanGetTextExtent(_arg0
);
9077 wxPyEndAllowThreads(__tstate
);
9078 if (PyErr_Occurred()) return NULL
;
9079 } _resultobj
= Py_BuildValue("i",_result
);
9083 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9084 static PyObject
*_wrap_wxDC_GetDepth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9085 PyObject
* _resultobj
;
9088 PyObject
* _argo0
= 0;
9089 char *_kwnames
[] = { "self", NULL
};
9092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDepth",_kwnames
,&_argo0
))
9095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9103 _result
= (int )wxDC_GetDepth(_arg0
);
9105 wxPyEndAllowThreads(__tstate
);
9106 if (PyErr_Occurred()) return NULL
;
9107 } _resultobj
= Py_BuildValue("i",_result
);
9111 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9112 static PyObject
*_wrap_wxDC_GetPPI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9113 PyObject
* _resultobj
;
9116 PyObject
* _argo0
= 0;
9117 char *_kwnames
[] = { "self", NULL
};
9121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetPPI",_kwnames
,&_argo0
))
9124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9132 _result
= new wxSize (wxDC_GetPPI(_arg0
));
9134 wxPyEndAllowThreads(__tstate
);
9135 if (PyErr_Occurred()) return NULL
;
9136 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
9137 _resultobj
= Py_BuildValue("s",_ptemp
);
9141 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9142 static PyObject
*_wrap_wxDC_GetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9143 PyObject
* _resultobj
;
9149 PyObject
* _argo0
= 0;
9150 char *_kwnames
[] = { "self", NULL
};
9159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetLogicalOrigin",_kwnames
,&_argo0
))
9162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9170 wxDC_GetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9172 wxPyEndAllowThreads(__tstate
);
9173 if (PyErr_Occurred()) return NULL
;
9174 } Py_INCREF(Py_None
);
9175 _resultobj
= Py_None
;
9178 o
= PyInt_FromLong((long) (*_arg1
));
9179 _resultobj
= t_output_helper(_resultobj
, o
);
9183 o
= PyInt_FromLong((long) (*_arg2
));
9184 _resultobj
= t_output_helper(_resultobj
, o
);
9189 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9190 static PyObject
*_wrap_wxDC_SetLogicalOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9191 PyObject
* _resultobj
;
9195 PyObject
* _argo0
= 0;
9196 char *_kwnames
[] = { "self","x","y", NULL
};
9199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetLogicalOrigin",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9210 wxDC_SetLogicalOrigin(_arg0
,_arg1
,_arg2
);
9212 wxPyEndAllowThreads(__tstate
);
9213 if (PyErr_Occurred()) return NULL
;
9214 } Py_INCREF(Py_None
);
9215 _resultobj
= Py_None
;
9219 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9220 static PyObject
*_wrap_wxDC_GetDeviceOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9221 PyObject
* _resultobj
;
9227 PyObject
* _argo0
= 0;
9228 char *_kwnames
[] = { "self", NULL
};
9237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetDeviceOrigin",_kwnames
,&_argo0
))
9240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9248 wxDC_GetDeviceOrigin(_arg0
,_arg1
,_arg2
);
9250 wxPyEndAllowThreads(__tstate
);
9251 if (PyErr_Occurred()) return NULL
;
9252 } Py_INCREF(Py_None
);
9253 _resultobj
= Py_None
;
9256 o
= PyInt_FromLong((long) (*_arg1
));
9257 _resultobj
= t_output_helper(_resultobj
, o
);
9261 o
= PyInt_FromLong((long) (*_arg2
));
9262 _resultobj
= t_output_helper(_resultobj
, o
);
9267 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9268 static PyObject
*_wrap_wxDC_SetAxisOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9269 PyObject
* _resultobj
;
9273 PyObject
* _argo0
= 0;
9276 char *_kwnames
[] = { "self","xLeftRight","yBottomUp", NULL
};
9279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_SetAxisOrientation",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
9282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9288 _arg1
= (bool ) tempbool1
;
9289 _arg2
= (bool ) tempbool2
;
9291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9292 wxDC_SetAxisOrientation(_arg0
,_arg1
,_arg2
);
9294 wxPyEndAllowThreads(__tstate
);
9295 if (PyErr_Occurred()) return NULL
;
9296 } Py_INCREF(Py_None
);
9297 _resultobj
= Py_None
;
9301 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9302 static PyObject
*_wrap_wxDC_CalcBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9303 PyObject
* _resultobj
;
9307 PyObject
* _argo0
= 0;
9308 char *_kwnames
[] = { "self","x","y", NULL
};
9311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxDC_CalcBoundingBox",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
9314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9322 wxDC_CalcBoundingBox(_arg0
,_arg1
,_arg2
);
9324 wxPyEndAllowThreads(__tstate
);
9325 if (PyErr_Occurred()) return NULL
;
9326 } Py_INCREF(Py_None
);
9327 _resultobj
= Py_None
;
9331 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9332 static PyObject
*_wrap_wxDC_ResetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9333 PyObject
* _resultobj
;
9335 PyObject
* _argo0
= 0;
9336 char *_kwnames
[] = { "self", NULL
};
9339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_ResetBoundingBox",_kwnames
,&_argo0
))
9342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9350 wxDC_ResetBoundingBox(_arg0
);
9352 wxPyEndAllowThreads(__tstate
);
9353 if (PyErr_Occurred()) return NULL
;
9354 } Py_INCREF(Py_None
);
9355 _resultobj
= Py_None
;
9359 static PyObject
*_wrap_wxDC_GetBoundingBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9360 PyObject
* _resultobj
;
9370 PyObject
* _argo0
= 0;
9371 char *_kwnames
[] = { "self", NULL
};
9386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDC_GetBoundingBox",_kwnames
,&_argo0
))
9389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9397 wxDC_GetBoundingBox(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
9399 wxPyEndAllowThreads(__tstate
);
9400 if (PyErr_Occurred()) return NULL
;
9401 } Py_INCREF(Py_None
);
9402 _resultobj
= Py_None
;
9405 o
= PyInt_FromLong((long) (*_arg1
));
9406 _resultobj
= t_output_helper(_resultobj
, o
);
9410 o
= PyInt_FromLong((long) (*_arg2
));
9411 _resultobj
= t_output_helper(_resultobj
, o
);
9415 o
= PyInt_FromLong((long) (*_arg3
));
9416 _resultobj
= t_output_helper(_resultobj
, o
);
9420 o
= PyInt_FromLong((long) (*_arg4
));
9421 _resultobj
= t_output_helper(_resultobj
, o
);
9426 static PyObject
* wxDC__DrawPointList(wxDC
*self
,PyObject
* pyPoints
,PyObject
* pyPens
) {
9427 bool isFastSeq
= PyList_Check(pyPoints
) || PyTuple_Check(pyPoints
);
9428 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9436 if (!PySequence_Check(pyPoints
)) {
9439 if (!PySequence_Check(pyPens
)) {
9442 numObjs
= PySequence_Length(pyPoints
);
9443 numPens
= PySequence_Length(pyPens
);
9445 for (i
= 0; i
< numObjs
; i
++) {
9449 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9452 obj
= PySequence_GetItem(pyPens
, i
);
9454 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9465 // Get the point coordinants
9467 obj
= PySequence_Fast_GET_ITEM(pyPoints
, i
);
9470 obj
= PySequence_GetItem(pyPoints
, i
);
9472 if (! _2int_seq_helper(obj
, &x1
, &y1
)) {
9478 // Now draw the point
9479 self
->DrawPoint(x1
, y1
);
9489 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9492 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x,y) sequences.");
9495 static PyObject
*_wrap_wxDC__DrawPointList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9496 PyObject
* _resultobj
;
9501 PyObject
* _argo0
= 0;
9502 PyObject
* _obj1
= 0;
9503 PyObject
* _obj2
= 0;
9504 char *_kwnames
[] = { "self","pyPoints","pyPens", NULL
};
9507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawPointList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9524 _result
= (PyObject
*)wxDC__DrawPointList(_arg0
,_arg1
,_arg2
);
9526 wxPyEndAllowThreads(__tstate
);
9527 if (PyErr_Occurred()) return NULL
;
9529 _resultobj
= _result
;
9534 static PyObject
* wxDC__DrawLineList(wxDC
*self
,PyObject
* pyLines
,PyObject
* pyPens
) {
9535 bool isFastSeq
= PyList_Check(pyLines
) || PyTuple_Check(pyLines
);
9536 bool isFastPens
= PyList_Check(pyPens
) || PyTuple_Check(pyPens
);
9544 if (!PySequence_Check(pyLines
)) {
9547 if (!PySequence_Check(pyPens
)) {
9550 numObjs
= PySequence_Length(pyLines
);
9551 numPens
= PySequence_Length(pyPens
);
9553 for (i
= 0; i
< numObjs
; i
++) {
9557 obj
= PySequence_Fast_GET_ITEM(pyPens
, i
);
9560 obj
= PySequence_GetItem(pyPens
, i
);
9562 if (SWIG_GetPtrObj(obj
, (void **) &pen
, "_wxPen_p")) {
9573 // Get the line coordinants
9575 obj
= PySequence_Fast_GET_ITEM(pyLines
, i
);
9578 obj
= PySequence_GetItem(pyLines
, i
);
9580 if (! _4int_seq_helper(obj
, &x1
, &y1
, &x2
, &y2
)) {
9586 // Now draw the line
9587 self
->DrawLine(x1
, y1
, x2
, y2
);
9597 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of wxPens");
9600 PyErr_SetString(PyExc_TypeError
, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9603 static PyObject
*_wrap_wxDC__DrawLineList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9604 PyObject
* _resultobj
;
9609 PyObject
* _argo0
= 0;
9610 PyObject
* _obj1
= 0;
9611 PyObject
* _obj2
= 0;
9612 char *_kwnames
[] = { "self","pyLines","pyPens", NULL
};
9615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDC__DrawLineList",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
9618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDC_p")) {
9620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9632 _result
= (PyObject
*)wxDC__DrawLineList(_arg0
,_arg1
,_arg2
);
9634 wxPyEndAllowThreads(__tstate
);
9635 if (PyErr_Occurred()) return NULL
;
9637 _resultobj
= _result
;
9642 static void *SwigwxMemoryDCTowxDC(void *ptr
) {
9645 src
= (wxMemoryDC
*) ptr
;
9646 dest
= (wxDC
*) src
;
9647 return (void *) dest
;
9650 static void *SwigwxMemoryDCTowxObject(void *ptr
) {
9653 src
= (wxMemoryDC
*) ptr
;
9654 dest
= (wxObject
*) src
;
9655 return (void *) dest
;
9658 #define new_wxMemoryDC() (new wxMemoryDC())
9659 static PyObject
*_wrap_new_wxMemoryDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9660 PyObject
* _resultobj
;
9661 wxMemoryDC
* _result
;
9662 char *_kwnames
[] = { NULL
};
9666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryDC",_kwnames
))
9669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9670 _result
= (wxMemoryDC
*)new_wxMemoryDC();
9672 wxPyEndAllowThreads(__tstate
);
9673 if (PyErr_Occurred()) return NULL
;
9675 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryDC_p");
9676 _resultobj
= Py_BuildValue("s",_ptemp
);
9679 _resultobj
= Py_None
;
9684 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9685 static PyObject
*_wrap_wxMemoryDC_SelectObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9686 PyObject
* _resultobj
;
9689 PyObject
* _argo0
= 0;
9690 PyObject
* _argo1
= 0;
9691 char *_kwnames
[] = { "self","bitmap", NULL
};
9694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryDC_SelectObject",_kwnames
,&_argo0
,&_argo1
))
9697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryDC_p")) {
9699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9704 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9705 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
9706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9712 wxMemoryDC_SelectObject(_arg0
,*_arg1
);
9714 wxPyEndAllowThreads(__tstate
);
9715 if (PyErr_Occurred()) return NULL
;
9716 } Py_INCREF(Py_None
);
9717 _resultobj
= Py_None
;
9721 static void *SwigwxScreenDCTowxDC(void *ptr
) {
9724 src
= (wxScreenDC
*) ptr
;
9725 dest
= (wxDC
*) src
;
9726 return (void *) dest
;
9729 static void *SwigwxScreenDCTowxObject(void *ptr
) {
9732 src
= (wxScreenDC
*) ptr
;
9733 dest
= (wxObject
*) src
;
9734 return (void *) dest
;
9737 #define new_wxScreenDC() (new wxScreenDC())
9738 static PyObject
*_wrap_new_wxScreenDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9739 PyObject
* _resultobj
;
9740 wxScreenDC
* _result
;
9741 char *_kwnames
[] = { NULL
};
9745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxScreenDC",_kwnames
))
9748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9749 _result
= (wxScreenDC
*)new_wxScreenDC();
9751 wxPyEndAllowThreads(__tstate
);
9752 if (PyErr_Occurred()) return NULL
;
9754 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScreenDC_p");
9755 _resultobj
= Py_BuildValue("s",_ptemp
);
9758 _resultobj
= Py_None
;
9763 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9764 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9765 PyObject
* _resultobj
;
9769 PyObject
* _argo0
= 0;
9770 PyObject
* _argo1
= 0;
9771 char *_kwnames
[] = { "self","window", NULL
};
9774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames
,&_argo0
,&_argo1
))
9777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9784 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9785 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
9786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9792 _result
= (bool )wxScreenDC_StartDrawingOnTopWin(_arg0
,_arg1
);
9794 wxPyEndAllowThreads(__tstate
);
9795 if (PyErr_Occurred()) return NULL
;
9796 } _resultobj
= Py_BuildValue("i",_result
);
9800 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9801 static PyObject
*_wrap_wxScreenDC_StartDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9802 PyObject
* _resultobj
;
9805 wxRect
* _arg1
= (wxRect
*) NULL
;
9806 PyObject
* _argo0
= 0;
9808 PyObject
* _obj1
= 0;
9809 char *_kwnames
[] = { "self","rect", NULL
};
9812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames
,&_argo0
,&_obj1
))
9815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9824 if (! wxRect_helper(_obj1
, &_arg1
))
9828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9829 _result
= (bool )wxScreenDC_StartDrawingOnTop(_arg0
,_arg1
);
9831 wxPyEndAllowThreads(__tstate
);
9832 if (PyErr_Occurred()) return NULL
;
9833 } _resultobj
= Py_BuildValue("i",_result
);
9837 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9838 static PyObject
*_wrap_wxScreenDC_EndDrawingOnTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9839 PyObject
* _resultobj
;
9842 PyObject
* _argo0
= 0;
9843 char *_kwnames
[] = { "self", NULL
};
9846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScreenDC_EndDrawingOnTop",_kwnames
,&_argo0
))
9849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScreenDC_p")) {
9851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9857 _result
= (bool )wxScreenDC_EndDrawingOnTop(_arg0
);
9859 wxPyEndAllowThreads(__tstate
);
9860 if (PyErr_Occurred()) return NULL
;
9861 } _resultobj
= Py_BuildValue("i",_result
);
9865 static void *SwigwxClientDCTowxDC(void *ptr
) {
9868 src
= (wxClientDC
*) ptr
;
9869 dest
= (wxDC
*) src
;
9870 return (void *) dest
;
9873 static void *SwigwxClientDCTowxObject(void *ptr
) {
9876 src
= (wxClientDC
*) ptr
;
9877 dest
= (wxObject
*) src
;
9878 return (void *) dest
;
9881 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9882 static PyObject
*_wrap_new_wxClientDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9883 PyObject
* _resultobj
;
9884 wxClientDC
* _result
;
9886 PyObject
* _argo0
= 0;
9887 char *_kwnames
[] = { "win", NULL
};
9891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxClientDC",_kwnames
,&_argo0
))
9894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9902 _result
= (wxClientDC
*)new_wxClientDC(_arg0
);
9904 wxPyEndAllowThreads(__tstate
);
9905 if (PyErr_Occurred()) return NULL
;
9907 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClientDC_p");
9908 _resultobj
= Py_BuildValue("s",_ptemp
);
9911 _resultobj
= Py_None
;
9916 static void *SwigwxPaintDCTowxDC(void *ptr
) {
9919 src
= (wxPaintDC
*) ptr
;
9920 dest
= (wxDC
*) src
;
9921 return (void *) dest
;
9924 static void *SwigwxPaintDCTowxObject(void *ptr
) {
9927 src
= (wxPaintDC
*) ptr
;
9928 dest
= (wxObject
*) src
;
9929 return (void *) dest
;
9932 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9933 static PyObject
*_wrap_new_wxPaintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9934 PyObject
* _resultobj
;
9935 wxPaintDC
* _result
;
9937 PyObject
* _argo0
= 0;
9938 char *_kwnames
[] = { "win", NULL
};
9942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxPaintDC",_kwnames
,&_argo0
))
9945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9953 _result
= (wxPaintDC
*)new_wxPaintDC(_arg0
);
9955 wxPyEndAllowThreads(__tstate
);
9956 if (PyErr_Occurred()) return NULL
;
9958 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPaintDC_p");
9959 _resultobj
= Py_BuildValue("s",_ptemp
);
9962 _resultobj
= Py_None
;
9967 static void *SwigwxWindowDCTowxDC(void *ptr
) {
9970 src
= (wxWindowDC
*) ptr
;
9971 dest
= (wxDC
*) src
;
9972 return (void *) dest
;
9975 static void *SwigwxWindowDCTowxObject(void *ptr
) {
9978 src
= (wxWindowDC
*) ptr
;
9979 dest
= (wxObject
*) src
;
9980 return (void *) dest
;
9983 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
9984 static PyObject
*_wrap_new_wxWindowDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9985 PyObject
* _resultobj
;
9986 wxWindowDC
* _result
;
9988 PyObject
* _argo0
= 0;
9989 char *_kwnames
[] = { "win", NULL
};
9993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxWindowDC",_kwnames
,&_argo0
))
9996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
9998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10004 _result
= (wxWindowDC
*)new_wxWindowDC(_arg0
);
10006 wxPyEndAllowThreads(__tstate
);
10007 if (PyErr_Occurred()) return NULL
;
10009 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindowDC_p");
10010 _resultobj
= Py_BuildValue("s",_ptemp
);
10012 Py_INCREF(Py_None
);
10013 _resultobj
= Py_None
;
10018 static void *SwigwxPaletteTowxGDIObject(void *ptr
) {
10021 src
= (wxPalette
*) ptr
;
10022 dest
= (wxGDIObject
*) src
;
10023 return (void *) dest
;
10026 static void *SwigwxPaletteTowxObject(void *ptr
) {
10029 src
= (wxPalette
*) ptr
;
10030 dest
= (wxObject
*) src
;
10031 return (void *) dest
;
10034 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10035 static PyObject
*_wrap_new_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10036 PyObject
* _resultobj
;
10037 wxPalette
* _result
;
10042 PyObject
* _obj1
= 0;
10043 PyObject
* _obj2
= 0;
10044 PyObject
* _obj3
= 0;
10045 char *_kwnames
[] = { "choices","choices","choices", NULL
};
10049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:new_wxPalette",_kwnames
,&_obj1
,&_obj2
,&_obj3
))
10052 _arg1
= byte_LIST_helper(_obj1
);
10053 if (_arg1
== NULL
) {
10058 _arg2
= byte_LIST_helper(_obj2
);
10059 if (_arg2
== NULL
) {
10065 _arg3
= byte_LIST_helper(_obj3
);
10066 if (_arg3
== NULL
) {
10072 _arg0
= PyList_Size(_obj1
);
10079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10080 _result
= (wxPalette
*)new_wxPalette(_arg0
,_arg1
,_arg2
,_arg3
);
10082 wxPyEndAllowThreads(__tstate
);
10083 if (PyErr_Occurred()) return NULL
;
10085 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
10086 _resultobj
= Py_BuildValue("s",_ptemp
);
10088 Py_INCREF(Py_None
);
10089 _resultobj
= Py_None
;
10103 #define delete_wxPalette(_swigobj) (delete _swigobj)
10104 static PyObject
*_wrap_delete_wxPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10105 PyObject
* _resultobj
;
10107 PyObject
* _argo0
= 0;
10108 char *_kwnames
[] = { "self", NULL
};
10111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPalette",_kwnames
,&_argo0
))
10114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10122 delete_wxPalette(_arg0
);
10124 wxPyEndAllowThreads(__tstate
);
10125 if (PyErr_Occurred()) return NULL
;
10126 } Py_INCREF(Py_None
);
10127 _resultobj
= Py_None
;
10131 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10132 static PyObject
*_wrap_wxPalette_GetPixel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10133 PyObject
* _resultobj
;
10139 PyObject
* _argo0
= 0;
10140 char *_kwnames
[] = { "self","red","green","blue", NULL
};
10143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxPalette_GetPixel",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
10146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10154 _result
= (int )wxPalette_GetPixel(_arg0
,_arg1
,_arg2
,_arg3
);
10156 wxPyEndAllowThreads(__tstate
);
10157 if (PyErr_Occurred()) return NULL
;
10158 } _resultobj
= Py_BuildValue("i",_result
);
10162 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10163 static PyObject
*_wrap_wxPalette_GetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10164 PyObject
* _resultobj
;
10174 PyObject
* _argo0
= 0;
10175 char *_kwnames
[] = { "self","pixel", NULL
};
10179 _arg2
= (byte
*)&temp
;
10182 _arg3
= (byte
*)&temp0
;
10185 _arg4
= (byte
*)&temp1
;
10187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPalette_GetRGB",_kwnames
,&_argo0
,&_arg1
))
10190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10198 _result
= (bool )wxPalette_GetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10200 wxPyEndAllowThreads(__tstate
);
10201 if (PyErr_Occurred()) return NULL
;
10202 } _resultobj
= Py_BuildValue("i",_result
);
10205 o
= PyInt_FromLong((long) (*_arg2
));
10206 _resultobj
= t_output_helper(_resultobj
, o
);
10210 o
= PyInt_FromLong((long) (*_arg3
));
10211 _resultobj
= t_output_helper(_resultobj
, o
);
10215 o
= PyInt_FromLong((long) (*_arg4
));
10216 _resultobj
= t_output_helper(_resultobj
, o
);
10221 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10222 static PyObject
*_wrap_wxPalette_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10223 PyObject
* _resultobj
;
10226 PyObject
* _argo0
= 0;
10227 char *_kwnames
[] = { "self", NULL
};
10230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPalette_Ok",_kwnames
,&_argo0
))
10233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPalette_p")) {
10235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10241 _result
= (bool )wxPalette_Ok(_arg0
);
10243 wxPyEndAllowThreads(__tstate
);
10244 if (PyErr_Occurred()) return NULL
;
10245 } _resultobj
= Py_BuildValue("i",_result
);
10249 static void *SwigwxImageListTowxObject(void *ptr
) {
10252 src
= (wxImageList
*) ptr
;
10253 dest
= (wxObject
*) src
;
10254 return (void *) dest
;
10257 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10258 static PyObject
*_wrap_new_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10259 PyObject
* _resultobj
;
10260 wxImageList
* _result
;
10263 int _arg2
= (int ) TRUE
;
10264 int _arg3
= (int ) 1;
10265 char *_kwnames
[] = { "width","height","mask","initialCount", NULL
};
10269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii|ii:new_wxImageList",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10273 _result
= (wxImageList
*)new_wxImageList(_arg0
,_arg1
,_arg2
,_arg3
);
10275 wxPyEndAllowThreads(__tstate
);
10276 if (PyErr_Occurred()) return NULL
;
10278 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageList_p");
10279 _resultobj
= Py_BuildValue("s",_ptemp
);
10281 Py_INCREF(Py_None
);
10282 _resultobj
= Py_None
;
10287 #define delete_wxImageList(_swigobj) (delete _swigobj)
10288 static PyObject
*_wrap_delete_wxImageList(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10289 PyObject
* _resultobj
;
10290 wxImageList
* _arg0
;
10291 PyObject
* _argo0
= 0;
10292 char *_kwnames
[] = { "self", NULL
};
10295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImageList",_kwnames
,&_argo0
))
10298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10306 delete_wxImageList(_arg0
);
10308 wxPyEndAllowThreads(__tstate
);
10309 if (PyErr_Occurred()) return NULL
;
10310 } Py_INCREF(Py_None
);
10311 _resultobj
= Py_None
;
10315 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10316 static PyObject
*_wrap_wxImageList_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10317 PyObject
* _resultobj
;
10319 wxImageList
* _arg0
;
10321 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10322 PyObject
* _argo0
= 0;
10323 PyObject
* _argo1
= 0;
10324 PyObject
* _argo2
= 0;
10325 char *_kwnames
[] = { "self","bitmap","mask", NULL
};
10328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxImageList_Add",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10338 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10339 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10345 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10346 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10353 _result
= (int )wxImageList_Add(_arg0
,*_arg1
,*_arg2
);
10355 wxPyEndAllowThreads(__tstate
);
10356 if (PyErr_Occurred()) return NULL
;
10357 } _resultobj
= Py_BuildValue("i",_result
);
10361 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10362 static PyObject
*_wrap_wxImageList_AddWithColourMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10363 PyObject
* _resultobj
;
10365 wxImageList
* _arg0
;
10368 PyObject
* _argo0
= 0;
10369 PyObject
* _argo1
= 0;
10371 PyObject
* _obj2
= 0;
10372 char *_kwnames
[] = { "self","bitmap","maskColour", NULL
};
10375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImageList_AddWithColourMask",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
10378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10385 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10386 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10393 if (! wxColour_helper(_obj2
, &_arg2
))
10397 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10398 _result
= (int )wxImageList_AddWithColourMask(_arg0
,*_arg1
,*_arg2
);
10400 wxPyEndAllowThreads(__tstate
);
10401 if (PyErr_Occurred()) return NULL
;
10402 } _resultobj
= Py_BuildValue("i",_result
);
10406 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10407 static PyObject
*_wrap_wxImageList_AddIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10408 PyObject
* _resultobj
;
10410 wxImageList
* _arg0
;
10412 PyObject
* _argo0
= 0;
10413 PyObject
* _argo1
= 0;
10414 char *_kwnames
[] = { "self","icon", NULL
};
10417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageList_AddIcon",_kwnames
,&_argo0
,&_argo1
))
10420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10427 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10428 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
10429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10435 _result
= (int )wxImageList_AddIcon(_arg0
,*_arg1
);
10437 wxPyEndAllowThreads(__tstate
);
10438 if (PyErr_Occurred()) return NULL
;
10439 } _resultobj
= Py_BuildValue("i",_result
);
10443 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
10444 static PyObject
*_wrap_wxImageList_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10445 PyObject
* _resultobj
;
10447 wxImageList
* _arg0
;
10450 PyObject
* _argo0
= 0;
10451 PyObject
* _argo2
= 0;
10452 char *_kwnames
[] = { "self","index","bitmap", NULL
};
10455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxImageList_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
10458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10465 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10466 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10473 _result
= (bool )wxImageList_Replace(_arg0
,_arg1
,*_arg2
);
10475 wxPyEndAllowThreads(__tstate
);
10476 if (PyErr_Occurred()) return NULL
;
10477 } _resultobj
= Py_BuildValue("i",_result
);
10481 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10482 static PyObject
*_wrap_wxImageList_Draw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10483 PyObject
* _resultobj
;
10485 wxImageList
* _arg0
;
10490 int _arg5
= (int ) (wxIMAGELIST_DRAW_NORMAL
);
10491 bool _arg6
= (bool ) FALSE
;
10492 PyObject
* _argo0
= 0;
10493 PyObject
* _argo2
= 0;
10494 int tempbool6
= (int) FALSE
;
10495 char *_kwnames
[] = { "self","index","dc","x","x","flags","solidBackground", NULL
};
10498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOii|ii:wxImageList_Draw",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_arg3
,&_arg4
,&_arg5
,&tempbool6
))
10501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10508 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10509 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDC_p")) {
10510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10514 _arg6
= (bool ) tempbool6
;
10516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10517 _result
= (bool )wxImageList_Draw(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
10519 wxPyEndAllowThreads(__tstate
);
10520 if (PyErr_Occurred()) return NULL
;
10521 } _resultobj
= Py_BuildValue("i",_result
);
10525 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10526 static PyObject
*_wrap_wxImageList_GetImageCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10527 PyObject
* _resultobj
;
10529 wxImageList
* _arg0
;
10530 PyObject
* _argo0
= 0;
10531 char *_kwnames
[] = { "self", NULL
};
10534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_GetImageCount",_kwnames
,&_argo0
))
10537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10545 _result
= (int )wxImageList_GetImageCount(_arg0
);
10547 wxPyEndAllowThreads(__tstate
);
10548 if (PyErr_Occurred()) return NULL
;
10549 } _resultobj
= Py_BuildValue("i",_result
);
10553 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10554 static PyObject
*_wrap_wxImageList_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10555 PyObject
* _resultobj
;
10557 wxImageList
* _arg0
;
10559 PyObject
* _argo0
= 0;
10560 char *_kwnames
[] = { "self","index", NULL
};
10563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_Remove",_kwnames
,&_argo0
,&_arg1
))
10566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10574 _result
= (bool )wxImageList_Remove(_arg0
,_arg1
);
10576 wxPyEndAllowThreads(__tstate
);
10577 if (PyErr_Occurred()) return NULL
;
10578 } _resultobj
= Py_BuildValue("i",_result
);
10582 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
10583 static PyObject
*_wrap_wxImageList_RemoveAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10584 PyObject
* _resultobj
;
10586 wxImageList
* _arg0
;
10587 PyObject
* _argo0
= 0;
10588 char *_kwnames
[] = { "self", NULL
};
10591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageList_RemoveAll",_kwnames
,&_argo0
))
10594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10602 _result
= (bool )wxImageList_RemoveAll(_arg0
);
10604 wxPyEndAllowThreads(__tstate
);
10605 if (PyErr_Occurred()) return NULL
;
10606 } _resultobj
= Py_BuildValue("i",_result
);
10610 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10611 static PyObject
*_wrap_wxImageList_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10612 PyObject
* _resultobj
;
10613 wxImageList
* _arg0
;
10619 PyObject
* _argo0
= 0;
10620 char *_kwnames
[] = { "self","index", NULL
};
10629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxImageList_GetSize",_kwnames
,&_argo0
,&_arg1
))
10632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageList_p")) {
10634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10640 wxImageList_GetSize(_arg0
,_arg1
,*_arg2
,*_arg3
);
10642 wxPyEndAllowThreads(__tstate
);
10643 if (PyErr_Occurred()) return NULL
;
10644 } Py_INCREF(Py_None
);
10645 _resultobj
= Py_None
;
10648 o
= PyInt_FromLong((long) (*_arg2
));
10649 _resultobj
= t_output_helper(_resultobj
, o
);
10653 o
= PyInt_FromLong((long) (*_arg3
));
10654 _resultobj
= t_output_helper(_resultobj
, o
);
10659 static void *SwigwxRegionTowxGDIObject(void *ptr
) {
10662 src
= (wxRegion
*) ptr
;
10663 dest
= (wxGDIObject
*) src
;
10664 return (void *) dest
;
10667 static void *SwigwxRegionTowxObject(void *ptr
) {
10670 src
= (wxRegion
*) ptr
;
10671 dest
= (wxObject
*) src
;
10672 return (void *) dest
;
10675 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10676 static PyObject
*_wrap_new_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10677 PyObject
* _resultobj
;
10678 wxRegion
* _result
;
10679 long _arg0
= (long ) 0;
10680 long _arg1
= (long ) 0;
10681 long _arg2
= (long ) 0;
10682 long _arg3
= (long ) 0;
10683 char *_kwnames
[] = { "x","y","width","height", NULL
};
10687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxRegion",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
10690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10691 _result
= (wxRegion
*)new_wxRegion(_arg0
,_arg1
,_arg2
,_arg3
);
10693 wxPyEndAllowThreads(__tstate
);
10694 if (PyErr_Occurred()) return NULL
;
10696 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegion_p");
10697 _resultobj
= Py_BuildValue("s",_ptemp
);
10699 Py_INCREF(Py_None
);
10700 _resultobj
= Py_None
;
10705 #define delete_wxRegion(_swigobj) (delete _swigobj)
10706 static PyObject
*_wrap_delete_wxRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10707 PyObject
* _resultobj
;
10709 PyObject
* _argo0
= 0;
10710 char *_kwnames
[] = { "self", NULL
};
10713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegion",_kwnames
,&_argo0
))
10716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10724 delete_wxRegion(_arg0
);
10726 wxPyEndAllowThreads(__tstate
);
10727 if (PyErr_Occurred()) return NULL
;
10728 } Py_INCREF(Py_None
);
10729 _resultobj
= Py_None
;
10733 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10734 static PyObject
*_wrap_wxRegion_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10735 PyObject
* _resultobj
;
10737 PyObject
* _argo0
= 0;
10738 char *_kwnames
[] = { "self", NULL
};
10741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_Clear",_kwnames
,&_argo0
))
10744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10752 wxRegion_Clear(_arg0
);
10754 wxPyEndAllowThreads(__tstate
);
10755 if (PyErr_Occurred()) return NULL
;
10756 } Py_INCREF(Py_None
);
10757 _resultobj
= Py_None
;
10761 #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10762 static PyObject
*_wrap_wxRegion_Offset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10763 PyObject
* _resultobj
;
10768 PyObject
* _argo0
= 0;
10769 char *_kwnames
[] = { "self","x","y", NULL
};
10772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxRegion_Offset",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10783 _result
= (bool )wxRegion_Offset(_arg0
,_arg1
,_arg2
);
10785 wxPyEndAllowThreads(__tstate
);
10786 if (PyErr_Occurred()) return NULL
;
10787 } _resultobj
= Py_BuildValue("i",_result
);
10791 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10792 static PyObject
*_wrap_wxRegion_Contains(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10793 PyObject
* _resultobj
;
10794 wxRegionContain _result
;
10798 PyObject
* _argo0
= 0;
10799 char *_kwnames
[] = { "self","x","y", NULL
};
10802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxRegion_Contains",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
10805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10813 _result
= (wxRegionContain
)wxRegion_Contains(_arg0
,_arg1
,_arg2
);
10815 wxPyEndAllowThreads(__tstate
);
10816 if (PyErr_Occurred()) return NULL
;
10817 } _resultobj
= Py_BuildValue("i",_result
);
10821 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10822 static PyObject
*_wrap_wxRegion_ContainsPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10823 PyObject
* _resultobj
;
10824 wxRegionContain _result
;
10827 PyObject
* _argo0
= 0;
10829 PyObject
* _obj1
= 0;
10830 char *_kwnames
[] = { "self","pt", NULL
};
10833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsPoint",_kwnames
,&_argo0
,&_obj1
))
10836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10844 if (! wxPoint_helper(_obj1
, &_arg1
))
10848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10849 _result
= (wxRegionContain
)wxRegion_ContainsPoint(_arg0
,*_arg1
);
10851 wxPyEndAllowThreads(__tstate
);
10852 if (PyErr_Occurred()) return NULL
;
10853 } _resultobj
= Py_BuildValue("i",_result
);
10857 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10858 static PyObject
*_wrap_wxRegion_ContainsRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10859 PyObject
* _resultobj
;
10860 wxRegionContain _result
;
10863 PyObject
* _argo0
= 0;
10865 PyObject
* _obj1
= 0;
10866 char *_kwnames
[] = { "self","rect", NULL
};
10869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_ContainsRect",_kwnames
,&_argo0
,&_obj1
))
10872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10880 if (! wxRect_helper(_obj1
, &_arg1
))
10884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10885 _result
= (wxRegionContain
)wxRegion_ContainsRect(_arg0
,*_arg1
);
10887 wxPyEndAllowThreads(__tstate
);
10888 if (PyErr_Occurred()) return NULL
;
10889 } _resultobj
= Py_BuildValue("i",_result
);
10893 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10894 static PyObject
*_wrap_wxRegion_ContainsRectDim(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10895 PyObject
* _resultobj
;
10896 wxRegionContain _result
;
10902 PyObject
* _argo0
= 0;
10903 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
10906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_ContainsRectDim",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10917 _result
= (wxRegionContain
)wxRegion_ContainsRectDim(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10919 wxPyEndAllowThreads(__tstate
);
10920 if (PyErr_Occurred()) return NULL
;
10921 } _resultobj
= Py_BuildValue("i",_result
);
10925 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10926 static PyObject
*_wrap_wxRegion_GetBox(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10927 PyObject
* _resultobj
;
10930 PyObject
* _argo0
= 0;
10931 char *_kwnames
[] = { "self", NULL
};
10935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_GetBox",_kwnames
,&_argo0
))
10938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10946 _result
= new wxRect (wxRegion_GetBox(_arg0
));
10948 wxPyEndAllowThreads(__tstate
);
10949 if (PyErr_Occurred()) return NULL
;
10950 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
10951 _resultobj
= Py_BuildValue("s",_ptemp
);
10955 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10956 static PyObject
*_wrap_wxRegion_Intersect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10957 PyObject
* _resultobj
;
10964 PyObject
* _argo0
= 0;
10965 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
10968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Intersect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
10971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
10973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10979 _result
= (bool )wxRegion_Intersect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
10981 wxPyEndAllowThreads(__tstate
);
10982 if (PyErr_Occurred()) return NULL
;
10983 } _resultobj
= Py_BuildValue("i",_result
);
10987 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10988 static PyObject
*_wrap_wxRegion_IntersectRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10989 PyObject
* _resultobj
;
10993 PyObject
* _argo0
= 0;
10995 PyObject
* _obj1
= 0;
10996 char *_kwnames
[] = { "self","rect", NULL
};
10999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRect",_kwnames
,&_argo0
,&_obj1
))
11002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11010 if (! wxRect_helper(_obj1
, &_arg1
))
11014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11015 _result
= (bool )wxRegion_IntersectRect(_arg0
,*_arg1
);
11017 wxPyEndAllowThreads(__tstate
);
11018 if (PyErr_Occurred()) return NULL
;
11019 } _resultobj
= Py_BuildValue("i",_result
);
11023 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11024 static PyObject
*_wrap_wxRegion_IntersectRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11025 PyObject
* _resultobj
;
11029 PyObject
* _argo0
= 0;
11030 PyObject
* _argo1
= 0;
11031 char *_kwnames
[] = { "self","region", NULL
};
11034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_IntersectRegion",_kwnames
,&_argo0
,&_argo1
))
11037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11044 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11045 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11052 _result
= (bool )wxRegion_IntersectRegion(_arg0
,*_arg1
);
11054 wxPyEndAllowThreads(__tstate
);
11055 if (PyErr_Occurred()) return NULL
;
11056 } _resultobj
= Py_BuildValue("i",_result
);
11060 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11061 static PyObject
*_wrap_wxRegion_IsEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11062 PyObject
* _resultobj
;
11065 PyObject
* _argo0
= 0;
11066 char *_kwnames
[] = { "self", NULL
};
11069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegion_IsEmpty",_kwnames
,&_argo0
))
11072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11080 _result
= (bool )wxRegion_IsEmpty(_arg0
);
11082 wxPyEndAllowThreads(__tstate
);
11083 if (PyErr_Occurred()) return NULL
;
11084 } _resultobj
= Py_BuildValue("i",_result
);
11088 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11089 static PyObject
*_wrap_wxRegion_Union(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11090 PyObject
* _resultobj
;
11097 PyObject
* _argo0
= 0;
11098 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Union",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11112 _result
= (bool )wxRegion_Union(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11114 wxPyEndAllowThreads(__tstate
);
11115 if (PyErr_Occurred()) return NULL
;
11116 } _resultobj
= Py_BuildValue("i",_result
);
11120 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11121 static PyObject
*_wrap_wxRegion_UnionRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11122 PyObject
* _resultobj
;
11126 PyObject
* _argo0
= 0;
11128 PyObject
* _obj1
= 0;
11129 char *_kwnames
[] = { "self","rect", NULL
};
11132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRect",_kwnames
,&_argo0
,&_obj1
))
11135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11143 if (! wxRect_helper(_obj1
, &_arg1
))
11147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11148 _result
= (bool )wxRegion_UnionRect(_arg0
,*_arg1
);
11150 wxPyEndAllowThreads(__tstate
);
11151 if (PyErr_Occurred()) return NULL
;
11152 } _resultobj
= Py_BuildValue("i",_result
);
11156 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11157 static PyObject
*_wrap_wxRegion_UnionRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11158 PyObject
* _resultobj
;
11162 PyObject
* _argo0
= 0;
11163 PyObject
* _argo1
= 0;
11164 char *_kwnames
[] = { "self","region", NULL
};
11167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_UnionRegion",_kwnames
,&_argo0
,&_argo1
))
11170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11177 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11178 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11185 _result
= (bool )wxRegion_UnionRegion(_arg0
,*_arg1
);
11187 wxPyEndAllowThreads(__tstate
);
11188 if (PyErr_Occurred()) return NULL
;
11189 } _resultobj
= Py_BuildValue("i",_result
);
11193 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11194 static PyObject
*_wrap_wxRegion_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11195 PyObject
* _resultobj
;
11202 PyObject
* _argo0
= 0;
11203 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Subtract",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11217 _result
= (bool )wxRegion_Subtract(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11219 wxPyEndAllowThreads(__tstate
);
11220 if (PyErr_Occurred()) return NULL
;
11221 } _resultobj
= Py_BuildValue("i",_result
);
11225 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11226 static PyObject
*_wrap_wxRegion_SubtractRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11227 PyObject
* _resultobj
;
11231 PyObject
* _argo0
= 0;
11233 PyObject
* _obj1
= 0;
11234 char *_kwnames
[] = { "self","rect", NULL
};
11237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRect",_kwnames
,&_argo0
,&_obj1
))
11240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11248 if (! wxRect_helper(_obj1
, &_arg1
))
11252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11253 _result
= (bool )wxRegion_SubtractRect(_arg0
,*_arg1
);
11255 wxPyEndAllowThreads(__tstate
);
11256 if (PyErr_Occurred()) return NULL
;
11257 } _resultobj
= Py_BuildValue("i",_result
);
11261 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11262 static PyObject
*_wrap_wxRegion_SubtractRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11263 PyObject
* _resultobj
;
11267 PyObject
* _argo0
= 0;
11268 PyObject
* _argo1
= 0;
11269 char *_kwnames
[] = { "self","region", NULL
};
11272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_SubtractRegion",_kwnames
,&_argo0
,&_argo1
))
11275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11282 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11283 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11290 _result
= (bool )wxRegion_SubtractRegion(_arg0
,*_arg1
);
11292 wxPyEndAllowThreads(__tstate
);
11293 if (PyErr_Occurred()) return NULL
;
11294 } _resultobj
= Py_BuildValue("i",_result
);
11298 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11299 static PyObject
*_wrap_wxRegion_Xor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11300 PyObject
* _resultobj
;
11307 PyObject
* _argo0
= 0;
11308 char *_kwnames
[] = { "self","x","y","width","height", NULL
};
11311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ollll:wxRegion_Xor",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
11314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11322 _result
= (bool )wxRegion_Xor(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
11324 wxPyEndAllowThreads(__tstate
);
11325 if (PyErr_Occurred()) return NULL
;
11326 } _resultobj
= Py_BuildValue("i",_result
);
11330 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11331 static PyObject
*_wrap_wxRegion_XorRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11332 PyObject
* _resultobj
;
11336 PyObject
* _argo0
= 0;
11338 PyObject
* _obj1
= 0;
11339 char *_kwnames
[] = { "self","rect", NULL
};
11342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRect",_kwnames
,&_argo0
,&_obj1
))
11345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11353 if (! wxRect_helper(_obj1
, &_arg1
))
11357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11358 _result
= (bool )wxRegion_XorRect(_arg0
,*_arg1
);
11360 wxPyEndAllowThreads(__tstate
);
11361 if (PyErr_Occurred()) return NULL
;
11362 } _resultobj
= Py_BuildValue("i",_result
);
11366 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11367 static PyObject
*_wrap_wxRegion_XorRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11368 PyObject
* _resultobj
;
11372 PyObject
* _argo0
= 0;
11373 PyObject
* _argo1
= 0;
11374 char *_kwnames
[] = { "self","region", NULL
};
11377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxRegion_XorRegion",_kwnames
,&_argo0
,&_argo1
))
11380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11387 if (_argo1
== Py_None
) { _arg1
= NULL
; }
11388 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxRegion_p")) {
11389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11395 _result
= (bool )wxRegion_XorRegion(_arg0
,*_arg1
);
11397 wxPyEndAllowThreads(__tstate
);
11398 if (PyErr_Occurred()) return NULL
;
11399 } _resultobj
= Py_BuildValue("i",_result
);
11403 static void *SwigwxRegionIteratorTowxObject(void *ptr
) {
11404 wxRegionIterator
*src
;
11406 src
= (wxRegionIterator
*) ptr
;
11407 dest
= (wxObject
*) src
;
11408 return (void *) dest
;
11411 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11412 static PyObject
*_wrap_new_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11413 PyObject
* _resultobj
;
11414 wxRegionIterator
* _result
;
11416 PyObject
* _argo0
= 0;
11417 char *_kwnames
[] = { "region", NULL
};
11421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:new_wxRegionIterator",_kwnames
,&_argo0
))
11424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegion_p")) {
11426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11432 _result
= (wxRegionIterator
*)new_wxRegionIterator(*_arg0
);
11434 wxPyEndAllowThreads(__tstate
);
11435 if (PyErr_Occurred()) return NULL
;
11437 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRegionIterator_p");
11438 _resultobj
= Py_BuildValue("s",_ptemp
);
11440 Py_INCREF(Py_None
);
11441 _resultobj
= Py_None
;
11446 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11447 static PyObject
*_wrap_delete_wxRegionIterator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11448 PyObject
* _resultobj
;
11449 wxRegionIterator
* _arg0
;
11450 PyObject
* _argo0
= 0;
11451 char *_kwnames
[] = { "self", NULL
};
11454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxRegionIterator",_kwnames
,&_argo0
))
11457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11465 delete_wxRegionIterator(_arg0
);
11467 wxPyEndAllowThreads(__tstate
);
11468 if (PyErr_Occurred()) return NULL
;
11469 } Py_INCREF(Py_None
);
11470 _resultobj
= Py_None
;
11474 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11475 static PyObject
*_wrap_wxRegionIterator_GetX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11476 PyObject
* _resultobj
;
11478 wxRegionIterator
* _arg0
;
11479 PyObject
* _argo0
= 0;
11480 char *_kwnames
[] = { "self", NULL
};
11483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetX",_kwnames
,&_argo0
))
11486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11494 _result
= (long )wxRegionIterator_GetX(_arg0
);
11496 wxPyEndAllowThreads(__tstate
);
11497 if (PyErr_Occurred()) return NULL
;
11498 } _resultobj
= Py_BuildValue("l",_result
);
11502 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11503 static PyObject
*_wrap_wxRegionIterator_GetY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11504 PyObject
* _resultobj
;
11506 wxRegionIterator
* _arg0
;
11507 PyObject
* _argo0
= 0;
11508 char *_kwnames
[] = { "self", NULL
};
11511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetY",_kwnames
,&_argo0
))
11514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11522 _result
= (long )wxRegionIterator_GetY(_arg0
);
11524 wxPyEndAllowThreads(__tstate
);
11525 if (PyErr_Occurred()) return NULL
;
11526 } _resultobj
= Py_BuildValue("l",_result
);
11530 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11531 static PyObject
*_wrap_wxRegionIterator_GetW(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11532 PyObject
* _resultobj
;
11534 wxRegionIterator
* _arg0
;
11535 PyObject
* _argo0
= 0;
11536 char *_kwnames
[] = { "self", NULL
};
11539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetW",_kwnames
,&_argo0
))
11542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11550 _result
= (long )wxRegionIterator_GetW(_arg0
);
11552 wxPyEndAllowThreads(__tstate
);
11553 if (PyErr_Occurred()) return NULL
;
11554 } _resultobj
= Py_BuildValue("l",_result
);
11558 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11559 static PyObject
*_wrap_wxRegionIterator_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11560 PyObject
* _resultobj
;
11562 wxRegionIterator
* _arg0
;
11563 PyObject
* _argo0
= 0;
11564 char *_kwnames
[] = { "self", NULL
};
11567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetWidth",_kwnames
,&_argo0
))
11570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11578 _result
= (long )wxRegionIterator_GetWidth(_arg0
);
11580 wxPyEndAllowThreads(__tstate
);
11581 if (PyErr_Occurred()) return NULL
;
11582 } _resultobj
= Py_BuildValue("l",_result
);
11586 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11587 static PyObject
*_wrap_wxRegionIterator_GetH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11588 PyObject
* _resultobj
;
11590 wxRegionIterator
* _arg0
;
11591 PyObject
* _argo0
= 0;
11592 char *_kwnames
[] = { "self", NULL
};
11595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetH",_kwnames
,&_argo0
))
11598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11606 _result
= (long )wxRegionIterator_GetH(_arg0
);
11608 wxPyEndAllowThreads(__tstate
);
11609 if (PyErr_Occurred()) return NULL
;
11610 } _resultobj
= Py_BuildValue("l",_result
);
11614 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11615 static PyObject
*_wrap_wxRegionIterator_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11616 PyObject
* _resultobj
;
11618 wxRegionIterator
* _arg0
;
11619 PyObject
* _argo0
= 0;
11620 char *_kwnames
[] = { "self", NULL
};
11623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetHeight",_kwnames
,&_argo0
))
11626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11634 _result
= (long )wxRegionIterator_GetHeight(_arg0
);
11636 wxPyEndAllowThreads(__tstate
);
11637 if (PyErr_Occurred()) return NULL
;
11638 } _resultobj
= Py_BuildValue("l",_result
);
11642 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11643 static PyObject
*_wrap_wxRegionIterator_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11644 PyObject
* _resultobj
;
11646 wxRegionIterator
* _arg0
;
11647 PyObject
* _argo0
= 0;
11648 char *_kwnames
[] = { "self", NULL
};
11652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_GetRect",_kwnames
,&_argo0
))
11655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11663 _result
= new wxRect (wxRegionIterator_GetRect(_arg0
));
11665 wxPyEndAllowThreads(__tstate
);
11666 if (PyErr_Occurred()) return NULL
;
11667 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
11668 _resultobj
= Py_BuildValue("s",_ptemp
);
11672 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11673 static PyObject
*_wrap_wxRegionIterator_HaveRects(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11674 PyObject
* _resultobj
;
11676 wxRegionIterator
* _arg0
;
11677 PyObject
* _argo0
= 0;
11678 char *_kwnames
[] = { "self", NULL
};
11681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_HaveRects",_kwnames
,&_argo0
))
11684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11692 _result
= (bool )wxRegionIterator_HaveRects(_arg0
);
11694 wxPyEndAllowThreads(__tstate
);
11695 if (PyErr_Occurred()) return NULL
;
11696 } _resultobj
= Py_BuildValue("i",_result
);
11700 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11701 static PyObject
*_wrap_wxRegionIterator_Reset(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11702 PyObject
* _resultobj
;
11703 wxRegionIterator
* _arg0
;
11704 PyObject
* _argo0
= 0;
11705 char *_kwnames
[] = { "self", NULL
};
11708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Reset",_kwnames
,&_argo0
))
11711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11719 wxRegionIterator_Reset(_arg0
);
11721 wxPyEndAllowThreads(__tstate
);
11722 if (PyErr_Occurred()) return NULL
;
11723 } Py_INCREF(Py_None
);
11724 _resultobj
= Py_None
;
11728 static void wxRegionIterator_Next(wxRegionIterator
*self
) {
11731 static PyObject
*_wrap_wxRegionIterator_Next(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
11732 PyObject
* _resultobj
;
11733 wxRegionIterator
* _arg0
;
11734 PyObject
* _argo0
= 0;
11735 char *_kwnames
[] = { "self", NULL
};
11738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxRegionIterator_Next",_kwnames
,&_argo0
))
11741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
11742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxRegionIterator_p")) {
11743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
11749 wxRegionIterator_Next(_arg0
);
11751 wxPyEndAllowThreads(__tstate
);
11752 if (PyErr_Occurred()) return NULL
;
11753 } Py_INCREF(Py_None
);
11754 _resultobj
= Py_None
;
11758 static PyMethodDef gdicMethods
[] = {
11759 { "wxRegionIterator_Next", (PyCFunction
) _wrap_wxRegionIterator_Next
, METH_VARARGS
| METH_KEYWORDS
},
11760 { "wxRegionIterator_Reset", (PyCFunction
) _wrap_wxRegionIterator_Reset
, METH_VARARGS
| METH_KEYWORDS
},
11761 { "wxRegionIterator_HaveRects", (PyCFunction
) _wrap_wxRegionIterator_HaveRects
, METH_VARARGS
| METH_KEYWORDS
},
11762 { "wxRegionIterator_GetRect", (PyCFunction
) _wrap_wxRegionIterator_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
11763 { "wxRegionIterator_GetHeight", (PyCFunction
) _wrap_wxRegionIterator_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
11764 { "wxRegionIterator_GetH", (PyCFunction
) _wrap_wxRegionIterator_GetH
, METH_VARARGS
| METH_KEYWORDS
},
11765 { "wxRegionIterator_GetWidth", (PyCFunction
) _wrap_wxRegionIterator_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11766 { "wxRegionIterator_GetW", (PyCFunction
) _wrap_wxRegionIterator_GetW
, METH_VARARGS
| METH_KEYWORDS
},
11767 { "wxRegionIterator_GetY", (PyCFunction
) _wrap_wxRegionIterator_GetY
, METH_VARARGS
| METH_KEYWORDS
},
11768 { "wxRegionIterator_GetX", (PyCFunction
) _wrap_wxRegionIterator_GetX
, METH_VARARGS
| METH_KEYWORDS
},
11769 { "delete_wxRegionIterator", (PyCFunction
) _wrap_delete_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11770 { "new_wxRegionIterator", (PyCFunction
) _wrap_new_wxRegionIterator
, METH_VARARGS
| METH_KEYWORDS
},
11771 { "wxRegion_XorRegion", (PyCFunction
) _wrap_wxRegion_XorRegion
, METH_VARARGS
| METH_KEYWORDS
},
11772 { "wxRegion_XorRect", (PyCFunction
) _wrap_wxRegion_XorRect
, METH_VARARGS
| METH_KEYWORDS
},
11773 { "wxRegion_Xor", (PyCFunction
) _wrap_wxRegion_Xor
, METH_VARARGS
| METH_KEYWORDS
},
11774 { "wxRegion_SubtractRegion", (PyCFunction
) _wrap_wxRegion_SubtractRegion
, METH_VARARGS
| METH_KEYWORDS
},
11775 { "wxRegion_SubtractRect", (PyCFunction
) _wrap_wxRegion_SubtractRect
, METH_VARARGS
| METH_KEYWORDS
},
11776 { "wxRegion_Subtract", (PyCFunction
) _wrap_wxRegion_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
11777 { "wxRegion_UnionRegion", (PyCFunction
) _wrap_wxRegion_UnionRegion
, METH_VARARGS
| METH_KEYWORDS
},
11778 { "wxRegion_UnionRect", (PyCFunction
) _wrap_wxRegion_UnionRect
, METH_VARARGS
| METH_KEYWORDS
},
11779 { "wxRegion_Union", (PyCFunction
) _wrap_wxRegion_Union
, METH_VARARGS
| METH_KEYWORDS
},
11780 { "wxRegion_IsEmpty", (PyCFunction
) _wrap_wxRegion_IsEmpty
, METH_VARARGS
| METH_KEYWORDS
},
11781 { "wxRegion_IntersectRegion", (PyCFunction
) _wrap_wxRegion_IntersectRegion
, METH_VARARGS
| METH_KEYWORDS
},
11782 { "wxRegion_IntersectRect", (PyCFunction
) _wrap_wxRegion_IntersectRect
, METH_VARARGS
| METH_KEYWORDS
},
11783 { "wxRegion_Intersect", (PyCFunction
) _wrap_wxRegion_Intersect
, METH_VARARGS
| METH_KEYWORDS
},
11784 { "wxRegion_GetBox", (PyCFunction
) _wrap_wxRegion_GetBox
, METH_VARARGS
| METH_KEYWORDS
},
11785 { "wxRegion_ContainsRectDim", (PyCFunction
) _wrap_wxRegion_ContainsRectDim
, METH_VARARGS
| METH_KEYWORDS
},
11786 { "wxRegion_ContainsRect", (PyCFunction
) _wrap_wxRegion_ContainsRect
, METH_VARARGS
| METH_KEYWORDS
},
11787 { "wxRegion_ContainsPoint", (PyCFunction
) _wrap_wxRegion_ContainsPoint
, METH_VARARGS
| METH_KEYWORDS
},
11788 { "wxRegion_Contains", (PyCFunction
) _wrap_wxRegion_Contains
, METH_VARARGS
| METH_KEYWORDS
},
11789 { "wxRegion_Offset", (PyCFunction
) _wrap_wxRegion_Offset
, METH_VARARGS
| METH_KEYWORDS
},
11790 { "wxRegion_Clear", (PyCFunction
) _wrap_wxRegion_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11791 { "delete_wxRegion", (PyCFunction
) _wrap_delete_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11792 { "new_wxRegion", (PyCFunction
) _wrap_new_wxRegion
, METH_VARARGS
| METH_KEYWORDS
},
11793 { "wxImageList_GetSize", (PyCFunction
) _wrap_wxImageList_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11794 { "wxImageList_RemoveAll", (PyCFunction
) _wrap_wxImageList_RemoveAll
, METH_VARARGS
| METH_KEYWORDS
},
11795 { "wxImageList_Remove", (PyCFunction
) _wrap_wxImageList_Remove
, METH_VARARGS
| METH_KEYWORDS
},
11796 { "wxImageList_GetImageCount", (PyCFunction
) _wrap_wxImageList_GetImageCount
, METH_VARARGS
| METH_KEYWORDS
},
11797 { "wxImageList_Draw", (PyCFunction
) _wrap_wxImageList_Draw
, METH_VARARGS
| METH_KEYWORDS
},
11798 { "wxImageList_Replace", (PyCFunction
) _wrap_wxImageList_Replace
, METH_VARARGS
| METH_KEYWORDS
},
11799 { "wxImageList_AddIcon", (PyCFunction
) _wrap_wxImageList_AddIcon
, METH_VARARGS
| METH_KEYWORDS
},
11800 { "wxImageList_AddWithColourMask", (PyCFunction
) _wrap_wxImageList_AddWithColourMask
, METH_VARARGS
| METH_KEYWORDS
},
11801 { "wxImageList_Add", (PyCFunction
) _wrap_wxImageList_Add
, METH_VARARGS
| METH_KEYWORDS
},
11802 { "delete_wxImageList", (PyCFunction
) _wrap_delete_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11803 { "new_wxImageList", (PyCFunction
) _wrap_new_wxImageList
, METH_VARARGS
| METH_KEYWORDS
},
11804 { "wxPalette_Ok", (PyCFunction
) _wrap_wxPalette_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11805 { "wxPalette_GetRGB", (PyCFunction
) _wrap_wxPalette_GetRGB
, METH_VARARGS
| METH_KEYWORDS
},
11806 { "wxPalette_GetPixel", (PyCFunction
) _wrap_wxPalette_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11807 { "delete_wxPalette", (PyCFunction
) _wrap_delete_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11808 { "new_wxPalette", (PyCFunction
) _wrap_new_wxPalette
, METH_VARARGS
| METH_KEYWORDS
},
11809 { "new_wxWindowDC", (PyCFunction
) _wrap_new_wxWindowDC
, METH_VARARGS
| METH_KEYWORDS
},
11810 { "new_wxPaintDC", (PyCFunction
) _wrap_new_wxPaintDC
, METH_VARARGS
| METH_KEYWORDS
},
11811 { "new_wxClientDC", (PyCFunction
) _wrap_new_wxClientDC
, METH_VARARGS
| METH_KEYWORDS
},
11812 { "wxScreenDC_EndDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_EndDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11813 { "wxScreenDC_StartDrawingOnTop", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTop
, METH_VARARGS
| METH_KEYWORDS
},
11814 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction
) _wrap_wxScreenDC_StartDrawingOnTopWin
, METH_VARARGS
| METH_KEYWORDS
},
11815 { "new_wxScreenDC", (PyCFunction
) _wrap_new_wxScreenDC
, METH_VARARGS
| METH_KEYWORDS
},
11816 { "wxMemoryDC_SelectObject", (PyCFunction
) _wrap_wxMemoryDC_SelectObject
, METH_VARARGS
| METH_KEYWORDS
},
11817 { "new_wxMemoryDC", (PyCFunction
) _wrap_new_wxMemoryDC
, METH_VARARGS
| METH_KEYWORDS
},
11818 { "wxDC__DrawLineList", (PyCFunction
) _wrap_wxDC__DrawLineList
, METH_VARARGS
| METH_KEYWORDS
},
11819 { "wxDC__DrawPointList", (PyCFunction
) _wrap_wxDC__DrawPointList
, METH_VARARGS
| METH_KEYWORDS
},
11820 { "wxDC_GetBoundingBox", (PyCFunction
) _wrap_wxDC_GetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11821 { "wxDC_ResetBoundingBox", (PyCFunction
) _wrap_wxDC_ResetBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11822 { "wxDC_CalcBoundingBox", (PyCFunction
) _wrap_wxDC_CalcBoundingBox
, METH_VARARGS
| METH_KEYWORDS
},
11823 { "wxDC_SetAxisOrientation", (PyCFunction
) _wrap_wxDC_SetAxisOrientation
, METH_VARARGS
| METH_KEYWORDS
},
11824 { "wxDC_GetDeviceOrigin", (PyCFunction
) _wrap_wxDC_GetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11825 { "wxDC_SetLogicalOrigin", (PyCFunction
) _wrap_wxDC_SetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11826 { "wxDC_GetLogicalOrigin", (PyCFunction
) _wrap_wxDC_GetLogicalOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11827 { "wxDC_GetPPI", (PyCFunction
) _wrap_wxDC_GetPPI
, METH_VARARGS
| METH_KEYWORDS
},
11828 { "wxDC_GetDepth", (PyCFunction
) _wrap_wxDC_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
11829 { "wxDC_CanGetTextExtent", (PyCFunction
) _wrap_wxDC_CanGetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11830 { "wxDC_CanDrawBitmap", (PyCFunction
) _wrap_wxDC_CanDrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11831 { "wxDC_DrawBitmap", (PyCFunction
) _wrap_wxDC_DrawBitmap
, METH_VARARGS
| METH_KEYWORDS
},
11832 { "wxDC_StartPage", (PyCFunction
) _wrap_wxDC_StartPage
, METH_VARARGS
| METH_KEYWORDS
},
11833 { "wxDC_StartDoc", (PyCFunction
) _wrap_wxDC_StartDoc
, METH_VARARGS
| METH_KEYWORDS
},
11834 { "wxDC_SetUserScale", (PyCFunction
) _wrap_wxDC_SetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11835 { "wxDC_SetTextForeground", (PyCFunction
) _wrap_wxDC_SetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11836 { "wxDC_SetTextBackground", (PyCFunction
) _wrap_wxDC_SetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11837 { "wxDC_SetPen", (PyCFunction
) _wrap_wxDC_SetPen
, METH_VARARGS
| METH_KEYWORDS
},
11838 { "wxDC_SetOptimization", (PyCFunction
) _wrap_wxDC_SetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11839 { "wxDC_SetMapMode", (PyCFunction
) _wrap_wxDC_SetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11840 { "wxDC_SetLogicalScale", (PyCFunction
) _wrap_wxDC_SetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11841 { "wxDC_SetLogicalFunction", (PyCFunction
) _wrap_wxDC_SetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11842 { "wxDC_SetFont", (PyCFunction
) _wrap_wxDC_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
11843 { "wxDC_SetBrush", (PyCFunction
) _wrap_wxDC_SetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11844 { "wxDC_SetPalette", (PyCFunction
) _wrap_wxDC_SetPalette
, METH_VARARGS
| METH_KEYWORDS
},
11845 { "wxDC_SetClippingRegionAsRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegionAsRegion
, METH_VARARGS
| METH_KEYWORDS
},
11846 { "wxDC_SetClippingRegion", (PyCFunction
) _wrap_wxDC_SetClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11847 { "wxDC_SetBackgroundMode", (PyCFunction
) _wrap_wxDC_SetBackgroundMode
, METH_VARARGS
| METH_KEYWORDS
},
11848 { "wxDC_SetBackground", (PyCFunction
) _wrap_wxDC_SetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11849 { "wxDC_SetDeviceOrigin", (PyCFunction
) _wrap_wxDC_SetDeviceOrigin
, METH_VARARGS
| METH_KEYWORDS
},
11850 { "wxDC_Ok", (PyCFunction
) _wrap_wxDC_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11851 { "wxDC_MinY", (PyCFunction
) _wrap_wxDC_MinY
, METH_VARARGS
| METH_KEYWORDS
},
11852 { "wxDC_MinX", (PyCFunction
) _wrap_wxDC_MinX
, METH_VARARGS
| METH_KEYWORDS
},
11853 { "wxDC_MaxY", (PyCFunction
) _wrap_wxDC_MaxY
, METH_VARARGS
| METH_KEYWORDS
},
11854 { "wxDC_MaxX", (PyCFunction
) _wrap_wxDC_MaxX
, METH_VARARGS
| METH_KEYWORDS
},
11855 { "wxDC_LogicalToDeviceYRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceYRel
, METH_VARARGS
| METH_KEYWORDS
},
11856 { "wxDC_LogicalToDeviceY", (PyCFunction
) _wrap_wxDC_LogicalToDeviceY
, METH_VARARGS
| METH_KEYWORDS
},
11857 { "wxDC_LogicalToDeviceXRel", (PyCFunction
) _wrap_wxDC_LogicalToDeviceXRel
, METH_VARARGS
| METH_KEYWORDS
},
11858 { "wxDC_LogicalToDeviceX", (PyCFunction
) _wrap_wxDC_LogicalToDeviceX
, METH_VARARGS
| METH_KEYWORDS
},
11859 { "wxDC_GetUserScale", (PyCFunction
) _wrap_wxDC_GetUserScale
, METH_VARARGS
| METH_KEYWORDS
},
11860 { "wxDC_GetTextForeground", (PyCFunction
) _wrap_wxDC_GetTextForeground
, METH_VARARGS
| METH_KEYWORDS
},
11861 { "wxDC_GetFullTextExtent", (PyCFunction
) _wrap_wxDC_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11862 { "wxDC_GetTextExtent", (PyCFunction
) _wrap_wxDC_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
11863 { "wxDC_GetTextBackground", (PyCFunction
) _wrap_wxDC_GetTextBackground
, METH_VARARGS
| METH_KEYWORDS
},
11864 { "wxDC_GetSizeMM", (PyCFunction
) _wrap_wxDC_GetSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
11865 { "wxDC_GetSize", (PyCFunction
) _wrap_wxDC_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
11866 { "wxDC_GetSizeTuple", (PyCFunction
) _wrap_wxDC_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
11867 { "wxDC_GetPixel", (PyCFunction
) _wrap_wxDC_GetPixel
, METH_VARARGS
| METH_KEYWORDS
},
11868 { "wxDC_GetPen", (PyCFunction
) _wrap_wxDC_GetPen
, METH_VARARGS
| METH_KEYWORDS
},
11869 { "wxDC_GetOptimization", (PyCFunction
) _wrap_wxDC_GetOptimization
, METH_VARARGS
| METH_KEYWORDS
},
11870 { "wxDC_GetMapMode", (PyCFunction
) _wrap_wxDC_GetMapMode
, METH_VARARGS
| METH_KEYWORDS
},
11871 { "wxDC_GetLogicalScale", (PyCFunction
) _wrap_wxDC_GetLogicalScale
, METH_VARARGS
| METH_KEYWORDS
},
11872 { "wxDC_GetLogicalFunction", (PyCFunction
) _wrap_wxDC_GetLogicalFunction
, METH_VARARGS
| METH_KEYWORDS
},
11873 { "wxDC_GetFont", (PyCFunction
) _wrap_wxDC_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
11874 { "wxDC_GetClippingBox", (PyCFunction
) _wrap_wxDC_GetClippingBox
, METH_VARARGS
| METH_KEYWORDS
},
11875 { "wxDC_GetCharWidth", (PyCFunction
) _wrap_wxDC_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
11876 { "wxDC_GetCharHeight", (PyCFunction
) _wrap_wxDC_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
11877 { "wxDC_GetBrush", (PyCFunction
) _wrap_wxDC_GetBrush
, METH_VARARGS
| METH_KEYWORDS
},
11878 { "wxDC_GetBackground", (PyCFunction
) _wrap_wxDC_GetBackground
, METH_VARARGS
| METH_KEYWORDS
},
11879 { "wxDC_FloodFill", (PyCFunction
) _wrap_wxDC_FloodFill
, METH_VARARGS
| METH_KEYWORDS
},
11880 { "wxDC_EndPage", (PyCFunction
) _wrap_wxDC_EndPage
, METH_VARARGS
| METH_KEYWORDS
},
11881 { "wxDC_EndDrawing", (PyCFunction
) _wrap_wxDC_EndDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11882 { "wxDC_EndDoc", (PyCFunction
) _wrap_wxDC_EndDoc
, METH_VARARGS
| METH_KEYWORDS
},
11883 { "wxDC_DrawText", (PyCFunction
) _wrap_wxDC_DrawText
, METH_VARARGS
| METH_KEYWORDS
},
11884 { "wxDC_DrawSpline", (PyCFunction
) _wrap_wxDC_DrawSpline
, METH_VARARGS
| METH_KEYWORDS
},
11885 { "wxDC_DrawRoundedRectangle", (PyCFunction
) _wrap_wxDC_DrawRoundedRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11886 { "wxDC_DrawRotatedText", (PyCFunction
) _wrap_wxDC_DrawRotatedText
, METH_VARARGS
| METH_KEYWORDS
},
11887 { "wxDC_DrawRectangle", (PyCFunction
) _wrap_wxDC_DrawRectangle
, METH_VARARGS
| METH_KEYWORDS
},
11888 { "wxDC_DrawPoint", (PyCFunction
) _wrap_wxDC_DrawPoint
, METH_VARARGS
| METH_KEYWORDS
},
11889 { "wxDC_DrawPolygon", (PyCFunction
) _wrap_wxDC_DrawPolygon
, METH_VARARGS
| METH_KEYWORDS
},
11890 { "wxDC_DrawLines", (PyCFunction
) _wrap_wxDC_DrawLines
, METH_VARARGS
| METH_KEYWORDS
},
11891 { "wxDC_DrawLine", (PyCFunction
) _wrap_wxDC_DrawLine
, METH_VARARGS
| METH_KEYWORDS
},
11892 { "wxDC_DrawImageLabel", (PyCFunction
) _wrap_wxDC_DrawImageLabel
, METH_VARARGS
| METH_KEYWORDS
},
11893 { "wxDC_DrawLabel", (PyCFunction
) _wrap_wxDC_DrawLabel
, METH_VARARGS
| METH_KEYWORDS
},
11894 { "wxDC_DrawIcon", (PyCFunction
) _wrap_wxDC_DrawIcon
, METH_VARARGS
| METH_KEYWORDS
},
11895 { "wxDC_DrawEllipticArc", (PyCFunction
) _wrap_wxDC_DrawEllipticArc
, METH_VARARGS
| METH_KEYWORDS
},
11896 { "wxDC_DrawEllipse", (PyCFunction
) _wrap_wxDC_DrawEllipse
, METH_VARARGS
| METH_KEYWORDS
},
11897 { "wxDC_DrawCircle", (PyCFunction
) _wrap_wxDC_DrawCircle
, METH_VARARGS
| METH_KEYWORDS
},
11898 { "wxDC_DrawArc", (PyCFunction
) _wrap_wxDC_DrawArc
, METH_VARARGS
| METH_KEYWORDS
},
11899 { "wxDC_DeviceToLogicalYRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalYRel
, METH_VARARGS
| METH_KEYWORDS
},
11900 { "wxDC_DeviceToLogicalY", (PyCFunction
) _wrap_wxDC_DeviceToLogicalY
, METH_VARARGS
| METH_KEYWORDS
},
11901 { "wxDC_DeviceToLogicalXRel", (PyCFunction
) _wrap_wxDC_DeviceToLogicalXRel
, METH_VARARGS
| METH_KEYWORDS
},
11902 { "wxDC_DeviceToLogicalX", (PyCFunction
) _wrap_wxDC_DeviceToLogicalX
, METH_VARARGS
| METH_KEYWORDS
},
11903 { "wxDC_DestroyClippingRegion", (PyCFunction
) _wrap_wxDC_DestroyClippingRegion
, METH_VARARGS
| METH_KEYWORDS
},
11904 { "wxDC_CrossHair", (PyCFunction
) _wrap_wxDC_CrossHair
, METH_VARARGS
| METH_KEYWORDS
},
11905 { "wxDC_Clear", (PyCFunction
) _wrap_wxDC_Clear
, METH_VARARGS
| METH_KEYWORDS
},
11906 { "wxDC_Blit", (PyCFunction
) _wrap_wxDC_Blit
, METH_VARARGS
| METH_KEYWORDS
},
11907 { "wxDC_BeginDrawing", (PyCFunction
) _wrap_wxDC_BeginDrawing
, METH_VARARGS
| METH_KEYWORDS
},
11908 { "delete_wxDC", (PyCFunction
) _wrap_delete_wxDC
, METH_VARARGS
| METH_KEYWORDS
},
11909 { "wxBrushList_GetCount", (PyCFunction
) _wrap_wxBrushList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11910 { "wxBrushList_RemoveBrush", (PyCFunction
) _wrap_wxBrushList_RemoveBrush
, METH_VARARGS
| METH_KEYWORDS
},
11911 { "wxBrushList_FindOrCreateBrush", (PyCFunction
) _wrap_wxBrushList_FindOrCreateBrush
, METH_VARARGS
| METH_KEYWORDS
},
11912 { "wxBrushList_AddBrush", (PyCFunction
) _wrap_wxBrushList_AddBrush
, METH_VARARGS
| METH_KEYWORDS
},
11913 { "wxBrush_SetStyle", (PyCFunction
) _wrap_wxBrush_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11914 { "wxBrush_SetStipple", (PyCFunction
) _wrap_wxBrush_SetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11915 { "wxBrush_SetColour", (PyCFunction
) _wrap_wxBrush_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11916 { "wxBrush_Ok", (PyCFunction
) _wrap_wxBrush_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11917 { "wxBrush_GetStyle", (PyCFunction
) _wrap_wxBrush_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11918 { "wxBrush_GetStipple", (PyCFunction
) _wrap_wxBrush_GetStipple
, METH_VARARGS
| METH_KEYWORDS
},
11919 { "wxBrush_GetColour", (PyCFunction
) _wrap_wxBrush_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11920 { "delete_wxBrush", (PyCFunction
) _wrap_delete_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11921 { "new_wxBrush", (PyCFunction
) _wrap_new_wxBrush
, METH_VARARGS
| METH_KEYWORDS
},
11922 { "wxPenList_GetCount", (PyCFunction
) _wrap_wxPenList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11923 { "wxPenList_RemovePen", (PyCFunction
) _wrap_wxPenList_RemovePen
, METH_VARARGS
| METH_KEYWORDS
},
11924 { "wxPenList_FindOrCreatePen", (PyCFunction
) _wrap_wxPenList_FindOrCreatePen
, METH_VARARGS
| METH_KEYWORDS
},
11925 { "wxPenList_AddPen", (PyCFunction
) _wrap_wxPenList_AddPen
, METH_VARARGS
| METH_KEYWORDS
},
11926 { "wxPyPen_SetDashes", (PyCFunction
) _wrap_wxPyPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11927 { "delete_wxPyPen", (PyCFunction
) _wrap_delete_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11928 { "new_wxPyPen", (PyCFunction
) _wrap_new_wxPyPen
, METH_VARARGS
| METH_KEYWORDS
},
11929 { "wxPen_SetDashes", (PyCFunction
) _wrap_wxPen_SetDashes
, METH_VARARGS
| METH_KEYWORDS
},
11930 { "wxPen_SetWidth", (PyCFunction
) _wrap_wxPen_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11931 { "wxPen_SetStyle", (PyCFunction
) _wrap_wxPen_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11932 { "wxPen_SetJoin", (PyCFunction
) _wrap_wxPen_SetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11933 { "wxPen_SetColour", (PyCFunction
) _wrap_wxPen_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
11934 { "wxPen_SetCap", (PyCFunction
) _wrap_wxPen_SetCap
, METH_VARARGS
| METH_KEYWORDS
},
11935 { "wxPen_Ok", (PyCFunction
) _wrap_wxPen_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11936 { "wxPen_GetWidth", (PyCFunction
) _wrap_wxPen_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
11937 { "wxPen_GetStyle", (PyCFunction
) _wrap_wxPen_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11938 { "wxPen_GetJoin", (PyCFunction
) _wrap_wxPen_GetJoin
, METH_VARARGS
| METH_KEYWORDS
},
11939 { "wxPen_GetColour", (PyCFunction
) _wrap_wxPen_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
11940 { "wxPen_GetCap", (PyCFunction
) _wrap_wxPen_GetCap
, METH_VARARGS
| METH_KEYWORDS
},
11941 { "delete_wxPen", (PyCFunction
) _wrap_delete_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11942 { "new_wxPen", (PyCFunction
) _wrap_new_wxPen
, METH_VARARGS
| METH_KEYWORDS
},
11943 { "wxColourDatabase_Append", (PyCFunction
) _wrap_wxColourDatabase_Append
, METH_VARARGS
| METH_KEYWORDS
},
11944 { "wxColourDatabase_FindName", (PyCFunction
) _wrap_wxColourDatabase_FindName
, METH_VARARGS
| METH_KEYWORDS
},
11945 { "wxColourDatabase_FindColour", (PyCFunction
) _wrap_wxColourDatabase_FindColour
, METH_VARARGS
| METH_KEYWORDS
},
11946 { "wxColour_Get", (PyCFunction
) _wrap_wxColour_Get
, METH_VARARGS
| METH_KEYWORDS
},
11947 { "wxColour_Set", (PyCFunction
) _wrap_wxColour_Set
, METH_VARARGS
| METH_KEYWORDS
},
11948 { "wxColour_Ok", (PyCFunction
) _wrap_wxColour_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11949 { "wxColour_Blue", (PyCFunction
) _wrap_wxColour_Blue
, METH_VARARGS
| METH_KEYWORDS
},
11950 { "wxColour_Green", (PyCFunction
) _wrap_wxColour_Green
, METH_VARARGS
| METH_KEYWORDS
},
11951 { "wxColour_Red", (PyCFunction
) _wrap_wxColour_Red
, METH_VARARGS
| METH_KEYWORDS
},
11952 { "delete_wxColour", (PyCFunction
) _wrap_delete_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11953 { "new_wxColour", (PyCFunction
) _wrap_new_wxColour
, METH_VARARGS
| METH_KEYWORDS
},
11954 { "wxFontList_GetCount", (PyCFunction
) _wrap_wxFontList_GetCount
, METH_VARARGS
| METH_KEYWORDS
},
11955 { "wxFontList_RemoveFont", (PyCFunction
) _wrap_wxFontList_RemoveFont
, METH_VARARGS
| METH_KEYWORDS
},
11956 { "wxFontList_FindOrCreateFont", (PyCFunction
) _wrap_wxFontList_FindOrCreateFont
, METH_VARARGS
| METH_KEYWORDS
},
11957 { "wxFontList_AddFont", (PyCFunction
) _wrap_wxFontList_AddFont
, METH_VARARGS
| METH_KEYWORDS
},
11958 { "wxFont_SetDefaultEncoding", (PyCFunction
) _wrap_wxFont_SetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11959 { "wxFont_GetDefaultEncoding", (PyCFunction
) _wrap_wxFont_GetDefaultEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11960 { "wxFont_GetWeightString", (PyCFunction
) _wrap_wxFont_GetWeightString
, METH_VARARGS
| METH_KEYWORDS
},
11961 { "wxFont_GetStyleString", (PyCFunction
) _wrap_wxFont_GetStyleString
, METH_VARARGS
| METH_KEYWORDS
},
11962 { "wxFont_GetFamilyString", (PyCFunction
) _wrap_wxFont_GetFamilyString
, METH_VARARGS
| METH_KEYWORDS
},
11963 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_SetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11964 { "wxFont_SetNativeFontInfo", (PyCFunction
) _wrap_wxFont_SetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11965 { "wxFont_SetEncoding", (PyCFunction
) _wrap_wxFont_SetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11966 { "wxFont_SetUnderlined", (PyCFunction
) _wrap_wxFont_SetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11967 { "wxFont_SetFaceName", (PyCFunction
) _wrap_wxFont_SetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11968 { "wxFont_SetWeight", (PyCFunction
) _wrap_wxFont_SetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11969 { "wxFont_SetStyle", (PyCFunction
) _wrap_wxFont_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11970 { "wxFont_SetFamily", (PyCFunction
) _wrap_wxFont_SetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11971 { "wxFont_SetPointSize", (PyCFunction
) _wrap_wxFont_SetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11972 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoUserDesc
, METH_VARARGS
| METH_KEYWORDS
},
11973 { "wxFont_GetNativeFontInfoDesc", (PyCFunction
) _wrap_wxFont_GetNativeFontInfoDesc
, METH_VARARGS
| METH_KEYWORDS
},
11974 { "wxFont_GetNativeFontInfo", (PyCFunction
) _wrap_wxFont_GetNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
11975 { "wxFont_IsFixedWidth", (PyCFunction
) _wrap_wxFont_IsFixedWidth
, METH_VARARGS
| METH_KEYWORDS
},
11976 { "wxFont_GetEncoding", (PyCFunction
) _wrap_wxFont_GetEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11977 { "wxFont_GetFaceName", (PyCFunction
) _wrap_wxFont_GetFaceName
, METH_VARARGS
| METH_KEYWORDS
},
11978 { "wxFont_GetUnderlined", (PyCFunction
) _wrap_wxFont_GetUnderlined
, METH_VARARGS
| METH_KEYWORDS
},
11979 { "wxFont_GetWeight", (PyCFunction
) _wrap_wxFont_GetWeight
, METH_VARARGS
| METH_KEYWORDS
},
11980 { "wxFont_GetStyle", (PyCFunction
) _wrap_wxFont_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
11981 { "wxFont_GetFamily", (PyCFunction
) _wrap_wxFont_GetFamily
, METH_VARARGS
| METH_KEYWORDS
},
11982 { "wxFont_GetPointSize", (PyCFunction
) _wrap_wxFont_GetPointSize
, METH_VARARGS
| METH_KEYWORDS
},
11983 { "wxFont_Ok", (PyCFunction
) _wrap_wxFont_Ok
, METH_VARARGS
| METH_KEYWORDS
},
11984 { "delete_wxFont", (PyCFunction
) _wrap_delete_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11985 { "new_wxFontFromNativeInfo", (PyCFunction
) _wrap_new_wxFontFromNativeInfo
, METH_VARARGS
| METH_KEYWORDS
},
11986 { "new_wxFont", (PyCFunction
) _wrap_new_wxFont
, METH_VARARGS
| METH_KEYWORDS
},
11987 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction
) _wrap_wxFontMapper_GetDefaultConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11988 { "wxFontMapper_SetConfigPath", (PyCFunction
) _wrap_wxFontMapper_SetConfigPath
, METH_VARARGS
| METH_KEYWORDS
},
11989 { "wxFontMapper_SetConfig", (PyCFunction
) _wrap_wxFontMapper_SetConfig
, METH_VARARGS
| METH_KEYWORDS
},
11990 { "wxFontMapper_SetDialogTitle", (PyCFunction
) _wrap_wxFontMapper_SetDialogTitle
, METH_VARARGS
| METH_KEYWORDS
},
11991 { "wxFontMapper_SetDialogParent", (PyCFunction
) _wrap_wxFontMapper_SetDialogParent
, METH_VARARGS
| METH_KEYWORDS
},
11992 { "wxFontMapper_GetEncodingDescription", (PyCFunction
) _wrap_wxFontMapper_GetEncodingDescription
, METH_VARARGS
| METH_KEYWORDS
},
11993 { "wxFontMapper_GetEncodingName", (PyCFunction
) _wrap_wxFontMapper_GetEncodingName
, METH_VARARGS
| METH_KEYWORDS
},
11994 { "wxFontMapper_CharsetToEncoding", (PyCFunction
) _wrap_wxFontMapper_CharsetToEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11995 { "wxFontMapper_IsEncodingAvailable", (PyCFunction
) _wrap_wxFontMapper_IsEncodingAvailable
, METH_VARARGS
| METH_KEYWORDS
},
11996 { "wxFontMapper_GetAltForEncoding", (PyCFunction
) _wrap_wxFontMapper_GetAltForEncoding
, METH_VARARGS
| METH_KEYWORDS
},
11997 { "delete_wxFontMapper", (PyCFunction
) _wrap_delete_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11998 { "new_wxFontMapper", (PyCFunction
) _wrap_new_wxFontMapper
, METH_VARARGS
| METH_KEYWORDS
},
11999 { "wxNativeFontInfo_ToUserString", (PyCFunction
) _wrap_wxNativeFontInfo_ToUserString
, METH_VARARGS
| METH_KEYWORDS
},
12000 { "wxNativeFontInfo_FromUserString", (PyCFunction
) _wrap_wxNativeFontInfo_FromUserString
, METH_VARARGS
| METH_KEYWORDS
},
12001 { "wxNativeFontInfo___str__", (PyCFunction
) _wrap_wxNativeFontInfo___str__
, METH_VARARGS
| METH_KEYWORDS
},
12002 { "wxNativeFontInfo_ToString", (PyCFunction
) _wrap_wxNativeFontInfo_ToString
, METH_VARARGS
| METH_KEYWORDS
},
12003 { "wxNativeFontInfo_FromString", (PyCFunction
) _wrap_wxNativeFontInfo_FromString
, METH_VARARGS
| METH_KEYWORDS
},
12004 { "wxNativeFontInfo_Init", (PyCFunction
) _wrap_wxNativeFontInfo_Init
, METH_VARARGS
| METH_KEYWORDS
},
12005 { "new_wxNativeFontInfo", (PyCFunction
) _wrap_new_wxNativeFontInfo
, METH_VARARGS
| METH_KEYWORDS
},
12006 { "wxNativeFontInfo_SetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_SetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
12007 { "wxNativeFontInfo_GetXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_GetXFontName
, METH_VARARGS
| METH_KEYWORDS
},
12008 { "wxNativeFontInfo_IsDefault", (PyCFunction
) _wrap_wxNativeFontInfo_IsDefault
, METH_VARARGS
| METH_KEYWORDS
},
12009 { "wxNativeFontInfo_FromXFontName", (PyCFunction
) _wrap_wxNativeFontInfo_FromXFontName
, METH_VARARGS
| METH_KEYWORDS
},
12010 { "wxCursor_Ok", (PyCFunction
) _wrap_wxCursor_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12011 { "delete_wxCursor", (PyCFunction
) _wrap_delete_wxCursor
, METH_VARARGS
| METH_KEYWORDS
},
12012 { "wxIcon_CopyFromBitmap", (PyCFunction
) _wrap_wxIcon_CopyFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12013 { "wxIcon_SetDepth", (PyCFunction
) _wrap_wxIcon_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12014 { "wxIcon_SetHeight", (PyCFunction
) _wrap_wxIcon_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12015 { "wxIcon_SetWidth", (PyCFunction
) _wrap_wxIcon_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12016 { "wxIcon_GetDepth", (PyCFunction
) _wrap_wxIcon_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12017 { "wxIcon_GetHeight", (PyCFunction
) _wrap_wxIcon_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12018 { "wxIcon_GetWidth", (PyCFunction
) _wrap_wxIcon_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12019 { "wxIcon_Ok", (PyCFunction
) _wrap_wxIcon_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12020 { "wxIcon_LoadFile", (PyCFunction
) _wrap_wxIcon_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12021 { "delete_wxIcon", (PyCFunction
) _wrap_delete_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12022 { "new_wxIcon", (PyCFunction
) _wrap_new_wxIcon
, METH_VARARGS
| METH_KEYWORDS
},
12023 { "wxMask_Destroy", (PyCFunction
) _wrap_wxMask_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
12024 { "new_wxMask", (PyCFunction
) _wrap_new_wxMask
, METH_VARARGS
| METH_KEYWORDS
},
12025 { "wxBitmap_CopyFromIcon", (PyCFunction
) _wrap_wxBitmap_CopyFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12026 { "wxBitmap_GetSubBitmap", (PyCFunction
) _wrap_wxBitmap_GetSubBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12027 { "wxBitmap_SetDepth", (PyCFunction
) _wrap_wxBitmap_SetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12028 { "wxBitmap_SetHeight", (PyCFunction
) _wrap_wxBitmap_SetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12029 { "wxBitmap_SetWidth", (PyCFunction
) _wrap_wxBitmap_SetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12030 { "wxBitmap_GetDepth", (PyCFunction
) _wrap_wxBitmap_GetDepth
, METH_VARARGS
| METH_KEYWORDS
},
12031 { "wxBitmap_GetHeight", (PyCFunction
) _wrap_wxBitmap_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
12032 { "wxBitmap_GetWidth", (PyCFunction
) _wrap_wxBitmap_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
12033 { "wxBitmap_Ok", (PyCFunction
) _wrap_wxBitmap_Ok
, METH_VARARGS
| METH_KEYWORDS
},
12034 { "wxBitmap_SetMask", (PyCFunction
) _wrap_wxBitmap_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
12035 { "wxBitmap_SaveFile", (PyCFunction
) _wrap_wxBitmap_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
12036 { "wxBitmap_LoadFile", (PyCFunction
) _wrap_wxBitmap_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
12037 { "wxBitmap_GetMask", (PyCFunction
) _wrap_wxBitmap_GetMask
, METH_VARARGS
| METH_KEYWORDS
},
12038 { "wxBitmap_GetPalette", (PyCFunction
) _wrap_wxBitmap_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
12039 { "delete_wxBitmap", (PyCFunction
) _wrap_delete_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12040 { "new_wxBitmap", (PyCFunction
) _wrap_new_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12041 { "wxGDIObject_IsNull", (PyCFunction
) _wrap_wxGDIObject_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
12042 { "wxGDIObject_SetVisible", (PyCFunction
) _wrap_wxGDIObject_SetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12043 { "wxGDIObject_GetVisible", (PyCFunction
) _wrap_wxGDIObject_GetVisible
, METH_VARARGS
| METH_KEYWORDS
},
12044 { "delete_wxGDIObject", (PyCFunction
) _wrap_delete_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12045 { "new_wxGDIObject", (PyCFunction
) _wrap_new_wxGDIObject
, METH_VARARGS
| METH_KEYWORDS
},
12046 { "wxMemoryDCFromDC", (PyCFunction
) _wrap_wxMemoryDCFromDC
, METH_VARARGS
| METH_KEYWORDS
},
12047 { "wxNamedColour", (PyCFunction
) _wrap_wxNamedColour
, METH_VARARGS
| METH_KEYWORDS
},
12048 { "wxStockCursor", (PyCFunction
) _wrap_wxStockCursor
, METH_VARARGS
| METH_KEYWORDS
},
12049 { "wxIconFromBitmap", (PyCFunction
) _wrap_wxIconFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12050 { "wxIconFromXPMData", (PyCFunction
) _wrap_wxIconFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12051 { "wxEmptyIcon", (PyCFunction
) _wrap_wxEmptyIcon
, METH_VARARGS
| METH_KEYWORDS
},
12052 { "wxMaskColour", (PyCFunction
) _wrap_wxMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
12053 { "wxBitmapFromBits", (PyCFunction
) _wrap_wxBitmapFromBits
, METH_VARARGS
| METH_KEYWORDS
},
12054 { "wxBitmapFromIcon", (PyCFunction
) _wrap_wxBitmapFromIcon
, METH_VARARGS
| METH_KEYWORDS
},
12055 { "wxBitmapFromXPMData", (PyCFunction
) _wrap_wxBitmapFromXPMData
, METH_VARARGS
| METH_KEYWORDS
},
12056 { "wxEmptyBitmap", (PyCFunction
) _wrap_wxEmptyBitmap
, METH_VARARGS
| METH_KEYWORDS
},
12063 * This table is used by the pointer type-checker
12065 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
12066 { "_signed_long","_long",0},
12067 { "_wxPrintQuality","_wxCoord",0},
12068 { "_wxPrintQuality","_int",0},
12069 { "_wxPrintQuality","_signed_int",0},
12070 { "_wxPrintQuality","_unsigned_int",0},
12071 { "_wxPrintQuality","_wxWindowID",0},
12072 { "_wxPrintQuality","_uint",0},
12073 { "_wxPrintQuality","_EBool",0},
12074 { "_wxPrintQuality","_size_t",0},
12075 { "_wxPrintQuality","_time_t",0},
12076 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen
},
12077 { "_byte","_unsigned_char",0},
12078 { "_long","_unsigned_long",0},
12079 { "_long","_signed_long",0},
12080 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject
},
12081 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject
},
12082 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject
},
12083 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject
},
12084 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject
},
12085 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject
},
12086 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject
},
12087 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject
},
12088 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject
},
12089 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC
},
12090 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC
},
12091 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC
},
12092 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC
},
12093 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC
},
12094 { "_size_t","_wxCoord",0},
12095 { "_size_t","_wxPrintQuality",0},
12096 { "_size_t","_time_t",0},
12097 { "_size_t","_unsigned_int",0},
12098 { "_size_t","_int",0},
12099 { "_size_t","_wxWindowID",0},
12100 { "_size_t","_uint",0},
12101 { "_uint","_wxCoord",0},
12102 { "_uint","_wxPrintQuality",0},
12103 { "_uint","_time_t",0},
12104 { "_uint","_size_t",0},
12105 { "_uint","_unsigned_int",0},
12106 { "_uint","_int",0},
12107 { "_uint","_wxWindowID",0},
12108 { "_wxChar","_char",0},
12109 { "_char","_wxChar",0},
12110 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12111 { "_EBool","_wxCoord",0},
12112 { "_EBool","_wxPrintQuality",0},
12113 { "_EBool","_signed_int",0},
12114 { "_EBool","_int",0},
12115 { "_EBool","_wxWindowID",0},
12116 { "_unsigned_long","_long",0},
12117 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12118 { "_signed_int","_wxCoord",0},
12119 { "_signed_int","_wxPrintQuality",0},
12120 { "_signed_int","_EBool",0},
12121 { "_signed_int","_wxWindowID",0},
12122 { "_signed_int","_int",0},
12123 { "_WXTYPE","_short",0},
12124 { "_WXTYPE","_signed_short",0},
12125 { "_WXTYPE","_unsigned_short",0},
12126 { "_unsigned_short","_WXTYPE",0},
12127 { "_unsigned_short","_short",0},
12128 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject
},
12129 { "_wxObject","_wxRegion",SwigwxRegionTowxObject
},
12130 { "_wxObject","_wxImageList",SwigwxImageListTowxObject
},
12131 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject
},
12132 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject
},
12133 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject
},
12134 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject
},
12135 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject
},
12136 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject
},
12137 { "_wxObject","_wxDC",SwigwxDCTowxObject
},
12138 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject
},
12139 { "_wxObject","_wxBrush",SwigwxBrushTowxObject
},
12140 { "_wxObject","_wxPenList",SwigwxPenListTowxObject
},
12141 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject
},
12142 { "_wxObject","_wxPen",SwigwxPenTowxObject
},
12143 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject
},
12144 { "_wxObject","_wxColour",SwigwxColourTowxObject
},
12145 { "_wxObject","_wxFontList",SwigwxFontListTowxObject
},
12146 { "_wxObject","_wxFont",SwigwxFontTowxObject
},
12147 { "_wxObject","_wxCursor",SwigwxCursorTowxObject
},
12148 { "_wxObject","_wxIcon",SwigwxIconTowxObject
},
12149 { "_wxObject","_wxMask",SwigwxMaskTowxObject
},
12150 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject
},
12151 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject
},
12152 { "_signed_short","_WXTYPE",0},
12153 { "_signed_short","_short",0},
12154 { "_unsigned_char","_byte",0},
12155 { "_unsigned_int","_wxCoord",0},
12156 { "_unsigned_int","_wxPrintQuality",0},
12157 { "_unsigned_int","_time_t",0},
12158 { "_unsigned_int","_size_t",0},
12159 { "_unsigned_int","_uint",0},
12160 { "_unsigned_int","_wxWindowID",0},
12161 { "_unsigned_int","_int",0},
12162 { "_short","_WXTYPE",0},
12163 { "_short","_unsigned_short",0},
12164 { "_short","_signed_short",0},
12165 { "_wxWindowID","_wxCoord",0},
12166 { "_wxWindowID","_wxPrintQuality",0},
12167 { "_wxWindowID","_time_t",0},
12168 { "_wxWindowID","_size_t",0},
12169 { "_wxWindowID","_EBool",0},
12170 { "_wxWindowID","_uint",0},
12171 { "_wxWindowID","_int",0},
12172 { "_wxWindowID","_signed_int",0},
12173 { "_wxWindowID","_unsigned_int",0},
12174 { "_int","_wxCoord",0},
12175 { "_int","_wxPrintQuality",0},
12176 { "_int","_time_t",0},
12177 { "_int","_size_t",0},
12178 { "_int","_EBool",0},
12179 { "_int","_uint",0},
12180 { "_int","_wxWindowID",0},
12181 { "_int","_unsigned_int",0},
12182 { "_int","_signed_int",0},
12183 { "_time_t","_wxCoord",0},
12184 { "_time_t","_wxPrintQuality",0},
12185 { "_time_t","_unsigned_int",0},
12186 { "_time_t","_int",0},
12187 { "_time_t","_wxWindowID",0},
12188 { "_time_t","_uint",0},
12189 { "_time_t","_size_t",0},
12190 { "_wxCoord","_int",0},
12191 { "_wxCoord","_signed_int",0},
12192 { "_wxCoord","_unsigned_int",0},
12193 { "_wxCoord","_wxWindowID",0},
12194 { "_wxCoord","_uint",0},
12195 { "_wxCoord","_EBool",0},
12196 { "_wxCoord","_size_t",0},
12197 { "_wxCoord","_time_t",0},
12198 { "_wxCoord","_wxPrintQuality",0},
12201 static PyObject
*SWIG_globals
;
12205 SWIGEXPORT(void) initgdic() {
12207 SWIG_globals
= SWIG_newvarlink();
12208 m
= Py_InitModule("gdic", gdicMethods
);
12209 d
= PyModule_GetDict(m
);
12210 PyDict_SetItemString(d
,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT
));
12211 PyDict_SetItemString(d
,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE
));
12212 PyDict_SetItemString(d
,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN
));
12213 PyDict_SetItemString(d
,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT
));
12214 PyDict_SetItemString(d
,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS
));
12215 PyDict_SetItemString(d
,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN
));
12216 PyDict_SetItemString(d
,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE
));
12217 PyDict_SetItemString(d
,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX
));
12218 PyDict_SetItemString(d
,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN
));
12219 PyDict_SetItemString(d
,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL
));
12220 PyDict_SetItemString(d
,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC
));
12221 PyDict_SetItemString(d
,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT
));
12222 PyDict_SetItemString(d
,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX
));
12223 PyDict_SetItemString(d
,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL
));
12224 PyDict_SetItemString(d
,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT
));
12225 PyDict_SetItemString(d
,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD
));
12226 PyDict_SetItemString(d
,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX
));
12227 PyDict_SetItemString(d
,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM
));
12228 PyDict_SetItemString(d
,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT
));
12229 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1
));
12230 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2
));
12231 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3
));
12232 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4
));
12233 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5
));
12234 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6
));
12235 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7
));
12236 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8
));
12237 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9
));
12238 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10
));
12239 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11
));
12240 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12
));
12241 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13
));
12242 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14
));
12243 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15
));
12244 PyDict_SetItemString(d
,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX
));
12245 PyDict_SetItemString(d
,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8
));
12246 PyDict_SetItemString(d
,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE
));
12247 PyDict_SetItemString(d
,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN
));
12248 PyDict_SetItemString(d
,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437
));
12249 PyDict_SetItemString(d
,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850
));
12250 PyDict_SetItemString(d
,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852
));
12251 PyDict_SetItemString(d
,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855
));
12252 PyDict_SetItemString(d
,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866
));
12253 PyDict_SetItemString(d
,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874
));
12254 PyDict_SetItemString(d
,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932
));
12255 PyDict_SetItemString(d
,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936
));
12256 PyDict_SetItemString(d
,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949
));
12257 PyDict_SetItemString(d
,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950
));
12258 PyDict_SetItemString(d
,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250
));
12259 PyDict_SetItemString(d
,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251
));
12260 PyDict_SetItemString(d
,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252
));
12261 PyDict_SetItemString(d
,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253
));
12262 PyDict_SetItemString(d
,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254
));
12263 PyDict_SetItemString(d
,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255
));
12264 PyDict_SetItemString(d
,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256
));
12265 PyDict_SetItemString(d
,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257
));
12266 PyDict_SetItemString(d
,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX
));
12267 PyDict_SetItemString(d
,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7
));
12268 PyDict_SetItemString(d
,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8
));
12269 PyDict_SetItemString(d
,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE
));
12270 PyDict_SetItemString(d
,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX
));
12271 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL
));
12272 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT
));
12273 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED
));
12274 PyDict_SetItemString(d
,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED
));
12275 PyDict_SetItemString(d
,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL
));
12276 PyDict_SetItemString(d
,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL
));
12277 PyDict_SetItemString(d
,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE
));
12278 PyDict_SetItemString(d
,"wxOutRegion", PyInt_FromLong((long) wxOutRegion
));
12279 PyDict_SetItemString(d
,"wxPartRegion", PyInt_FromLong((long) wxPartRegion
));
12280 PyDict_SetItemString(d
,"wxInRegion", PyInt_FromLong((long) wxInRegion
));
12281 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
12282 SWIG_addvarlink(SWIG_globals
,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get
, _wrap_wxNORMAL_FONT_set
);
12283 SWIG_addvarlink(SWIG_globals
,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get
, _wrap_wxSMALL_FONT_set
);
12284 SWIG_addvarlink(SWIG_globals
,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get
, _wrap_wxITALIC_FONT_set
);
12285 SWIG_addvarlink(SWIG_globals
,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get
, _wrap_wxSWISS_FONT_set
);
12286 SWIG_addvarlink(SWIG_globals
,"wxRED_PEN",_wrap_wxRED_PEN_get
, _wrap_wxRED_PEN_set
);
12287 SWIG_addvarlink(SWIG_globals
,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get
, _wrap_wxCYAN_PEN_set
);
12288 SWIG_addvarlink(SWIG_globals
,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get
, _wrap_wxGREEN_PEN_set
);
12289 SWIG_addvarlink(SWIG_globals
,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get
, _wrap_wxBLACK_PEN_set
);
12290 SWIG_addvarlink(SWIG_globals
,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get
, _wrap_wxWHITE_PEN_set
);
12291 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get
, _wrap_wxTRANSPARENT_PEN_set
);
12292 SWIG_addvarlink(SWIG_globals
,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get
, _wrap_wxBLACK_DASHED_PEN_set
);
12293 SWIG_addvarlink(SWIG_globals
,"wxGREY_PEN",_wrap_wxGREY_PEN_get
, _wrap_wxGREY_PEN_set
);
12294 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get
, _wrap_wxMEDIUM_GREY_PEN_set
);
12295 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get
, _wrap_wxLIGHT_GREY_PEN_set
);
12296 SWIG_addvarlink(SWIG_globals
,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get
, _wrap_wxBLUE_BRUSH_set
);
12297 SWIG_addvarlink(SWIG_globals
,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get
, _wrap_wxGREEN_BRUSH_set
);
12298 SWIG_addvarlink(SWIG_globals
,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get
, _wrap_wxWHITE_BRUSH_set
);
12299 SWIG_addvarlink(SWIG_globals
,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get
, _wrap_wxBLACK_BRUSH_set
);
12300 SWIG_addvarlink(SWIG_globals
,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get
, _wrap_wxTRANSPARENT_BRUSH_set
);
12301 SWIG_addvarlink(SWIG_globals
,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get
, _wrap_wxCYAN_BRUSH_set
);
12302 SWIG_addvarlink(SWIG_globals
,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get
, _wrap_wxRED_BRUSH_set
);
12303 SWIG_addvarlink(SWIG_globals
,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get
, _wrap_wxGREY_BRUSH_set
);
12304 SWIG_addvarlink(SWIG_globals
,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get
, _wrap_wxMEDIUM_GREY_BRUSH_set
);
12305 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get
, _wrap_wxLIGHT_GREY_BRUSH_set
);
12306 SWIG_addvarlink(SWIG_globals
,"wxBLACK",_wrap_wxBLACK_get
, _wrap_wxBLACK_set
);
12307 SWIG_addvarlink(SWIG_globals
,"wxWHITE",_wrap_wxWHITE_get
, _wrap_wxWHITE_set
);
12308 SWIG_addvarlink(SWIG_globals
,"wxRED",_wrap_wxRED_get
, _wrap_wxRED_set
);
12309 SWIG_addvarlink(SWIG_globals
,"wxBLUE",_wrap_wxBLUE_get
, _wrap_wxBLUE_set
);
12310 SWIG_addvarlink(SWIG_globals
,"wxGREEN",_wrap_wxGREEN_get
, _wrap_wxGREEN_set
);
12311 SWIG_addvarlink(SWIG_globals
,"wxCYAN",_wrap_wxCYAN_get
, _wrap_wxCYAN_set
);
12312 SWIG_addvarlink(SWIG_globals
,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get
, _wrap_wxLIGHT_GREY_set
);
12313 SWIG_addvarlink(SWIG_globals
,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get
, _wrap_wxSTANDARD_CURSOR_set
);
12314 SWIG_addvarlink(SWIG_globals
,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get
, _wrap_wxHOURGLASS_CURSOR_set
);
12315 SWIG_addvarlink(SWIG_globals
,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get
, _wrap_wxCROSS_CURSOR_set
);
12316 SWIG_addvarlink(SWIG_globals
,"wxNullBitmap",_wrap_wxNullBitmap_get
, _wrap_wxNullBitmap_set
);
12317 SWIG_addvarlink(SWIG_globals
,"wxNullIcon",_wrap_wxNullIcon_get
, _wrap_wxNullIcon_set
);
12318 SWIG_addvarlink(SWIG_globals
,"wxNullCursor",_wrap_wxNullCursor_get
, _wrap_wxNullCursor_set
);
12319 SWIG_addvarlink(SWIG_globals
,"wxNullPen",_wrap_wxNullPen_get
, _wrap_wxNullPen_set
);
12320 SWIG_addvarlink(SWIG_globals
,"wxNullBrush",_wrap_wxNullBrush_get
, _wrap_wxNullBrush_set
);
12321 SWIG_addvarlink(SWIG_globals
,"wxNullPalette",_wrap_wxNullPalette_get
, _wrap_wxNullPalette_set
);
12322 SWIG_addvarlink(SWIG_globals
,"wxNullFont",_wrap_wxNullFont_get
, _wrap_wxNullFont_set
);
12323 SWIG_addvarlink(SWIG_globals
,"wxNullColour",_wrap_wxNullColour_get
, _wrap_wxNullColour_set
);
12324 SWIG_addvarlink(SWIG_globals
,"wxTheFontList",_wrap_wxTheFontList_get
, _wrap_wxTheFontList_set
);
12325 SWIG_addvarlink(SWIG_globals
,"wxThePenList",_wrap_wxThePenList_get
, _wrap_wxThePenList_set
);
12326 SWIG_addvarlink(SWIG_globals
,"wxTheBrushList",_wrap_wxTheBrushList_get
, _wrap_wxTheBrushList_set
);
12327 SWIG_addvarlink(SWIG_globals
,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get
, _wrap_wxTheColourDatabase_set
);
12330 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
12331 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);