]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/gdi.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 RD |
7 | * |
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. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
70551f47 RD |
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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
21f8d7ea | 59 | #include <wx/imaglist.h> |
059a841c RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
a884bee5 | 64 | #include <wx/dcbuffer.h> |
70551f47 | 65 | |
70551f47 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
3bcd5e1c | 71 | if (!target) { |
70551f47 | 72 | target = o; |
3bcd5e1c | 73 | } else if (target == Py_None) { |
70551f47 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
3bcd5e1c | 76 | } else { |
70551f47 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
3bcd5e1c RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
84 | |
85 | o2 = target; | |
3bcd5e1c RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
70551f47 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
fbcadfca RD |
92 | // Implementations of some alternate "constructors" |
93 | ||
70551f47 RD |
94 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
95 | return new wxBitmap(width, height, depth); | |
96 | } | |
97 | ||
fbcadfca RD |
98 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
99 | char** cArray = NULL; | |
100 | int count; | |
101 | ||
102 | if (!PyList_Check(listOfStrings)) { | |
103 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
104 | return NULL; | |
105 | } | |
106 | count = PyList_Size(listOfStrings); | |
107 | cArray = new char*[count]; | |
108 | ||
109 | for(int x=0; x<count; x++) { | |
110 | // TODO: Need some validation and error checking here | |
111 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
112 | } | |
113 | return cArray; | |
114 | } | |
115 | ||
9d6da64a | 116 | |
fbcadfca RD |
117 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
118 | char** cArray = NULL; | |
119 | wxBitmap* bmp; | |
120 | ||
121 | cArray = ConvertListOfStrings(listOfStrings); | |
122 | if (! cArray) | |
123 | return NULL; | |
124 | bmp = new wxBitmap(cArray); | |
125 | delete [] cArray; | |
126 | return bmp; | |
127 | } | |
128 | ||
129 | ||
130 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
131 | return new wxBitmap(icon); | |
132 | } | |
133 | ||
134 | ||
9d6da64a RD |
135 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
136 | return new wxBitmap(bits, width, height, depth); | |
137 | } | |
9e689c06 | 138 | |
7ff49f0c | 139 | |
9d6da64a RD |
140 | // #ifdef __WXMSW__ |
141 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
142 | // int width, int height, int depth = 1) { | |
143 | // if (! PyString_Check(data)) { | |
144 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
145 | // return NULL; | |
146 | // } | |
147 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
148 | // } | |
149 | // #endif | |
8bf5d46e | 150 | |
70551f47 RD |
151 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
152 | return new wxMask(bitmap, colour); | |
fbcadfca RD |
153 | } |
154 | // Implementations of some alternate "constructors" | |
155 | wxIcon* wxEmptyIcon() { | |
156 | return new wxIcon(); | |
157 | } | |
158 | ||
159 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
160 | char** cArray = NULL; | |
161 | wxIcon* icon; | |
162 | ||
163 | cArray = ConvertListOfStrings(listOfStrings); | |
164 | if (! cArray) | |
165 | return NULL; | |
166 | icon = new wxIcon(cArray); | |
167 | delete [] cArray; | |
168 | return icon; | |
70551f47 | 169 | } |
4be61064 RD |
170 | |
171 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
172 | wxIcon* icon = new wxIcon(); | |
173 | icon->CopyFromBitmap(bmp); | |
174 | return icon; | |
175 | } | |
70551f47 | 176 | // Alternate 'constructor' |
b26e2dc4 | 177 | wxCursor* wxPyStockCursor(int id) { |
70551f47 RD |
178 | return new wxCursor(id); |
179 | } | |
180 | // Alternate 'constructor' | |
181 | wxColour* wxNamedColour(const wxString& colorName) { | |
182 | return new wxColour(colorName); | |
183 | } | |
65191ae8 RD |
184 | |
185 | class wxPyPen : public wxPen { | |
186 | public: | |
187 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
188 | : wxPen(colour, width, style) | |
189 | { m_dash = NULL; } | |
190 | ~wxPyPen() { | |
191 | if (m_dash) | |
05f30eec | 192 | delete [] m_dash; |
65191ae8 RD |
193 | } |
194 | ||
195 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
05f30eec RD |
196 | if (m_dash) |
197 | delete [] m_dash; | |
65191ae8 | 198 | m_dash = new wxDash[nb_dashes]; |
05f30eec | 199 | for (int i=0; i<nb_dashes; i++) { |
65191ae8 | 200 | m_dash[i] = dash[i]; |
05f30eec | 201 | } |
65191ae8 RD |
202 | wxPen::SetDashes(nb_dashes, m_dash); |
203 | } | |
204 | ||
205 | private: | |
206 | wxDash* m_dash; | |
207 | }; | |
3bcd5e1c RD |
208 | |
209 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
210 | *x1 = dc->MinX(); | |
211 | *y1 = dc->MinY(); | |
212 | *x2 = dc->MaxX(); | |
213 | *y2 = dc->MaxY(); | |
214 | } | |
70551f47 RD |
215 | // Alternate 'constructor' |
216 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
217 | return new wxMemoryDC(oldDC); | |
218 | } | |
21f8d7ea RD |
219 | |
220 | #if 0 | |
70551f47 RD |
221 | extern wxFont * wxNORMAL_FONT; |
222 | extern wxFont * wxSMALL_FONT; | |
223 | extern wxFont * wxITALIC_FONT; | |
224 | extern wxFont * wxSWISS_FONT; | |
225 | extern wxPen * wxRED_PEN; | |
226 | extern wxPen * wxCYAN_PEN; | |
227 | extern wxPen * wxGREEN_PEN; | |
228 | extern wxPen * wxBLACK_PEN; | |
229 | extern wxPen * wxWHITE_PEN; | |
230 | extern wxPen * wxTRANSPARENT_PEN; | |
231 | extern wxPen * wxBLACK_DASHED_PEN; | |
232 | extern wxPen * wxGREY_PEN; | |
233 | extern wxPen * wxMEDIUM_GREY_PEN; | |
234 | extern wxPen * wxLIGHT_GREY_PEN; | |
235 | extern wxBrush * wxBLUE_BRUSH; | |
236 | extern wxBrush * wxGREEN_BRUSH; | |
237 | extern wxBrush * wxWHITE_BRUSH; | |
238 | extern wxBrush * wxBLACK_BRUSH; | |
239 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
240 | extern wxBrush * wxCYAN_BRUSH; | |
241 | extern wxBrush * wxRED_BRUSH; | |
242 | extern wxBrush * wxGREY_BRUSH; | |
243 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
244 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
245 | extern wxColour * wxBLACK; | |
246 | extern wxColour * wxWHITE; | |
247 | extern wxColour * wxRED; | |
248 | extern wxColour * wxBLUE; | |
249 | extern wxColour * wxGREEN; | |
250 | extern wxColour * wxCYAN; | |
251 | extern wxColour * wxLIGHT_GREY; | |
252 | extern wxCursor * wxSTANDARD_CURSOR; | |
253 | extern wxCursor * wxHOURGLASS_CURSOR; | |
254 | extern wxCursor * wxCROSS_CURSOR; | |
255 | extern wxBitmap wxNullBitmap; | |
256 | extern wxIcon wxNullIcon; | |
257 | extern wxCursor wxNullCursor; | |
258 | extern wxPen wxNullPen; | |
259 | extern wxBrush wxNullBrush; | |
260 | extern wxPalette wxNullPalette; | |
261 | extern wxFont wxNullFont; | |
262 | extern wxColour wxNullColour; | |
5e40f9dd RD |
263 | extern wxFontList * wxTheFontList; |
264 | extern wxPenList * wxThePenList; | |
65191ae8 | 265 | extern wxBrushList * wxTheBrushList; |
5e40f9dd | 266 | extern wxColourDatabase * wxTheColourDatabase; |
21f8d7ea | 267 | |
2d091820 RD |
268 | #endif |
269 | #ifdef __cplusplus | |
270 | extern "C" { | |
21f8d7ea | 271 | #endif |
107e4716 | 272 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
273 | PyObject * _resultobj; |
274 | wxBitmap * _result; | |
275 | int _arg0; | |
276 | int _arg1; | |
2d091820 | 277 | int _arg2 = (int ) -1; |
107e4716 | 278 | char *_kwnames[] = { "width","height","depth", NULL }; |
70551f47 RD |
279 | char _ptemp[128]; |
280 | ||
281 | self = self; | |
107e4716 | 282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 283 | return NULL; |
ab9bc19b | 284 | { |
474c48f9 | 285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 286 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
ab9bc19b | 287 | |
474c48f9 | 288 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 289 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
290 | } if (_result) { |
291 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
292 | _resultobj = Py_BuildValue("s",_ptemp); | |
293 | } else { | |
294 | Py_INCREF(Py_None); | |
295 | _resultobj = Py_None; | |
296 | } | |
70551f47 RD |
297 | return _resultobj; |
298 | } | |
299 | ||
fbcadfca RD |
300 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
301 | PyObject * _resultobj; | |
302 | wxBitmap * _result; | |
303 | PyObject * _arg0; | |
304 | PyObject * _obj0 = 0; | |
305 | char *_kwnames[] = { "listOfStrings", NULL }; | |
306 | char _ptemp[128]; | |
307 | ||
308 | self = self; | |
309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
310 | return NULL; | |
311 | { | |
312 | _arg0 = _obj0; | |
313 | } | |
314 | { | |
474c48f9 | 315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 316 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
fbcadfca | 317 | |
474c48f9 | 318 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 319 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
320 | } if (_result) { |
321 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
322 | _resultobj = Py_BuildValue("s",_ptemp); | |
323 | } else { | |
324 | Py_INCREF(Py_None); | |
325 | _resultobj = Py_None; | |
326 | } | |
327 | return _resultobj; | |
328 | } | |
329 | ||
330 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
331 | PyObject * _resultobj; | |
332 | wxBitmap * _result; | |
333 | wxIcon * _arg0; | |
334 | PyObject * _argo0 = 0; | |
335 | char *_kwnames[] = { "icon", NULL }; | |
336 | char _ptemp[128]; | |
337 | ||
338 | self = self; | |
339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
340 | return NULL; | |
341 | if (_argo0) { | |
342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
345 | return NULL; | |
346 | } | |
347 | } | |
348 | { | |
474c48f9 | 349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 350 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
fbcadfca | 351 | |
474c48f9 | 352 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 353 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
354 | } if (_result) { |
355 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
356 | _resultobj = Py_BuildValue("s",_ptemp); | |
357 | } else { | |
358 | Py_INCREF(Py_None); | |
359 | _resultobj = Py_None; | |
360 | } | |
361 | return _resultobj; | |
362 | } | |
363 | ||
9d6da64a RD |
364 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
365 | PyObject * _resultobj; | |
366 | wxBitmap * _result; | |
367 | char * _arg0; | |
368 | int _arg1; | |
369 | int _arg2; | |
370 | int _arg3 = (int ) 1; | |
371 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
372 | char _ptemp[128]; | |
373 | ||
374 | self = self; | |
375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
376 | return NULL; | |
377 | { | |
474c48f9 | 378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 379 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
9d6da64a | 380 | |
474c48f9 | 381 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
382 | if (PyErr_Occurred()) return NULL; |
383 | } if (_result) { | |
384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
385 | _resultobj = Py_BuildValue("s",_ptemp); | |
386 | } else { | |
387 | Py_INCREF(Py_None); | |
388 | _resultobj = Py_None; | |
389 | } | |
390 | return _resultobj; | |
391 | } | |
392 | ||
107e4716 | 393 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
394 | PyObject * _resultobj; |
395 | wxMask * _result; | |
396 | wxBitmap * _arg0; | |
397 | wxColour * _arg1; | |
2d091820 | 398 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
399 | wxColour temp; |
400 | PyObject * _obj1 = 0; | |
107e4716 | 401 | char *_kwnames[] = { "bitmap","colour", NULL }; |
70551f47 RD |
402 | char _ptemp[128]; |
403 | ||
404 | self = self; | |
f6bcfd97 | 405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 406 | return NULL; |
2d091820 RD |
407 | if (_argo0) { |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
411 | return NULL; | |
412 | } | |
413 | } | |
f6bcfd97 BP |
414 | { |
415 | _arg1 = &temp; | |
416 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 417 | return NULL; |
f6bcfd97 | 418 | } |
ab9bc19b | 419 | { |
474c48f9 | 420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 421 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
ab9bc19b | 422 | |
474c48f9 | 423 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 424 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
425 | } if (_result) { |
426 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
427 | _resultobj = Py_BuildValue("s",_ptemp); | |
428 | } else { | |
429 | Py_INCREF(Py_None); | |
430 | _resultobj = Py_None; | |
431 | } | |
70551f47 RD |
432 | return _resultobj; |
433 | } | |
434 | ||
fbcadfca RD |
435 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
436 | PyObject * _resultobj; | |
437 | wxIcon * _result; | |
438 | char *_kwnames[] = { NULL }; | |
439 | char _ptemp[128]; | |
440 | ||
441 | self = self; | |
442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
443 | return NULL; | |
444 | { | |
474c48f9 | 445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 446 | _result = (wxIcon *)wxEmptyIcon(); |
fbcadfca | 447 | |
474c48f9 | 448 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 449 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
450 | } if (_result) { |
451 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
452 | _resultobj = Py_BuildValue("s",_ptemp); | |
453 | } else { | |
454 | Py_INCREF(Py_None); | |
455 | _resultobj = Py_None; | |
456 | } | |
457 | return _resultobj; | |
458 | } | |
459 | ||
460 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
461 | PyObject * _resultobj; | |
462 | wxIcon * _result; | |
463 | PyObject * _arg0; | |
464 | PyObject * _obj0 = 0; | |
465 | char *_kwnames[] = { "listOfStrings", NULL }; | |
466 | char _ptemp[128]; | |
467 | ||
468 | self = self; | |
469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
470 | return NULL; | |
471 | { | |
472 | _arg0 = _obj0; | |
473 | } | |
474 | { | |
474c48f9 | 475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 476 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
fbcadfca | 477 | |
474c48f9 | 478 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 479 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
480 | } if (_result) { |
481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
482 | _resultobj = Py_BuildValue("s",_ptemp); | |
483 | } else { | |
484 | Py_INCREF(Py_None); | |
485 | _resultobj = Py_None; | |
486 | } | |
487 | return _resultobj; | |
488 | } | |
489 | ||
4be61064 RD |
490 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
491 | PyObject * _resultobj; | |
492 | wxIcon * _result; | |
493 | wxBitmap * _arg0; | |
494 | PyObject * _argo0 = 0; | |
495 | char *_kwnames[] = { "bmp", NULL }; | |
496 | char _ptemp[128]; | |
497 | ||
498 | self = self; | |
499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
500 | return NULL; | |
501 | if (_argo0) { | |
502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
505 | return NULL; | |
506 | } | |
507 | } | |
508 | { | |
509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 510 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
4be61064 RD |
511 | |
512 | wxPyEndAllowThreads(__tstate); | |
513 | if (PyErr_Occurred()) return NULL; | |
514 | } if (_result) { | |
515 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
516 | _resultobj = Py_BuildValue("s",_ptemp); | |
517 | } else { | |
518 | Py_INCREF(Py_None); | |
519 | _resultobj = Py_None; | |
520 | } | |
521 | return _resultobj; | |
522 | } | |
523 | ||
107e4716 | 524 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
525 | PyObject * _resultobj; |
526 | wxCursor * _result; | |
527 | int _arg0; | |
107e4716 | 528 | char *_kwnames[] = { "id", NULL }; |
70551f47 RD |
529 | char _ptemp[128]; |
530 | ||
531 | self = self; | |
107e4716 | 532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
70551f47 | 533 | return NULL; |
ab9bc19b | 534 | { |
474c48f9 | 535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 536 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
ab9bc19b | 537 | |
474c48f9 | 538 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 539 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
540 | } if (_result) { |
541 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
542 | _resultobj = Py_BuildValue("s",_ptemp); | |
543 | } else { | |
544 | Py_INCREF(Py_None); | |
545 | _resultobj = Py_None; | |
546 | } | |
70551f47 RD |
547 | return _resultobj; |
548 | } | |
549 | ||
107e4716 | 550 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
551 | PyObject * _resultobj; |
552 | wxColour * _result; | |
553 | wxString * _arg0; | |
554 | PyObject * _obj0 = 0; | |
107e4716 | 555 | char *_kwnames[] = { "colorName", NULL }; |
70551f47 RD |
556 | char _ptemp[128]; |
557 | ||
558 | self = self; | |
107e4716 | 559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
70551f47 RD |
560 | return NULL; |
561 | { | |
c8bc7bb8 RD |
562 | _arg0 = wxString_in_helper(_obj0); |
563 | if (_arg0 == NULL) | |
70551f47 | 564 | return NULL; |
70551f47 | 565 | } |
ab9bc19b | 566 | { |
474c48f9 | 567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 568 | _result = (wxColour *)wxNamedColour(*_arg0); |
ab9bc19b | 569 | |
474c48f9 | 570 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 571 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
572 | } if (_result) { |
573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
574 | _resultobj = Py_BuildValue("s",_ptemp); | |
575 | } else { | |
576 | Py_INCREF(Py_None); | |
577 | _resultobj = Py_None; | |
578 | } | |
70551f47 RD |
579 | { |
580 | if (_obj0) | |
581 | delete _arg0; | |
582 | } | |
583 | return _resultobj; | |
584 | } | |
585 | ||
107e4716 | 586 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
587 | PyObject * _resultobj; |
588 | wxMemoryDC * _result; | |
589 | wxDC * _arg0; | |
2d091820 | 590 | PyObject * _argo0 = 0; |
107e4716 | 591 | char *_kwnames[] = { "oldDC", NULL }; |
70551f47 RD |
592 | char _ptemp[128]; |
593 | ||
594 | self = self; | |
107e4716 | 595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
70551f47 | 596 | return NULL; |
2d091820 RD |
597 | if (_argo0) { |
598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
601 | return NULL; | |
602 | } | |
603 | } | |
ab9bc19b | 604 | { |
474c48f9 | 605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 606 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
ab9bc19b | 607 | |
474c48f9 | 608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 609 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
610 | } if (_result) { |
611 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
612 | _resultobj = Py_BuildValue("s",_ptemp); | |
613 | } else { | |
614 | Py_INCREF(Py_None); | |
615 | _resultobj = Py_None; | |
616 | } | |
70551f47 RD |
617 | return _resultobj; |
618 | } | |
619 | ||
620 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
621 | ||
622 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
623 | return 1; | |
624 | } | |
625 | ||
626 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
627 | PyObject * pyobj; | |
628 | char ptemp[128]; | |
629 | ||
630 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
631 | pyobj = PyString_FromString(ptemp); | |
632 | return pyobj; | |
633 | } | |
634 | ||
635 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
636 | ||
637 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
638 | return 1; | |
639 | } | |
640 | ||
641 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
642 | PyObject * pyobj; | |
643 | char ptemp[128]; | |
644 | ||
645 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
646 | pyobj = PyString_FromString(ptemp); | |
647 | return pyobj; | |
648 | } | |
649 | ||
650 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
651 | ||
652 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
653 | return 1; | |
654 | } | |
655 | ||
656 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
657 | PyObject * pyobj; | |
658 | char ptemp[128]; | |
659 | ||
660 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
661 | pyobj = PyString_FromString(ptemp); | |
662 | return pyobj; | |
663 | } | |
664 | ||
665 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
666 | ||
667 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
668 | return 1; | |
669 | } | |
670 | ||
671 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
672 | PyObject * pyobj; | |
673 | char ptemp[128]; | |
674 | ||
675 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
676 | pyobj = PyString_FromString(ptemp); | |
677 | return pyobj; | |
678 | } | |
679 | ||
680 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
681 | ||
682 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
683 | return 1; | |
684 | } | |
685 | ||
686 | static PyObject *_wrap_wxRED_PEN_get() { | |
687 | PyObject * pyobj; | |
688 | char ptemp[128]; | |
689 | ||
690 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
691 | pyobj = PyString_FromString(ptemp); | |
692 | return pyobj; | |
693 | } | |
694 | ||
695 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
696 | ||
697 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
698 | return 1; | |
699 | } | |
700 | ||
701 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
702 | PyObject * pyobj; | |
703 | char ptemp[128]; | |
704 | ||
705 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
706 | pyobj = PyString_FromString(ptemp); | |
707 | return pyobj; | |
708 | } | |
709 | ||
710 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
711 | ||
712 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
713 | return 1; | |
714 | } | |
715 | ||
716 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
717 | PyObject * pyobj; | |
718 | char ptemp[128]; | |
719 | ||
720 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
721 | pyobj = PyString_FromString(ptemp); | |
722 | return pyobj; | |
723 | } | |
724 | ||
725 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
726 | ||
727 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
728 | return 1; | |
729 | } | |
730 | ||
731 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
732 | PyObject * pyobj; | |
733 | char ptemp[128]; | |
734 | ||
735 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
736 | pyobj = PyString_FromString(ptemp); | |
737 | return pyobj; | |
738 | } | |
739 | ||
740 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
741 | ||
742 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
743 | return 1; | |
744 | } | |
745 | ||
746 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
747 | PyObject * pyobj; | |
748 | char ptemp[128]; | |
749 | ||
750 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
751 | pyobj = PyString_FromString(ptemp); | |
752 | return pyobj; | |
753 | } | |
754 | ||
755 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
756 | ||
757 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
758 | return 1; | |
759 | } | |
760 | ||
761 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
762 | PyObject * pyobj; | |
763 | char ptemp[128]; | |
764 | ||
765 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
766 | pyobj = PyString_FromString(ptemp); | |
767 | return pyobj; | |
768 | } | |
769 | ||
770 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
771 | ||
772 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
773 | return 1; | |
774 | } | |
775 | ||
776 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
777 | PyObject * pyobj; | |
778 | char ptemp[128]; | |
779 | ||
780 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
781 | pyobj = PyString_FromString(ptemp); | |
782 | return pyobj; | |
783 | } | |
784 | ||
785 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
786 | ||
787 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
788 | return 1; | |
789 | } | |
790 | ||
791 | static PyObject *_wrap_wxGREY_PEN_get() { | |
792 | PyObject * pyobj; | |
793 | char ptemp[128]; | |
794 | ||
795 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
796 | pyobj = PyString_FromString(ptemp); | |
797 | return pyobj; | |
798 | } | |
799 | ||
800 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
801 | ||
802 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
803 | return 1; | |
804 | } | |
805 | ||
806 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
807 | PyObject * pyobj; | |
808 | char ptemp[128]; | |
809 | ||
810 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
811 | pyobj = PyString_FromString(ptemp); | |
812 | return pyobj; | |
813 | } | |
814 | ||
815 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
816 | ||
817 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
818 | return 1; | |
819 | } | |
820 | ||
821 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
822 | PyObject * pyobj; | |
823 | char ptemp[128]; | |
824 | ||
825 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
826 | pyobj = PyString_FromString(ptemp); | |
827 | return pyobj; | |
828 | } | |
829 | ||
830 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
831 | ||
832 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
833 | return 1; | |
834 | } | |
835 | ||
836 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
837 | PyObject * pyobj; | |
838 | char ptemp[128]; | |
839 | ||
840 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
841 | pyobj = PyString_FromString(ptemp); | |
842 | return pyobj; | |
843 | } | |
844 | ||
845 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
846 | ||
847 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
848 | return 1; | |
849 | } | |
850 | ||
851 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
852 | PyObject * pyobj; | |
853 | char ptemp[128]; | |
854 | ||
855 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
856 | pyobj = PyString_FromString(ptemp); | |
857 | return pyobj; | |
858 | } | |
859 | ||
860 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
861 | ||
862 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
863 | return 1; | |
864 | } | |
865 | ||
866 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
867 | PyObject * pyobj; | |
868 | char ptemp[128]; | |
869 | ||
870 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
871 | pyobj = PyString_FromString(ptemp); | |
872 | return pyobj; | |
873 | } | |
874 | ||
875 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
876 | ||
877 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
878 | return 1; | |
879 | } | |
880 | ||
881 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
882 | PyObject * pyobj; | |
883 | char ptemp[128]; | |
884 | ||
885 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
886 | pyobj = PyString_FromString(ptemp); | |
887 | return pyobj; | |
888 | } | |
889 | ||
890 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
891 | ||
892 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
893 | return 1; | |
894 | } | |
895 | ||
896 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
897 | PyObject * pyobj; | |
898 | char ptemp[128]; | |
899 | ||
900 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
901 | pyobj = PyString_FromString(ptemp); | |
902 | return pyobj; | |
903 | } | |
904 | ||
905 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
906 | ||
907 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
908 | return 1; | |
909 | } | |
910 | ||
911 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
912 | PyObject * pyobj; | |
913 | char ptemp[128]; | |
914 | ||
915 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
916 | pyobj = PyString_FromString(ptemp); | |
917 | return pyobj; | |
918 | } | |
919 | ||
920 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
921 | ||
922 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
923 | return 1; | |
924 | } | |
925 | ||
926 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
927 | PyObject * pyobj; | |
928 | char ptemp[128]; | |
929 | ||
930 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
931 | pyobj = PyString_FromString(ptemp); | |
932 | return pyobj; | |
933 | } | |
934 | ||
935 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
936 | ||
937 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
938 | return 1; | |
939 | } | |
940 | ||
941 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
942 | PyObject * pyobj; | |
943 | char ptemp[128]; | |
944 | ||
945 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
946 | pyobj = PyString_FromString(ptemp); | |
947 | return pyobj; | |
948 | } | |
949 | ||
950 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
951 | ||
952 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
953 | return 1; | |
954 | } | |
955 | ||
956 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
957 | PyObject * pyobj; | |
958 | char ptemp[128]; | |
959 | ||
960 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
961 | pyobj = PyString_FromString(ptemp); | |
962 | return pyobj; | |
963 | } | |
964 | ||
965 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
966 | ||
967 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
968 | return 1; | |
969 | } | |
970 | ||
971 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
972 | PyObject * pyobj; | |
973 | char ptemp[128]; | |
974 | ||
975 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
976 | pyobj = PyString_FromString(ptemp); | |
977 | return pyobj; | |
978 | } | |
979 | ||
980 | static int _wrap_wxBLACK_set(PyObject *val) { | |
981 | ||
982 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
983 | return 1; | |
984 | } | |
985 | ||
986 | static PyObject *_wrap_wxBLACK_get() { | |
987 | PyObject * pyobj; | |
988 | char ptemp[128]; | |
989 | ||
990 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
991 | pyobj = PyString_FromString(ptemp); | |
992 | return pyobj; | |
993 | } | |
994 | ||
995 | static int _wrap_wxWHITE_set(PyObject *val) { | |
996 | ||
997 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
998 | return 1; | |
999 | } | |
1000 | ||
1001 | static PyObject *_wrap_wxWHITE_get() { | |
1002 | PyObject * pyobj; | |
1003 | char ptemp[128]; | |
1004 | ||
1005 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1006 | pyobj = PyString_FromString(ptemp); | |
1007 | return pyobj; | |
1008 | } | |
1009 | ||
1010 | static int _wrap_wxRED_set(PyObject *val) { | |
1011 | ||
1012 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1013 | return 1; | |
1014 | } | |
1015 | ||
1016 | static PyObject *_wrap_wxRED_get() { | |
1017 | PyObject * pyobj; | |
1018 | char ptemp[128]; | |
1019 | ||
1020 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1021 | pyobj = PyString_FromString(ptemp); | |
1022 | return pyobj; | |
1023 | } | |
1024 | ||
1025 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1026 | ||
1027 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1028 | return 1; | |
1029 | } | |
1030 | ||
1031 | static PyObject *_wrap_wxBLUE_get() { | |
1032 | PyObject * pyobj; | |
1033 | char ptemp[128]; | |
1034 | ||
1035 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1036 | pyobj = PyString_FromString(ptemp); | |
1037 | return pyobj; | |
1038 | } | |
1039 | ||
1040 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1041 | ||
1042 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1043 | return 1; | |
1044 | } | |
1045 | ||
1046 | static PyObject *_wrap_wxGREEN_get() { | |
1047 | PyObject * pyobj; | |
1048 | char ptemp[128]; | |
1049 | ||
1050 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1051 | pyobj = PyString_FromString(ptemp); | |
1052 | return pyobj; | |
1053 | } | |
1054 | ||
1055 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1056 | ||
1057 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1058 | return 1; | |
1059 | } | |
1060 | ||
1061 | static PyObject *_wrap_wxCYAN_get() { | |
1062 | PyObject * pyobj; | |
1063 | char ptemp[128]; | |
1064 | ||
1065 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1066 | pyobj = PyString_FromString(ptemp); | |
1067 | return pyobj; | |
1068 | } | |
1069 | ||
1070 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1071 | ||
1072 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1073 | return 1; | |
1074 | } | |
1075 | ||
1076 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1077 | PyObject * pyobj; | |
1078 | char ptemp[128]; | |
1079 | ||
1080 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1081 | pyobj = PyString_FromString(ptemp); | |
1082 | return pyobj; | |
1083 | } | |
1084 | ||
1085 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1086 | ||
1087 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1088 | return 1; | |
1089 | } | |
1090 | ||
1091 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1092 | PyObject * pyobj; | |
1093 | char ptemp[128]; | |
1094 | ||
1095 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1096 | pyobj = PyString_FromString(ptemp); | |
1097 | return pyobj; | |
1098 | } | |
1099 | ||
1100 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1101 | ||
1102 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1103 | return 1; | |
1104 | } | |
1105 | ||
1106 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1107 | PyObject * pyobj; | |
1108 | char ptemp[128]; | |
1109 | ||
1110 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1111 | pyobj = PyString_FromString(ptemp); | |
1112 | return pyobj; | |
1113 | } | |
1114 | ||
1115 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1116 | ||
1117 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1118 | return 1; | |
1119 | } | |
1120 | ||
1121 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1122 | PyObject * pyobj; | |
1123 | char ptemp[128]; | |
1124 | ||
1125 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1126 | pyobj = PyString_FromString(ptemp); | |
1127 | return pyobj; | |
1128 | } | |
1129 | ||
1130 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1131 | ||
1132 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1133 | return 1; | |
1134 | } | |
1135 | ||
1136 | static PyObject *_wrap_wxNullBitmap_get() { | |
1137 | PyObject * pyobj; | |
1138 | char ptemp[128]; | |
1139 | ||
1140 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1141 | pyobj = PyString_FromString(ptemp); | |
1142 | return pyobj; | |
1143 | } | |
1144 | ||
1145 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1146 | ||
1147 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1148 | return 1; | |
1149 | } | |
1150 | ||
1151 | static PyObject *_wrap_wxNullIcon_get() { | |
1152 | PyObject * pyobj; | |
1153 | char ptemp[128]; | |
1154 | ||
1155 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1156 | pyobj = PyString_FromString(ptemp); | |
1157 | return pyobj; | |
1158 | } | |
1159 | ||
1160 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1161 | ||
1162 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1163 | return 1; | |
1164 | } | |
1165 | ||
1166 | static PyObject *_wrap_wxNullCursor_get() { | |
1167 | PyObject * pyobj; | |
1168 | char ptemp[128]; | |
1169 | ||
1170 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1171 | pyobj = PyString_FromString(ptemp); | |
1172 | return pyobj; | |
1173 | } | |
1174 | ||
1175 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1176 | ||
1177 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1178 | return 1; | |
1179 | } | |
1180 | ||
1181 | static PyObject *_wrap_wxNullPen_get() { | |
1182 | PyObject * pyobj; | |
1183 | char ptemp[128]; | |
1184 | ||
1185 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1186 | pyobj = PyString_FromString(ptemp); | |
1187 | return pyobj; | |
1188 | } | |
1189 | ||
1190 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1191 | ||
1192 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1193 | return 1; | |
1194 | } | |
1195 | ||
1196 | static PyObject *_wrap_wxNullBrush_get() { | |
1197 | PyObject * pyobj; | |
1198 | char ptemp[128]; | |
1199 | ||
1200 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1201 | pyobj = PyString_FromString(ptemp); | |
1202 | return pyobj; | |
1203 | } | |
1204 | ||
1205 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1206 | ||
1207 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1208 | return 1; | |
1209 | } | |
1210 | ||
1211 | static PyObject *_wrap_wxNullPalette_get() { | |
1212 | PyObject * pyobj; | |
1213 | char ptemp[128]; | |
1214 | ||
1215 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1216 | pyobj = PyString_FromString(ptemp); | |
1217 | return pyobj; | |
1218 | } | |
1219 | ||
1220 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1221 | ||
1222 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1223 | return 1; | |
1224 | } | |
1225 | ||
1226 | static PyObject *_wrap_wxNullFont_get() { | |
1227 | PyObject * pyobj; | |
1228 | char ptemp[128]; | |
1229 | ||
1230 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1231 | pyobj = PyString_FromString(ptemp); | |
1232 | return pyobj; | |
1233 | } | |
1234 | ||
1235 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1236 | ||
1237 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1238 | return 1; | |
1239 | } | |
1240 | ||
1241 | static PyObject *_wrap_wxNullColour_get() { | |
1242 | PyObject * pyobj; | |
1243 | char ptemp[128]; | |
1244 | ||
1245 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1246 | pyobj = PyString_FromString(ptemp); | |
1247 | return pyobj; | |
1248 | } | |
1249 | ||
5e40f9dd RD |
1250 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1251 | ||
1252 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1253 | return 1; | |
1254 | } | |
1255 | ||
1256 | static PyObject *_wrap_wxTheFontList_get() { | |
1257 | PyObject * pyobj; | |
1258 | char ptemp[128]; | |
1259 | ||
1260 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1261 | pyobj = PyString_FromString(ptemp); | |
1262 | return pyobj; | |
1263 | } | |
1264 | ||
1265 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1266 | ||
1267 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1268 | return 1; | |
1269 | } | |
1270 | ||
1271 | static PyObject *_wrap_wxThePenList_get() { | |
1272 | PyObject * pyobj; | |
1273 | char ptemp[128]; | |
1274 | ||
1275 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1276 | pyobj = PyString_FromString(ptemp); | |
1277 | return pyobj; | |
1278 | } | |
1279 | ||
1280 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1281 | ||
1282 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1283 | return 1; | |
1284 | } | |
1285 | ||
1286 | static PyObject *_wrap_wxTheBrushList_get() { | |
1287 | PyObject * pyobj; | |
1288 | char ptemp[128]; | |
1289 | ||
65191ae8 | 1290 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
5e40f9dd RD |
1291 | pyobj = PyString_FromString(ptemp); |
1292 | return pyobj; | |
1293 | } | |
1294 | ||
1295 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1296 | ||
1297 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1298 | return 1; | |
1299 | } | |
1300 | ||
1301 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1302 | PyObject * pyobj; | |
1303 | char ptemp[128]; | |
1304 | ||
1305 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1306 | pyobj = PyString_FromString(ptemp); | |
1307 | return pyobj; | |
1308 | } | |
1309 | ||
9df61a29 RD |
1310 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1311 | wxGDIObject *src; | |
1312 | wxObject *dest; | |
1313 | src = (wxGDIObject *) ptr; | |
1314 | dest = (wxObject *) src; | |
1315 | return (void *) dest; | |
1316 | } | |
1317 | ||
1318 | #define new_wxGDIObject() (new wxGDIObject()) | |
1319 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1320 | PyObject * _resultobj; | |
1321 | wxGDIObject * _result; | |
1322 | char *_kwnames[] = { NULL }; | |
1323 | char _ptemp[128]; | |
1324 | ||
1325 | self = self; | |
1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1327 | return NULL; | |
1328 | { | |
474c48f9 | 1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1330 | _result = (wxGDIObject *)new_wxGDIObject(); |
9df61a29 | 1331 | |
474c48f9 | 1332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1333 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1334 | } if (_result) { |
1335 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1336 | _resultobj = Py_BuildValue("s",_ptemp); | |
1337 | } else { | |
1338 | Py_INCREF(Py_None); | |
1339 | _resultobj = Py_None; | |
1340 | } | |
1341 | return _resultobj; | |
1342 | } | |
1343 | ||
1344 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1345 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject * _resultobj; | |
1347 | wxGDIObject * _arg0; | |
1348 | PyObject * _argo0 = 0; | |
1349 | char *_kwnames[] = { "self", NULL }; | |
1350 | ||
1351 | self = self; | |
1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1353 | return NULL; | |
1354 | if (_argo0) { | |
1355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1358 | return NULL; | |
1359 | } | |
1360 | } | |
1361 | { | |
474c48f9 | 1362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1363 | delete_wxGDIObject(_arg0); |
9df61a29 | 1364 | |
474c48f9 | 1365 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1366 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1367 | } Py_INCREF(Py_None); |
1368 | _resultobj = Py_None; | |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
1372 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1373 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1374 | PyObject * _resultobj; | |
1375 | bool _result; | |
1376 | wxGDIObject * _arg0; | |
1377 | PyObject * _argo0 = 0; | |
1378 | char *_kwnames[] = { "self", NULL }; | |
1379 | ||
1380 | self = self; | |
1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1382 | return NULL; | |
1383 | if (_argo0) { | |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
1390 | { | |
474c48f9 | 1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1392 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
9df61a29 | 1393 | |
474c48f9 | 1394 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1395 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1396 | } _resultobj = Py_BuildValue("i",_result); |
1397 | return _resultobj; | |
1398 | } | |
1399 | ||
1400 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1401 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1402 | PyObject * _resultobj; | |
1403 | wxGDIObject * _arg0; | |
1404 | bool _arg1; | |
1405 | PyObject * _argo0 = 0; | |
1406 | int tempbool1; | |
1407 | char *_kwnames[] = { "self","visible", NULL }; | |
1408 | ||
1409 | self = self; | |
1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1411 | return NULL; | |
1412 | if (_argo0) { | |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
1419 | _arg1 = (bool ) tempbool1; | |
1420 | { | |
474c48f9 | 1421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1422 | wxGDIObject_SetVisible(_arg0,_arg1); |
9df61a29 | 1423 | |
474c48f9 | 1424 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1425 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1426 | } Py_INCREF(Py_None); |
1427 | _resultobj = Py_None; | |
1428 | return _resultobj; | |
1429 | } | |
1430 | ||
1431 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1432 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1433 | PyObject * _resultobj; | |
1434 | bool _result; | |
1435 | wxGDIObject * _arg0; | |
1436 | PyObject * _argo0 = 0; | |
1437 | char *_kwnames[] = { "self", NULL }; | |
1438 | ||
1439 | self = self; | |
1440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1441 | return NULL; | |
1442 | if (_argo0) { | |
1443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1446 | return NULL; | |
1447 | } | |
1448 | } | |
1449 | { | |
474c48f9 | 1450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1451 | _result = (bool )wxGDIObject_IsNull(_arg0); |
9df61a29 | 1452 | |
474c48f9 | 1453 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1454 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1455 | } _resultobj = Py_BuildValue("i",_result); |
1456 | return _resultobj; | |
1457 | } | |
1458 | ||
1459 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1460 | wxBitmap *src; | |
1461 | wxGDIObject *dest; | |
1462 | src = (wxBitmap *) ptr; | |
1463 | dest = (wxGDIObject *) src; | |
1464 | return (void *) dest; | |
1465 | } | |
1466 | ||
1467 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1468 | wxBitmap *src; | |
1469 | wxObject *dest; | |
1470 | src = (wxBitmap *) ptr; | |
1471 | dest = (wxObject *) src; | |
1472 | return (void *) dest; | |
1473 | } | |
1474 | ||
70551f47 | 1475 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
107e4716 | 1476 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1477 | PyObject * _resultobj; |
1478 | wxBitmap * _result; | |
1479 | wxString * _arg0; | |
f0972d1e | 1480 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
70551f47 | 1481 | PyObject * _obj0 = 0; |
107e4716 | 1482 | char *_kwnames[] = { "name","type", NULL }; |
70551f47 RD |
1483 | char _ptemp[128]; |
1484 | ||
1485 | self = self; | |
5c0282d5 | 1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
1487 | return NULL; |
1488 | { | |
c8bc7bb8 RD |
1489 | _arg0 = wxString_in_helper(_obj0); |
1490 | if (_arg0 == NULL) | |
70551f47 | 1491 | return NULL; |
70551f47 | 1492 | } |
ab9bc19b | 1493 | { |
474c48f9 | 1494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1495 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
ab9bc19b | 1496 | |
474c48f9 | 1497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1498 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1499 | } if (_result) { |
1500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1501 | _resultobj = Py_BuildValue("s",_ptemp); | |
1502 | } else { | |
1503 | Py_INCREF(Py_None); | |
1504 | _resultobj = Py_None; | |
1505 | } | |
70551f47 RD |
1506 | { |
1507 | if (_obj0) | |
1508 | delete _arg0; | |
1509 | } | |
1510 | return _resultobj; | |
1511 | } | |
1512 | ||
1513 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
107e4716 | 1514 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1515 | PyObject * _resultobj; |
1516 | wxBitmap * _arg0; | |
2d091820 | 1517 | PyObject * _argo0 = 0; |
107e4716 | 1518 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1519 | |
1520 | self = self; | |
107e4716 | 1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
70551f47 | 1522 | return NULL; |
2d091820 RD |
1523 | if (_argo0) { |
1524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
ab9bc19b | 1530 | { |
474c48f9 | 1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1532 | delete_wxBitmap(_arg0); |
ab9bc19b | 1533 | |
474c48f9 | 1534 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1535 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1536 | } Py_INCREF(Py_None); |
70551f47 RD |
1537 | _resultobj = Py_None; |
1538 | return _resultobj; | |
1539 | } | |
1540 | ||
70551f47 | 1541 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
107e4716 | 1542 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1543 | PyObject * _resultobj; |
1544 | wxPalette * _result; | |
1545 | wxBitmap * _arg0; | |
2d091820 | 1546 | PyObject * _argo0 = 0; |
107e4716 | 1547 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1548 | char _ptemp[128]; |
1549 | ||
1550 | self = self; | |
107e4716 | 1551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
70551f47 | 1552 | return NULL; |
2d091820 RD |
1553 | if (_argo0) { |
1554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
1557 | return NULL; | |
1558 | } | |
1559 | } | |
ab9bc19b | 1560 | { |
474c48f9 | 1561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1562 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
ab9bc19b | 1563 | |
474c48f9 | 1564 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1565 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1566 | } if (_result) { |
1567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1568 | _resultobj = Py_BuildValue("s",_ptemp); | |
1569 | } else { | |
1570 | Py_INCREF(Py_None); | |
1571 | _resultobj = Py_None; | |
1572 | } | |
70551f47 RD |
1573 | return _resultobj; |
1574 | } | |
1575 | ||
1576 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
107e4716 | 1577 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1578 | PyObject * _resultobj; |
1579 | wxMask * _result; | |
1580 | wxBitmap * _arg0; | |
2d091820 | 1581 | PyObject * _argo0 = 0; |
107e4716 | 1582 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1583 | char _ptemp[128]; |
1584 | ||
1585 | self = self; | |
107e4716 | 1586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
70551f47 | 1587 | return NULL; |
2d091820 RD |
1588 | if (_argo0) { |
1589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
1592 | return NULL; | |
1593 | } | |
1594 | } | |
ab9bc19b | 1595 | { |
474c48f9 | 1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1597 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
ab9bc19b | 1598 | |
474c48f9 | 1599 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1600 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1601 | } if (_result) { |
1602 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1603 | _resultobj = Py_BuildValue("s",_ptemp); | |
1604 | } else { | |
1605 | Py_INCREF(Py_None); | |
1606 | _resultobj = Py_None; | |
1607 | } | |
70551f47 RD |
1608 | return _resultobj; |
1609 | } | |
1610 | ||
56f5d962 RD |
1611 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1612 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1613 | PyObject * _resultobj; |
56f5d962 | 1614 | bool _result; |
70551f47 | 1615 | wxBitmap * _arg0; |
56f5d962 | 1616 | wxString * _arg1; |
f0972d1e | 1617 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
2d091820 | 1618 | PyObject * _argo0 = 0; |
56f5d962 | 1619 | PyObject * _obj1 = 0; |
5c0282d5 | 1620 | char *_kwnames[] = { "self","name","type", NULL }; |
70551f47 RD |
1621 | |
1622 | self = self; | |
5c0282d5 | 1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 1624 | return NULL; |
2d091820 RD |
1625 | if (_argo0) { |
1626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); |
70551f47 RD |
1629 | return NULL; |
1630 | } | |
1631 | } | |
56f5d962 | 1632 | { |
c8bc7bb8 RD |
1633 | _arg1 = wxString_in_helper(_obj1); |
1634 | if (_arg1 == NULL) | |
56f5d962 | 1635 | return NULL; |
56f5d962 | 1636 | } |
ab9bc19b | 1637 | { |
474c48f9 | 1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1639 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b | 1640 | |
474c48f9 | 1641 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1642 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1643 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
1644 | { |
1645 | if (_obj1) | |
1646 | delete _arg1; | |
1647 | } | |
70551f47 RD |
1648 | return _resultobj; |
1649 | } | |
1650 | ||
56f5d962 RD |
1651 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1652 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1653 | PyObject * _resultobj; |
1654 | bool _result; | |
1655 | wxBitmap * _arg0; | |
1656 | wxString * _arg1; | |
5c0282d5 | 1657 | wxBitmapType _arg2; |
56f5d962 | 1658 | wxPalette * _arg3 = (wxPalette *) NULL; |
2d091820 | 1659 | PyObject * _argo0 = 0; |
70551f47 | 1660 | PyObject * _obj1 = 0; |
56f5d962 RD |
1661 | PyObject * _argo3 = 0; |
1662 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
70551f47 RD |
1663 | |
1664 | self = self; | |
56f5d962 | 1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
70551f47 | 1666 | return NULL; |
2d091820 RD |
1667 | if (_argo0) { |
1668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); |
70551f47 RD |
1671 | return NULL; |
1672 | } | |
1673 | } | |
1674 | { | |
c8bc7bb8 RD |
1675 | _arg1 = wxString_in_helper(_obj1); |
1676 | if (_arg1 == NULL) | |
2cd2fac8 | 1677 | return NULL; |
70551f47 | 1678 | } |
56f5d962 RD |
1679 | if (_argo3) { |
1680 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1681 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1683 | return NULL; | |
1684 | } | |
1685 | } | |
ab9bc19b | 1686 | { |
474c48f9 | 1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1688 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 1689 | |
474c48f9 | 1690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1691 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1692 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1693 | { |
1694 | if (_obj1) | |
1695 | delete _arg1; | |
1696 | } | |
1697 | return _resultobj; | |
1698 | } | |
1699 | ||
56f5d962 RD |
1700 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1701 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject * _resultobj; | |
1703 | wxBitmap * _arg0; | |
1704 | wxMask * _arg1; | |
1705 | PyObject * _argo0 = 0; | |
1706 | PyObject * _argo1 = 0; | |
1707 | char *_kwnames[] = { "self","mask", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | if (_argo1) { | |
1720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1723 | return NULL; | |
1724 | } | |
1725 | } | |
1726 | { | |
474c48f9 | 1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1728 | wxBitmap_SetMask(_arg0,_arg1); |
56f5d962 | 1729 | |
474c48f9 | 1730 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1731 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1732 | } Py_INCREF(Py_None); |
1733 | _resultobj = Py_None; | |
1734 | return _resultobj; | |
1735 | } | |
1736 | ||
70551f47 | 1737 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) |
107e4716 | 1738 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1739 | PyObject * _resultobj; |
1740 | bool _result; | |
1741 | wxBitmap * _arg0; | |
2d091820 | 1742 | PyObject * _argo0 = 0; |
107e4716 | 1743 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1744 | |
1745 | self = self; | |
107e4716 | 1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) |
70551f47 | 1747 | return NULL; |
2d091820 RD |
1748 | if (_argo0) { |
1749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); |
1752 | return NULL; | |
1753 | } | |
1754 | } | |
ab9bc19b | 1755 | { |
474c48f9 | 1756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1757 | _result = (bool )wxBitmap_Ok(_arg0); |
ab9bc19b | 1758 | |
474c48f9 | 1759 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1760 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1761 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1762 | return _resultobj; |
1763 | } | |
1764 | ||
56f5d962 RD |
1765 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) |
1766 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1767 | PyObject * _resultobj; |
56f5d962 | 1768 | int _result; |
70551f47 | 1769 | wxBitmap * _arg0; |
2d091820 | 1770 | PyObject * _argo0 = 0; |
56f5d962 | 1771 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1772 | |
1773 | self = self; | |
56f5d962 | 1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) |
70551f47 | 1775 | return NULL; |
2d091820 RD |
1776 | if (_argo0) { |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1780 | return NULL; |
1781 | } | |
1782 | } | |
1783 | { | |
474c48f9 | 1784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1785 | _result = (int )wxBitmap_GetWidth(_arg0); |
56f5d962 | 1786 | |
474c48f9 | 1787 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1788 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
1789 | } _resultobj = Py_BuildValue("i",_result); |
1790 | return _resultobj; | |
70551f47 | 1791 | } |
56f5d962 RD |
1792 | |
1793 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1794 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1795 | PyObject * _resultobj; | |
1796 | int _result; | |
1797 | wxBitmap * _arg0; | |
1798 | PyObject * _argo0 = 0; | |
1799 | char *_kwnames[] = { "self", NULL }; | |
1800 | ||
1801 | self = self; | |
1802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1803 | return NULL; | |
1804 | if (_argo0) { | |
1805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
70551f47 RD |
1808 | return NULL; |
1809 | } | |
1810 | } | |
ab9bc19b | 1811 | { |
474c48f9 | 1812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1813 | _result = (int )wxBitmap_GetHeight(_arg0); |
ab9bc19b | 1814 | |
474c48f9 | 1815 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1816 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1817 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1818 | return _resultobj; |
1819 | } | |
1820 | ||
56f5d962 RD |
1821 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1822 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 1823 | PyObject * _resultobj; |
56f5d962 | 1824 | int _result; |
70551f47 | 1825 | wxBitmap * _arg0; |
2d091820 | 1826 | PyObject * _argo0 = 0; |
56f5d962 | 1827 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1828 | |
1829 | self = self; | |
56f5d962 | 1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
70551f47 | 1831 | return NULL; |
2d091820 RD |
1832 | if (_argo0) { |
1833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1836 | return NULL; |
1837 | } | |
1838 | } | |
ab9bc19b | 1839 | { |
474c48f9 | 1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1841 | _result = (int )wxBitmap_GetDepth(_arg0); |
ab9bc19b | 1842 | |
474c48f9 | 1843 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1844 | if (PyErr_Occurred()) return NULL; |
56f5d962 | 1845 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1846 | return _resultobj; |
1847 | } | |
1848 | ||
56f5d962 RD |
1849 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
1850 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1851 | PyObject * _resultobj; |
1852 | wxBitmap * _arg0; | |
1853 | int _arg1; | |
2d091820 | 1854 | PyObject * _argo0 = 0; |
56f5d962 | 1855 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
1856 | |
1857 | self = self; | |
56f5d962 | 1858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1859 | return NULL; |
2d091820 RD |
1860 | if (_argo0) { |
1861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); |
70551f47 RD |
1864 | return NULL; |
1865 | } | |
1866 | } | |
ab9bc19b | 1867 | { |
474c48f9 | 1868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1869 | wxBitmap_SetWidth(_arg0,_arg1); |
ab9bc19b | 1870 | |
474c48f9 | 1871 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1872 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1873 | } Py_INCREF(Py_None); |
70551f47 RD |
1874 | _resultobj = Py_None; |
1875 | return _resultobj; | |
1876 | } | |
1877 | ||
56f5d962 RD |
1878 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1879 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1880 | PyObject * _resultobj; |
1881 | wxBitmap * _arg0; | |
56f5d962 | 1882 | int _arg1; |
2d091820 | 1883 | PyObject * _argo0 = 0; |
56f5d962 | 1884 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
1885 | |
1886 | self = self; | |
56f5d962 | 1887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1888 | return NULL; |
2d091820 RD |
1889 | if (_argo0) { |
1890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); |
70551f47 RD |
1893 | return NULL; |
1894 | } | |
1895 | } | |
ab9bc19b | 1896 | { |
474c48f9 | 1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1898 | wxBitmap_SetHeight(_arg0,_arg1); |
ab9bc19b | 1899 | |
474c48f9 | 1900 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1901 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1902 | } Py_INCREF(Py_None); |
70551f47 RD |
1903 | _resultobj = Py_None; |
1904 | return _resultobj; | |
1905 | } | |
1906 | ||
56f5d962 RD |
1907 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
1908 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
1909 | PyObject * _resultobj; |
1910 | wxBitmap * _arg0; | |
1911 | int _arg1; | |
2d091820 | 1912 | PyObject * _argo0 = 0; |
56f5d962 | 1913 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
1914 | |
1915 | self = self; | |
56f5d962 | 1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1917 | return NULL; |
2d091820 RD |
1918 | if (_argo0) { |
1919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
56f5d962 | 1921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); |
70551f47 RD |
1922 | return NULL; |
1923 | } | |
1924 | } | |
ab9bc19b | 1925 | { |
474c48f9 | 1926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1927 | wxBitmap_SetDepth(_arg0,_arg1); |
ab9bc19b | 1928 | |
474c48f9 | 1929 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1930 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1931 | } Py_INCREF(Py_None); |
70551f47 RD |
1932 | _resultobj = Py_None; |
1933 | return _resultobj; | |
1934 | } | |
1935 | ||
f6bcfd97 BP |
1936 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
1937 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1938 | PyObject * _resultobj; | |
1939 | wxBitmap * _result; | |
1940 | wxBitmap * _arg0; | |
1941 | wxRect * _arg1; | |
1942 | PyObject * _argo0 = 0; | |
1943 | wxRect temp; | |
1944 | PyObject * _obj1 = 0; | |
1945 | char *_kwnames[] = { "self","rect", NULL }; | |
1946 | char _ptemp[128]; | |
1947 | ||
1948 | self = self; | |
1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1950 | return NULL; | |
1951 | if (_argo0) { | |
1952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1955 | return NULL; | |
1956 | } | |
1957 | } | |
1958 | { | |
1959 | _arg1 = &temp; | |
1960 | if (! wxRect_helper(_obj1, &_arg1)) | |
1961 | return NULL; | |
1962 | } | |
1963 | { | |
474c48f9 | 1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1965 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
f6bcfd97 | 1966 | |
474c48f9 | 1967 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1968 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1969 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1970 | _resultobj = Py_BuildValue("s",_ptemp); | |
1971 | return _resultobj; | |
1972 | } | |
1973 | ||
65191ae8 RD |
1974 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) |
1975 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1976 | PyObject * _resultobj; | |
1977 | bool _result; | |
1978 | wxBitmap * _arg0; | |
1979 | wxIcon * _arg1; | |
1980 | PyObject * _argo0 = 0; | |
1981 | PyObject * _argo1 = 0; | |
1982 | char *_kwnames[] = { "self","icon", NULL }; | |
1983 | ||
1984 | self = self; | |
1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
1986 | return NULL; | |
1987 | if (_argo0) { | |
1988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
1991 | return NULL; | |
1992 | } | |
1993 | } | |
1994 | if (_argo1) { | |
1995 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1996 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
1997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
1998 | return NULL; | |
1999 | } | |
2000 | } | |
2001 | { | |
474c48f9 | 2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2003 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
65191ae8 | 2004 | |
474c48f9 | 2005 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
2006 | if (PyErr_Occurred()) return NULL; |
2007 | } _resultobj = Py_BuildValue("i",_result); | |
2008 | return _resultobj; | |
2009 | } | |
2010 | ||
9df61a29 RD |
2011 | static void *SwigwxMaskTowxObject(void *ptr) { |
2012 | wxMask *src; | |
2013 | wxObject *dest; | |
2014 | src = (wxMask *) ptr; | |
2015 | dest = (wxObject *) src; | |
2016 | return (void *) dest; | |
2017 | } | |
2018 | ||
70551f47 | 2019 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
107e4716 | 2020 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2021 | PyObject * _resultobj; |
2022 | wxMask * _result; | |
2023 | wxBitmap * _arg0; | |
2d091820 | 2024 | PyObject * _argo0 = 0; |
107e4716 | 2025 | char *_kwnames[] = { "bitmap", NULL }; |
70551f47 RD |
2026 | char _ptemp[128]; |
2027 | ||
2028 | self = self; | |
107e4716 | 2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) |
70551f47 | 2030 | return NULL; |
2d091820 RD |
2031 | if (_argo0) { |
2032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
70551f47 RD |
2034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
2035 | return NULL; | |
2036 | } | |
2037 | } | |
ab9bc19b | 2038 | { |
474c48f9 | 2039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2040 | _result = (wxMask *)new_wxMask(*_arg0); |
ab9bc19b | 2041 | |
474c48f9 | 2042 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2043 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2044 | } if (_result) { |
2045 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2046 | _resultobj = Py_BuildValue("s",_ptemp); | |
2047 | } else { | |
2048 | Py_INCREF(Py_None); | |
2049 | _resultobj = Py_None; | |
2050 | } | |
70551f47 RD |
2051 | return _resultobj; |
2052 | } | |
2053 | ||
fbcadfca RD |
2054 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2055 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject * _resultobj; | |
2057 | wxMask * _arg0; | |
2058 | PyObject * _argo0 = 0; | |
2059 | char *_kwnames[] = { "self", NULL }; | |
2060 | ||
2061 | self = self; | |
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2063 | return NULL; | |
2064 | if (_argo0) { | |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
2071 | { | |
474c48f9 | 2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2073 | wxMask_Destroy(_arg0); |
fbcadfca | 2074 | |
474c48f9 | 2075 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2076 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2077 | } Py_INCREF(Py_None); |
2078 | _resultobj = Py_None; | |
2079 | return _resultobj; | |
2080 | } | |
2081 | ||
9df61a29 RD |
2082 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2083 | wxIcon *src; | |
2084 | wxGDIObject *dest; | |
2085 | src = (wxIcon *) ptr; | |
2086 | dest = (wxGDIObject *) src; | |
2087 | return (void *) dest; | |
2088 | } | |
2089 | ||
2090 | static void *SwigwxIconTowxObject(void *ptr) { | |
2091 | wxIcon *src; | |
2092 | wxObject *dest; | |
2093 | src = (wxIcon *) ptr; | |
2094 | dest = (wxObject *) src; | |
2095 | return (void *) dest; | |
2096 | } | |
2097 | ||
8bf5d46e | 2098 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 2099 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2100 | PyObject * _resultobj; |
2101 | wxIcon * _result; | |
2102 | wxString * _arg0; | |
2103 | long _arg1; | |
2d091820 RD |
2104 | int _arg2 = (int ) -1; |
2105 | int _arg3 = (int ) -1; | |
8bf5d46e | 2106 | PyObject * _obj0 = 0; |
107e4716 | 2107 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8bf5d46e RD |
2108 | char _ptemp[128]; |
2109 | ||
2110 | self = self; | |
107e4716 | 2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
2112 | return NULL; |
2113 | { | |
c8bc7bb8 RD |
2114 | _arg0 = wxString_in_helper(_obj0); |
2115 | if (_arg0 == NULL) | |
8bf5d46e | 2116 | return NULL; |
8bf5d46e RD |
2117 | } |
2118 | { | |
474c48f9 | 2119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2120 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 2121 | |
474c48f9 | 2122 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2123 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2124 | } if (_result) { |
2125 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2126 | _resultobj = Py_BuildValue("s",_ptemp); | |
2127 | } else { | |
2128 | Py_INCREF(Py_None); | |
2129 | _resultobj = Py_None; | |
2130 | } | |
8bf5d46e RD |
2131 | { |
2132 | if (_obj0) | |
2133 | delete _arg0; | |
2134 | } | |
2135 | return _resultobj; | |
2136 | } | |
2137 | ||
70551f47 | 2138 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
107e4716 | 2139 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2140 | PyObject * _resultobj; |
2141 | wxIcon * _arg0; | |
2d091820 | 2142 | PyObject * _argo0 = 0; |
107e4716 | 2143 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2144 | |
2145 | self = self; | |
107e4716 | 2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
70551f47 | 2147 | return NULL; |
2d091820 RD |
2148 | if (_argo0) { |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
ab9bc19b | 2155 | { |
474c48f9 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2157 | delete_wxIcon(_arg0); |
ab9bc19b | 2158 | |
474c48f9 | 2159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2160 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2161 | } Py_INCREF(Py_None); |
70551f47 RD |
2162 | _resultobj = Py_None; |
2163 | return _resultobj; | |
2164 | } | |
2165 | ||
56f5d962 RD |
2166 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
2167 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2168 | PyObject * _resultobj; |
56f5d962 | 2169 | bool _result; |
70551f47 | 2170 | wxIcon * _arg0; |
56f5d962 RD |
2171 | wxString * _arg1; |
2172 | long _arg2; | |
2d091820 | 2173 | PyObject * _argo0 = 0; |
56f5d962 RD |
2174 | PyObject * _obj1 = 0; |
2175 | char *_kwnames[] = { "self","name","flags", NULL }; | |
70551f47 RD |
2176 | |
2177 | self = self; | |
56f5d962 | 2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
70551f47 | 2179 | return NULL; |
2d091820 RD |
2180 | if (_argo0) { |
2181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); |
70551f47 RD |
2184 | return NULL; |
2185 | } | |
2186 | } | |
56f5d962 | 2187 | { |
c8bc7bb8 RD |
2188 | _arg1 = wxString_in_helper(_obj1); |
2189 | if (_arg1 == NULL) | |
2cd2fac8 | 2190 | return NULL; |
56f5d962 | 2191 | } |
ab9bc19b | 2192 | { |
474c48f9 | 2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2194 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
ab9bc19b | 2195 | |
474c48f9 | 2196 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2197 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2198 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
2199 | { |
2200 | if (_obj1) | |
2201 | delete _arg1; | |
2202 | } | |
70551f47 RD |
2203 | return _resultobj; |
2204 | } | |
2205 | ||
56f5d962 RD |
2206 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2207 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2208 | PyObject * _resultobj; |
56f5d962 | 2209 | bool _result; |
70551f47 | 2210 | wxIcon * _arg0; |
2d091820 | 2211 | PyObject * _argo0 = 0; |
107e4716 | 2212 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2213 | |
2214 | self = self; | |
56f5d962 | 2215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) |
70551f47 | 2216 | return NULL; |
2d091820 RD |
2217 | if (_argo0) { |
2218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); |
70551f47 RD |
2221 | return NULL; |
2222 | } | |
2223 | } | |
ab9bc19b | 2224 | { |
474c48f9 | 2225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2226 | _result = (bool )wxIcon_Ok(_arg0); |
ab9bc19b | 2227 | |
474c48f9 | 2228 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2229 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2230 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2231 | return _resultobj; |
2232 | } | |
2233 | ||
2234 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 2235 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2236 | PyObject * _resultobj; |
2237 | int _result; | |
2238 | wxIcon * _arg0; | |
2d091820 | 2239 | PyObject * _argo0 = 0; |
107e4716 | 2240 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2241 | |
2242 | self = self; | |
107e4716 | 2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) |
70551f47 | 2244 | return NULL; |
2d091820 RD |
2245 | if (_argo0) { |
2246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); |
2249 | return NULL; | |
2250 | } | |
2251 | } | |
ab9bc19b | 2252 | { |
474c48f9 | 2253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2254 | _result = (int )wxIcon_GetWidth(_arg0); |
ab9bc19b | 2255 | |
474c48f9 | 2256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2257 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2258 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2259 | return _resultobj; |
2260 | } | |
2261 | ||
56f5d962 RD |
2262 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) |
2263 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2264 | PyObject * _resultobj; |
56f5d962 | 2265 | int _result; |
70551f47 | 2266 | wxIcon * _arg0; |
2d091820 | 2267 | PyObject * _argo0 = 0; |
56f5d962 | 2268 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2269 | |
2270 | self = self; | |
56f5d962 | 2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) |
70551f47 | 2272 | return NULL; |
2d091820 RD |
2273 | if (_argo0) { |
2274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); |
70551f47 RD |
2277 | return NULL; |
2278 | } | |
2279 | } | |
ab9bc19b | 2280 | { |
474c48f9 | 2281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2282 | _result = (int )wxIcon_GetHeight(_arg0); |
ab9bc19b | 2283 | |
474c48f9 | 2284 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2285 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2286 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2287 | return _resultobj; |
2288 | } | |
2289 | ||
56f5d962 RD |
2290 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) |
2291 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2292 | PyObject * _resultobj; |
56f5d962 | 2293 | int _result; |
70551f47 | 2294 | wxIcon * _arg0; |
2d091820 | 2295 | PyObject * _argo0 = 0; |
107e4716 | 2296 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2297 | |
2298 | self = self; | |
56f5d962 | 2299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) |
70551f47 | 2300 | return NULL; |
2d091820 RD |
2301 | if (_argo0) { |
2302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2305 | return NULL; |
2306 | } | |
2307 | } | |
ab9bc19b | 2308 | { |
474c48f9 | 2309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2310 | _result = (int )wxIcon_GetDepth(_arg0); |
ab9bc19b | 2311 | |
474c48f9 | 2312 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2313 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2314 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2315 | return _resultobj; |
2316 | } | |
2317 | ||
56f5d962 RD |
2318 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) |
2319 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2320 | PyObject * _resultobj; |
2321 | wxIcon * _arg0; | |
2322 | int _arg1; | |
2d091820 | 2323 | PyObject * _argo0 = 0; |
56f5d962 | 2324 | char *_kwnames[] = { "self","w", NULL }; |
70551f47 RD |
2325 | |
2326 | self = self; | |
56f5d962 | 2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2328 | return NULL; |
2d091820 RD |
2329 | if (_argo0) { |
2330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); |
70551f47 RD |
2333 | return NULL; |
2334 | } | |
2335 | } | |
ab9bc19b | 2336 | { |
474c48f9 | 2337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2338 | wxIcon_SetWidth(_arg0,_arg1); |
ab9bc19b | 2339 | |
474c48f9 | 2340 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2341 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2342 | } Py_INCREF(Py_None); |
70551f47 RD |
2343 | _resultobj = Py_None; |
2344 | return _resultobj; | |
2345 | } | |
2346 | ||
2347 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
107e4716 | 2348 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2349 | PyObject * _resultobj; |
2350 | wxIcon * _arg0; | |
2351 | int _arg1; | |
2d091820 | 2352 | PyObject * _argo0 = 0; |
56f5d962 | 2353 | char *_kwnames[] = { "self","h", NULL }; |
70551f47 RD |
2354 | |
2355 | self = self; | |
107e4716 | 2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2357 | return NULL; |
2d091820 RD |
2358 | if (_argo0) { |
2359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
70551f47 RD |
2361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); |
2362 | return NULL; | |
2363 | } | |
2364 | } | |
ab9bc19b | 2365 | { |
474c48f9 | 2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2367 | wxIcon_SetHeight(_arg0,_arg1); |
ab9bc19b | 2368 | |
474c48f9 | 2369 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2370 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2371 | } Py_INCREF(Py_None); |
70551f47 RD |
2372 | _resultobj = Py_None; |
2373 | return _resultobj; | |
2374 | } | |
2375 | ||
56f5d962 RD |
2376 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) |
2377 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
2378 | PyObject * _resultobj; |
2379 | wxIcon * _arg0; | |
2380 | int _arg1; | |
2d091820 | 2381 | PyObject * _argo0 = 0; |
56f5d962 | 2382 | char *_kwnames[] = { "self","d", NULL }; |
70551f47 RD |
2383 | |
2384 | self = self; | |
56f5d962 | 2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2386 | return NULL; |
2d091820 RD |
2387 | if (_argo0) { |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
56f5d962 | 2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); |
70551f47 RD |
2391 | return NULL; |
2392 | } | |
2393 | } | |
ab9bc19b | 2394 | { |
474c48f9 | 2395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2396 | wxIcon_SetDepth(_arg0,_arg1); |
ab9bc19b | 2397 | |
474c48f9 | 2398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2399 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2400 | } Py_INCREF(Py_None); |
70551f47 RD |
2401 | _resultobj = Py_None; |
2402 | return _resultobj; | |
2403 | } | |
2404 | ||
fbcadfca RD |
2405 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2406 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2407 | PyObject * _resultobj; | |
2408 | wxIcon * _arg0; | |
2409 | wxBitmap * _arg1; | |
2410 | PyObject * _argo0 = 0; | |
2411 | PyObject * _argo1 = 0; | |
2412 | char *_kwnames[] = { "self","bmp", NULL }; | |
2413 | ||
2414 | self = self; | |
2415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2416 | return NULL; | |
2417 | if (_argo0) { | |
2418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2421 | return NULL; | |
2422 | } | |
2423 | } | |
2424 | if (_argo1) { | |
2425 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2426 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2428 | return NULL; | |
2429 | } | |
2430 | } | |
2431 | { | |
474c48f9 | 2432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2433 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
fbcadfca | 2434 | |
474c48f9 | 2435 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2436 | if (PyErr_Occurred()) return NULL; |
fbcadfca RD |
2437 | } Py_INCREF(Py_None); |
2438 | _resultobj = Py_None; | |
2439 | return _resultobj; | |
2440 | } | |
2441 | ||
9df61a29 RD |
2442 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2443 | wxCursor *src; | |
2444 | wxGDIObject *dest; | |
2445 | src = (wxCursor *) ptr; | |
2446 | dest = (wxGDIObject *) src; | |
2447 | return (void *) dest; | |
2448 | } | |
2449 | ||
2450 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2451 | wxCursor *src; | |
2452 | wxObject *dest; | |
2453 | src = (wxCursor *) ptr; | |
2454 | dest = (wxObject *) src; | |
2455 | return (void *) dest; | |
2456 | } | |
2457 | ||
70551f47 | 2458 | #define delete_wxCursor(_swigobj) (delete _swigobj) |
107e4716 | 2459 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2460 | PyObject * _resultobj; |
2461 | wxCursor * _arg0; | |
2d091820 | 2462 | PyObject * _argo0 = 0; |
107e4716 | 2463 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2464 | |
2465 | self = self; | |
107e4716 | 2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) |
70551f47 | 2467 | return NULL; |
2d091820 RD |
2468 | if (_argo0) { |
2469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); |
2472 | return NULL; | |
2473 | } | |
2474 | } | |
ab9bc19b | 2475 | { |
474c48f9 | 2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2477 | delete_wxCursor(_arg0); |
ab9bc19b | 2478 | |
474c48f9 | 2479 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2480 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2481 | } Py_INCREF(Py_None); |
70551f47 RD |
2482 | _resultobj = Py_None; |
2483 | return _resultobj; | |
2484 | } | |
2485 | ||
2486 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 2487 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2488 | PyObject * _resultobj; |
2489 | bool _result; | |
2490 | wxCursor * _arg0; | |
2d091820 | 2491 | PyObject * _argo0 = 0; |
107e4716 | 2492 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2493 | |
2494 | self = self; | |
107e4716 | 2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) |
70551f47 | 2496 | return NULL; |
2d091820 RD |
2497 | if (_argo0) { |
2498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
70551f47 RD |
2500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); |
2501 | return NULL; | |
2502 | } | |
2503 | } | |
ab9bc19b | 2504 | { |
474c48f9 | 2505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2506 | _result = (bool )wxCursor_Ok(_arg0); |
ab9bc19b | 2507 | |
474c48f9 | 2508 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2509 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2510 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2511 | return _resultobj; |
2512 | } | |
2513 | ||
1893b029 RD |
2514 | #define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0)) |
2515 | static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2516 | PyObject * _resultobj; | |
2517 | bool _result; | |
2518 | wxNativeFontInfo * _arg0; | |
2519 | wxString * _arg1; | |
2520 | PyObject * _argo0 = 0; | |
2521 | PyObject * _obj1 = 0; | |
2522 | char *_kwnames[] = { "self","xFontName", NULL }; | |
2523 | ||
2524 | self = self; | |
2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1)) | |
2526 | return NULL; | |
2527 | if (_argo0) { | |
2528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p."); | |
2531 | return NULL; | |
2532 | } | |
2533 | } | |
2534 | { | |
c8bc7bb8 RD |
2535 | _arg1 = wxString_in_helper(_obj1); |
2536 | if (_arg1 == NULL) | |
1893b029 | 2537 | return NULL; |
1893b029 RD |
2538 | } |
2539 | { | |
2540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2541 | _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1); |
1893b029 RD |
2542 | |
2543 | wxPyEndAllowThreads(__tstate); | |
2544 | if (PyErr_Occurred()) return NULL; | |
2545 | } _resultobj = Py_BuildValue("i",_result); | |
2546 | { | |
2547 | if (_obj1) | |
2548 | delete _arg1; | |
2549 | } | |
2550 | return _resultobj; | |
2551 | } | |
2552 | ||
85247b36 RD |
2553 | #define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault()) |
2554 | static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2555 | PyObject * _resultobj; | |
2556 | bool _result; | |
2557 | wxNativeFontInfo * _arg0; | |
2558 | PyObject * _argo0 = 0; | |
2559 | char *_kwnames[] = { "self", NULL }; | |
2560 | ||
2561 | self = self; | |
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0)) | |
2563 | return NULL; | |
2564 | if (_argo0) { | |
2565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p."); | |
2568 | return NULL; | |
2569 | } | |
2570 | } | |
2571 | { | |
2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2573 | _result = (bool )wxNativeFontInfo_IsDefault(_arg0); |
85247b36 RD |
2574 | |
2575 | wxPyEndAllowThreads(__tstate); | |
2576 | if (PyErr_Occurred()) return NULL; | |
2577 | } _resultobj = Py_BuildValue("i",_result); | |
2578 | return _resultobj; | |
2579 | } | |
2580 | ||
1893b029 RD |
2581 | #define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName()) |
2582 | static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject * _resultobj; | |
2584 | wxString * _result; | |
2585 | wxNativeFontInfo * _arg0; | |
2586 | PyObject * _argo0 = 0; | |
2587 | char *_kwnames[] = { "self", NULL }; | |
2588 | ||
2589 | self = self; | |
2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0)) | |
2591 | return NULL; | |
2592 | if (_argo0) { | |
2593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p."); | |
2596 | return NULL; | |
2597 | } | |
2598 | } | |
2599 | { | |
2600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2601 | _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0)); |
1893b029 RD |
2602 | |
2603 | wxPyEndAllowThreads(__tstate); | |
2604 | if (PyErr_Occurred()) return NULL; | |
2605 | }{ | |
c8bc7bb8 RD |
2606 | #if wxUSE_UNICODE |
2607 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2608 | #else | |
1893b029 | 2609 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2610 | #endif |
1893b029 RD |
2611 | } |
2612 | { | |
2613 | delete _result; | |
2614 | } | |
2615 | return _resultobj; | |
2616 | } | |
2617 | ||
85247b36 RD |
2618 | #define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0)) |
2619 | static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject * _resultobj; | |
2621 | wxNativeFontInfo * _arg0; | |
2622 | wxString * _arg1; | |
2623 | PyObject * _argo0 = 0; | |
2624 | PyObject * _obj1 = 0; | |
2625 | char *_kwnames[] = { "self","xFontName", NULL }; | |
2626 | ||
2627 | self = self; | |
2628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1)) | |
2629 | return NULL; | |
2630 | if (_argo0) { | |
2631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p."); | |
2634 | return NULL; | |
2635 | } | |
2636 | } | |
2637 | { | |
c8bc7bb8 RD |
2638 | _arg1 = wxString_in_helper(_obj1); |
2639 | if (_arg1 == NULL) | |
85247b36 | 2640 | return NULL; |
85247b36 RD |
2641 | } |
2642 | { | |
2643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2644 | wxNativeFontInfo_SetXFontName(_arg0,*_arg1); |
85247b36 RD |
2645 | |
2646 | wxPyEndAllowThreads(__tstate); | |
2647 | if (PyErr_Occurred()) return NULL; | |
2648 | } Py_INCREF(Py_None); | |
2649 | _resultobj = Py_None; | |
2650 | { | |
2651 | if (_obj1) | |
2652 | delete _arg1; | |
2653 | } | |
2654 | return _resultobj; | |
2655 | } | |
2656 | ||
1893b029 RD |
2657 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) |
2658 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2659 | PyObject * _resultobj; | |
2660 | wxNativeFontInfo * _result; | |
2661 | char *_kwnames[] = { NULL }; | |
2662 | char _ptemp[128]; | |
2663 | ||
2664 | self = self; | |
2665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
2666 | return NULL; | |
2667 | { | |
2668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2669 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); |
1893b029 RD |
2670 | |
2671 | wxPyEndAllowThreads(__tstate); | |
2672 | if (PyErr_Occurred()) return NULL; | |
2673 | } if (_result) { | |
2674 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
2675 | _resultobj = Py_BuildValue("s",_ptemp); | |
2676 | } else { | |
2677 | Py_INCREF(Py_None); | |
2678 | _resultobj = Py_None; | |
2679 | } | |
2680 | return _resultobj; | |
2681 | } | |
2682 | ||
2683 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
2684 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2685 | PyObject * _resultobj; | |
2686 | wxNativeFontInfo * _arg0; | |
2687 | PyObject * _argo0 = 0; | |
2688 | char *_kwnames[] = { "self", NULL }; | |
2689 | ||
2690 | self = self; | |
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
2692 | return NULL; | |
2693 | if (_argo0) { | |
2694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
2697 | return NULL; | |
2698 | } | |
2699 | } | |
2700 | { | |
2701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2702 | wxNativeFontInfo_Init(_arg0); |
1893b029 RD |
2703 | |
2704 | wxPyEndAllowThreads(__tstate); | |
2705 | if (PyErr_Occurred()) return NULL; | |
2706 | } Py_INCREF(Py_None); | |
2707 | _resultobj = Py_None; | |
2708 | return _resultobj; | |
2709 | } | |
2710 | ||
059a841c RD |
2711 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
2712 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2713 | PyObject * _resultobj; |
059a841c RD |
2714 | bool _result; |
2715 | wxNativeFontInfo * _arg0; | |
2716 | wxString * _arg1; | |
2717 | PyObject * _argo0 = 0; | |
2718 | PyObject * _obj1 = 0; | |
2719 | char *_kwnames[] = { "self","s", NULL }; | |
70551f47 RD |
2720 | |
2721 | self = self; | |
059a841c RD |
2722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) |
2723 | return NULL; | |
2724 | if (_argo0) { | |
2725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
2728 | return NULL; | |
2729 | } | |
2730 | } | |
2731 | { | |
c8bc7bb8 RD |
2732 | _arg1 = wxString_in_helper(_obj1); |
2733 | if (_arg1 == NULL) | |
059a841c | 2734 | return NULL; |
059a841c | 2735 | } |
ab9bc19b | 2736 | { |
474c48f9 | 2737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2738 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
ab9bc19b | 2739 | |
474c48f9 | 2740 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2741 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2742 | } _resultobj = Py_BuildValue("i",_result); |
2743 | { | |
2744 | if (_obj1) | |
2745 | delete _arg1; | |
2746 | } | |
70551f47 RD |
2747 | return _resultobj; |
2748 | } | |
2749 | ||
059a841c RD |
2750 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
2751 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5e40f9dd | 2752 | PyObject * _resultobj; |
059a841c RD |
2753 | wxString * _result; |
2754 | wxNativeFontInfo * _arg0; | |
5e40f9dd RD |
2755 | PyObject * _argo0 = 0; |
2756 | char *_kwnames[] = { "self", NULL }; | |
2757 | ||
2758 | self = self; | |
059a841c | 2759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) |
5e40f9dd RD |
2760 | return NULL; |
2761 | if (_argo0) { | |
2762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
5e40f9dd RD |
2765 | return NULL; |
2766 | } | |
2767 | } | |
2768 | { | |
474c48f9 | 2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2770 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
5e40f9dd | 2771 | |
474c48f9 | 2772 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2773 | if (PyErr_Occurred()) return NULL; |
059a841c | 2774 | }{ |
c8bc7bb8 RD |
2775 | #if wxUSE_UNICODE |
2776 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2777 | #else | |
059a841c | 2778 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2779 | #endif |
059a841c RD |
2780 | } |
2781 | { | |
2782 | delete _result; | |
2783 | } | |
5e40f9dd RD |
2784 | return _resultobj; |
2785 | } | |
2786 | ||
059a841c RD |
2787 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { |
2788 | return self->ToString(); | |
2789 | } | |
2790 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d29aba2f | 2791 | PyObject * _resultobj; |
059a841c RD |
2792 | wxString * _result; |
2793 | wxNativeFontInfo * _arg0; | |
d29aba2f RD |
2794 | PyObject * _argo0 = 0; |
2795 | char *_kwnames[] = { "self", NULL }; | |
2796 | ||
2797 | self = self; | |
059a841c | 2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) |
d29aba2f RD |
2799 | return NULL; |
2800 | if (_argo0) { | |
2801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
d29aba2f RD |
2804 | return NULL; |
2805 | } | |
2806 | } | |
2807 | { | |
474c48f9 | 2808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2809 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
d29aba2f | 2810 | |
474c48f9 | 2811 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2812 | if (PyErr_Occurred()) return NULL; |
059a841c | 2813 | }{ |
c8bc7bb8 RD |
2814 | #if wxUSE_UNICODE |
2815 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2816 | #else | |
059a841c | 2817 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2818 | #endif |
059a841c RD |
2819 | } |
2820 | { | |
2821 | delete _result; | |
2822 | } | |
d29aba2f RD |
2823 | return _resultobj; |
2824 | } | |
2825 | ||
1893b029 RD |
2826 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
2827 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2828 | PyObject * _resultobj; | |
2829 | bool _result; | |
2830 | wxNativeFontInfo * _arg0; | |
2831 | wxString * _arg1; | |
2832 | PyObject * _argo0 = 0; | |
2833 | PyObject * _obj1 = 0; | |
2834 | char *_kwnames[] = { "self","s", NULL }; | |
2835 | ||
2836 | self = self; | |
2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
2838 | return NULL; | |
2839 | if (_argo0) { | |
2840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
2843 | return NULL; | |
2844 | } | |
2845 | } | |
2846 | { | |
c8bc7bb8 RD |
2847 | _arg1 = wxString_in_helper(_obj1); |
2848 | if (_arg1 == NULL) | |
1893b029 | 2849 | return NULL; |
1893b029 RD |
2850 | } |
2851 | { | |
2852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2853 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); |
1893b029 RD |
2854 | |
2855 | wxPyEndAllowThreads(__tstate); | |
2856 | if (PyErr_Occurred()) return NULL; | |
2857 | } _resultobj = Py_BuildValue("i",_result); | |
2858 | { | |
2859 | if (_obj1) | |
2860 | delete _arg1; | |
2861 | } | |
2862 | return _resultobj; | |
2863 | } | |
2864 | ||
2865 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
2866 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2867 | PyObject * _resultobj; | |
2868 | wxString * _result; | |
2869 | wxNativeFontInfo * _arg0; | |
2870 | PyObject * _argo0 = 0; | |
2871 | char *_kwnames[] = { "self", NULL }; | |
2872 | ||
2873 | self = self; | |
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
2875 | return NULL; | |
2876 | if (_argo0) { | |
2877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
2880 | return NULL; | |
2881 | } | |
2882 | } | |
2883 | { | |
2884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2885 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); |
1893b029 RD |
2886 | |
2887 | wxPyEndAllowThreads(__tstate); | |
2888 | if (PyErr_Occurred()) return NULL; | |
2889 | }{ | |
c8bc7bb8 RD |
2890 | #if wxUSE_UNICODE |
2891 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2892 | #else | |
1893b029 | 2893 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2894 | #endif |
1893b029 RD |
2895 | } |
2896 | { | |
2897 | delete _result; | |
2898 | } | |
2899 | return _resultobj; | |
2900 | } | |
2901 | ||
059a841c RD |
2902 | #define new_wxFontMapper() (new wxFontMapper()) |
2903 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2904 | PyObject * _resultobj; |
059a841c RD |
2905 | wxFontMapper * _result; |
2906 | char *_kwnames[] = { NULL }; | |
2907 | char _ptemp[128]; | |
2908 | ||
2909 | self = self; | |
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
2911 | return NULL; | |
2912 | { | |
474c48f9 | 2913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2914 | _result = (wxFontMapper *)new_wxFontMapper(); |
059a841c | 2915 | |
474c48f9 | 2916 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2917 | if (PyErr_Occurred()) return NULL; |
2918 | } if (_result) { | |
2919 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
2920 | _resultobj = Py_BuildValue("s",_ptemp); | |
2921 | } else { | |
2922 | Py_INCREF(Py_None); | |
2923 | _resultobj = Py_None; | |
2924 | } | |
2925 | return _resultobj; | |
2926 | } | |
2927 | ||
2928 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
2929 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2930 | PyObject * _resultobj; | |
2931 | wxFontMapper * _arg0; | |
2d091820 | 2932 | PyObject * _argo0 = 0; |
107e4716 | 2933 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2934 | |
2935 | self = self; | |
059a841c | 2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
70551f47 | 2937 | return NULL; |
2d091820 RD |
2938 | if (_argo0) { |
2939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
2941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
70551f47 RD |
2942 | return NULL; |
2943 | } | |
2944 | } | |
70551f47 | 2945 | { |
474c48f9 | 2946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2947 | delete_wxFontMapper(_arg0); |
ab9bc19b | 2948 | |
474c48f9 | 2949 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2950 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
2951 | } Py_INCREF(Py_None); |
2952 | _resultobj = Py_None; | |
70551f47 RD |
2953 | return _resultobj; |
2954 | } | |
2955 | ||
059a841c RD |
2956 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
2957 | wxFontEncoding alt_enc; | |
2958 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
2959 | return PyInt_FromLong(alt_enc); | |
2960 | else { | |
2961 | Py_INCREF(Py_None); | |
2962 | return Py_None; | |
2963 | } | |
2964 | } | |
2965 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 2966 | PyObject * _resultobj; |
059a841c RD |
2967 | PyObject * _result; |
2968 | wxFontMapper * _arg0; | |
2969 | wxFontEncoding _arg1; | |
2970 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2971 | bool _arg3 = (bool ) TRUE; | |
2d091820 | 2972 | PyObject * _argo0 = 0; |
059a841c RD |
2973 | PyObject * _obj2 = 0; |
2974 | int tempbool3 = (int) TRUE; | |
2975 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
70551f47 RD |
2976 | |
2977 | self = self; | |
059a841c | 2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
70551f47 | 2979 | return NULL; |
2d091820 RD |
2980 | if (_argo0) { |
2981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
2982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
2983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
70551f47 RD |
2984 | return NULL; |
2985 | } | |
2986 | } | |
059a841c RD |
2987 | if (_obj2) |
2988 | { | |
c8bc7bb8 RD |
2989 | _arg2 = wxString_in_helper(_obj2); |
2990 | if (_arg2 == NULL) | |
059a841c | 2991 | return NULL; |
059a841c RD |
2992 | } |
2993 | _arg3 = (bool ) tempbool3; | |
ab9bc19b | 2994 | { |
474c48f9 | 2995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2996 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
ab9bc19b | 2997 | |
474c48f9 | 2998 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2999 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3000 | }{ |
3001 | _resultobj = _result; | |
3002 | } | |
3003 | { | |
3004 | if (_obj2) | |
3005 | delete _arg2; | |
3006 | } | |
70551f47 RD |
3007 | return _resultobj; |
3008 | } | |
3009 | ||
059a841c RD |
3010 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
3011 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3012 | PyObject * _resultobj; |
059a841c RD |
3013 | bool _result; |
3014 | wxFontMapper * _arg0; | |
3015 | wxFontEncoding _arg1; | |
3016 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
2d091820 | 3017 | PyObject * _argo0 = 0; |
059a841c RD |
3018 | PyObject * _obj2 = 0; |
3019 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
70551f47 RD |
3020 | |
3021 | self = self; | |
059a841c | 3022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 3023 | return NULL; |
2d091820 RD |
3024 | if (_argo0) { |
3025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
3026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
70551f47 RD |
3028 | return NULL; |
3029 | } | |
3030 | } | |
059a841c RD |
3031 | if (_obj2) |
3032 | { | |
c8bc7bb8 RD |
3033 | _arg2 = wxString_in_helper(_obj2); |
3034 | if (_arg2 == NULL) | |
059a841c | 3035 | return NULL; |
059a841c | 3036 | } |
ab9bc19b | 3037 | { |
474c48f9 | 3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3039 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
ab9bc19b | 3040 | |
474c48f9 | 3041 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3042 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3043 | } _resultobj = Py_BuildValue("i",_result); |
059a841c RD |
3044 | { |
3045 | if (_obj2) | |
3046 | delete _arg2; | |
3047 | } | |
70551f47 RD |
3048 | return _resultobj; |
3049 | } | |
3050 | ||
059a841c RD |
3051 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
3052 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3053 | PyObject * _resultobj; |
059a841c RD |
3054 | wxFontEncoding _result; |
3055 | wxFontMapper * _arg0; | |
3056 | wxString * _arg1; | |
3057 | bool _arg2 = (bool ) TRUE; | |
2d091820 | 3058 | PyObject * _argo0 = 0; |
059a841c RD |
3059 | PyObject * _obj1 = 0; |
3060 | int tempbool2 = (int) TRUE; | |
3061 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
70551f47 RD |
3062 | |
3063 | self = self; | |
059a841c | 3064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
70551f47 | 3065 | return NULL; |
2d091820 RD |
3066 | if (_argo0) { |
3067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
059a841c RD |
3068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
70551f47 RD |
3070 | return NULL; |
3071 | } | |
3072 | } | |
ab9bc19b | 3073 | { |
c8bc7bb8 RD |
3074 | _arg1 = wxString_in_helper(_obj1); |
3075 | if (_arg1 == NULL) | |
059a841c | 3076 | return NULL; |
059a841c RD |
3077 | } |
3078 | _arg2 = (bool ) tempbool2; | |
3079 | { | |
474c48f9 | 3080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3081 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
059a841c | 3082 | |
474c48f9 | 3083 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3084 | if (PyErr_Occurred()) return NULL; |
3085 | } _resultobj = Py_BuildValue("i",_result); | |
3086 | { | |
3087 | if (_obj1) | |
3088 | delete _arg1; | |
3089 | } | |
3090 | return _resultobj; | |
3091 | } | |
3092 | ||
3093 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject * _resultobj; | |
3095 | wxString * _result; | |
3096 | wxFontEncoding _arg0; | |
3097 | char *_kwnames[] = { "encoding", NULL }; | |
3098 | ||
3099 | self = self; | |
3100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3101 | return NULL; | |
3102 | { | |
474c48f9 | 3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3104 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
059a841c | 3105 | |
474c48f9 | 3106 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3107 | if (PyErr_Occurred()) return NULL; |
3108 | }{ | |
c8bc7bb8 RD |
3109 | #if wxUSE_UNICODE |
3110 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3111 | #else | |
059a841c | 3112 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3113 | #endif |
059a841c RD |
3114 | } |
3115 | { | |
3116 | delete _result; | |
3117 | } | |
3118 | return _resultobj; | |
3119 | } | |
3120 | ||
3121 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3122 | PyObject * _resultobj; | |
3123 | wxString * _result; | |
3124 | wxFontEncoding _arg0; | |
3125 | char *_kwnames[] = { "encoding", NULL }; | |
3126 | ||
3127 | self = self; | |
3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3129 | return NULL; | |
3130 | { | |
474c48f9 | 3131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3132 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
059a841c | 3133 | |
474c48f9 | 3134 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3135 | if (PyErr_Occurred()) return NULL; |
3136 | }{ | |
c8bc7bb8 RD |
3137 | #if wxUSE_UNICODE |
3138 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3139 | #else | |
059a841c | 3140 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3141 | #endif |
059a841c RD |
3142 | } |
3143 | { | |
3144 | delete _result; | |
3145 | } | |
3146 | return _resultobj; | |
3147 | } | |
3148 | ||
3149 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3150 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject * _resultobj; | |
3152 | wxFontMapper * _arg0; | |
3153 | wxWindow * _arg1; | |
3154 | PyObject * _argo0 = 0; | |
3155 | PyObject * _argo1 = 0; | |
3156 | char *_kwnames[] = { "self","parent", NULL }; | |
3157 | ||
3158 | self = self; | |
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3160 | return NULL; | |
3161 | if (_argo0) { | |
3162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3165 | return NULL; | |
3166 | } | |
3167 | } | |
3168 | if (_argo1) { | |
3169 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3170 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3172 | return NULL; | |
3173 | } | |
3174 | } | |
3175 | { | |
474c48f9 | 3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3177 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
059a841c | 3178 | |
474c48f9 | 3179 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3180 | if (PyErr_Occurred()) return NULL; |
3181 | } Py_INCREF(Py_None); | |
3182 | _resultobj = Py_None; | |
3183 | return _resultobj; | |
3184 | } | |
3185 | ||
3186 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3187 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3188 | PyObject * _resultobj; | |
3189 | wxFontMapper * _arg0; | |
3190 | wxString * _arg1; | |
3191 | PyObject * _argo0 = 0; | |
3192 | PyObject * _obj1 = 0; | |
3193 | char *_kwnames[] = { "self","title", NULL }; | |
3194 | ||
3195 | self = self; | |
3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3197 | return NULL; | |
3198 | if (_argo0) { | |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
3205 | { | |
c8bc7bb8 RD |
3206 | _arg1 = wxString_in_helper(_obj1); |
3207 | if (_arg1 == NULL) | |
059a841c | 3208 | return NULL; |
059a841c RD |
3209 | } |
3210 | { | |
474c48f9 | 3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3212 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
059a841c | 3213 | |
474c48f9 | 3214 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3215 | if (PyErr_Occurred()) return NULL; |
3216 | } Py_INCREF(Py_None); | |
3217 | _resultobj = Py_None; | |
3218 | { | |
3219 | if (_obj1) | |
3220 | delete _arg1; | |
3221 | } | |
3222 | return _resultobj; | |
3223 | } | |
3224 | ||
3225 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3226 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3227 | PyObject * _resultobj; | |
3228 | wxFontMapper * _arg0; | |
3229 | wxConfigBase * _arg1; | |
3230 | PyObject * _argo0 = 0; | |
3231 | PyObject * _argo1 = 0; | |
3232 | char *_kwnames[] = { "self","config", NULL }; | |
3233 | ||
3234 | self = self; | |
3235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3236 | return NULL; | |
3237 | if (_argo0) { | |
3238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3241 | return NULL; | |
3242 | } | |
3243 | } | |
3244 | if (_argo1) { | |
3245 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3246 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3248 | return NULL; | |
3249 | } | |
3250 | } | |
3251 | { | |
474c48f9 | 3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3253 | wxFontMapper_SetConfig(_arg0,_arg1); |
059a841c | 3254 | |
474c48f9 | 3255 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3256 | if (PyErr_Occurred()) return NULL; |
3257 | } Py_INCREF(Py_None); | |
3258 | _resultobj = Py_None; | |
3259 | return _resultobj; | |
3260 | } | |
3261 | ||
3262 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3263 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3264 | PyObject * _resultobj; | |
3265 | wxFontMapper * _arg0; | |
3266 | wxString * _arg1; | |
3267 | PyObject * _argo0 = 0; | |
3268 | PyObject * _obj1 = 0; | |
3269 | char *_kwnames[] = { "self","prefix", NULL }; | |
3270 | ||
3271 | self = self; | |
3272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3273 | return NULL; | |
3274 | if (_argo0) { | |
3275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3278 | return NULL; | |
3279 | } | |
3280 | } | |
3281 | { | |
c8bc7bb8 RD |
3282 | _arg1 = wxString_in_helper(_obj1); |
3283 | if (_arg1 == NULL) | |
059a841c | 3284 | return NULL; |
059a841c RD |
3285 | } |
3286 | { | |
474c48f9 | 3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3288 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
059a841c | 3289 | |
474c48f9 | 3290 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3291 | if (PyErr_Occurred()) return NULL; |
3292 | } Py_INCREF(Py_None); | |
3293 | _resultobj = Py_None; | |
3294 | { | |
3295 | if (_obj1) | |
3296 | delete _arg1; | |
3297 | } | |
3298 | return _resultobj; | |
3299 | } | |
3300 | ||
3301 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3302 | PyObject * _resultobj; | |
3303 | wxChar * _result; | |
3304 | char *_kwnames[] = { NULL }; | |
3305 | ||
3306 | self = self; | |
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3308 | return NULL; | |
3309 | { | |
474c48f9 | 3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3311 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
059a841c | 3312 | |
474c48f9 | 3313 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3314 | if (PyErr_Occurred()) return NULL; |
3315 | } _resultobj = Py_BuildValue("s", _result); | |
3316 | return _resultobj; | |
3317 | } | |
3318 | ||
3319 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3320 | wxFont *src; | |
3321 | wxGDIObject *dest; | |
3322 | src = (wxFont *) ptr; | |
3323 | dest = (wxGDIObject *) src; | |
3324 | return (void *) dest; | |
3325 | } | |
3326 | ||
3327 | static void *SwigwxFontTowxObject(void *ptr) { | |
3328 | wxFont *src; | |
3329 | wxObject *dest; | |
3330 | src = (wxFont *) ptr; | |
3331 | dest = (wxObject *) src; | |
3332 | return (void *) dest; | |
3333 | } | |
3334 | ||
3335 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3336 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3337 | PyObject * _resultobj; | |
3338 | wxFont * _result; | |
3339 | int _arg0; | |
3340 | int _arg1; | |
3341 | int _arg2; | |
3342 | int _arg3; | |
3343 | int _arg4 = (int ) FALSE; | |
3344 | char * _arg5 = (char *) ""; | |
3345 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3346 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3347 | char _ptemp[128]; | |
3348 | ||
3349 | self = self; | |
3350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3351 | return NULL; | |
3352 | { | |
474c48f9 | 3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3354 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
059a841c | 3355 | |
474c48f9 | 3356 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3357 | if (PyErr_Occurred()) return NULL; |
3358 | } if (_result) { | |
3359 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3360 | _resultobj = Py_BuildValue("s",_ptemp); | |
3361 | } else { | |
3362 | Py_INCREF(Py_None); | |
3363 | _resultobj = Py_None; | |
3364 | } | |
3365 | return _resultobj; | |
3366 | } | |
3367 | ||
3368 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3369 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3370 | PyObject * _resultobj; | |
3371 | wxFont * _result; | |
3372 | wxNativeFontInfo * _arg0; | |
3373 | PyObject * _argo0 = 0; | |
3374 | char *_kwnames[] = { "info", NULL }; | |
3375 | char _ptemp[128]; | |
3376 | ||
3377 | self = self; | |
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3379 | return NULL; | |
3380 | if (_argo0) { | |
3381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3384 | return NULL; | |
3385 | } | |
3386 | } | |
3387 | { | |
474c48f9 | 3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3389 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
059a841c | 3390 | |
474c48f9 | 3391 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3392 | if (PyErr_Occurred()) return NULL; |
3393 | } if (_result) { | |
3394 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3395 | _resultobj = Py_BuildValue("s",_ptemp); | |
3396 | } else { | |
3397 | Py_INCREF(Py_None); | |
3398 | _resultobj = Py_None; | |
3399 | } | |
3400 | return _resultobj; | |
3401 | } | |
3402 | ||
3403 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3404 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3405 | PyObject * _resultobj; | |
3406 | wxFont * _arg0; | |
3407 | PyObject * _argo0 = 0; | |
3408 | char *_kwnames[] = { "self", NULL }; | |
3409 | ||
3410 | self = self; | |
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3412 | return NULL; | |
3413 | if (_argo0) { | |
3414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3417 | return NULL; | |
3418 | } | |
3419 | } | |
3420 | { | |
474c48f9 | 3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3422 | delete_wxFont(_arg0); |
059a841c | 3423 | |
474c48f9 | 3424 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3425 | if (PyErr_Occurred()) return NULL; |
3426 | } Py_INCREF(Py_None); | |
3427 | _resultobj = Py_None; | |
3428 | return _resultobj; | |
3429 | } | |
3430 | ||
3431 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3432 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject * _resultobj; | |
3434 | bool _result; | |
3435 | wxFont * _arg0; | |
3436 | PyObject * _argo0 = 0; | |
3437 | char *_kwnames[] = { "self", NULL }; | |
3438 | ||
3439 | self = self; | |
3440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3441 | return NULL; | |
3442 | if (_argo0) { | |
3443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3446 | return NULL; | |
3447 | } | |
3448 | } | |
3449 | { | |
474c48f9 | 3450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3451 | _result = (bool )wxFont_Ok(_arg0); |
059a841c | 3452 | |
474c48f9 | 3453 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3454 | if (PyErr_Occurred()) return NULL; |
3455 | } _resultobj = Py_BuildValue("i",_result); | |
3456 | return _resultobj; | |
3457 | } | |
3458 | ||
3459 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3460 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3461 | PyObject * _resultobj; | |
3462 | int _result; | |
3463 | wxFont * _arg0; | |
3464 | PyObject * _argo0 = 0; | |
3465 | char *_kwnames[] = { "self", NULL }; | |
3466 | ||
3467 | self = self; | |
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3469 | return NULL; | |
3470 | if (_argo0) { | |
3471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3474 | return NULL; | |
3475 | } | |
3476 | } | |
3477 | { | |
474c48f9 | 3478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3479 | _result = (int )wxFont_GetPointSize(_arg0); |
059a841c | 3480 | |
474c48f9 | 3481 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3482 | if (PyErr_Occurred()) return NULL; |
3483 | } _resultobj = Py_BuildValue("i",_result); | |
3484 | return _resultobj; | |
3485 | } | |
3486 | ||
3487 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3488 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3489 | PyObject * _resultobj; | |
3490 | int _result; | |
3491 | wxFont * _arg0; | |
3492 | PyObject * _argo0 = 0; | |
3493 | char *_kwnames[] = { "self", NULL }; | |
3494 | ||
3495 | self = self; | |
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3497 | return NULL; | |
3498 | if (_argo0) { | |
3499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3502 | return NULL; | |
3503 | } | |
3504 | } | |
3505 | { | |
474c48f9 | 3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3507 | _result = (int )wxFont_GetFamily(_arg0); |
059a841c | 3508 | |
474c48f9 | 3509 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3510 | if (PyErr_Occurred()) return NULL; |
3511 | } _resultobj = Py_BuildValue("i",_result); | |
3512 | return _resultobj; | |
3513 | } | |
3514 | ||
3515 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3516 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3517 | PyObject * _resultobj; | |
3518 | int _result; | |
3519 | wxFont * _arg0; | |
3520 | PyObject * _argo0 = 0; | |
3521 | char *_kwnames[] = { "self", NULL }; | |
3522 | ||
3523 | self = self; | |
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3525 | return NULL; | |
3526 | if (_argo0) { | |
3527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3530 | return NULL; | |
3531 | } | |
3532 | } | |
3533 | { | |
474c48f9 | 3534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3535 | _result = (int )wxFont_GetStyle(_arg0); |
059a841c | 3536 | |
474c48f9 | 3537 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3538 | if (PyErr_Occurred()) return NULL; |
3539 | } _resultobj = Py_BuildValue("i",_result); | |
3540 | return _resultobj; | |
3541 | } | |
3542 | ||
3543 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3544 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3545 | PyObject * _resultobj; | |
3546 | int _result; | |
3547 | wxFont * _arg0; | |
3548 | PyObject * _argo0 = 0; | |
3549 | char *_kwnames[] = { "self", NULL }; | |
3550 | ||
3551 | self = self; | |
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3553 | return NULL; | |
3554 | if (_argo0) { | |
3555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3558 | return NULL; | |
3559 | } | |
3560 | } | |
3561 | { | |
474c48f9 | 3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3563 | _result = (int )wxFont_GetWeight(_arg0); |
059a841c | 3564 | |
474c48f9 | 3565 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3566 | if (PyErr_Occurred()) return NULL; |
3567 | } _resultobj = Py_BuildValue("i",_result); | |
3568 | return _resultobj; | |
3569 | } | |
3570 | ||
3571 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3572 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3573 | PyObject * _resultobj; | |
3574 | bool _result; | |
3575 | wxFont * _arg0; | |
3576 | PyObject * _argo0 = 0; | |
3577 | char *_kwnames[] = { "self", NULL }; | |
3578 | ||
3579 | self = self; | |
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3581 | return NULL; | |
3582 | if (_argo0) { | |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
3589 | { | |
474c48f9 | 3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3591 | _result = (bool )wxFont_GetUnderlined(_arg0); |
059a841c | 3592 | |
474c48f9 | 3593 | wxPyEndAllowThreads(__tstate); |
059a841c | 3594 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3595 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3596 | return _resultobj; |
3597 | } | |
3598 | ||
059a841c RD |
3599 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
3600 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3601 | PyObject * _resultobj; | |
3602 | wxString * _result; | |
3603 | wxFont * _arg0; | |
3604 | PyObject * _argo0 = 0; | |
3605 | char *_kwnames[] = { "self", NULL }; | |
3606 | ||
3607 | self = self; | |
3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3609 | return NULL; | |
3610 | if (_argo0) { | |
3611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3614 | return NULL; | |
3615 | } | |
3616 | } | |
3617 | { | |
474c48f9 | 3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3619 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
059a841c | 3620 | |
474c48f9 | 3621 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
3622 | if (PyErr_Occurred()) return NULL; |
3623 | }{ | |
c8bc7bb8 RD |
3624 | #if wxUSE_UNICODE |
3625 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3626 | #else | |
059a841c | 3627 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3628 | #endif |
059a841c RD |
3629 | } |
3630 | { | |
3631 | delete _result; | |
3632 | } | |
3633 | return _resultobj; | |
3634 | } | |
3635 | ||
3636 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3637 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3638 | PyObject * _resultobj; |
059a841c | 3639 | wxFontEncoding _result; |
70551f47 | 3640 | wxFont * _arg0; |
2d091820 | 3641 | PyObject * _argo0 = 0; |
107e4716 | 3642 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3643 | |
3644 | self = self; | |
059a841c | 3645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) |
70551f47 | 3646 | return NULL; |
2d091820 RD |
3647 | if (_argo0) { |
3648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); |
70551f47 RD |
3651 | return NULL; |
3652 | } | |
3653 | } | |
ab9bc19b | 3654 | { |
474c48f9 | 3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3656 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
ab9bc19b | 3657 | |
474c48f9 | 3658 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3659 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3660 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3661 | return _resultobj; |
3662 | } | |
3663 | ||
db34b2d4 RD |
3664 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
3665 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3666 | PyObject * _resultobj; | |
3667 | bool _result; | |
3668 | wxFont * _arg0; | |
3669 | PyObject * _argo0 = 0; | |
3670 | char *_kwnames[] = { "self", NULL }; | |
3671 | ||
3672 | self = self; | |
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
3674 | return NULL; | |
3675 | if (_argo0) { | |
3676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
3679 | return NULL; | |
3680 | } | |
3681 | } | |
3682 | { | |
3683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3684 | _result = (bool )wxFont_IsFixedWidth(_arg0); |
db34b2d4 RD |
3685 | |
3686 | wxPyEndAllowThreads(__tstate); | |
3687 | if (PyErr_Occurred()) return NULL; | |
3688 | } _resultobj = Py_BuildValue("i",_result); | |
3689 | return _resultobj; | |
3690 | } | |
3691 | ||
059a841c RD |
3692 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
3693 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 3694 | PyObject * _resultobj; |
059a841c | 3695 | wxNativeFontInfo * _result; |
70551f47 | 3696 | wxFont * _arg0; |
2d091820 | 3697 | PyObject * _argo0 = 0; |
107e4716 | 3698 | char *_kwnames[] = { "self", NULL }; |
059a841c | 3699 | char _ptemp[128]; |
70551f47 RD |
3700 | |
3701 | self = self; | |
059a841c | 3702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
70551f47 | 3703 | return NULL; |
2d091820 RD |
3704 | if (_argo0) { |
3705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
70551f47 RD |
3708 | return NULL; |
3709 | } | |
3710 | } | |
ab9bc19b | 3711 | { |
474c48f9 | 3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3713 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
ab9bc19b | 3714 | |
474c48f9 | 3715 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3716 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3717 | } if (_result) { |
3718 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3719 | _resultobj = Py_BuildValue("s",_ptemp); | |
3720 | } else { | |
3721 | Py_INCREF(Py_None); | |
3722 | _resultobj = Py_None; | |
3723 | } | |
70551f47 RD |
3724 | return _resultobj; |
3725 | } | |
3726 | ||
1893b029 RD |
3727 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
3728 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3729 | PyObject * _resultobj; | |
3730 | wxString * _result; | |
3731 | wxFont * _arg0; | |
3732 | PyObject * _argo0 = 0; | |
3733 | char *_kwnames[] = { "self", NULL }; | |
3734 | ||
3735 | self = self; | |
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
3737 | return NULL; | |
3738 | if (_argo0) { | |
3739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
3742 | return NULL; | |
3743 | } | |
3744 | } | |
3745 | { | |
3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3747 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); |
1893b029 RD |
3748 | |
3749 | wxPyEndAllowThreads(__tstate); | |
3750 | if (PyErr_Occurred()) return NULL; | |
3751 | }{ | |
c8bc7bb8 RD |
3752 | #if wxUSE_UNICODE |
3753 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3754 | #else | |
1893b029 | 3755 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3756 | #endif |
1893b029 RD |
3757 | } |
3758 | { | |
3759 | delete _result; | |
3760 | } | |
3761 | return _resultobj; | |
3762 | } | |
3763 | ||
3764 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
3765 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3766 | PyObject * _resultobj; | |
3767 | wxString * _result; | |
3768 | wxFont * _arg0; | |
3769 | PyObject * _argo0 = 0; | |
3770 | char *_kwnames[] = { "self", NULL }; | |
3771 | ||
3772 | self = self; | |
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
3774 | return NULL; | |
3775 | if (_argo0) { | |
3776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
3779 | return NULL; | |
3780 | } | |
3781 | } | |
3782 | { | |
3783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3784 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); |
1893b029 RD |
3785 | |
3786 | wxPyEndAllowThreads(__tstate); | |
3787 | if (PyErr_Occurred()) return NULL; | |
3788 | }{ | |
c8bc7bb8 RD |
3789 | #if wxUSE_UNICODE |
3790 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3791 | #else | |
1893b029 | 3792 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3793 | #endif |
1893b029 RD |
3794 | } |
3795 | { | |
3796 | delete _result; | |
3797 | } | |
3798 | return _resultobj; | |
3799 | } | |
3800 | ||
059a841c RD |
3801 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
3802 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc | 3803 | PyObject * _resultobj; |
134d79dc | 3804 | wxFont * _arg0; |
059a841c | 3805 | int _arg1; |
134d79dc | 3806 | PyObject * _argo0 = 0; |
059a841c | 3807 | char *_kwnames[] = { "self","pointSize", NULL }; |
134d79dc RD |
3808 | |
3809 | self = self; | |
059a841c | 3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
134d79dc RD |
3811 | return NULL; |
3812 | if (_argo0) { | |
3813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
134d79dc RD |
3816 | return NULL; |
3817 | } | |
3818 | } | |
3819 | { | |
474c48f9 | 3820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3821 | wxFont_SetPointSize(_arg0,_arg1); |
134d79dc | 3822 | |
474c48f9 | 3823 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3824 | if (PyErr_Occurred()) return NULL; |
059a841c RD |
3825 | } Py_INCREF(Py_None); |
3826 | _resultobj = Py_None; | |
134d79dc RD |
3827 | return _resultobj; |
3828 | } | |
3829 | ||
059a841c RD |
3830 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) |
3831 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3832 | PyObject * _resultobj; |
3833 | wxFont * _arg0; | |
059a841c | 3834 | int _arg1; |
2d091820 | 3835 | PyObject * _argo0 = 0; |
059a841c | 3836 | char *_kwnames[] = { "self","family", NULL }; |
d3b4d113 RR |
3837 | |
3838 | self = self; | |
059a841c | 3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3840 | return NULL; |
2d091820 RD |
3841 | if (_argo0) { |
3842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
d3b4d113 RR |
3845 | return NULL; |
3846 | } | |
3847 | } | |
ab9bc19b | 3848 | { |
474c48f9 | 3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3850 | wxFont_SetFamily(_arg0,_arg1); |
ab9bc19b | 3851 | |
474c48f9 | 3852 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3853 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3854 | } Py_INCREF(Py_None); |
d3b4d113 | 3855 | _resultobj = Py_None; |
d3b4d113 RR |
3856 | return _resultobj; |
3857 | } | |
3858 | ||
059a841c RD |
3859 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
3860 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3861 | PyObject * _resultobj; |
3862 | wxFont * _arg0; | |
3863 | int _arg1; | |
2d091820 | 3864 | PyObject * _argo0 = 0; |
059a841c | 3865 | char *_kwnames[] = { "self","style", NULL }; |
d3b4d113 RR |
3866 | |
3867 | self = self; | |
059a841c | 3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3869 | return NULL; |
2d091820 RD |
3870 | if (_argo0) { |
3871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
d3b4d113 RR |
3874 | return NULL; |
3875 | } | |
3876 | } | |
ab9bc19b | 3877 | { |
474c48f9 | 3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3879 | wxFont_SetStyle(_arg0,_arg1); |
ab9bc19b | 3880 | |
474c48f9 | 3881 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3882 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3883 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3884 | _resultobj = Py_None; |
3885 | return _resultobj; | |
3886 | } | |
3887 | ||
059a841c RD |
3888 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
3889 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3890 | PyObject * _resultobj; |
3891 | wxFont * _arg0; | |
3892 | int _arg1; | |
2d091820 | 3893 | PyObject * _argo0 = 0; |
059a841c | 3894 | char *_kwnames[] = { "self","weight", NULL }; |
d3b4d113 RR |
3895 | |
3896 | self = self; | |
059a841c | 3897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3898 | return NULL; |
2d091820 RD |
3899 | if (_argo0) { |
3900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
d3b4d113 RR |
3903 | return NULL; |
3904 | } | |
3905 | } | |
ab9bc19b | 3906 | { |
474c48f9 | 3907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3908 | wxFont_SetWeight(_arg0,_arg1); |
ab9bc19b | 3909 | |
474c48f9 | 3910 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3911 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3912 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3913 | _resultobj = Py_None; |
3914 | return _resultobj; | |
3915 | } | |
3916 | ||
059a841c RD |
3917 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
3918 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3919 | PyObject * _resultobj; |
3920 | wxFont * _arg0; | |
059a841c | 3921 | wxString * _arg1; |
2d091820 | 3922 | PyObject * _argo0 = 0; |
059a841c RD |
3923 | PyObject * _obj1 = 0; |
3924 | char *_kwnames[] = { "self","faceName", NULL }; | |
d3b4d113 RR |
3925 | |
3926 | self = self; | |
059a841c | 3927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
d3b4d113 | 3928 | return NULL; |
2d091820 RD |
3929 | if (_argo0) { |
3930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 3932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
d3b4d113 RR |
3933 | return NULL; |
3934 | } | |
3935 | } | |
059a841c | 3936 | { |
c8bc7bb8 RD |
3937 | _arg1 = wxString_in_helper(_obj1); |
3938 | if (_arg1 == NULL) | |
059a841c | 3939 | return NULL; |
059a841c | 3940 | } |
ab9bc19b | 3941 | { |
474c48f9 | 3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3943 | wxFont_SetFaceName(_arg0,*_arg1); |
ab9bc19b | 3944 | |
474c48f9 | 3945 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3946 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3947 | } Py_INCREF(Py_None); |
d3b4d113 | 3948 | _resultobj = Py_None; |
059a841c RD |
3949 | { |
3950 | if (_obj1) | |
3951 | delete _arg1; | |
3952 | } | |
d3b4d113 RR |
3953 | return _resultobj; |
3954 | } | |
3955 | ||
3956 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
107e4716 | 3957 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
3958 | PyObject * _resultobj; |
3959 | wxFont * _arg0; | |
3960 | bool _arg1; | |
2d091820 | 3961 | PyObject * _argo0 = 0; |
d3b4d113 | 3962 | int tempbool1; |
107e4716 | 3963 | char *_kwnames[] = { "self","underlined", NULL }; |
d3b4d113 RR |
3964 | |
3965 | self = self; | |
107e4716 | 3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
d3b4d113 | 3967 | return NULL; |
2d091820 RD |
3968 | if (_argo0) { |
3969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
d3b4d113 RR |
3971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
3972 | return NULL; | |
3973 | } | |
3974 | } | |
3975 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 3976 | { |
474c48f9 | 3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3978 | wxFont_SetUnderlined(_arg0,_arg1); |
ab9bc19b | 3979 | |
474c48f9 | 3980 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3981 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 3982 | } Py_INCREF(Py_None); |
d3b4d113 RR |
3983 | _resultobj = Py_None; |
3984 | return _resultobj; | |
3985 | } | |
3986 | ||
059a841c RD |
3987 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
3988 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d3b4d113 RR |
3989 | PyObject * _resultobj; |
3990 | wxFont * _arg0; | |
059a841c | 3991 | wxFontEncoding _arg1; |
2d091820 | 3992 | PyObject * _argo0 = 0; |
059a841c | 3993 | char *_kwnames[] = { "self","encoding", NULL }; |
d3b4d113 RR |
3994 | |
3995 | self = self; | |
059a841c | 3996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 3997 | return NULL; |
2d091820 RD |
3998 | if (_argo0) { |
3999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c | 4001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
d3b4d113 RR |
4002 | return NULL; |
4003 | } | |
4004 | } | |
ab9bc19b | 4005 | { |
474c48f9 | 4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4007 | wxFont_SetEncoding(_arg0,_arg1); |
ab9bc19b | 4008 | |
474c48f9 | 4009 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4010 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4011 | } Py_INCREF(Py_None); |
d3b4d113 RR |
4012 | _resultobj = Py_None; |
4013 | return _resultobj; | |
4014 | } | |
4015 | ||
059a841c RD |
4016 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
4017 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
134d79dc RD |
4018 | PyObject * _resultobj; |
4019 | wxFont * _arg0; | |
059a841c | 4020 | wxNativeFontInfo * _arg1; |
134d79dc | 4021 | PyObject * _argo0 = 0; |
059a841c RD |
4022 | PyObject * _argo1 = 0; |
4023 | char *_kwnames[] = { "self","info", NULL }; | |
134d79dc RD |
4024 | |
4025 | self = self; | |
059a841c | 4026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
134d79dc RD |
4027 | return NULL; |
4028 | if (_argo0) { | |
4029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
059a841c RD |
4031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
4032 | return NULL; | |
4033 | } | |
4034 | } | |
4035 | if (_argo1) { | |
4036 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4037 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
134d79dc RD |
4039 | return NULL; |
4040 | } | |
4041 | } | |
4042 | { | |
474c48f9 | 4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4044 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
134d79dc | 4045 | |
474c48f9 | 4046 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4047 | if (PyErr_Occurred()) return NULL; |
134d79dc RD |
4048 | } Py_INCREF(Py_None); |
4049 | _resultobj = Py_None; | |
4050 | return _resultobj; | |
4051 | } | |
4052 | ||
1893b029 RD |
4053 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
4054 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4055 | PyObject * _resultobj; | |
4056 | wxFont * _arg0; | |
4057 | wxString * _arg1; | |
4058 | PyObject * _argo0 = 0; | |
4059 | PyObject * _obj1 = 0; | |
4060 | char *_kwnames[] = { "self","info", NULL }; | |
4061 | ||
4062 | self = self; | |
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4064 | return NULL; | |
4065 | if (_argo0) { | |
4066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4069 | return NULL; | |
4070 | } | |
4071 | } | |
4072 | { | |
c8bc7bb8 RD |
4073 | _arg1 = wxString_in_helper(_obj1); |
4074 | if (_arg1 == NULL) | |
1893b029 | 4075 | return NULL; |
1893b029 RD |
4076 | } |
4077 | { | |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4079 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); |
1893b029 RD |
4080 | |
4081 | wxPyEndAllowThreads(__tstate); | |
4082 | if (PyErr_Occurred()) return NULL; | |
4083 | } Py_INCREF(Py_None); | |
4084 | _resultobj = Py_None; | |
4085 | { | |
4086 | if (_obj1) | |
4087 | delete _arg1; | |
4088 | } | |
4089 | return _resultobj; | |
4090 | } | |
4091 | ||
134d79dc RD |
4092 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
4093 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject * _resultobj; | |
4095 | wxString * _result; | |
4096 | wxFont * _arg0; | |
4097 | PyObject * _argo0 = 0; | |
4098 | char *_kwnames[] = { "self", NULL }; | |
4099 | ||
4100 | self = self; | |
4101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4102 | return NULL; | |
4103 | if (_argo0) { | |
4104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4107 | return NULL; | |
4108 | } | |
4109 | } | |
4110 | { | |
474c48f9 | 4111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4112 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
134d79dc | 4113 | |
474c48f9 | 4114 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4115 | if (PyErr_Occurred()) return NULL; |
134d79dc | 4116 | }{ |
c8bc7bb8 RD |
4117 | #if wxUSE_UNICODE |
4118 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4119 | #else | |
e02c03a4 | 4120 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4121 | #endif |
134d79dc RD |
4122 | } |
4123 | { | |
4124 | delete _result; | |
4125 | } | |
4126 | return _resultobj; | |
4127 | } | |
4128 | ||
4129 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4130 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject * _resultobj; | |
4132 | wxString * _result; | |
4133 | wxFont * _arg0; | |
4134 | PyObject * _argo0 = 0; | |
4135 | char *_kwnames[] = { "self", NULL }; | |
4136 | ||
4137 | self = self; | |
4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4139 | return NULL; | |
4140 | if (_argo0) { | |
4141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4144 | return NULL; | |
4145 | } | |
4146 | } | |
4147 | { | |
474c48f9 | 4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4149 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
134d79dc | 4150 | |
474c48f9 | 4151 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4152 | if (PyErr_Occurred()) return NULL; |
134d79dc | 4153 | }{ |
c8bc7bb8 RD |
4154 | #if wxUSE_UNICODE |
4155 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4156 | #else | |
e02c03a4 | 4157 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4158 | #endif |
134d79dc RD |
4159 | } |
4160 | { | |
4161 | delete _result; | |
4162 | } | |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4167 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4168 | PyObject * _resultobj; | |
4169 | wxString * _result; | |
4170 | wxFont * _arg0; | |
4171 | PyObject * _argo0 = 0; | |
4172 | char *_kwnames[] = { "self", NULL }; | |
4173 | ||
4174 | self = self; | |
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4176 | return NULL; | |
4177 | if (_argo0) { | |
4178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4181 | return NULL; | |
4182 | } | |
4183 | } | |
4184 | { | |
474c48f9 | 4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4186 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
134d79dc | 4187 | |
474c48f9 | 4188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4189 | if (PyErr_Occurred()) return NULL; |
134d79dc | 4190 | }{ |
c8bc7bb8 RD |
4191 | #if wxUSE_UNICODE |
4192 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4193 | #else | |
e02c03a4 | 4194 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4195 | #endif |
134d79dc RD |
4196 | } |
4197 | { | |
4198 | delete _result; | |
4199 | } | |
4200 | return _resultobj; | |
4201 | } | |
4202 | ||
059a841c RD |
4203 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
4204 | PyObject * _resultobj; | |
4205 | wxFontEncoding _result; | |
4206 | char *_kwnames[] = { NULL }; | |
4207 | ||
4208 | self = self; | |
4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4210 | return NULL; | |
4211 | { | |
474c48f9 | 4212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4213 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
059a841c | 4214 | |
474c48f9 | 4215 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
4216 | if (PyErr_Occurred()) return NULL; |
4217 | } _resultobj = Py_BuildValue("i",_result); | |
4218 | return _resultobj; | |
4219 | } | |
4220 | ||
4221 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4222 | PyObject * _resultobj; | |
4223 | wxFontEncoding _arg0; | |
4224 | char *_kwnames[] = { "encoding", NULL }; | |
4225 | ||
4226 | self = self; | |
4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4228 | return NULL; | |
4229 | { | |
474c48f9 | 4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4231 | wxFont::SetDefaultEncoding(_arg0); |
059a841c | 4232 | |
474c48f9 | 4233 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
4234 | if (PyErr_Occurred()) return NULL; |
4235 | } Py_INCREF(Py_None); | |
4236 | _resultobj = Py_None; | |
4237 | return _resultobj; | |
4238 | } | |
4239 | ||
9df61a29 RD |
4240 | static void *SwigwxFontListTowxObject(void *ptr) { |
4241 | wxFontList *src; | |
4242 | wxObject *dest; | |
4243 | src = (wxFontList *) ptr; | |
4244 | dest = (wxObject *) src; | |
4245 | return (void *) dest; | |
4246 | } | |
4247 | ||
5e40f9dd RD |
4248 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
4249 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject * _resultobj; | |
4251 | wxFontList * _arg0; | |
4252 | wxFont * _arg1; | |
4253 | PyObject * _argo0 = 0; | |
4254 | PyObject * _argo1 = 0; | |
4255 | char *_kwnames[] = { "self","font", NULL }; | |
4256 | ||
4257 | self = self; | |
4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4259 | return NULL; | |
4260 | if (_argo0) { | |
4261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4264 | return NULL; | |
4265 | } | |
4266 | } | |
4267 | if (_argo1) { | |
4268 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4269 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4271 | return NULL; | |
4272 | } | |
4273 | } | |
4274 | { | |
474c48f9 | 4275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4276 | wxFontList_AddFont(_arg0,_arg1); |
5e40f9dd | 4277 | |
474c48f9 | 4278 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4279 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4280 | } Py_INCREF(Py_None); |
4281 | _resultobj = Py_None; | |
4282 | return _resultobj; | |
4283 | } | |
4284 | ||
4285 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4286 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4287 | PyObject * _resultobj; | |
4288 | wxFont * _result; | |
4289 | wxFontList * _arg0; | |
4290 | int _arg1; | |
4291 | int _arg2; | |
4292 | int _arg3; | |
4293 | int _arg4; | |
4294 | bool _arg5 = (bool ) FALSE; | |
4295 | char * _arg6 = (char *) NULL; | |
4296 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4297 | PyObject * _argo0 = 0; | |
4298 | int tempbool5 = (int) FALSE; | |
4299 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
4300 | char _ptemp[128]; | |
4301 | ||
4302 | self = self; | |
4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
4304 | return NULL; | |
4305 | if (_argo0) { | |
4306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4309 | return NULL; | |
4310 | } | |
4311 | } | |
4312 | _arg5 = (bool ) tempbool5; | |
4313 | { | |
474c48f9 | 4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4315 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
5e40f9dd | 4316 | |
474c48f9 | 4317 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4318 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4319 | } if (_result) { |
4320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4321 | _resultobj = Py_BuildValue("s",_ptemp); | |
4322 | } else { | |
4323 | Py_INCREF(Py_None); | |
4324 | _resultobj = Py_None; | |
4325 | } | |
4326 | return _resultobj; | |
4327 | } | |
4328 | ||
4329 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4330 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4331 | PyObject * _resultobj; | |
4332 | wxFontList * _arg0; | |
4333 | wxFont * _arg1; | |
4334 | PyObject * _argo0 = 0; | |
4335 | PyObject * _argo1 = 0; | |
4336 | char *_kwnames[] = { "self","font", NULL }; | |
4337 | ||
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | if (_argo1) { | |
4349 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
4355 | { | |
474c48f9 | 4356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4357 | wxFontList_RemoveFont(_arg0,_arg1); |
5e40f9dd | 4358 | |
474c48f9 | 4359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4360 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4361 | } Py_INCREF(Py_None); |
4362 | _resultobj = Py_None; | |
4363 | return _resultobj; | |
4364 | } | |
4365 | ||
7a9b33db RD |
4366 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
4367 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4368 | PyObject * _resultobj; | |
4369 | int _result; | |
4370 | wxFontList * _arg0; | |
4371 | PyObject * _argo0 = 0; | |
4372 | char *_kwnames[] = { "self", NULL }; | |
4373 | ||
4374 | self = self; | |
4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
4376 | return NULL; | |
4377 | if (_argo0) { | |
4378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
4381 | return NULL; | |
4382 | } | |
4383 | } | |
4384 | { | |
474c48f9 | 4385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4386 | _result = (int )wxFontList_GetCount(_arg0); |
7a9b33db | 4387 | |
474c48f9 | 4388 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
4389 | if (PyErr_Occurred()) return NULL; |
4390 | } _resultobj = Py_BuildValue("i",_result); | |
4391 | return _resultobj; | |
4392 | } | |
4393 | ||
9df61a29 RD |
4394 | static void *SwigwxColourTowxObject(void *ptr) { |
4395 | wxColour *src; | |
4396 | wxObject *dest; | |
4397 | src = (wxColour *) ptr; | |
4398 | dest = (wxObject *) src; | |
4399 | return (void *) dest; | |
4400 | } | |
4401 | ||
70551f47 | 4402 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 4403 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4404 | PyObject * _resultobj; |
4405 | wxColour * _result; | |
2d091820 RD |
4406 | unsigned char _arg0 = (unsigned char ) 0; |
4407 | unsigned char _arg1 = (unsigned char ) 0; | |
4408 | unsigned char _arg2 = (unsigned char ) 0; | |
107e4716 | 4409 | char *_kwnames[] = { "red","green","blue", NULL }; |
70551f47 RD |
4410 | char _ptemp[128]; |
4411 | ||
4412 | self = self; | |
107e4716 | 4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
70551f47 | 4414 | return NULL; |
ab9bc19b | 4415 | { |
474c48f9 | 4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4417 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
ab9bc19b | 4418 | |
474c48f9 | 4419 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4420 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
4421 | } if (_result) { |
4422 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4423 | _resultobj = Py_BuildValue("s",_ptemp); | |
4424 | } else { | |
4425 | Py_INCREF(Py_None); | |
4426 | _resultobj = Py_None; | |
4427 | } | |
70551f47 RD |
4428 | return _resultobj; |
4429 | } | |
4430 | ||
4431 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
107e4716 | 4432 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4433 | PyObject * _resultobj; |
4434 | wxColour * _arg0; | |
f6bcfd97 BP |
4435 | wxColour temp; |
4436 | PyObject * _obj0 = 0; | |
107e4716 | 4437 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4438 | |
4439 | self = self; | |
f6bcfd97 | 4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
70551f47 | 4441 | return NULL; |
f6bcfd97 BP |
4442 | { |
4443 | _arg0 = &temp; | |
4444 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4445 | return NULL; |
f6bcfd97 | 4446 | } |
ab9bc19b | 4447 | { |
474c48f9 | 4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4449 | delete_wxColour(_arg0); |
ab9bc19b | 4450 | |
474c48f9 | 4451 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4452 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4453 | } Py_INCREF(Py_None); |
70551f47 RD |
4454 | _resultobj = Py_None; |
4455 | return _resultobj; | |
4456 | } | |
4457 | ||
4458 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
107e4716 | 4459 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4460 | PyObject * _resultobj; |
4461 | unsigned char _result; | |
4462 | wxColour * _arg0; | |
f6bcfd97 BP |
4463 | wxColour temp; |
4464 | PyObject * _obj0 = 0; | |
107e4716 | 4465 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4466 | |
4467 | self = self; | |
f6bcfd97 | 4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
70551f47 | 4469 | return NULL; |
f6bcfd97 BP |
4470 | { |
4471 | _arg0 = &temp; | |
4472 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4473 | return NULL; |
f6bcfd97 | 4474 | } |
ab9bc19b | 4475 | { |
474c48f9 | 4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4477 | _result = (unsigned char )wxColour_Red(_arg0); |
ab9bc19b | 4478 | |
474c48f9 | 4479 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4480 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4481 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4482 | return _resultobj; |
4483 | } | |
4484 | ||
4485 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
107e4716 | 4486 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4487 | PyObject * _resultobj; |
4488 | unsigned char _result; | |
4489 | wxColour * _arg0; | |
f6bcfd97 BP |
4490 | wxColour temp; |
4491 | PyObject * _obj0 = 0; | |
107e4716 | 4492 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4493 | |
4494 | self = self; | |
f6bcfd97 | 4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
70551f47 | 4496 | return NULL; |
f6bcfd97 BP |
4497 | { |
4498 | _arg0 = &temp; | |
4499 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4500 | return NULL; |
f6bcfd97 | 4501 | } |
ab9bc19b | 4502 | { |
474c48f9 | 4503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4504 | _result = (unsigned char )wxColour_Green(_arg0); |
ab9bc19b | 4505 | |
474c48f9 | 4506 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4507 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4508 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4509 | return _resultobj; |
4510 | } | |
4511 | ||
4512 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
107e4716 | 4513 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4514 | PyObject * _resultobj; |
4515 | unsigned char _result; | |
4516 | wxColour * _arg0; | |
f6bcfd97 BP |
4517 | wxColour temp; |
4518 | PyObject * _obj0 = 0; | |
107e4716 | 4519 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4520 | |
4521 | self = self; | |
f6bcfd97 | 4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
70551f47 | 4523 | return NULL; |
f6bcfd97 BP |
4524 | { |
4525 | _arg0 = &temp; | |
4526 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4527 | return NULL; |
f6bcfd97 | 4528 | } |
ab9bc19b | 4529 | { |
474c48f9 | 4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4531 | _result = (unsigned char )wxColour_Blue(_arg0); |
ab9bc19b | 4532 | |
474c48f9 | 4533 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4534 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4535 | } _resultobj = Py_BuildValue("b",_result); |
70551f47 RD |
4536 | return _resultobj; |
4537 | } | |
4538 | ||
4539 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 4540 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4541 | PyObject * _resultobj; |
4542 | bool _result; | |
4543 | wxColour * _arg0; | |
f6bcfd97 BP |
4544 | wxColour temp; |
4545 | PyObject * _obj0 = 0; | |
107e4716 | 4546 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4547 | |
4548 | self = self; | |
f6bcfd97 | 4549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
70551f47 | 4550 | return NULL; |
f6bcfd97 BP |
4551 | { |
4552 | _arg0 = &temp; | |
4553 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4554 | return NULL; |
f6bcfd97 | 4555 | } |
ab9bc19b | 4556 | { |
474c48f9 | 4557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4558 | _result = (bool )wxColour_Ok(_arg0); |
ab9bc19b | 4559 | |
474c48f9 | 4560 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4561 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4562 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4563 | return _resultobj; |
4564 | } | |
4565 | ||
4566 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 4567 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4568 | PyObject * _resultobj; |
4569 | wxColour * _arg0; | |
4570 | unsigned char _arg1; | |
4571 | unsigned char _arg2; | |
4572 | unsigned char _arg3; | |
f6bcfd97 BP |
4573 | wxColour temp; |
4574 | PyObject * _obj0 = 0; | |
107e4716 | 4575 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
70551f47 RD |
4576 | |
4577 | self = self; | |
f6bcfd97 | 4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
70551f47 | 4579 | return NULL; |
f6bcfd97 BP |
4580 | { |
4581 | _arg0 = &temp; | |
4582 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4583 | return NULL; |
f6bcfd97 | 4584 | } |
ab9bc19b | 4585 | { |
474c48f9 | 4586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4587 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 4588 | |
474c48f9 | 4589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4590 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4591 | } Py_INCREF(Py_None); |
70551f47 RD |
4592 | _resultobj = Py_None; |
4593 | return _resultobj; | |
4594 | } | |
4595 | ||
4596 | static PyObject * wxColour_Get(wxColour *self) { | |
4597 | PyObject* rv = PyTuple_New(3); | |
4598 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4599 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4600 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4601 | return rv; | |
4602 | } | |
107e4716 | 4603 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4604 | PyObject * _resultobj; |
4605 | PyObject * _result; | |
4606 | wxColour * _arg0; | |
f6bcfd97 BP |
4607 | wxColour temp; |
4608 | PyObject * _obj0 = 0; | |
107e4716 | 4609 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4610 | |
4611 | self = self; | |
f6bcfd97 | 4612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
70551f47 | 4613 | return NULL; |
f6bcfd97 BP |
4614 | { |
4615 | _arg0 = &temp; | |
4616 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 4617 | return NULL; |
f6bcfd97 | 4618 | } |
70551f47 | 4619 | { |
474c48f9 | 4620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4621 | _result = (PyObject *)wxColour_Get(_arg0); |
ab9bc19b | 4622 | |
474c48f9 | 4623 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4624 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4625 | }{ |
70551f47 RD |
4626 | _resultobj = _result; |
4627 | } | |
4628 | return _resultobj; | |
4629 | } | |
4630 | ||
9df61a29 RD |
4631 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
4632 | wxColourDatabase *src; | |
4633 | wxObject *dest; | |
4634 | src = (wxColourDatabase *) ptr; | |
4635 | dest = (wxObject *) src; | |
4636 | return (void *) dest; | |
4637 | } | |
4638 | ||
5e40f9dd RD |
4639 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
4640 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4641 | PyObject * _resultobj; |
5e40f9dd RD |
4642 | wxColour * _result; |
4643 | wxColourDatabase * _arg0; | |
4644 | wxString * _arg1; | |
4645 | PyObject * _argo0 = 0; | |
4646 | PyObject * _obj1 = 0; | |
4647 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
4648 | char _ptemp[128]; |
4649 | ||
4650 | self = self; | |
5e40f9dd RD |
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) |
4652 | return NULL; | |
4653 | if (_argo0) { | |
4654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
70551f47 | 4657 | return NULL; |
5e40f9dd RD |
4658 | } |
4659 | } | |
f6bcfd97 | 4660 | { |
c8bc7bb8 RD |
4661 | _arg1 = wxString_in_helper(_obj1); |
4662 | if (_arg1 == NULL) | |
5e40f9dd | 4663 | return NULL; |
f6bcfd97 | 4664 | } |
ab9bc19b | 4665 | { |
474c48f9 | 4666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4667 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
ab9bc19b | 4668 | |
474c48f9 | 4669 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4670 | if (PyErr_Occurred()) return NULL; |
2d091820 | 4671 | } if (_result) { |
5e40f9dd | 4672 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
2d091820 RD |
4673 | _resultobj = Py_BuildValue("s",_ptemp); |
4674 | } else { | |
4675 | Py_INCREF(Py_None); | |
4676 | _resultobj = Py_None; | |
4677 | } | |
5e40f9dd RD |
4678 | { |
4679 | if (_obj1) | |
4680 | delete _arg1; | |
4681 | } | |
70551f47 RD |
4682 | return _resultobj; |
4683 | } | |
4684 | ||
5e40f9dd RD |
4685 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) |
4686 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4687 | PyObject * _resultobj; |
5e40f9dd RD |
4688 | wxString * _result; |
4689 | wxColourDatabase * _arg0; | |
4690 | wxColour * _arg1; | |
2d091820 | 4691 | PyObject * _argo0 = 0; |
5e40f9dd RD |
4692 | wxColour temp; |
4693 | PyObject * _obj1 = 0; | |
4694 | char *_kwnames[] = { "self","colour", NULL }; | |
70551f47 RD |
4695 | |
4696 | self = self; | |
5e40f9dd | 4697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4698 | return NULL; |
2d091820 RD |
4699 | if (_argo0) { |
4700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
4701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
4702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
70551f47 RD |
4703 | return NULL; |
4704 | } | |
4705 | } | |
5e40f9dd RD |
4706 | { |
4707 | _arg1 = &temp; | |
4708 | if (! wxColour_helper(_obj1, &_arg1)) | |
4709 | return NULL; | |
4710 | } | |
ab9bc19b | 4711 | { |
474c48f9 | 4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4713 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
ab9bc19b | 4714 | |
474c48f9 | 4715 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4716 | if (PyErr_Occurred()) return NULL; |
5e40f9dd | 4717 | }{ |
c8bc7bb8 RD |
4718 | #if wxUSE_UNICODE |
4719 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4720 | #else | |
5e40f9dd | 4721 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4722 | #endif |
5e40f9dd RD |
4723 | } |
4724 | { | |
4725 | delete _result; | |
4726 | } | |
70551f47 RD |
4727 | return _resultobj; |
4728 | } | |
4729 | ||
5e40f9dd | 4730 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { |
ef2060fa RD |
4731 | // first see if the name is already there |
4732 | wxString cName = name; | |
4733 | cName.MakeUpper(); | |
4734 | wxString cName2 = cName; | |
49df1f52 | 4735 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
ef2060fa RD |
4736 | cName2.clear(); |
4737 | ||
4738 | wxNode *node = self->First(); | |
4739 | while ( node ) { | |
4740 | const wxChar *key = node->GetKeyString(); | |
4741 | if ( cName == key || cName2 == key ) { | |
4742 | wxColour* c = (wxColour *)node->Data(); | |
4743 | c->Set(red, green, blue); | |
4744 | return; | |
4745 | } | |
4746 | node = node->Next(); | |
4747 | } | |
4748 | ||
4749 | // otherwise append the new colour | |
5e40f9dd RD |
4750 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
4751 | } | |
4752 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 | 4753 | PyObject * _resultobj; |
5e40f9dd RD |
4754 | wxColourDatabase * _arg0; |
4755 | wxString * _arg1; | |
4756 | int _arg2; | |
4757 | int _arg3; | |
4758 | int _arg4; | |
2d091820 | 4759 | PyObject * _argo0 = 0; |
5e40f9dd RD |
4760 | PyObject * _obj1 = 0; |
4761 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
70551f47 RD |
4762 | |
4763 | self = self; | |
5e40f9dd | 4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 4765 | return NULL; |
2d091820 RD |
4766 | if (_argo0) { |
4767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5e40f9dd RD |
4768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { |
4769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
70551f47 RD |
4770 | return NULL; |
4771 | } | |
4772 | } | |
ab9bc19b | 4773 | { |
c8bc7bb8 RD |
4774 | _arg1 = wxString_in_helper(_obj1); |
4775 | if (_arg1 == NULL) | |
5e40f9dd | 4776 | return NULL; |
5e40f9dd RD |
4777 | } |
4778 | { | |
474c48f9 | 4779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4780 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
5e40f9dd | 4781 | |
474c48f9 | 4782 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4783 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4784 | } Py_INCREF(Py_None); |
4785 | _resultobj = Py_None; | |
4786 | { | |
4787 | if (_obj1) | |
4788 | delete _arg1; | |
4789 | } | |
4790 | return _resultobj; | |
4791 | } | |
4792 | ||
9df61a29 RD |
4793 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
4794 | wxPen *src; | |
4795 | wxGDIObject *dest; | |
4796 | src = (wxPen *) ptr; | |
4797 | dest = (wxGDIObject *) src; | |
4798 | return (void *) dest; | |
4799 | } | |
4800 | ||
4801 | static void *SwigwxPenTowxObject(void *ptr) { | |
4802 | wxPen *src; | |
4803 | wxObject *dest; | |
4804 | src = (wxPen *) ptr; | |
4805 | dest = (wxObject *) src; | |
4806 | return (void *) dest; | |
4807 | } | |
4808 | ||
5e40f9dd RD |
4809 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
4810 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4811 | PyObject * _resultobj; | |
4812 | wxPen * _result; | |
4813 | wxColour * _arg0; | |
4814 | int _arg1 = (int ) 1; | |
4815 | int _arg2 = (int ) wxSOLID; | |
4816 | wxColour temp; | |
4817 | PyObject * _obj0 = 0; | |
4818 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4819 | char _ptemp[128]; | |
4820 | ||
4821 | self = self; | |
4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4823 | return NULL; | |
4824 | { | |
4825 | _arg0 = &temp; | |
4826 | if (! wxColour_helper(_obj0, &_arg0)) | |
4827 | return NULL; | |
4828 | } | |
4829 | { | |
474c48f9 | 4830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4831 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
5e40f9dd | 4832 | |
474c48f9 | 4833 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4834 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4835 | } if (_result) { |
4836 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4837 | _resultobj = Py_BuildValue("s",_ptemp); | |
4838 | } else { | |
4839 | Py_INCREF(Py_None); | |
4840 | _resultobj = Py_None; | |
4841 | } | |
4842 | return _resultobj; | |
4843 | } | |
4844 | ||
4845 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
4846 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4847 | PyObject * _resultobj; | |
4848 | wxPen * _arg0; | |
4849 | PyObject * _argo0 = 0; | |
4850 | char *_kwnames[] = { "self", NULL }; | |
4851 | ||
4852 | self = self; | |
4853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
4854 | return NULL; | |
4855 | if (_argo0) { | |
4856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
4859 | return NULL; | |
4860 | } | |
4861 | } | |
4862 | { | |
474c48f9 | 4863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4864 | delete_wxPen(_arg0); |
5e40f9dd | 4865 | |
474c48f9 | 4866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4867 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4868 | } Py_INCREF(Py_None); |
4869 | _resultobj = Py_None; | |
4870 | return _resultobj; | |
4871 | } | |
4872 | ||
4873 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
4874 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4875 | PyObject * _resultobj; | |
4876 | int _result; | |
4877 | wxPen * _arg0; | |
4878 | PyObject * _argo0 = 0; | |
4879 | char *_kwnames[] = { "self", NULL }; | |
4880 | ||
4881 | self = self; | |
4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
4883 | return NULL; | |
4884 | if (_argo0) { | |
4885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
4888 | return NULL; | |
4889 | } | |
4890 | } | |
4891 | { | |
474c48f9 | 4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4893 | _result = (int )wxPen_GetCap(_arg0); |
5e40f9dd | 4894 | |
474c48f9 | 4895 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4896 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4897 | } _resultobj = Py_BuildValue("i",_result); |
4898 | return _resultobj; | |
4899 | } | |
4900 | ||
4901 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
4902 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4903 | PyObject * _resultobj; | |
4904 | wxColour * _result; | |
4905 | wxPen * _arg0; | |
4906 | PyObject * _argo0 = 0; | |
4907 | char *_kwnames[] = { "self", NULL }; | |
4908 | char _ptemp[128]; | |
4909 | ||
4910 | self = self; | |
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
4912 | return NULL; | |
4913 | if (_argo0) { | |
4914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
4917 | return NULL; | |
4918 | } | |
4919 | } | |
4920 | { | |
474c48f9 | 4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4922 | _result = new wxColour (wxPen_GetColour(_arg0)); |
5e40f9dd | 4923 | |
474c48f9 | 4924 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4925 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
4926 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4927 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
4928 | return _resultobj; |
4929 | } | |
4930 | ||
4931 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
107e4716 | 4932 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4933 | PyObject * _resultobj; |
4934 | int _result; | |
4935 | wxPen * _arg0; | |
2d091820 | 4936 | PyObject * _argo0 = 0; |
107e4716 | 4937 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4938 | |
4939 | self = self; | |
107e4716 | 4940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
70551f47 | 4941 | return NULL; |
2d091820 RD |
4942 | if (_argo0) { |
4943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
4946 | return NULL; | |
4947 | } | |
4948 | } | |
ab9bc19b | 4949 | { |
474c48f9 | 4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4951 | _result = (int )wxPen_GetJoin(_arg0); |
ab9bc19b | 4952 | |
474c48f9 | 4953 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4954 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4955 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4956 | return _resultobj; |
4957 | } | |
4958 | ||
4959 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 4960 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4961 | PyObject * _resultobj; |
4962 | int _result; | |
4963 | wxPen * _arg0; | |
2d091820 | 4964 | PyObject * _argo0 = 0; |
107e4716 | 4965 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4966 | |
4967 | self = self; | |
107e4716 | 4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
70551f47 | 4969 | return NULL; |
2d091820 RD |
4970 | if (_argo0) { |
4971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
4973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
4974 | return NULL; | |
4975 | } | |
4976 | } | |
ab9bc19b | 4977 | { |
474c48f9 | 4978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4979 | _result = (int )wxPen_GetStyle(_arg0); |
ab9bc19b | 4980 | |
474c48f9 | 4981 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4982 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 4983 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
4984 | return _resultobj; |
4985 | } | |
4986 | ||
4987 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 4988 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4989 | PyObject * _resultobj; |
4990 | int _result; | |
4991 | wxPen * _arg0; | |
2d091820 | 4992 | PyObject * _argo0 = 0; |
107e4716 | 4993 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4994 | |
4995 | self = self; | |
107e4716 | 4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
70551f47 | 4997 | return NULL; |
2d091820 RD |
4998 | if (_argo0) { |
4999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
5002 | return NULL; | |
5003 | } | |
5004 | } | |
ab9bc19b | 5005 | { |
474c48f9 | 5006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5007 | _result = (int )wxPen_GetWidth(_arg0); |
ab9bc19b | 5008 | |
474c48f9 | 5009 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5010 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5011 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5012 | return _resultobj; |
5013 | } | |
5014 | ||
5015 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 5016 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5017 | PyObject * _resultobj; |
5018 | bool _result; | |
5019 | wxPen * _arg0; | |
2d091820 | 5020 | PyObject * _argo0 = 0; |
107e4716 | 5021 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5022 | |
5023 | self = self; | |
107e4716 | 5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
70551f47 | 5025 | return NULL; |
2d091820 RD |
5026 | if (_argo0) { |
5027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
5030 | return NULL; | |
5031 | } | |
5032 | } | |
ab9bc19b | 5033 | { |
474c48f9 | 5034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5035 | _result = (bool )wxPen_Ok(_arg0); |
ab9bc19b | 5036 | |
474c48f9 | 5037 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5038 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5039 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5040 | return _resultobj; |
5041 | } | |
5042 | ||
5043 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
107e4716 | 5044 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5045 | PyObject * _resultobj; |
5046 | wxPen * _arg0; | |
5047 | int _arg1; | |
2d091820 | 5048 | PyObject * _argo0 = 0; |
107e4716 | 5049 | char *_kwnames[] = { "self","cap_style", NULL }; |
70551f47 RD |
5050 | |
5051 | self = self; | |
107e4716 | 5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5053 | return NULL; |
2d091820 RD |
5054 | if (_argo0) { |
5055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
5058 | return NULL; | |
5059 | } | |
5060 | } | |
ab9bc19b | 5061 | { |
474c48f9 | 5062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5063 | wxPen_SetCap(_arg0,_arg1); |
ab9bc19b | 5064 | |
474c48f9 | 5065 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5066 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5067 | } Py_INCREF(Py_None); |
70551f47 RD |
5068 | _resultobj = Py_None; |
5069 | return _resultobj; | |
5070 | } | |
5071 | ||
5072 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 5073 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5074 | PyObject * _resultobj; |
5075 | wxPen * _arg0; | |
5076 | wxColour * _arg1; | |
2d091820 | 5077 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5078 | wxColour temp; |
5079 | PyObject * _obj1 = 0; | |
107e4716 | 5080 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
5081 | |
5082 | self = self; | |
f6bcfd97 | 5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5084 | return NULL; |
2d091820 RD |
5085 | if (_argo0) { |
5086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
5089 | return NULL; | |
5090 | } | |
5091 | } | |
f6bcfd97 BP |
5092 | { |
5093 | _arg1 = &temp; | |
5094 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 5095 | return NULL; |
f6bcfd97 | 5096 | } |
ab9bc19b | 5097 | { |
474c48f9 | 5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5099 | wxPen_SetColour(_arg0,*_arg1); |
ab9bc19b | 5100 | |
474c48f9 | 5101 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5102 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5103 | } Py_INCREF(Py_None); |
70551f47 RD |
5104 | _resultobj = Py_None; |
5105 | return _resultobj; | |
5106 | } | |
5107 | ||
5108 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
107e4716 | 5109 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5110 | PyObject * _resultobj; |
5111 | wxPen * _arg0; | |
5112 | int _arg1; | |
2d091820 | 5113 | PyObject * _argo0 = 0; |
107e4716 | 5114 | char *_kwnames[] = { "self","join_style", NULL }; |
70551f47 RD |
5115 | |
5116 | self = self; | |
107e4716 | 5117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5118 | return NULL; |
2d091820 RD |
5119 | if (_argo0) { |
5120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
5123 | return NULL; | |
5124 | } | |
5125 | } | |
ab9bc19b | 5126 | { |
474c48f9 | 5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5128 | wxPen_SetJoin(_arg0,_arg1); |
ab9bc19b | 5129 | |
474c48f9 | 5130 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5131 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5132 | } Py_INCREF(Py_None); |
70551f47 RD |
5133 | _resultobj = Py_None; |
5134 | return _resultobj; | |
5135 | } | |
5136 | ||
5137 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 5138 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5139 | PyObject * _resultobj; |
5140 | wxPen * _arg0; | |
5141 | int _arg1; | |
2d091820 | 5142 | PyObject * _argo0 = 0; |
107e4716 | 5143 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
5144 | |
5145 | self = self; | |
107e4716 | 5146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5147 | return NULL; |
2d091820 RD |
5148 | if (_argo0) { |
5149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
5152 | return NULL; | |
5153 | } | |
5154 | } | |
ab9bc19b | 5155 | { |
474c48f9 | 5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5157 | wxPen_SetStyle(_arg0,_arg1); |
ab9bc19b | 5158 | |
474c48f9 | 5159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5160 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5161 | } Py_INCREF(Py_None); |
70551f47 RD |
5162 | _resultobj = Py_None; |
5163 | return _resultobj; | |
5164 | } | |
5165 | ||
5166 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
107e4716 | 5167 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5168 | PyObject * _resultobj; |
5169 | wxPen * _arg0; | |
5170 | int _arg1; | |
2d091820 | 5171 | PyObject * _argo0 = 0; |
107e4716 | 5172 | char *_kwnames[] = { "self","width", NULL }; |
70551f47 RD |
5173 | |
5174 | self = self; | |
107e4716 | 5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5176 | return NULL; |
2d091820 RD |
5177 | if (_argo0) { |
5178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
70551f47 RD |
5180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
5181 | return NULL; | |
5182 | } | |
5183 | } | |
ab9bc19b | 5184 | { |
474c48f9 | 5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5186 | wxPen_SetWidth(_arg0,_arg1); |
ab9bc19b | 5187 | |
474c48f9 | 5188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5189 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5190 | } Py_INCREF(Py_None); |
70551f47 RD |
5191 | _resultobj = Py_None; |
5192 | return _resultobj; | |
5193 | } | |
5194 | ||
65191ae8 RD |
5195 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
5196 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 5197 | PyObject * _resultobj; |
56f5d962 | 5198 | wxPen * _arg0; |
65191ae8 RD |
5199 | int _arg1; |
5200 | wxDash * _arg2; | |
56f5d962 | 5201 | PyObject * _argo0 = 0; |
65191ae8 RD |
5202 | PyObject * _obj2 = 0; |
5203 | char *_kwnames[] = { "self","choices", NULL }; | |
56f5d962 RD |
5204 | |
5205 | self = self; | |
65191ae8 | 5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
56f5d962 RD |
5207 | return NULL; |
5208 | if (_argo0) { | |
5209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
65191ae8 | 5211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
56f5d962 RD |
5212 | return NULL; |
5213 | } | |
5214 | } | |
65191ae8 RD |
5215 | if (_obj2) |
5216 | { | |
5217 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5218 | if (_arg2 == NULL) { | |
5219 | return NULL; | |
5220 | } | |
5221 | } | |
5222 | { | |
5223 | if (_obj2) { | |
5224 | _arg1 = PyList_Size(_obj2); | |
5225 | } | |
5226 | else { | |
5227 | _arg1 = 0; | |
5228 | } | |
5229 | } | |
5230 | { | |
474c48f9 | 5231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5232 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
65191ae8 | 5233 | |
474c48f9 | 5234 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
5235 | if (PyErr_Occurred()) return NULL; |
5236 | } Py_INCREF(Py_None); | |
5237 | _resultobj = Py_None; | |
5238 | { | |
5239 | delete [] _arg2; | |
5240 | } | |
5241 | return _resultobj; | |
5242 | } | |
5243 | ||
5244 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
5245 | wxPyPen *src; | |
5246 | wxPen *dest; | |
5247 | src = (wxPyPen *) ptr; | |
5248 | dest = (wxPen *) src; | |
5249 | return (void *) dest; | |
5250 | } | |
5251 | ||
5252 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
5253 | wxPyPen *src; | |
5254 | wxGDIObject *dest; | |
5255 | src = (wxPyPen *) ptr; | |
5256 | dest = (wxGDIObject *) src; | |
5257 | return (void *) dest; | |
5258 | } | |
5259 | ||
5260 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
5261 | wxPyPen *src; | |
5262 | wxObject *dest; | |
5263 | src = (wxPyPen *) ptr; | |
5264 | dest = (wxObject *) src; | |
5265 | return (void *) dest; | |
5266 | } | |
5267 | ||
5268 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
5269 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5270 | PyObject * _resultobj; | |
5271 | wxPyPen * _result; | |
5272 | wxColour * _arg0; | |
5273 | int _arg1 = (int ) 1; | |
5274 | int _arg2 = (int ) wxSOLID; | |
5275 | wxColour temp; | |
5276 | PyObject * _obj0 = 0; | |
5277 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5278 | char _ptemp[128]; | |
5279 | ||
5280 | self = self; | |
5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5282 | return NULL; | |
5283 | { | |
5284 | _arg0 = &temp; | |
5285 | if (! wxColour_helper(_obj0, &_arg0)) | |
5286 | return NULL; | |
5287 | } | |
5288 | { | |
474c48f9 | 5289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5290 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
65191ae8 | 5291 | |
474c48f9 | 5292 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
5293 | if (PyErr_Occurred()) return NULL; |
5294 | } if (_result) { | |
5295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
5296 | _resultobj = Py_BuildValue("s",_ptemp); | |
5297 | } else { | |
5298 | Py_INCREF(Py_None); | |
5299 | _resultobj = Py_None; | |
5300 | } | |
5301 | return _resultobj; | |
5302 | } | |
5303 | ||
5304 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
5305 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5306 | PyObject * _resultobj; | |
5307 | wxPyPen * _arg0; | |
5308 | PyObject * _argo0 = 0; | |
5309 | char *_kwnames[] = { "self", NULL }; | |
5310 | ||
5311 | self = self; | |
5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
5313 | return NULL; | |
5314 | if (_argo0) { | |
5315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
56f5d962 RD |
5318 | return NULL; |
5319 | } | |
5320 | } | |
5321 | { | |
474c48f9 | 5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5323 | delete_wxPyPen(_arg0); |
56f5d962 | 5324 | |
474c48f9 | 5325 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5326 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
5327 | } Py_INCREF(Py_None); |
5328 | _resultobj = Py_None; | |
56f5d962 RD |
5329 | return _resultobj; |
5330 | } | |
5331 | ||
65191ae8 RD |
5332 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
5333 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 5334 | PyObject * _resultobj; |
65191ae8 | 5335 | wxPyPen * _arg0; |
56f5d962 RD |
5336 | int _arg1; |
5337 | wxDash * _arg2; | |
5338 | PyObject * _argo0 = 0; | |
5339 | PyObject * _obj2 = 0; | |
e02c03a4 | 5340 | char *_kwnames[] = { "self","choices", NULL }; |
56f5d962 RD |
5341 | |
5342 | self = self; | |
65191ae8 | 5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
56f5d962 RD |
5344 | return NULL; |
5345 | if (_argo0) { | |
5346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
5347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { |
5348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
56f5d962 RD |
5349 | return NULL; |
5350 | } | |
5351 | } | |
5352 | if (_obj2) | |
5353 | { | |
41073357 | 5354 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
56f5d962 RD |
5355 | if (_arg2 == NULL) { |
5356 | return NULL; | |
5357 | } | |
5358 | } | |
5359 | { | |
5360 | if (_obj2) { | |
5361 | _arg1 = PyList_Size(_obj2); | |
5362 | } | |
5363 | else { | |
5364 | _arg1 = 0; | |
5365 | } | |
5366 | } | |
5367 | { | |
474c48f9 | 5368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5369 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
56f5d962 | 5370 | |
474c48f9 | 5371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5372 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
5373 | } Py_INCREF(Py_None); |
5374 | _resultobj = Py_None; | |
5375 | { | |
5376 | delete [] _arg2; | |
5377 | } | |
5378 | return _resultobj; | |
5379 | } | |
5380 | ||
9df61a29 RD |
5381 | static void *SwigwxPenListTowxObject(void *ptr) { |
5382 | wxPenList *src; | |
5383 | wxObject *dest; | |
5384 | src = (wxPenList *) ptr; | |
5385 | dest = (wxObject *) src; | |
5386 | return (void *) dest; | |
5387 | } | |
5388 | ||
5e40f9dd RD |
5389 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
5390 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject * _resultobj; | |
5392 | wxPenList * _arg0; | |
5393 | wxPen * _arg1; | |
5394 | PyObject * _argo0 = 0; | |
5395 | PyObject * _argo1 = 0; | |
5396 | char *_kwnames[] = { "self","pen", NULL }; | |
5397 | ||
5398 | self = self; | |
5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5400 | return NULL; | |
5401 | if (_argo0) { | |
5402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5405 | return NULL; | |
70551f47 | 5406 | } |
5e40f9dd RD |
5407 | } |
5408 | if (_argo1) { | |
5409 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5410 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5412 | return NULL; | |
5413 | } | |
5414 | } | |
5415 | { | |
474c48f9 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5417 | wxPenList_AddPen(_arg0,_arg1); |
70551f47 | 5418 | |
474c48f9 | 5419 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5420 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5421 | } Py_INCREF(Py_None); |
5422 | _resultobj = Py_None; | |
5423 | return _resultobj; | |
5424 | } | |
5425 | ||
5426 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5427 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject * _resultobj; | |
5429 | wxPen * _result; | |
5430 | wxPenList * _arg0; | |
5431 | wxColour * _arg1; | |
5432 | int _arg2; | |
5433 | int _arg3; | |
5434 | PyObject * _argo0 = 0; | |
5435 | wxColour temp; | |
5436 | PyObject * _obj1 = 0; | |
5437 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5438 | char _ptemp[128]; | |
5439 | ||
5440 | self = self; | |
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5442 | return NULL; | |
5443 | if (_argo0) { | |
5444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5447 | return NULL; | |
5448 | } | |
5449 | } | |
5450 | { | |
5451 | _arg1 = &temp; | |
5452 | if (! wxColour_helper(_obj1, &_arg1)) | |
5453 | return NULL; | |
5454 | } | |
5455 | { | |
474c48f9 | 5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5457 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
5e40f9dd | 5458 | |
474c48f9 | 5459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5460 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5461 | } if (_result) { |
5462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5463 | _resultobj = Py_BuildValue("s",_ptemp); | |
5464 | } else { | |
5465 | Py_INCREF(Py_None); | |
5466 | _resultobj = Py_None; | |
5467 | } | |
5468 | return _resultobj; | |
5469 | } | |
5470 | ||
5471 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5472 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5473 | PyObject * _resultobj; | |
5474 | wxPenList * _arg0; | |
5475 | wxPen * _arg1; | |
5476 | PyObject * _argo0 = 0; | |
5477 | PyObject * _argo1 = 0; | |
5478 | char *_kwnames[] = { "self","pen", NULL }; | |
5479 | ||
5480 | self = self; | |
5481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5482 | return NULL; | |
5483 | if (_argo0) { | |
5484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5487 | return NULL; | |
5488 | } | |
5489 | } | |
5490 | if (_argo1) { | |
5491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
5497 | { | |
474c48f9 | 5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5499 | wxPenList_RemovePen(_arg0,_arg1); |
5e40f9dd | 5500 | |
474c48f9 | 5501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5502 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5503 | } Py_INCREF(Py_None); |
5504 | _resultobj = Py_None; | |
5505 | return _resultobj; | |
5506 | } | |
5507 | ||
7a9b33db RD |
5508 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
5509 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5510 | PyObject * _resultobj; | |
5511 | int _result; | |
5512 | wxPenList * _arg0; | |
5513 | PyObject * _argo0 = 0; | |
5514 | char *_kwnames[] = { "self", NULL }; | |
5515 | ||
5516 | self = self; | |
5517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
5518 | return NULL; | |
5519 | if (_argo0) { | |
5520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
5523 | return NULL; | |
5524 | } | |
5525 | } | |
5526 | { | |
474c48f9 | 5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5528 | _result = (int )wxPenList_GetCount(_arg0); |
7a9b33db | 5529 | |
474c48f9 | 5530 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
5531 | if (PyErr_Occurred()) return NULL; |
5532 | } _resultobj = Py_BuildValue("i",_result); | |
5533 | return _resultobj; | |
5534 | } | |
5535 | ||
9df61a29 RD |
5536 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5537 | wxBrush *src; | |
5538 | wxGDIObject *dest; | |
5539 | src = (wxBrush *) ptr; | |
5540 | dest = (wxGDIObject *) src; | |
5541 | return (void *) dest; | |
5542 | } | |
5543 | ||
5544 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5545 | wxBrush *src; | |
5546 | wxObject *dest; | |
5547 | src = (wxBrush *) ptr; | |
5548 | dest = (wxObject *) src; | |
5549 | return (void *) dest; | |
5550 | } | |
5551 | ||
5e40f9dd | 5552 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
107e4716 | 5553 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5554 | PyObject * _resultobj; |
5555 | wxBrush * _result; | |
5556 | wxColour * _arg0; | |
2d091820 | 5557 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
5558 | wxColour temp; |
5559 | PyObject * _obj0 = 0; | |
107e4716 | 5560 | char *_kwnames[] = { "colour","style", NULL }; |
70551f47 RD |
5561 | char _ptemp[128]; |
5562 | ||
5563 | self = self; | |
f6bcfd97 | 5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
70551f47 | 5565 | return NULL; |
f6bcfd97 BP |
5566 | { |
5567 | _arg0 = &temp; | |
5568 | if (! wxColour_helper(_obj0, &_arg0)) | |
70551f47 | 5569 | return NULL; |
f6bcfd97 | 5570 | } |
ab9bc19b | 5571 | { |
474c48f9 | 5572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5573 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
ab9bc19b | 5574 | |
474c48f9 | 5575 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5576 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5577 | } if (_result) { |
5578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5579 | _resultobj = Py_BuildValue("s",_ptemp); | |
5580 | } else { | |
5581 | Py_INCREF(Py_None); | |
5582 | _resultobj = Py_None; | |
5583 | } | |
70551f47 RD |
5584 | return _resultobj; |
5585 | } | |
5586 | ||
5e40f9dd RD |
5587 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
5588 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5589 | PyObject * _resultobj; | |
5590 | wxBrush * _arg0; | |
5591 | PyObject * _argo0 = 0; | |
5592 | char *_kwnames[] = { "self", NULL }; | |
5593 | ||
5594 | self = self; | |
5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5596 | return NULL; | |
5597 | if (_argo0) { | |
5598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5601 | return NULL; | |
5602 | } | |
5603 | } | |
5604 | { | |
474c48f9 | 5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5606 | delete_wxBrush(_arg0); |
5e40f9dd | 5607 | |
474c48f9 | 5608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5609 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5610 | } Py_INCREF(Py_None); |
5611 | _resultobj = Py_None; | |
5612 | return _resultobj; | |
5613 | } | |
5614 | ||
70551f47 | 5615 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
107e4716 | 5616 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5617 | PyObject * _resultobj; |
5618 | wxColour * _result; | |
5619 | wxBrush * _arg0; | |
2d091820 | 5620 | PyObject * _argo0 = 0; |
107e4716 | 5621 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5622 | char _ptemp[128]; |
5623 | ||
5624 | self = self; | |
107e4716 | 5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
70551f47 | 5626 | return NULL; |
2d091820 RD |
5627 | if (_argo0) { |
5628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
5631 | return NULL; | |
5632 | } | |
5633 | } | |
ab9bc19b | 5634 | { |
474c48f9 | 5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5636 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
ab9bc19b | 5637 | |
474c48f9 | 5638 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5639 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
5640 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5641 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
5642 | return _resultobj; |
5643 | } | |
5644 | ||
5645 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
107e4716 | 5646 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5647 | PyObject * _resultobj; |
5648 | wxBitmap * _result; | |
5649 | wxBrush * _arg0; | |
2d091820 | 5650 | PyObject * _argo0 = 0; |
107e4716 | 5651 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5652 | char _ptemp[128]; |
5653 | ||
5654 | self = self; | |
107e4716 | 5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
70551f47 | 5656 | return NULL; |
2d091820 RD |
5657 | if (_argo0) { |
5658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
5661 | return NULL; | |
5662 | } | |
5663 | } | |
ab9bc19b | 5664 | { |
474c48f9 | 5665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5666 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
ab9bc19b | 5667 | |
474c48f9 | 5668 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5669 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
5670 | } if (_result) { |
5671 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5672 | _resultobj = Py_BuildValue("s",_ptemp); | |
5673 | } else { | |
5674 | Py_INCREF(Py_None); | |
5675 | _resultobj = Py_None; | |
5676 | } | |
70551f47 RD |
5677 | return _resultobj; |
5678 | } | |
5679 | ||
5680 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 5681 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5682 | PyObject * _resultobj; |
5683 | int _result; | |
5684 | wxBrush * _arg0; | |
2d091820 | 5685 | PyObject * _argo0 = 0; |
107e4716 | 5686 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5687 | |
5688 | self = self; | |
107e4716 | 5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
70551f47 | 5690 | return NULL; |
2d091820 RD |
5691 | if (_argo0) { |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
5695 | return NULL; | |
5696 | } | |
5697 | } | |
ab9bc19b | 5698 | { |
474c48f9 | 5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5700 | _result = (int )wxBrush_GetStyle(_arg0); |
ab9bc19b | 5701 | |
474c48f9 | 5702 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5703 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5704 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5705 | return _resultobj; |
5706 | } | |
5707 | ||
5708 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 5709 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5710 | PyObject * _resultobj; |
5711 | bool _result; | |
5712 | wxBrush * _arg0; | |
2d091820 | 5713 | PyObject * _argo0 = 0; |
107e4716 | 5714 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5715 | |
5716 | self = self; | |
107e4716 | 5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
70551f47 | 5718 | return NULL; |
2d091820 RD |
5719 | if (_argo0) { |
5720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
70551f47 RD |
5722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
5723 | return NULL; | |
5724 | } | |
5725 | } | |
ab9bc19b | 5726 | { |
474c48f9 | 5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5728 | _result = (bool )wxBrush_Ok(_arg0); |
ab9bc19b | 5729 | |
474c48f9 | 5730 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5731 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5732 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
5733 | return _resultobj; |
5734 | } | |
5735 | ||
c95e68d8 | 5736 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) |
107e4716 | 5737 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5738 | PyObject * _resultobj; |
5739 | wxBrush * _arg0; | |
5740 | wxColour * _arg1; | |
2d091820 | 5741 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5742 | wxColour temp; |
5743 | PyObject * _obj1 = 0; | |
107e4716 | 5744 | char *_kwnames[] = { "self","colour", NULL }; |
c95e68d8 RD |
5745 | |
5746 | self = self; | |
f6bcfd97 | 5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 5748 | return NULL; |
2d091820 RD |
5749 | if (_argo0) { |
5750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
5753 | return NULL; | |
5754 | } | |
5755 | } | |
f6bcfd97 BP |
5756 | { |
5757 | _arg1 = &temp; | |
5758 | if (! wxColour_helper(_obj1, &_arg1)) | |
c95e68d8 | 5759 | return NULL; |
f6bcfd97 | 5760 | } |
ab9bc19b | 5761 | { |
474c48f9 | 5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5763 | wxBrush_SetColour(_arg0,*_arg1); |
ab9bc19b | 5764 | |
474c48f9 | 5765 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5766 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5767 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5768 | _resultobj = Py_None; |
5769 | return _resultobj; | |
5770 | } | |
5771 | ||
5772 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
107e4716 | 5773 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5774 | PyObject * _resultobj; |
5775 | wxBrush * _arg0; | |
5776 | wxBitmap * _arg1; | |
2d091820 RD |
5777 | PyObject * _argo0 = 0; |
5778 | PyObject * _argo1 = 0; | |
107e4716 | 5779 | char *_kwnames[] = { "self","bitmap", NULL }; |
c95e68d8 RD |
5780 | |
5781 | self = self; | |
107e4716 | 5782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
c95e68d8 | 5783 | return NULL; |
2d091820 RD |
5784 | if (_argo0) { |
5785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
5788 | return NULL; | |
5789 | } | |
5790 | } | |
2d091820 RD |
5791 | if (_argo1) { |
5792 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5793 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
c95e68d8 RD |
5794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
5795 | return NULL; | |
5796 | } | |
5797 | } | |
ab9bc19b | 5798 | { |
474c48f9 | 5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5800 | wxBrush_SetStipple(_arg0,*_arg1); |
ab9bc19b | 5801 | |
474c48f9 | 5802 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5803 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5804 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5805 | _resultobj = Py_None; |
5806 | return _resultobj; | |
5807 | } | |
5808 | ||
5809 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 5810 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5811 | PyObject * _resultobj; |
5812 | wxBrush * _arg0; | |
5813 | int _arg1; | |
2d091820 | 5814 | PyObject * _argo0 = 0; |
107e4716 | 5815 | char *_kwnames[] = { "self","style", NULL }; |
c95e68d8 RD |
5816 | |
5817 | self = self; | |
107e4716 | 5818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 5819 | return NULL; |
2d091820 RD |
5820 | if (_argo0) { |
5821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
c95e68d8 RD |
5823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
5824 | return NULL; | |
5825 | } | |
5826 | } | |
ab9bc19b | 5827 | { |
474c48f9 | 5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5829 | wxBrush_SetStyle(_arg0,_arg1); |
ab9bc19b | 5830 | |
474c48f9 | 5831 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5832 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 5833 | } Py_INCREF(Py_None); |
c95e68d8 RD |
5834 | _resultobj = Py_None; |
5835 | return _resultobj; | |
5836 | } | |
5837 | ||
65191ae8 RD |
5838 | static void *SwigwxBrushListTowxObject(void *ptr) { |
5839 | wxBrushList *src; | |
5840 | wxObject *dest; | |
5841 | src = (wxBrushList *) ptr; | |
5842 | dest = (wxObject *) src; | |
5843 | return (void *) dest; | |
5844 | } | |
5845 | ||
5e40f9dd RD |
5846 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
5847 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5848 | PyObject * _resultobj; | |
5849 | wxBrushList * _arg0; | |
5850 | wxBrush * _arg1; | |
5851 | PyObject * _argo0 = 0; | |
5852 | PyObject * _argo1 = 0; | |
5853 | char *_kwnames[] = { "self","brush", NULL }; | |
5854 | ||
5855 | self = self; | |
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
5857 | return NULL; | |
5858 | if (_argo0) { | |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
5862 | return NULL; | |
5863 | } | |
5864 | } | |
5865 | if (_argo1) { | |
5866 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5867 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
5869 | return NULL; | |
5870 | } | |
5871 | } | |
5872 | { | |
474c48f9 | 5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5874 | wxBrushList_AddBrush(_arg0,_arg1); |
5e40f9dd | 5875 | |
474c48f9 | 5876 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5877 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5878 | } Py_INCREF(Py_None); |
5879 | _resultobj = Py_None; | |
5880 | return _resultobj; | |
5881 | } | |
5882 | ||
5883 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
5884 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5885 | PyObject * _resultobj; | |
5886 | wxBrush * _result; | |
5887 | wxBrushList * _arg0; | |
5888 | wxColour * _arg1; | |
5889 | int _arg2; | |
5890 | PyObject * _argo0 = 0; | |
5891 | wxColour temp; | |
5892 | PyObject * _obj1 = 0; | |
5893 | char *_kwnames[] = { "self","colour","style", NULL }; | |
5894 | char _ptemp[128]; | |
5895 | ||
5896 | self = self; | |
5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5898 | return NULL; | |
5899 | if (_argo0) { | |
5900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
5903 | return NULL; | |
5904 | } | |
5905 | } | |
5906 | { | |
5907 | _arg1 = &temp; | |
5908 | if (! wxColour_helper(_obj1, &_arg1)) | |
5909 | return NULL; | |
5910 | } | |
5911 | { | |
474c48f9 | 5912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5913 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
5e40f9dd | 5914 | |
474c48f9 | 5915 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5916 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5917 | } if (_result) { |
5918 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5919 | _resultobj = Py_BuildValue("s",_ptemp); | |
5920 | } else { | |
5921 | Py_INCREF(Py_None); | |
5922 | _resultobj = Py_None; | |
5923 | } | |
5924 | return _resultobj; | |
5925 | } | |
5926 | ||
5927 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
5928 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5929 | PyObject * _resultobj; | |
5930 | wxBrushList * _arg0; | |
5931 | wxBrush * _arg1; | |
5932 | PyObject * _argo0 = 0; | |
5933 | PyObject * _argo1 = 0; | |
5934 | char *_kwnames[] = { "self","brush", NULL }; | |
5935 | ||
5936 | self = self; | |
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
5938 | return NULL; | |
5939 | if (_argo0) { | |
5940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
5943 | return NULL; | |
5944 | } | |
5945 | } | |
5946 | if (_argo1) { | |
5947 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5948 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
5950 | return NULL; | |
5951 | } | |
5952 | } | |
5953 | { | |
474c48f9 | 5954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5955 | wxBrushList_RemoveBrush(_arg0,_arg1); |
5e40f9dd | 5956 | |
474c48f9 | 5957 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5958 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
5959 | } Py_INCREF(Py_None); |
5960 | _resultobj = Py_None; | |
5961 | return _resultobj; | |
5962 | } | |
5963 | ||
7a9b33db RD |
5964 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
5965 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5966 | PyObject * _resultobj; | |
5967 | int _result; | |
5968 | wxBrushList * _arg0; | |
5969 | PyObject * _argo0 = 0; | |
5970 | char *_kwnames[] = { "self", NULL }; | |
5971 | ||
5972 | self = self; | |
5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
5974 | return NULL; | |
5975 | if (_argo0) { | |
5976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
5979 | return NULL; | |
5980 | } | |
5981 | } | |
5982 | { | |
474c48f9 | 5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5984 | _result = (int )wxBrushList_GetCount(_arg0); |
7a9b33db | 5985 | |
474c48f9 | 5986 | wxPyEndAllowThreads(__tstate); |
7a9b33db RD |
5987 | if (PyErr_Occurred()) return NULL; |
5988 | } _resultobj = Py_BuildValue("i",_result); | |
5989 | return _resultobj; | |
5990 | } | |
5991 | ||
9df61a29 RD |
5992 | static void *SwigwxDCTowxObject(void *ptr) { |
5993 | wxDC *src; | |
5994 | wxObject *dest; | |
5995 | src = (wxDC *) ptr; | |
5996 | dest = (wxObject *) src; | |
5997 | return (void *) dest; | |
5998 | } | |
5999 | ||
70551f47 | 6000 | #define delete_wxDC(_swigobj) (delete _swigobj) |
107e4716 | 6001 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6002 | PyObject * _resultobj; |
6003 | wxDC * _arg0; | |
2d091820 | 6004 | PyObject * _argo0 = 0; |
107e4716 | 6005 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6006 | |
6007 | self = self; | |
107e4716 | 6008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
70551f47 | 6009 | return NULL; |
2d091820 RD |
6010 | if (_argo0) { |
6011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
6014 | return NULL; | |
6015 | } | |
6016 | } | |
ab9bc19b | 6017 | { |
474c48f9 | 6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6019 | delete_wxDC(_arg0); |
ab9bc19b | 6020 | |
474c48f9 | 6021 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6022 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6023 | } Py_INCREF(Py_None); |
70551f47 RD |
6024 | _resultobj = Py_None; |
6025 | return _resultobj; | |
6026 | } | |
6027 | ||
6028 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
107e4716 | 6029 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6030 | PyObject * _resultobj; |
6031 | wxDC * _arg0; | |
2d091820 | 6032 | PyObject * _argo0 = 0; |
107e4716 | 6033 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6034 | |
6035 | self = self; | |
107e4716 | 6036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
70551f47 | 6037 | return NULL; |
2d091820 RD |
6038 | if (_argo0) { |
6039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
6042 | return NULL; | |
6043 | } | |
6044 | } | |
ab9bc19b | 6045 | { |
474c48f9 | 6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6047 | wxDC_BeginDrawing(_arg0); |
ab9bc19b | 6048 | |
474c48f9 | 6049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6050 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6051 | } Py_INCREF(Py_None); |
70551f47 RD |
6052 | _resultobj = Py_None; |
6053 | return _resultobj; | |
6054 | } | |
6055 | ||
107e4716 RD |
6056 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
6057 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
6058 | PyObject * _resultobj; |
6059 | bool _result; | |
6060 | wxDC * _arg0; | |
6061 | long _arg1; | |
6062 | long _arg2; | |
6063 | long _arg3; | |
6064 | long _arg4; | |
6065 | wxDC * _arg5; | |
6066 | long _arg6; | |
6067 | long _arg7; | |
107e4716 RD |
6068 | int _arg8 = (int ) wxCOPY; |
6069 | int _arg9 = (int ) FALSE; | |
2d091820 RD |
6070 | PyObject * _argo0 = 0; |
6071 | PyObject * _argo5 = 0; | |
107e4716 | 6072 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
70551f47 RD |
6073 | |
6074 | self = self; | |
107e4716 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
70551f47 | 6076 | return NULL; |
2d091820 RD |
6077 | if (_argo0) { |
6078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
6081 | return NULL; | |
6082 | } | |
6083 | } | |
2d091820 RD |
6084 | if (_argo5) { |
6085 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6086 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
70551f47 RD |
6087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
6088 | return NULL; | |
6089 | } | |
6090 | } | |
ab9bc19b | 6091 | { |
474c48f9 | 6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6093 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
ab9bc19b | 6094 | |
474c48f9 | 6095 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6096 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6097 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
6098 | return _resultobj; |
6099 | } | |
6100 | ||
6101 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
107e4716 | 6102 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6103 | PyObject * _resultobj; |
6104 | wxDC * _arg0; | |
2d091820 | 6105 | PyObject * _argo0 = 0; |
107e4716 | 6106 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6107 | |
6108 | self = self; | |
107e4716 | 6109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
70551f47 | 6110 | return NULL; |
2d091820 RD |
6111 | if (_argo0) { |
6112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
6115 | return NULL; | |
6116 | } | |
6117 | } | |
ab9bc19b | 6118 | { |
474c48f9 | 6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6120 | wxDC_Clear(_arg0); |
ab9bc19b | 6121 | |
474c48f9 | 6122 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6123 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6124 | } Py_INCREF(Py_None); |
70551f47 RD |
6125 | _resultobj = Py_None; |
6126 | return _resultobj; | |
6127 | } | |
6128 | ||
6129 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
107e4716 | 6130 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6131 | PyObject * _resultobj; |
6132 | wxDC * _arg0; | |
6133 | long _arg1; | |
6134 | long _arg2; | |
2d091820 | 6135 | PyObject * _argo0 = 0; |
107e4716 | 6136 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6137 | |
6138 | self = self; | |
107e4716 | 6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6140 | return NULL; |
2d091820 RD |
6141 | if (_argo0) { |
6142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
6145 | return NULL; | |
6146 | } | |
6147 | } | |
ab9bc19b | 6148 | { |
474c48f9 | 6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6150 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
ab9bc19b | 6151 | |
474c48f9 | 6152 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6153 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6154 | } Py_INCREF(Py_None); |
70551f47 RD |
6155 | _resultobj = Py_None; |
6156 | return _resultobj; | |
6157 | } | |
6158 | ||
6159 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
107e4716 | 6160 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6161 | PyObject * _resultobj; |
6162 | wxDC * _arg0; | |
2d091820 | 6163 | PyObject * _argo0 = 0; |
107e4716 | 6164 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6165 | |
6166 | self = self; | |
107e4716 | 6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
70551f47 | 6168 | return NULL; |
2d091820 RD |
6169 | if (_argo0) { |
6170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
6173 | return NULL; | |
6174 | } | |
6175 | } | |
ab9bc19b | 6176 | { |
474c48f9 | 6177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6178 | wxDC_DestroyClippingRegion(_arg0); |
ab9bc19b | 6179 | |
474c48f9 | 6180 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6181 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6182 | } Py_INCREF(Py_None); |
70551f47 RD |
6183 | _resultobj = Py_None; |
6184 | return _resultobj; | |
6185 | } | |
6186 | ||
6187 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
107e4716 | 6188 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6189 | PyObject * _resultobj; |
6190 | long _result; | |
6191 | wxDC * _arg0; | |
6192 | long _arg1; | |
2d091820 | 6193 | PyObject * _argo0 = 0; |
107e4716 | 6194 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6195 | |
6196 | self = self; | |
107e4716 | 6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6198 | return NULL; |
2d091820 RD |
6199 | if (_argo0) { |
6200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
6203 | return NULL; | |
6204 | } | |
6205 | } | |
ab9bc19b | 6206 | { |
474c48f9 | 6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6208 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
ab9bc19b | 6209 | |
474c48f9 | 6210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6211 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6212 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6213 | return _resultobj; |
6214 | } | |
6215 | ||
6216 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
107e4716 | 6217 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6218 | PyObject * _resultobj; |
6219 | long _result; | |
6220 | wxDC * _arg0; | |
6221 | long _arg1; | |
2d091820 | 6222 | PyObject * _argo0 = 0; |
107e4716 | 6223 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
6224 | |
6225 | self = self; | |
107e4716 | 6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6227 | return NULL; |
2d091820 RD |
6228 | if (_argo0) { |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
6232 | return NULL; | |
6233 | } | |
6234 | } | |
ab9bc19b | 6235 | { |
474c48f9 | 6236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6237 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
ab9bc19b | 6238 | |
474c48f9 | 6239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6240 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6241 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6242 | return _resultobj; |
6243 | } | |
6244 | ||
6245 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
107e4716 | 6246 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6247 | PyObject * _resultobj; |
6248 | long _result; | |
6249 | wxDC * _arg0; | |
6250 | long _arg1; | |
2d091820 | 6251 | PyObject * _argo0 = 0; |
107e4716 | 6252 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6253 | |
6254 | self = self; | |
107e4716 | 6255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6256 | return NULL; |
2d091820 RD |
6257 | if (_argo0) { |
6258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
6261 | return NULL; | |
6262 | } | |
6263 | } | |
ab9bc19b | 6264 | { |
474c48f9 | 6265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6266 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
ab9bc19b | 6267 | |
474c48f9 | 6268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6269 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6270 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6271 | return _resultobj; |
6272 | } | |
6273 | ||
6274 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
107e4716 | 6275 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6276 | PyObject * _resultobj; |
6277 | long _result; | |
6278 | wxDC * _arg0; | |
6279 | long _arg1; | |
2d091820 | 6280 | PyObject * _argo0 = 0; |
107e4716 | 6281 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
6282 | |
6283 | self = self; | |
107e4716 | 6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6285 | return NULL; |
2d091820 RD |
6286 | if (_argo0) { |
6287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
6290 | return NULL; | |
6291 | } | |
6292 | } | |
ab9bc19b | 6293 | { |
474c48f9 | 6294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6295 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
ab9bc19b | 6296 | |
474c48f9 | 6297 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6298 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6299 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
6300 | return _resultobj; |
6301 | } | |
6302 | ||
6303 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 6304 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6305 | PyObject * _resultobj; |
6306 | wxDC * _arg0; | |
6307 | long _arg1; | |
6308 | long _arg2; | |
6309 | long _arg3; | |
6310 | long _arg4; | |
6311 | long _arg5; | |
6312 | long _arg6; | |
2d091820 | 6313 | PyObject * _argo0 = 0; |
107e4716 | 6314 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
70551f47 RD |
6315 | |
6316 | self = self; | |
107e4716 | 6317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 6318 | return NULL; |
2d091820 RD |
6319 | if (_argo0) { |
6320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
6323 | return NULL; | |
6324 | } | |
6325 | } | |
ab9bc19b | 6326 | { |
474c48f9 | 6327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6328 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 6329 | |
474c48f9 | 6330 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6331 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6332 | } Py_INCREF(Py_None); |
70551f47 RD |
6333 | _resultobj = Py_None; |
6334 | return _resultobj; | |
6335 | } | |
6336 | ||
d24a34bb | 6337 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 6338 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
6339 | PyObject * _resultobj; |
6340 | wxDC * _arg0; | |
6341 | long _arg1; | |
6342 | long _arg2; | |
6343 | long _arg3; | |
2d091820 | 6344 | PyObject * _argo0 = 0; |
107e4716 | 6345 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
d24a34bb RD |
6346 | |
6347 | self = self; | |
107e4716 | 6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
d24a34bb | 6349 | return NULL; |
2d091820 RD |
6350 | if (_argo0) { |
6351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
6353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
6354 | return NULL; | |
6355 | } | |
6356 | } | |
6357 | { | |
474c48f9 | 6358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6359 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
d24a34bb | 6360 | |
474c48f9 | 6361 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6362 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6363 | } Py_INCREF(Py_None); |
6364 | _resultobj = Py_None; | |
6365 | return _resultobj; | |
6366 | } | |
6367 | ||
70551f47 | 6368 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 6369 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6370 | PyObject * _resultobj; |
6371 | wxDC * _arg0; | |
6372 | long _arg1; | |
6373 | long _arg2; | |
6374 | long _arg3; | |
6375 | long _arg4; | |
2d091820 | 6376 | PyObject * _argo0 = 0; |
107e4716 | 6377 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6378 | |
6379 | self = self; | |
107e4716 | 6380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6381 | return NULL; |
2d091820 RD |
6382 | if (_argo0) { |
6383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
6386 | return NULL; | |
6387 | } | |
6388 | } | |
ab9bc19b | 6389 | { |
474c48f9 | 6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6391 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 6392 | |
474c48f9 | 6393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6394 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6395 | } Py_INCREF(Py_None); |
70551f47 RD |
6396 | _resultobj = Py_None; |
6397 | return _resultobj; | |
6398 | } | |
6399 | ||
6400 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 6401 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6402 | PyObject * _resultobj; |
6403 | wxDC * _arg0; | |
6404 | long _arg1; | |
6405 | long _arg2; | |
6406 | long _arg3; | |
6407 | long _arg4; | |
6408 | long _arg5; | |
6409 | long _arg6; | |
2d091820 | 6410 | PyObject * _argo0 = 0; |
107e4716 | 6411 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
70551f47 RD |
6412 | |
6413 | self = self; | |
107e4716 | 6414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 6415 | return NULL; |
2d091820 RD |
6416 | if (_argo0) { |
6417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
6420 | return NULL; | |
6421 | } | |
6422 | } | |
ab9bc19b | 6423 | { |
474c48f9 | 6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6425 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 6426 | |
474c48f9 | 6427 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6428 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6429 | } Py_INCREF(Py_None); |
70551f47 RD |
6430 | _resultobj = Py_None; |
6431 | return _resultobj; | |
6432 | } | |
6433 | ||
6434 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6435 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6436 | PyObject * _resultobj; |
6437 | wxDC * _arg0; | |
6438 | wxIcon * _arg1; | |
6439 | long _arg2; | |
6440 | long _arg3; | |
2d091820 RD |
6441 | PyObject * _argo0 = 0; |
6442 | PyObject * _argo1 = 0; | |
107e4716 | 6443 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
70551f47 RD |
6444 | |
6445 | self = self; | |
107e4716 | 6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
70551f47 | 6447 | return NULL; |
2d091820 RD |
6448 | if (_argo0) { |
6449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
6452 | return NULL; | |
6453 | } | |
6454 | } | |
2d091820 RD |
6455 | if (_argo1) { |
6456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
70551f47 RD |
6458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
6459 | return NULL; | |
6460 | } | |
6461 | } | |
ab9bc19b | 6462 | { |
474c48f9 | 6463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6464 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 6465 | |
474c48f9 | 6466 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6467 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6468 | } Py_INCREF(Py_None); |
70551f47 RD |
6469 | _resultobj = Py_None; |
6470 | return _resultobj; | |
6471 | } | |
6472 | ||
8cb49012 RD |
6473 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6474 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6475 | PyObject * _resultobj; | |
6476 | wxDC * _arg0; | |
6477 | wxString * _arg1; | |
6478 | wxRect * _arg2; | |
6479 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6480 | int _arg4 = (int ) -1; | |
6481 | PyObject * _argo0 = 0; | |
6482 | PyObject * _obj1 = 0; | |
6483 | wxRect temp; | |
6484 | PyObject * _obj2 = 0; | |
6485 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
6486 | ||
6487 | self = self; | |
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
6489 | return NULL; | |
6490 | if (_argo0) { | |
6491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
6494 | return NULL; | |
6495 | } | |
6496 | } | |
6497 | { | |
c8bc7bb8 RD |
6498 | _arg1 = wxString_in_helper(_obj1); |
6499 | if (_arg1 == NULL) | |
8cb49012 | 6500 | return NULL; |
8cb49012 RD |
6501 | } |
6502 | { | |
6503 | _arg2 = &temp; | |
6504 | if (! wxRect_helper(_obj2, &_arg2)) | |
6505 | return NULL; | |
6506 | } | |
6507 | { | |
6508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6509 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
8cb49012 RD |
6510 | |
6511 | wxPyEndAllowThreads(__tstate); | |
6512 | if (PyErr_Occurred()) return NULL; | |
6513 | } Py_INCREF(Py_None); | |
6514 | _resultobj = Py_None; | |
6515 | { | |
6516 | if (_obj1) | |
6517 | delete _arg1; | |
6518 | } | |
6519 | return _resultobj; | |
6520 | } | |
6521 | ||
6522 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
6523 | wxRect rv; | |
6524 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
6525 | return rv; | |
6526 | } | |
6527 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6528 | PyObject * _resultobj; | |
6529 | wxRect * _result; | |
6530 | wxDC * _arg0; | |
6531 | wxString * _arg1; | |
6532 | wxBitmap * _arg2; | |
6533 | wxRect * _arg3; | |
6534 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6535 | int _arg5 = (int ) -1; | |
6536 | PyObject * _argo0 = 0; | |
6537 | PyObject * _obj1 = 0; | |
6538 | PyObject * _argo2 = 0; | |
6539 | wxRect temp; | |
6540 | PyObject * _obj3 = 0; | |
6541 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
6542 | char _ptemp[128]; | |
6543 | ||
6544 | self = self; | |
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
6546 | return NULL; | |
6547 | if (_argo0) { | |
6548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
6551 | return NULL; | |
6552 | } | |
6553 | } | |
6554 | { | |
c8bc7bb8 RD |
6555 | _arg1 = wxString_in_helper(_obj1); |
6556 | if (_arg1 == NULL) | |
8cb49012 | 6557 | return NULL; |
8cb49012 RD |
6558 | } |
6559 | if (_argo2) { | |
6560 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6561 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
6562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
6563 | return NULL; | |
6564 | } | |
6565 | } | |
6566 | { | |
6567 | _arg3 = &temp; | |
6568 | if (! wxRect_helper(_obj3, &_arg3)) | |
6569 | return NULL; | |
6570 | } | |
6571 | { | |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6573 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
8cb49012 RD |
6574 | |
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) return NULL; | |
6577 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
6578 | _resultobj = Py_BuildValue("s",_ptemp); | |
6579 | { | |
6580 | if (_obj1) | |
6581 | delete _arg1; | |
6582 | } | |
6583 | return _resultobj; | |
6584 | } | |
6585 | ||
70551f47 | 6586 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 6587 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6588 | PyObject * _resultobj; |
6589 | wxDC * _arg0; | |
6590 | long _arg1; | |
6591 | long _arg2; | |
6592 | long _arg3; | |
6593 | long _arg4; | |
2d091820 | 6594 | PyObject * _argo0 = 0; |
107e4716 | 6595 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
70551f47 RD |
6596 | |
6597 | self = self; | |
107e4716 | 6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6599 | return NULL; |
2d091820 RD |
6600 | if (_argo0) { |
6601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
6604 | return NULL; | |
6605 | } | |
6606 | } | |
ab9bc19b | 6607 | { |
474c48f9 | 6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6609 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 6610 | |
474c48f9 | 6611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6612 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6613 | } Py_INCREF(Py_None); |
70551f47 RD |
6614 | _resultobj = Py_None; |
6615 | return _resultobj; | |
6616 | } | |
6617 | ||
6618 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6619 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6620 | PyObject * _resultobj; |
6621 | wxDC * _arg0; | |
6622 | int _arg1; | |
6623 | wxPoint * _arg2; | |
2d091820 RD |
6624 | long _arg3 = (long ) 0; |
6625 | long _arg4 = (long ) 0; | |
6626 | PyObject * _argo0 = 0; | |
1c09ae54 | 6627 | int NPOINTS; |
70551f47 | 6628 | PyObject * _obj2 = 0; |
e02c03a4 | 6629 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
70551f47 RD |
6630 | |
6631 | self = self; | |
107e4716 | 6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
70551f47 | 6633 | return NULL; |
2d091820 RD |
6634 | if (_argo0) { |
6635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
6638 | return NULL; | |
6639 | } | |
6640 | } | |
6641 | if (_obj2) | |
6642 | { | |
1c09ae54 RD |
6643 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6644 | if (_arg2 == NULL) { | |
6645 | return NULL; | |
6646 | } | |
70551f47 RD |
6647 | } |
6648 | { | |
1c09ae54 | 6649 | _arg1 = NPOINTS; |
70551f47 | 6650 | } |
ab9bc19b | 6651 | { |
474c48f9 | 6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6653 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 6654 | |
474c48f9 | 6655 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6656 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6657 | } Py_INCREF(Py_None); |
70551f47 RD |
6658 | _resultobj = Py_None; |
6659 | { | |
6660 | delete [] _arg2; | |
6661 | } | |
6662 | return _resultobj; | |
6663 | } | |
6664 | ||
6665 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 6666 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6667 | PyObject * _resultobj; |
6668 | wxDC * _arg0; | |
6669 | int _arg1; | |
6670 | wxPoint * _arg2; | |
2d091820 RD |
6671 | long _arg3 = (long ) 0; |
6672 | long _arg4 = (long ) 0; | |
6673 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6674 | PyObject * _argo0 = 0; | |
1c09ae54 | 6675 | int NPOINTS; |
70551f47 | 6676 | PyObject * _obj2 = 0; |
e02c03a4 | 6677 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
70551f47 RD |
6678 | |
6679 | self = self; | |
107e4716 | 6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 6681 | return NULL; |
2d091820 RD |
6682 | if (_argo0) { |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | if (_obj2) | |
6690 | { | |
1c09ae54 RD |
6691 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6692 | if (_arg2 == NULL) { | |
6693 | return NULL; | |
6694 | } | |
70551f47 RD |
6695 | } |
6696 | { | |
1c09ae54 | 6697 | _arg1 = NPOINTS; |
70551f47 | 6698 | } |
ab9bc19b | 6699 | { |
474c48f9 | 6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6701 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 6702 | |
474c48f9 | 6703 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6704 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6705 | } Py_INCREF(Py_None); |
70551f47 RD |
6706 | _resultobj = Py_None; |
6707 | { | |
6708 | delete [] _arg2; | |
6709 | } | |
6710 | return _resultobj; | |
6711 | } | |
6712 | ||
6713 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
107e4716 | 6714 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6715 | PyObject * _resultobj; |
6716 | wxDC * _arg0; | |
6717 | long _arg1; | |
6718 | long _arg2; | |
2d091820 | 6719 | PyObject * _argo0 = 0; |
107e4716 | 6720 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
6721 | |
6722 | self = self; | |
107e4716 | 6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 6724 | return NULL; |
2d091820 RD |
6725 | if (_argo0) { |
6726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
6729 | return NULL; | |
6730 | } | |
6731 | } | |
ab9bc19b | 6732 | { |
474c48f9 | 6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6734 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
ab9bc19b | 6735 | |
474c48f9 | 6736 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6737 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6738 | } Py_INCREF(Py_None); |
70551f47 RD |
6739 | _resultobj = Py_None; |
6740 | return _resultobj; | |
6741 | } | |
6742 | ||
6743 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 6744 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6745 | PyObject * _resultobj; |
6746 | wxDC * _arg0; | |
6747 | long _arg1; | |
6748 | long _arg2; | |
6749 | long _arg3; | |
6750 | long _arg4; | |
2d091820 | 6751 | PyObject * _argo0 = 0; |
107e4716 | 6752 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
6753 | |
6754 | self = self; | |
107e4716 | 6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 6756 | return NULL; |
2d091820 RD |
6757 | if (_argo0) { |
6758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
6761 | return NULL; | |
6762 | } | |
6763 | } | |
ab9bc19b | 6764 | { |
474c48f9 | 6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6766 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 6767 | |
474c48f9 | 6768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6769 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6770 | } Py_INCREF(Py_None); |
70551f47 RD |
6771 | _resultobj = Py_None; |
6772 | return _resultobj; | |
6773 | } | |
6774 | ||
56f5d962 RD |
6775 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6776 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6777 | PyObject * _resultobj; | |
6778 | wxDC * _arg0; | |
6779 | wxString * _arg1; | |
6780 | wxCoord _arg2; | |
6781 | wxCoord _arg3; | |
6782 | double _arg4; | |
6783 | PyObject * _argo0 = 0; | |
6784 | PyObject * _obj1 = 0; | |
6785 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6786 | ||
6787 | self = self; | |
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6789 | return NULL; | |
6790 | if (_argo0) { | |
6791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6794 | return NULL; | |
6795 | } | |
6796 | } | |
6797 | { | |
c8bc7bb8 RD |
6798 | _arg1 = wxString_in_helper(_obj1); |
6799 | if (_arg1 == NULL) | |
2cd2fac8 | 6800 | return NULL; |
56f5d962 RD |
6801 | } |
6802 | { | |
474c48f9 | 6803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6804 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
56f5d962 | 6805 | |
474c48f9 | 6806 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6807 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
6808 | } Py_INCREF(Py_None); |
6809 | _resultobj = Py_None; | |
6810 | { | |
6811 | if (_obj1) | |
6812 | delete _arg1; | |
6813 | } | |
6814 | return _resultobj; | |
6815 | } | |
6816 | ||
70551f47 | 6817 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 6818 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6819 | PyObject * _resultobj; |
6820 | wxDC * _arg0; | |
6821 | long _arg1; | |
6822 | long _arg2; | |
6823 | long _arg3; | |
6824 | long _arg4; | |
2d091820 RD |
6825 | long _arg5 = (long ) 20; |
6826 | PyObject * _argo0 = 0; | |
107e4716 | 6827 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
70551f47 RD |
6828 | |
6829 | self = self; | |
107e4716 | 6830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 6831 | return NULL; |
2d091820 RD |
6832 | if (_argo0) { |
6833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
6836 | return NULL; | |
6837 | } | |
6838 | } | |
ab9bc19b | 6839 | { |
474c48f9 | 6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6841 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
ab9bc19b | 6842 | |
474c48f9 | 6843 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6844 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6845 | } Py_INCREF(Py_None); |
70551f47 RD |
6846 | _resultobj = Py_None; |
6847 | return _resultobj; | |
6848 | } | |
6849 | ||
6850 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
107e4716 | 6851 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6852 | PyObject * _resultobj; |
6853 | wxDC * _arg0; | |
6854 | int _arg1; | |
6855 | wxPoint * _arg2; | |
2d091820 | 6856 | PyObject * _argo0 = 0; |
1c09ae54 | 6857 | int NPOINTS; |
70551f47 | 6858 | PyObject * _obj2 = 0; |
e02c03a4 | 6859 | char *_kwnames[] = { "self","points", NULL }; |
70551f47 RD |
6860 | |
6861 | self = self; | |
107e4716 | 6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
70551f47 | 6863 | return NULL; |
2d091820 RD |
6864 | if (_argo0) { |
6865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
6868 | return NULL; | |
6869 | } | |
6870 | } | |
6871 | if (_obj2) | |
6872 | { | |
1c09ae54 RD |
6873 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6874 | if (_arg2 == NULL) { | |
6875 | return NULL; | |
6876 | } | |
70551f47 RD |
6877 | } |
6878 | { | |
1c09ae54 | 6879 | _arg1 = NPOINTS; |
70551f47 | 6880 | } |
ab9bc19b | 6881 | { |
474c48f9 | 6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6883 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
ab9bc19b | 6884 | |
474c48f9 | 6885 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6886 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6887 | } Py_INCREF(Py_None); |
70551f47 RD |
6888 | _resultobj = Py_None; |
6889 | { | |
6890 | delete [] _arg2; | |
6891 | } | |
6892 | return _resultobj; | |
6893 | } | |
6894 | ||
6895 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 6896 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6897 | PyObject * _resultobj; |
6898 | wxDC * _arg0; | |
6899 | wxString * _arg1; | |
6900 | long _arg2; | |
6901 | long _arg3; | |
2d091820 | 6902 | PyObject * _argo0 = 0; |
70551f47 | 6903 | PyObject * _obj1 = 0; |
107e4716 | 6904 | char *_kwnames[] = { "self","text","x","y", NULL }; |
70551f47 RD |
6905 | |
6906 | self = self; | |
107e4716 | 6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
70551f47 | 6908 | return NULL; |
2d091820 RD |
6909 | if (_argo0) { |
6910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
6913 | return NULL; | |
6914 | } | |
6915 | } | |
6916 | { | |
c8bc7bb8 RD |
6917 | _arg1 = wxString_in_helper(_obj1); |
6918 | if (_arg1 == NULL) | |
70551f47 | 6919 | return NULL; |
70551f47 | 6920 | } |
ab9bc19b | 6921 | { |
474c48f9 | 6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6923 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 6924 | |
474c48f9 | 6925 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6926 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6927 | } Py_INCREF(Py_None); |
70551f47 RD |
6928 | _resultobj = Py_None; |
6929 | { | |
6930 | if (_obj1) | |
6931 | delete _arg1; | |
6932 | } | |
6933 | return _resultobj; | |
6934 | } | |
6935 | ||
6936 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
107e4716 | 6937 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6938 | PyObject * _resultobj; |
6939 | wxDC * _arg0; | |
2d091820 | 6940 | PyObject * _argo0 = 0; |
107e4716 | 6941 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6942 | |
6943 | self = self; | |
107e4716 | 6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
70551f47 | 6945 | return NULL; |
2d091820 RD |
6946 | if (_argo0) { |
6947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
6950 | return NULL; | |
6951 | } | |
6952 | } | |
ab9bc19b | 6953 | { |
474c48f9 | 6954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6955 | wxDC_EndDoc(_arg0); |
ab9bc19b | 6956 | |
474c48f9 | 6957 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6958 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6959 | } Py_INCREF(Py_None); |
70551f47 RD |
6960 | _resultobj = Py_None; |
6961 | return _resultobj; | |
6962 | } | |
6963 | ||
6964 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
107e4716 | 6965 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6966 | PyObject * _resultobj; |
6967 | wxDC * _arg0; | |
2d091820 | 6968 | PyObject * _argo0 = 0; |
107e4716 | 6969 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6970 | |
6971 | self = self; | |
107e4716 | 6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
70551f47 | 6973 | return NULL; |
2d091820 RD |
6974 | if (_argo0) { |
6975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
6977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
6978 | return NULL; | |
6979 | } | |
6980 | } | |
ab9bc19b | 6981 | { |
474c48f9 | 6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6983 | wxDC_EndDrawing(_arg0); |
ab9bc19b | 6984 | |
474c48f9 | 6985 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6986 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 6987 | } Py_INCREF(Py_None); |
70551f47 RD |
6988 | _resultobj = Py_None; |
6989 | return _resultobj; | |
6990 | } | |
6991 | ||
6992 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
107e4716 | 6993 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6994 | PyObject * _resultobj; |
6995 | wxDC * _arg0; | |
2d091820 | 6996 | PyObject * _argo0 = 0; |
107e4716 | 6997 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6998 | |
6999 | self = self; | |
107e4716 | 7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
70551f47 | 7001 | return NULL; |
2d091820 RD |
7002 | if (_argo0) { |
7003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
ab9bc19b | 7009 | { |
474c48f9 | 7010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7011 | wxDC_EndPage(_arg0); |
ab9bc19b | 7012 | |
474c48f9 | 7013 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7014 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7015 | } Py_INCREF(Py_None); |
70551f47 RD |
7016 | _resultobj = Py_None; |
7017 | return _resultobj; | |
7018 | } | |
7019 | ||
7020 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 7021 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7022 | PyObject * _resultobj; |
7023 | wxDC * _arg0; | |
7024 | long _arg1; | |
7025 | long _arg2; | |
7026 | wxColour * _arg3; | |
2d091820 RD |
7027 | int _arg4 = (int ) wxFLOOD_SURFACE; |
7028 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
7029 | wxColour temp; |
7030 | PyObject * _obj3 = 0; | |
107e4716 | 7031 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
70551f47 RD |
7032 | |
7033 | self = self; | |
f6bcfd97 | 7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
70551f47 | 7035 | return NULL; |
2d091820 RD |
7036 | if (_argo0) { |
7037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
7040 | return NULL; | |
7041 | } | |
7042 | } | |
f6bcfd97 BP |
7043 | { |
7044 | _arg3 = &temp; | |
7045 | if (! wxColour_helper(_obj3, &_arg3)) | |
70551f47 | 7046 | return NULL; |
f6bcfd97 | 7047 | } |
ab9bc19b | 7048 | { |
474c48f9 | 7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7050 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
ab9bc19b | 7051 | |
474c48f9 | 7052 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7053 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7054 | } Py_INCREF(Py_None); |
70551f47 RD |
7055 | _resultobj = Py_None; |
7056 | return _resultobj; | |
7057 | } | |
7058 | ||
7059 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
107e4716 | 7060 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7061 | PyObject * _resultobj; |
7062 | wxBrush * _result; | |
7063 | wxDC * _arg0; | |
2d091820 | 7064 | PyObject * _argo0 = 0; |
107e4716 | 7065 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7066 | char _ptemp[128]; |
7067 | ||
7068 | self = self; | |
107e4716 | 7069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
70551f47 | 7070 | return NULL; |
2d091820 RD |
7071 | if (_argo0) { |
7072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
7075 | return NULL; | |
7076 | } | |
7077 | } | |
ab9bc19b | 7078 | { |
474c48f9 | 7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7080 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
ab9bc19b | 7081 | |
474c48f9 | 7082 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7083 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7084 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7085 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7086 | return _resultobj; |
7087 | } | |
7088 | ||
7089 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
107e4716 | 7090 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7091 | PyObject * _resultobj; |
7092 | wxBrush * _result; | |
7093 | wxDC * _arg0; | |
2d091820 | 7094 | PyObject * _argo0 = 0; |
107e4716 | 7095 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7096 | char _ptemp[128]; |
7097 | ||
7098 | self = self; | |
107e4716 | 7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
70551f47 | 7100 | return NULL; |
2d091820 RD |
7101 | if (_argo0) { |
7102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
7105 | return NULL; | |
7106 | } | |
7107 | } | |
ab9bc19b | 7108 | { |
474c48f9 | 7109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7110 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
ab9bc19b | 7111 | |
474c48f9 | 7112 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7113 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7114 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7115 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7116 | return _resultobj; |
7117 | } | |
7118 | ||
7119 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
107e4716 | 7120 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7121 | PyObject * _resultobj; |
7122 | long _result; | |
7123 | wxDC * _arg0; | |
2d091820 | 7124 | PyObject * _argo0 = 0; |
107e4716 | 7125 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7126 | |
7127 | self = self; | |
107e4716 | 7128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 7129 | return NULL; |
2d091820 RD |
7130 | if (_argo0) { |
7131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
7134 | return NULL; | |
7135 | } | |
7136 | } | |
ab9bc19b | 7137 | { |
474c48f9 | 7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7139 | _result = (long )wxDC_GetCharHeight(_arg0); |
ab9bc19b | 7140 | |
474c48f9 | 7141 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7142 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7143 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7144 | return _resultobj; |
7145 | } | |
7146 | ||
7147 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 7148 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7149 | PyObject * _resultobj; |
7150 | long _result; | |
7151 | wxDC * _arg0; | |
2d091820 | 7152 | PyObject * _argo0 = 0; |
107e4716 | 7153 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7154 | |
7155 | self = self; | |
107e4716 | 7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 7157 | return NULL; |
2d091820 RD |
7158 | if (_argo0) { |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
ab9bc19b | 7165 | { |
474c48f9 | 7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7167 | _result = (long )wxDC_GetCharWidth(_arg0); |
ab9bc19b | 7168 | |
474c48f9 | 7169 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7170 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7171 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7172 | return _resultobj; |
7173 | } | |
7174 | ||
7175 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 7176 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7177 | PyObject * _resultobj; |
7178 | wxDC * _arg0; | |
7179 | long * _arg1; | |
7180 | long temp; | |
7181 | long * _arg2; | |
7182 | long temp0; | |
7183 | long * _arg3; | |
7184 | long temp1; | |
7185 | long * _arg4; | |
7186 | long temp2; | |
2d091820 | 7187 | PyObject * _argo0 = 0; |
107e4716 | 7188 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7189 | |
7190 | self = self; | |
7191 | { | |
7192 | _arg1 = &temp; | |
7193 | } | |
7194 | { | |
7195 | _arg2 = &temp0; | |
7196 | } | |
7197 | { | |
7198 | _arg3 = &temp1; | |
7199 | } | |
7200 | { | |
7201 | _arg4 = &temp2; | |
7202 | } | |
107e4716 | 7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
70551f47 | 7204 | return NULL; |
2d091820 RD |
7205 | if (_argo0) { |
7206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
7209 | return NULL; | |
7210 | } | |
7211 | } | |
ab9bc19b | 7212 | { |
474c48f9 | 7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7214 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 7215 | |
474c48f9 | 7216 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7217 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7218 | } Py_INCREF(Py_None); |
70551f47 RD |
7219 | _resultobj = Py_None; |
7220 | { | |
7221 | PyObject *o; | |
7222 | o = PyInt_FromLong((long) (*_arg1)); | |
7223 | _resultobj = t_output_helper(_resultobj, o); | |
7224 | } | |
7225 | { | |
7226 | PyObject *o; | |
7227 | o = PyInt_FromLong((long) (*_arg2)); | |
7228 | _resultobj = t_output_helper(_resultobj, o); | |
7229 | } | |
7230 | { | |
7231 | PyObject *o; | |
7232 | o = PyInt_FromLong((long) (*_arg3)); | |
7233 | _resultobj = t_output_helper(_resultobj, o); | |
7234 | } | |
7235 | { | |
7236 | PyObject *o; | |
7237 | o = PyInt_FromLong((long) (*_arg4)); | |
7238 | _resultobj = t_output_helper(_resultobj, o); | |
7239 | } | |
7240 | return _resultobj; | |
7241 | } | |
7242 | ||
7243 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
107e4716 | 7244 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7245 | PyObject * _resultobj; |
7246 | wxFont * _result; | |
7247 | wxDC * _arg0; | |
2d091820 | 7248 | PyObject * _argo0 = 0; |
107e4716 | 7249 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7250 | char _ptemp[128]; |
7251 | ||
7252 | self = self; | |
107e4716 | 7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
70551f47 | 7254 | return NULL; |
2d091820 RD |
7255 | if (_argo0) { |
7256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
7259 | return NULL; | |
7260 | } | |
7261 | } | |
ab9bc19b | 7262 | { |
474c48f9 | 7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7264 | _result = new wxFont (wxDC_GetFont(_arg0)); |
ab9bc19b | 7265 | |
474c48f9 | 7266 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7267 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7268 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
7269 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7270 | return _resultobj; |
7271 | } | |
7272 | ||
7273 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
107e4716 | 7274 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7275 | PyObject * _resultobj; |
7276 | int _result; | |
7277 | wxDC * _arg0; | |
2d091820 | 7278 | PyObject * _argo0 = 0; |
107e4716 | 7279 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7280 | |
7281 | self = self; | |
107e4716 | 7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
70551f47 | 7283 | return NULL; |
2d091820 RD |
7284 | if (_argo0) { |
7285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
7288 | return NULL; | |
7289 | } | |
7290 | } | |
ab9bc19b | 7291 | { |
474c48f9 | 7292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7293 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
ab9bc19b | 7294 | |
474c48f9 | 7295 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7296 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7297 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7298 | return _resultobj; |
7299 | } | |
7300 | ||
e02c03a4 RD |
7301 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
7302 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7303 | PyObject * _resultobj; | |
7304 | wxDC * _arg0; | |
7305 | double * _arg1; | |
7306 | double temp; | |
7307 | double * _arg2; | |
7308 | double temp0; | |
7309 | PyObject * _argo0 = 0; | |
7310 | char *_kwnames[] = { "self", NULL }; | |
7311 | ||
7312 | self = self; | |
7313 | { | |
7314 | _arg1 = &temp; | |
7315 | } | |
7316 | { | |
7317 | _arg2 = &temp0; | |
7318 | } | |
7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7320 | return NULL; | |
7321 | if (_argo0) { | |
7322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7325 | return NULL; | |
7326 | } | |
7327 | } | |
7328 | { | |
474c48f9 | 7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7330 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
e02c03a4 | 7331 | |
474c48f9 | 7332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7333 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7334 | } Py_INCREF(Py_None); |
7335 | _resultobj = Py_None; | |
7336 | { | |
7337 | PyObject *o; | |
7338 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7339 | _resultobj = t_output_helper(_resultobj, o); | |
7340 | } | |
7341 | { | |
7342 | PyObject *o; | |
7343 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7344 | _resultobj = t_output_helper(_resultobj, o); | |
7345 | } | |
7346 | return _resultobj; | |
7347 | } | |
7348 | ||
70551f47 | 7349 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
107e4716 | 7350 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7351 | PyObject * _resultobj; |
7352 | int _result; | |
7353 | wxDC * _arg0; | |
2d091820 | 7354 | PyObject * _argo0 = 0; |
107e4716 | 7355 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7356 | |
7357 | self = self; | |
107e4716 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
70551f47 | 7359 | return NULL; |
2d091820 RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
ab9bc19b | 7367 | { |
474c48f9 | 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7369 | _result = (int )wxDC_GetMapMode(_arg0); |
ab9bc19b | 7370 | |
474c48f9 | 7371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7372 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7373 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7374 | return _resultobj; |
7375 | } | |
7376 | ||
7377 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
107e4716 | 7378 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7379 | PyObject * _resultobj; |
7380 | bool _result; | |
7381 | wxDC * _arg0; | |
2d091820 | 7382 | PyObject * _argo0 = 0; |
107e4716 | 7383 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7384 | |
7385 | self = self; | |
107e4716 | 7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
70551f47 | 7387 | return NULL; |
2d091820 RD |
7388 | if (_argo0) { |
7389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
7392 | return NULL; | |
7393 | } | |
7394 | } | |
ab9bc19b | 7395 | { |
474c48f9 | 7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7397 | _result = (bool )wxDC_GetOptimization(_arg0); |
ab9bc19b | 7398 | |
474c48f9 | 7399 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7400 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7401 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
7402 | return _resultobj; |
7403 | } | |
7404 | ||
7405 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
107e4716 | 7406 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7407 | PyObject * _resultobj; |
7408 | wxPen * _result; | |
7409 | wxDC * _arg0; | |
2d091820 | 7410 | PyObject * _argo0 = 0; |
107e4716 | 7411 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7412 | char _ptemp[128]; |
7413 | ||
7414 | self = self; | |
107e4716 | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
70551f47 | 7416 | return NULL; |
2d091820 RD |
7417 | if (_argo0) { |
7418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
7421 | return NULL; | |
7422 | } | |
7423 | } | |
ab9bc19b | 7424 | { |
474c48f9 | 7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7426 | _result = new wxPen (wxDC_GetPen(_arg0)); |
ab9bc19b | 7427 | |
474c48f9 | 7428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7429 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
7430 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
7431 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7432 | return _resultobj; |
7433 | } | |
7434 | ||
7435 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7436 | wxColour* wc = new wxColour(); | |
7437 | self->GetPixel(x, y, wc); | |
7438 | return wc; | |
7439 | } | |
107e4716 | 7440 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7441 | PyObject * _resultobj; |
7442 | wxColour * _result; | |
7443 | wxDC * _arg0; | |
7444 | long _arg1; | |
7445 | long _arg2; | |
2d091820 | 7446 | PyObject * _argo0 = 0; |
107e4716 | 7447 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
7448 | char _ptemp[128]; |
7449 | ||
7450 | self = self; | |
107e4716 | 7451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 7452 | return NULL; |
2d091820 RD |
7453 | if (_argo0) { |
7454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
7457 | return NULL; | |
7458 | } | |
7459 | } | |
ab9bc19b | 7460 | { |
474c48f9 | 7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7462 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
ab9bc19b | 7463 | |
474c48f9 | 7464 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7465 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
7466 | } if (_result) { |
7467 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7468 | _resultobj = Py_BuildValue("s",_ptemp); | |
7469 | } else { | |
7470 | Py_INCREF(Py_None); | |
7471 | _resultobj = Py_None; | |
7472 | } | |
70551f47 RD |
7473 | return _resultobj; |
7474 | } | |
7475 | ||
d24a34bb | 7476 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 7477 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7478 | PyObject * _resultobj; |
7479 | wxDC * _arg0; | |
7480 | int * _arg1; | |
7481 | int temp; | |
7482 | int * _arg2; | |
7483 | int temp0; | |
2d091820 | 7484 | PyObject * _argo0 = 0; |
107e4716 | 7485 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7486 | |
7487 | self = self; | |
7488 | { | |
7489 | _arg1 = &temp; | |
7490 | } | |
7491 | { | |
7492 | _arg2 = &temp0; | |
7493 | } | |
107e4716 | 7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 7495 | return NULL; |
2d091820 RD |
7496 | if (_argo0) { |
7497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb | 7499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
70551f47 RD |
7500 | return NULL; |
7501 | } | |
7502 | } | |
ab9bc19b | 7503 | { |
474c48f9 | 7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7505 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
ab9bc19b | 7506 | |
474c48f9 | 7507 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7508 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7509 | } Py_INCREF(Py_None); |
70551f47 RD |
7510 | _resultobj = Py_None; |
7511 | { | |
7512 | PyObject *o; | |
7513 | o = PyInt_FromLong((long) (*_arg1)); | |
7514 | _resultobj = t_output_helper(_resultobj, o); | |
7515 | } | |
7516 | { | |
7517 | PyObject *o; | |
7518 | o = PyInt_FromLong((long) (*_arg2)); | |
7519 | _resultobj = t_output_helper(_resultobj, o); | |
7520 | } | |
7521 | return _resultobj; | |
7522 | } | |
7523 | ||
d24a34bb | 7524 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 7525 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
7526 | PyObject * _resultobj; |
7527 | wxSize * _result; | |
7528 | wxDC * _arg0; | |
2d091820 | 7529 | PyObject * _argo0 = 0; |
107e4716 | 7530 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
7531 | char _ptemp[128]; |
7532 | ||
7533 | self = self; | |
107e4716 | 7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
d24a34bb | 7535 | return NULL; |
2d091820 RD |
7536 | if (_argo0) { |
7537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
d24a34bb RD |
7539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
7540 | return NULL; | |
7541 | } | |
7542 | } | |
7543 | { | |
474c48f9 | 7544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7545 | _result = new wxSize (wxDC_GetSize(_arg0)); |
d24a34bb | 7546 | |
474c48f9 | 7547 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7548 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7549 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7550 | _resultobj = Py_BuildValue("s",_ptemp); | |
7551 | return _resultobj; | |
7552 | } | |
7553 | ||
e02c03a4 RD |
7554 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
7555 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject * _resultobj; | |
7557 | wxSize * _result; | |
7558 | wxDC * _arg0; | |
7559 | PyObject * _argo0 = 0; | |
7560 | char *_kwnames[] = { "self", NULL }; | |
7561 | char _ptemp[128]; | |
7562 | ||
7563 | self = self; | |
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7565 | return NULL; | |
7566 | if (_argo0) { | |
7567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7570 | return NULL; | |
7571 | } | |
7572 | } | |
7573 | { | |
474c48f9 | 7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7575 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
e02c03a4 | 7576 | |
474c48f9 | 7577 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7578 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7579 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7580 | _resultobj = Py_BuildValue("s",_ptemp); | |
7581 | return _resultobj; | |
7582 | } | |
7583 | ||
70551f47 | 7584 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
107e4716 | 7585 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7586 | PyObject * _resultobj; |
7587 | wxColour * _result; | |
7588 | wxDC * _arg0; | |
2d091820 | 7589 | PyObject * _argo0 = 0; |
107e4716 | 7590 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7591 | char _ptemp[128]; |
7592 | ||
7593 | self = self; | |
107e4716 | 7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
70551f47 | 7595 | return NULL; |
2d091820 RD |
7596 | if (_argo0) { |
7597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
7600 | return NULL; | |
7601 | } | |
7602 | } | |
ab9bc19b | 7603 | { |
474c48f9 | 7604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7605 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
ab9bc19b | 7606 | |
474c48f9 | 7607 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7608 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
7609 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7610 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7611 | return _resultobj; |
7612 | } | |
7613 | ||
21f8d7ea | 7614 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 7615 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
7616 | PyObject * _resultobj; |
7617 | wxDC * _arg0; | |
7618 | wxString * _arg1; | |
7619 | long * _arg2; | |
7620 | long temp; | |
7621 | long * _arg3; | |
7622 | long temp0; | |
2d091820 | 7623 | PyObject * _argo0 = 0; |
21f8d7ea | 7624 | PyObject * _obj1 = 0; |
107e4716 | 7625 | char *_kwnames[] = { "self","string", NULL }; |
21f8d7ea RD |
7626 | |
7627 | self = self; | |
7628 | { | |
7629 | _arg2 = &temp; | |
7630 | } | |
7631 | { | |
7632 | _arg3 = &temp0; | |
7633 | } | |
107e4716 | 7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 7635 | return NULL; |
2d091820 RD |
7636 | if (_argo0) { |
7637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea RD |
7639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
7640 | return NULL; | |
7641 | } | |
7642 | } | |
7643 | { | |
c8bc7bb8 RD |
7644 | _arg1 = wxString_in_helper(_obj1); |
7645 | if (_arg1 == NULL) | |
21f8d7ea | 7646 | return NULL; |
21f8d7ea | 7647 | } |
ab9bc19b | 7648 | { |
474c48f9 | 7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7650 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
ab9bc19b | 7651 | |
474c48f9 | 7652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7653 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7654 | } Py_INCREF(Py_None); |
21f8d7ea RD |
7655 | _resultobj = Py_None; |
7656 | { | |
7657 | PyObject *o; | |
7658 | o = PyInt_FromLong((long) (*_arg2)); | |
7659 | _resultobj = t_output_helper(_resultobj, o); | |
7660 | } | |
7661 | { | |
7662 | PyObject *o; | |
7663 | o = PyInt_FromLong((long) (*_arg3)); | |
7664 | _resultobj = t_output_helper(_resultobj, o); | |
7665 | } | |
7666 | { | |
7667 | if (_obj1) | |
7668 | delete _arg1; | |
7669 | } | |
7670 | return _resultobj; | |
7671 | } | |
7672 | ||
7673 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 7674 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7675 | PyObject * _resultobj; |
7676 | wxDC * _arg0; | |
7677 | wxString * _arg1; | |
7678 | long * _arg2; | |
7679 | long temp; | |
7680 | long * _arg3; | |
7681 | long temp0; | |
7682 | long * _arg4; | |
7683 | long temp1; | |
7684 | long * _arg5; | |
7685 | long temp2; | |
2d091820 RD |
7686 | wxFont * _arg6 = (wxFont *) NULL; |
7687 | PyObject * _argo0 = 0; | |
70551f47 | 7688 | PyObject * _obj1 = 0; |
2d091820 | 7689 | PyObject * _argo6 = 0; |
107e4716 | 7690 | char *_kwnames[] = { "self","string","font", NULL }; |
70551f47 RD |
7691 | |
7692 | self = self; | |
7693 | { | |
7694 | _arg2 = &temp; | |
7695 | } | |
7696 | { | |
7697 | _arg3 = &temp0; | |
7698 | } | |
7699 | { | |
7700 | _arg4 = &temp1; | |
7701 | } | |
7702 | { | |
7703 | _arg5 = &temp2; | |
7704 | } | |
107e4716 | 7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
70551f47 | 7706 | return NULL; |
2d091820 RD |
7707 | if (_argo0) { |
7708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
21f8d7ea | 7710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
70551f47 RD |
7711 | return NULL; |
7712 | } | |
7713 | } | |
7714 | { | |
c8bc7bb8 RD |
7715 | _arg1 = wxString_in_helper(_obj1); |
7716 | if (_arg1 == NULL) | |
2cd2fac8 | 7717 | return NULL; |
70551f47 | 7718 | } |
2d091820 RD |
7719 | if (_argo6) { |
7720 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7721 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
7722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
7723 | return NULL; | |
7724 | } | |
7725 | } | |
ab9bc19b | 7726 | { |
474c48f9 | 7727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7728 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 7729 | |
474c48f9 | 7730 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7731 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7732 | } Py_INCREF(Py_None); |
70551f47 RD |
7733 | _resultobj = Py_None; |
7734 | { | |
7735 | PyObject *o; | |
7736 | o = PyInt_FromLong((long) (*_arg2)); | |
7737 | _resultobj = t_output_helper(_resultobj, o); | |
7738 | } | |
7739 | { | |
7740 | PyObject *o; | |
7741 | o = PyInt_FromLong((long) (*_arg3)); | |
7742 | _resultobj = t_output_helper(_resultobj, o); | |
7743 | } | |
7744 | { | |
7745 | PyObject *o; | |
7746 | o = PyInt_FromLong((long) (*_arg4)); | |
7747 | _resultobj = t_output_helper(_resultobj, o); | |
7748 | } | |
7749 | { | |
7750 | PyObject *o; | |
7751 | o = PyInt_FromLong((long) (*_arg5)); | |
7752 | _resultobj = t_output_helper(_resultobj, o); | |
7753 | } | |
7754 | { | |
7755 | if (_obj1) | |
7756 | delete _arg1; | |
7757 | } | |
7758 | return _resultobj; | |
7759 | } | |
7760 | ||
7761 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
107e4716 | 7762 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7763 | PyObject * _resultobj; |
7764 | wxColour * _result; | |
7765 | wxDC * _arg0; | |
2d091820 | 7766 | PyObject * _argo0 = 0; |
107e4716 | 7767 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7768 | char _ptemp[128]; |
7769 | ||
7770 | self = self; | |
107e4716 | 7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
70551f47 | 7772 | return NULL; |
2d091820 RD |
7773 | if (_argo0) { |
7774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
7777 | return NULL; | |
7778 | } | |
7779 | } | |
ab9bc19b | 7780 | { |
474c48f9 | 7781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7782 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
ab9bc19b | 7783 | |
474c48f9 | 7784 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7785 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
7786 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7787 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
7788 | return _resultobj; |
7789 | } | |
7790 | ||
e02c03a4 RD |
7791 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
7792 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7793 | PyObject * _resultobj; | |
7794 | wxDC * _arg0; | |
7795 | double * _arg1; | |
7796 | double temp; | |
7797 | double * _arg2; | |
7798 | double temp0; | |
7799 | PyObject * _argo0 = 0; | |
7800 | char *_kwnames[] = { "self", NULL }; | |
7801 | ||
7802 | self = self; | |
7803 | { | |
7804 | _arg1 = &temp; | |
7805 | } | |
7806 | { | |
7807 | _arg2 = &temp0; | |
7808 | } | |
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7810 | return NULL; | |
7811 | if (_argo0) { | |
7812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7815 | return NULL; | |
7816 | } | |
7817 | } | |
7818 | { | |
474c48f9 | 7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7820 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
e02c03a4 | 7821 | |
474c48f9 | 7822 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7823 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
7824 | } Py_INCREF(Py_None); |
7825 | _resultobj = Py_None; | |
7826 | { | |
7827 | PyObject *o; | |
7828 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7829 | _resultobj = t_output_helper(_resultobj, o); | |
7830 | } | |
7831 | { | |
7832 | PyObject *o; | |
7833 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7834 | _resultobj = t_output_helper(_resultobj, o); | |
7835 | } | |
7836 | return _resultobj; | |
7837 | } | |
7838 | ||
70551f47 | 7839 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
107e4716 | 7840 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7841 | PyObject * _resultobj; |
7842 | long _result; | |
7843 | wxDC * _arg0; | |
7844 | long _arg1; | |
2d091820 | 7845 | PyObject * _argo0 = 0; |
107e4716 | 7846 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
7847 | |
7848 | self = self; | |
107e4716 | 7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7850 | return NULL; |
2d091820 RD |
7851 | if (_argo0) { |
7852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
7855 | return NULL; | |
7856 | } | |
7857 | } | |
ab9bc19b | 7858 | { |
474c48f9 | 7859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7860 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
ab9bc19b | 7861 | |
474c48f9 | 7862 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7863 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7864 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7865 | return _resultobj; |
7866 | } | |
7867 | ||
7868 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
107e4716 | 7869 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7870 | PyObject * _resultobj; |
7871 | long _result; | |
7872 | wxDC * _arg0; | |
7873 | long _arg1; | |
2d091820 | 7874 | PyObject * _argo0 = 0; |
107e4716 | 7875 | char *_kwnames[] = { "self","x", NULL }; |
70551f47 RD |
7876 | |
7877 | self = self; | |
107e4716 | 7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7879 | return NULL; |
2d091820 RD |
7880 | if (_argo0) { |
7881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
7884 | return NULL; | |
7885 | } | |
7886 | } | |
ab9bc19b | 7887 | { |
474c48f9 | 7888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7889 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
ab9bc19b | 7890 | |
474c48f9 | 7891 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7892 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7893 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7894 | return _resultobj; |
7895 | } | |
7896 | ||
7897 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
107e4716 | 7898 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7899 | PyObject * _resultobj; |
7900 | long _result; | |
7901 | wxDC * _arg0; | |
7902 | long _arg1; | |
2d091820 | 7903 | PyObject * _argo0 = 0; |
107e4716 | 7904 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
7905 | |
7906 | self = self; | |
107e4716 | 7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7908 | return NULL; |
2d091820 RD |
7909 | if (_argo0) { |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
7913 | return NULL; | |
7914 | } | |
7915 | } | |
ab9bc19b | 7916 | { |
474c48f9 | 7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7918 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
ab9bc19b | 7919 | |
474c48f9 | 7920 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7921 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7922 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7923 | return _resultobj; |
7924 | } | |
7925 | ||
7926 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
107e4716 | 7927 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7928 | PyObject * _resultobj; |
7929 | long _result; | |
7930 | wxDC * _arg0; | |
7931 | long _arg1; | |
2d091820 | 7932 | PyObject * _argo0 = 0; |
107e4716 | 7933 | char *_kwnames[] = { "self","y", NULL }; |
70551f47 RD |
7934 | |
7935 | self = self; | |
107e4716 | 7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 7937 | return NULL; |
2d091820 RD |
7938 | if (_argo0) { |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
ab9bc19b | 7945 | { |
474c48f9 | 7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7947 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
ab9bc19b | 7948 | |
474c48f9 | 7949 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7950 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7951 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7952 | return _resultobj; |
7953 | } | |
7954 | ||
7955 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
107e4716 | 7956 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7957 | PyObject * _resultobj; |
7958 | long _result; | |
7959 | wxDC * _arg0; | |
2d091820 | 7960 | PyObject * _argo0 = 0; |
107e4716 | 7961 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7962 | |
7963 | self = self; | |
107e4716 | 7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
70551f47 | 7965 | return NULL; |
2d091820 RD |
7966 | if (_argo0) { |
7967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
7970 | return NULL; | |
7971 | } | |
7972 | } | |
ab9bc19b | 7973 | { |
474c48f9 | 7974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7975 | _result = (long )wxDC_MaxX(_arg0); |
ab9bc19b | 7976 | |
474c48f9 | 7977 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7978 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 7979 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
7980 | return _resultobj; |
7981 | } | |
7982 | ||
7983 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
107e4716 | 7984 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7985 | PyObject * _resultobj; |
7986 | long _result; | |
7987 | wxDC * _arg0; | |
2d091820 | 7988 | PyObject * _argo0 = 0; |
107e4716 | 7989 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7990 | |
7991 | self = self; | |
107e4716 | 7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
70551f47 | 7993 | return NULL; |
2d091820 RD |
7994 | if (_argo0) { |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
ab9bc19b | 8001 | { |
474c48f9 | 8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8003 | _result = (long )wxDC_MaxY(_arg0); |
ab9bc19b | 8004 | |
474c48f9 | 8005 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8006 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8007 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8008 | return _resultobj; |
8009 | } | |
8010 | ||
8011 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
107e4716 | 8012 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8013 | PyObject * _resultobj; |
8014 | long _result; | |
8015 | wxDC * _arg0; | |
2d091820 | 8016 | PyObject * _argo0 = 0; |
107e4716 | 8017 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8018 | |
8019 | self = self; | |
107e4716 | 8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
70551f47 | 8021 | return NULL; |
2d091820 RD |
8022 | if (_argo0) { |
8023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
8026 | return NULL; | |
8027 | } | |
8028 | } | |
ab9bc19b | 8029 | { |
474c48f9 | 8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8031 | _result = (long )wxDC_MinX(_arg0); |
ab9bc19b | 8032 | |
474c48f9 | 8033 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8034 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8035 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8036 | return _resultobj; |
8037 | } | |
8038 | ||
8039 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
107e4716 | 8040 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8041 | PyObject * _resultobj; |
8042 | long _result; | |
8043 | wxDC * _arg0; | |
2d091820 | 8044 | PyObject * _argo0 = 0; |
107e4716 | 8045 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8046 | |
8047 | self = self; | |
107e4716 | 8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
70551f47 | 8049 | return NULL; |
2d091820 RD |
8050 | if (_argo0) { |
8051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
8054 | return NULL; | |
8055 | } | |
8056 | } | |
ab9bc19b | 8057 | { |
474c48f9 | 8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8059 | _result = (long )wxDC_MinY(_arg0); |
ab9bc19b | 8060 | |
474c48f9 | 8061 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8062 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8063 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
8064 | return _resultobj; |
8065 | } | |
8066 | ||
8067 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 8068 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8069 | PyObject * _resultobj; |
8070 | bool _result; | |
8071 | wxDC * _arg0; | |
2d091820 | 8072 | PyObject * _argo0 = 0; |
107e4716 | 8073 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8074 | |
8075 | self = self; | |
107e4716 | 8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
70551f47 | 8077 | return NULL; |
2d091820 RD |
8078 | if (_argo0) { |
8079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
8082 | return NULL; | |
8083 | } | |
8084 | } | |
ab9bc19b | 8085 | { |
474c48f9 | 8086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8087 | _result = (bool )wxDC_Ok(_arg0); |
ab9bc19b | 8088 | |
474c48f9 | 8089 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8090 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8091 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8092 | return _resultobj; |
8093 | } | |
8094 | ||
8095 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
107e4716 | 8096 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8097 | PyObject * _resultobj; |
8098 | wxDC * _arg0; | |
8099 | long _arg1; | |
8100 | long _arg2; | |
2d091820 | 8101 | PyObject * _argo0 = 0; |
107e4716 | 8102 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
8103 | |
8104 | self = self; | |
107e4716 | 8105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8106 | return NULL; |
2d091820 RD |
8107 | if (_argo0) { |
8108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
8111 | return NULL; | |
8112 | } | |
8113 | } | |
ab9bc19b | 8114 | { |
474c48f9 | 8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8116 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
ab9bc19b | 8117 | |
474c48f9 | 8118 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8119 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8120 | } Py_INCREF(Py_None); |
70551f47 RD |
8121 | _resultobj = Py_None; |
8122 | return _resultobj; | |
8123 | } | |
8124 | ||
8125 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
107e4716 | 8126 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8127 | PyObject * _resultobj; |
8128 | wxDC * _arg0; | |
8129 | wxBrush * _arg1; | |
2d091820 RD |
8130 | PyObject * _argo0 = 0; |
8131 | PyObject * _argo1 = 0; | |
107e4716 | 8132 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
8133 | |
8134 | self = self; | |
107e4716 | 8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8136 | return NULL; |
2d091820 RD |
8137 | if (_argo0) { |
8138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
8141 | return NULL; | |
8142 | } | |
8143 | } | |
2d091820 RD |
8144 | if (_argo1) { |
8145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
8147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
8148 | return NULL; | |
8149 | } | |
8150 | } | |
ab9bc19b | 8151 | { |
474c48f9 | 8152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8153 | wxDC_SetBackground(_arg0,*_arg1); |
ab9bc19b | 8154 | |
474c48f9 | 8155 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8156 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8157 | } Py_INCREF(Py_None); |
70551f47 RD |
8158 | _resultobj = Py_None; |
8159 | return _resultobj; | |
8160 | } | |
8161 | ||
8162 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
107e4716 | 8163 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8164 | PyObject * _resultobj; |
8165 | wxDC * _arg0; | |
8166 | int _arg1; | |
2d091820 | 8167 | PyObject * _argo0 = 0; |
107e4716 | 8168 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
8169 | |
8170 | self = self; | |
107e4716 | 8171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8172 | return NULL; |
2d091820 RD |
8173 | if (_argo0) { |
8174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
8177 | return NULL; | |
8178 | } | |
8179 | } | |
ab9bc19b | 8180 | { |
474c48f9 | 8181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8182 | wxDC_SetBackgroundMode(_arg0,_arg1); |
ab9bc19b | 8183 | |
474c48f9 | 8184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8185 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8186 | } Py_INCREF(Py_None); |
70551f47 RD |
8187 | _resultobj = Py_None; |
8188 | return _resultobj; | |
8189 | } | |
8190 | ||
8191 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 8192 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8193 | PyObject * _resultobj; |
8194 | wxDC * _arg0; | |
8195 | long _arg1; | |
8196 | long _arg2; | |
8197 | long _arg3; | |
8198 | long _arg4; | |
2d091820 | 8199 | PyObject * _argo0 = 0; |
107e4716 | 8200 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
70551f47 RD |
8201 | |
8202 | self = self; | |
107e4716 | 8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 8204 | return NULL; |
2d091820 RD |
8205 | if (_argo0) { |
8206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
8209 | return NULL; | |
8210 | } | |
8211 | } | |
ab9bc19b | 8212 | { |
474c48f9 | 8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8214 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 8215 | |
474c48f9 | 8216 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8217 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8218 | } Py_INCREF(Py_None); |
70551f47 RD |
8219 | _resultobj = Py_None; |
8220 | return _resultobj; | |
8221 | } | |
8222 | ||
059a841c RD |
8223 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
8224 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8225 | PyObject * _resultobj; | |
8226 | wxDC * _arg0; | |
8227 | wxRegion * _arg1; | |
8228 | PyObject * _argo0 = 0; | |
8229 | PyObject * _argo1 = 0; | |
8230 | char *_kwnames[] = { "self","region", NULL }; | |
8231 | ||
8232 | self = self; | |
8233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
8234 | return NULL; | |
8235 | if (_argo0) { | |
8236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
8239 | return NULL; | |
8240 | } | |
8241 | } | |
8242 | if (_argo1) { | |
8243 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8244 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
8245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
8246 | return NULL; | |
8247 | } | |
8248 | } | |
8249 | { | |
474c48f9 | 8250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8251 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
059a841c | 8252 | |
474c48f9 | 8253 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
8254 | if (PyErr_Occurred()) return NULL; |
8255 | } Py_INCREF(Py_None); | |
8256 | _resultobj = Py_None; | |
8257 | return _resultobj; | |
8258 | } | |
8259 | ||
70551f47 | 8260 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
107e4716 | 8261 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8262 | PyObject * _resultobj; |
8263 | wxDC * _arg0; | |
8264 | wxPalette * _arg1; | |
2d091820 RD |
8265 | PyObject * _argo0 = 0; |
8266 | PyObject * _argo1 = 0; | |
107e4716 | 8267 | char *_kwnames[] = { "self","colourMap", NULL }; |
70551f47 RD |
8268 | |
8269 | self = self; | |
107e4716 | 8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8271 | return NULL; |
2d091820 RD |
8272 | if (_argo0) { |
8273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
8276 | return NULL; | |
8277 | } | |
8278 | } | |
2d091820 RD |
8279 | if (_argo1) { |
8280 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8281 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
70551f47 RD |
8282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
8283 | return NULL; | |
8284 | } | |
8285 | } | |
ab9bc19b | 8286 | { |
474c48f9 | 8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8288 | wxDC_SetPalette(_arg0,*_arg1); |
ab9bc19b | 8289 | |
474c48f9 | 8290 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8291 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8292 | } Py_INCREF(Py_None); |
70551f47 RD |
8293 | _resultobj = Py_None; |
8294 | return _resultobj; | |
8295 | } | |
8296 | ||
8297 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
107e4716 | 8298 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8299 | PyObject * _resultobj; |
8300 | wxDC * _arg0; | |
8301 | wxBrush * _arg1; | |
2d091820 RD |
8302 | PyObject * _argo0 = 0; |
8303 | PyObject * _argo1 = 0; | |
107e4716 | 8304 | char *_kwnames[] = { "self","brush", NULL }; |
70551f47 RD |
8305 | |
8306 | self = self; | |
107e4716 | 8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8308 | return NULL; |
2d091820 RD |
8309 | if (_argo0) { |
8310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
8313 | return NULL; | |
8314 | } | |
8315 | } | |
2d091820 RD |
8316 | if (_argo1) { |
8317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
70551f47 RD |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
ab9bc19b | 8323 | { |
474c48f9 | 8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8325 | wxDC_SetBrush(_arg0,*_arg1); |
ab9bc19b | 8326 | |
474c48f9 | 8327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8328 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8329 | } Py_INCREF(Py_None); |
70551f47 RD |
8330 | _resultobj = Py_None; |
8331 | return _resultobj; | |
8332 | } | |
8333 | ||
8334 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
107e4716 | 8335 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8336 | PyObject * _resultobj; |
8337 | wxDC * _arg0; | |
8338 | wxFont * _arg1; | |
2d091820 RD |
8339 | PyObject * _argo0 = 0; |
8340 | PyObject * _argo1 = 0; | |
107e4716 | 8341 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
8342 | |
8343 | self = self; | |
107e4716 | 8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8345 | return NULL; |
2d091820 RD |
8346 | if (_argo0) { |
8347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
8350 | return NULL; | |
8351 | } | |
8352 | } | |
2d091820 RD |
8353 | if (_argo1) { |
8354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
8356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
8357 | return NULL; | |
8358 | } | |
8359 | } | |
ab9bc19b | 8360 | { |
474c48f9 | 8361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8362 | wxDC_SetFont(_arg0,*_arg1); |
ab9bc19b | 8363 | |
474c48f9 | 8364 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8365 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8366 | } Py_INCREF(Py_None); |
70551f47 RD |
8367 | _resultobj = Py_None; |
8368 | return _resultobj; | |
8369 | } | |
8370 | ||
8371 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
107e4716 | 8372 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8373 | PyObject * _resultobj; |
8374 | wxDC * _arg0; | |
8375 | int _arg1; | |
2d091820 | 8376 | PyObject * _argo0 = 0; |
107e4716 | 8377 | char *_kwnames[] = { "self","function", NULL }; |
70551f47 RD |
8378 | |
8379 | self = self; | |
107e4716 | 8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8381 | return NULL; |
2d091820 RD |
8382 | if (_argo0) { |
8383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
ab9bc19b | 8389 | { |
474c48f9 | 8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8391 | wxDC_SetLogicalFunction(_arg0,_arg1); |
ab9bc19b | 8392 | |
474c48f9 | 8393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8394 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8395 | } Py_INCREF(Py_None); |
70551f47 RD |
8396 | _resultobj = Py_None; |
8397 | return _resultobj; | |
8398 | } | |
8399 | ||
e02c03a4 RD |
8400 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
8401 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8402 | PyObject * _resultobj; | |
8403 | wxDC * _arg0; | |
8404 | double _arg1; | |
8405 | double _arg2; | |
8406 | PyObject * _argo0 = 0; | |
8407 | char *_kwnames[] = { "self","x","y", NULL }; | |
8408 | ||
8409 | self = self; | |
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8411 | return NULL; | |
8412 | if (_argo0) { | |
8413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8416 | return NULL; | |
8417 | } | |
8418 | } | |
8419 | { | |
474c48f9 | 8420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8421 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
e02c03a4 | 8422 | |
474c48f9 | 8423 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8424 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8425 | } Py_INCREF(Py_None); |
8426 | _resultobj = Py_None; | |
8427 | return _resultobj; | |
8428 | } | |
8429 | ||
70551f47 | 8430 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
107e4716 | 8431 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8432 | PyObject * _resultobj; |
8433 | wxDC * _arg0; | |
8434 | int _arg1; | |
2d091820 | 8435 | PyObject * _argo0 = 0; |
107e4716 | 8436 | char *_kwnames[] = { "self","mode", NULL }; |
70551f47 RD |
8437 | |
8438 | self = self; | |
107e4716 | 8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
70551f47 | 8440 | return NULL; |
2d091820 RD |
8441 | if (_argo0) { |
8442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
8445 | return NULL; | |
8446 | } | |
8447 | } | |
ab9bc19b | 8448 | { |
474c48f9 | 8449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8450 | wxDC_SetMapMode(_arg0,_arg1); |
ab9bc19b | 8451 | |
474c48f9 | 8452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8453 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8454 | } Py_INCREF(Py_None); |
70551f47 RD |
8455 | _resultobj = Py_None; |
8456 | return _resultobj; | |
8457 | } | |
8458 | ||
8459 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
107e4716 | 8460 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8461 | PyObject * _resultobj; |
8462 | wxDC * _arg0; | |
8463 | bool _arg1; | |
2d091820 | 8464 | PyObject * _argo0 = 0; |
70551f47 | 8465 | int tempbool1; |
107e4716 | 8466 | char *_kwnames[] = { "self","optimize", NULL }; |
70551f47 RD |
8467 | |
8468 | self = self; | |
107e4716 | 8469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 8470 | return NULL; |
2d091820 RD |
8471 | if (_argo0) { |
8472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
8475 | return NULL; | |
8476 | } | |
8477 | } | |
8478 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 8479 | { |
474c48f9 | 8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8481 | wxDC_SetOptimization(_arg0,_arg1); |
ab9bc19b | 8482 | |
474c48f9 | 8483 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8484 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8485 | } Py_INCREF(Py_None); |
70551f47 RD |
8486 | _resultobj = Py_None; |
8487 | return _resultobj; | |
8488 | } | |
8489 | ||
8490 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
107e4716 | 8491 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8492 | PyObject * _resultobj; |
8493 | wxDC * _arg0; | |
8494 | wxPen * _arg1; | |
2d091820 RD |
8495 | PyObject * _argo0 = 0; |
8496 | PyObject * _argo1 = 0; | |
107e4716 | 8497 | char *_kwnames[] = { "self","pen", NULL }; |
70551f47 RD |
8498 | |
8499 | self = self; | |
107e4716 | 8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
70551f47 | 8501 | return NULL; |
2d091820 RD |
8502 | if (_argo0) { |
8503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
8506 | return NULL; | |
8507 | } | |
8508 | } | |
2d091820 RD |
8509 | if (_argo1) { |
8510 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8511 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
70551f47 RD |
8512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
8513 | return NULL; | |
8514 | } | |
8515 | } | |
ab9bc19b | 8516 | { |
474c48f9 | 8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8518 | wxDC_SetPen(_arg0,*_arg1); |
ab9bc19b | 8519 | |
474c48f9 | 8520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8521 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8522 | } Py_INCREF(Py_None); |
70551f47 RD |
8523 | _resultobj = Py_None; |
8524 | return _resultobj; | |
8525 | } | |
8526 | ||
8527 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
107e4716 | 8528 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8529 | PyObject * _resultobj; |
8530 | wxDC * _arg0; | |
8531 | wxColour * _arg1; | |
2d091820 | 8532 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8533 | wxColour temp; |
8534 | PyObject * _obj1 = 0; | |
107e4716 | 8535 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
8536 | |
8537 | self = self; | |
f6bcfd97 | 8538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8539 | return NULL; |
2d091820 RD |
8540 | if (_argo0) { |
8541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
8544 | return NULL; | |
8545 | } | |
8546 | } | |
f6bcfd97 BP |
8547 | { |
8548 | _arg1 = &temp; | |
8549 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 8550 | return NULL; |
f6bcfd97 | 8551 | } |
ab9bc19b | 8552 | { |
474c48f9 | 8553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8554 | wxDC_SetTextBackground(_arg0,*_arg1); |
ab9bc19b | 8555 | |
474c48f9 | 8556 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8557 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8558 | } Py_INCREF(Py_None); |
70551f47 RD |
8559 | _resultobj = Py_None; |
8560 | return _resultobj; | |
8561 | } | |
8562 | ||
8563 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
107e4716 | 8564 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8565 | PyObject * _resultobj; |
8566 | wxDC * _arg0; | |
8567 | wxColour * _arg1; | |
2d091820 | 8568 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8569 | wxColour temp; |
8570 | PyObject * _obj1 = 0; | |
107e4716 | 8571 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
8572 | |
8573 | self = self; | |
f6bcfd97 | 8574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8575 | return NULL; |
2d091820 RD |
8576 | if (_argo0) { |
8577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
8580 | return NULL; | |
8581 | } | |
8582 | } | |
f6bcfd97 BP |
8583 | { |
8584 | _arg1 = &temp; | |
8585 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 8586 | return NULL; |
f6bcfd97 | 8587 | } |
ab9bc19b | 8588 | { |
474c48f9 | 8589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8590 | wxDC_SetTextForeground(_arg0,*_arg1); |
ab9bc19b | 8591 | |
474c48f9 | 8592 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8593 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8594 | } Py_INCREF(Py_None); |
70551f47 RD |
8595 | _resultobj = Py_None; |
8596 | return _resultobj; | |
8597 | } | |
8598 | ||
8599 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
107e4716 | 8600 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8601 | PyObject * _resultobj; |
8602 | wxDC * _arg0; | |
8603 | double _arg1; | |
8604 | double _arg2; | |
2d091820 | 8605 | PyObject * _argo0 = 0; |
107e4716 | 8606 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
70551f47 RD |
8607 | |
8608 | self = self; | |
107e4716 | 8609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 8610 | return NULL; |
2d091820 RD |
8611 | if (_argo0) { |
8612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
8615 | return NULL; | |
8616 | } | |
8617 | } | |
ab9bc19b | 8618 | { |
474c48f9 | 8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8620 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
ab9bc19b | 8621 | |
474c48f9 | 8622 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8623 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8624 | } Py_INCREF(Py_None); |
70551f47 RD |
8625 | _resultobj = Py_None; |
8626 | return _resultobj; | |
8627 | } | |
8628 | ||
8629 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
107e4716 | 8630 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8631 | PyObject * _resultobj; |
8632 | bool _result; | |
8633 | wxDC * _arg0; | |
8634 | wxString * _arg1; | |
2d091820 | 8635 | PyObject * _argo0 = 0; |
70551f47 | 8636 | PyObject * _obj1 = 0; |
107e4716 | 8637 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
8638 | |
8639 | self = self; | |
107e4716 | 8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
70551f47 | 8641 | return NULL; |
2d091820 RD |
8642 | if (_argo0) { |
8643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8646 | return NULL; | |
8647 | } | |
8648 | } | |
8649 | { | |
c8bc7bb8 RD |
8650 | _arg1 = wxString_in_helper(_obj1); |
8651 | if (_arg1 == NULL) | |
2cd2fac8 | 8652 | return NULL; |
70551f47 | 8653 | } |
ab9bc19b | 8654 | { |
474c48f9 | 8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8656 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
ab9bc19b | 8657 | |
474c48f9 | 8658 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8659 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8660 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
8661 | { |
8662 | if (_obj1) | |
8663 | delete _arg1; | |
8664 | } | |
8665 | return _resultobj; | |
8666 | } | |
8667 | ||
8668 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
107e4716 | 8669 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
8670 | PyObject * _resultobj; |
8671 | wxDC * _arg0; | |
2d091820 | 8672 | PyObject * _argo0 = 0; |
107e4716 | 8673 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
8674 | |
8675 | self = self; | |
107e4716 | 8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
70551f47 | 8677 | return NULL; |
2d091820 RD |
8678 | if (_argo0) { |
8679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
8682 | return NULL; | |
8683 | } | |
8684 | } | |
ab9bc19b | 8685 | { |
474c48f9 | 8686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8687 | wxDC_StartPage(_arg0); |
ab9bc19b | 8688 | |
474c48f9 | 8689 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8690 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8691 | } Py_INCREF(Py_None); |
70551f47 RD |
8692 | _resultobj = Py_None; |
8693 | return _resultobj; | |
8694 | } | |
8695 | ||
107e4716 RD |
8696 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8697 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
8698 | PyObject * _resultobj; |
8699 | wxDC * _arg0; | |
8700 | wxBitmap * _arg1; | |
8701 | long _arg2; | |
8702 | long _arg3; | |
107e4716 | 8703 | int _arg4 = (int ) FALSE; |
2d091820 RD |
8704 | PyObject * _argo0 = 0; |
8705 | PyObject * _argo1 = 0; | |
107e4716 | 8706 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
70551f47 RD |
8707 | |
8708 | self = self; | |
107e4716 | 8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
70551f47 | 8710 | return NULL; |
2d091820 RD |
8711 | if (_argo0) { |
8712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
70551f47 RD |
8714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
8715 | return NULL; | |
8716 | } | |
8717 | } | |
2d091820 RD |
8718 | if (_argo1) { |
8719 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8720 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
8721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
8722 | return NULL; | |
8723 | } | |
8724 | } | |
ab9bc19b | 8725 | { |
474c48f9 | 8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8727 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 8728 | |
474c48f9 | 8729 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8730 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 8731 | } Py_INCREF(Py_None); |
70551f47 RD |
8732 | _resultobj = Py_None; |
8733 | return _resultobj; | |
8734 | } | |
8735 | ||
e02c03a4 RD |
8736 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
8737 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8738 | PyObject * _resultobj; | |
8739 | bool _result; | |
8740 | wxDC * _arg0; | |
8741 | PyObject * _argo0 = 0; | |
8742 | char *_kwnames[] = { "self", NULL }; | |
8743 | ||
8744 | self = self; | |
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8746 | return NULL; | |
8747 | if (_argo0) { | |
8748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
8751 | return NULL; | |
8752 | } | |
8753 | } | |
8754 | { | |
474c48f9 | 8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8756 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
e02c03a4 | 8757 | |
474c48f9 | 8758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8759 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8760 | } _resultobj = Py_BuildValue("i",_result); |
8761 | return _resultobj; | |
8762 | } | |
8763 | ||
8764 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8765 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8766 | PyObject * _resultobj; | |
8767 | bool _result; | |
8768 | wxDC * _arg0; | |
8769 | PyObject * _argo0 = 0; | |
8770 | char *_kwnames[] = { "self", NULL }; | |
8771 | ||
8772 | self = self; | |
8773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8774 | return NULL; | |
8775 | if (_argo0) { | |
8776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8779 | return NULL; | |
8780 | } | |
8781 | } | |
8782 | { | |
474c48f9 | 8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8784 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
e02c03a4 | 8785 | |
474c48f9 | 8786 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8787 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8788 | } _resultobj = Py_BuildValue("i",_result); |
8789 | return _resultobj; | |
8790 | } | |
8791 | ||
8792 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8793 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8794 | PyObject * _resultobj; | |
8795 | int _result; | |
8796 | wxDC * _arg0; | |
8797 | PyObject * _argo0 = 0; | |
8798 | char *_kwnames[] = { "self", NULL }; | |
8799 | ||
8800 | self = self; | |
8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8802 | return NULL; | |
8803 | if (_argo0) { | |
8804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8807 | return NULL; | |
8808 | } | |
8809 | } | |
8810 | { | |
474c48f9 | 8811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8812 | _result = (int )wxDC_GetDepth(_arg0); |
e02c03a4 | 8813 | |
474c48f9 | 8814 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8815 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8816 | } _resultobj = Py_BuildValue("i",_result); |
8817 | return _resultobj; | |
8818 | } | |
8819 | ||
8820 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8821 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject * _resultobj; | |
8823 | wxSize * _result; | |
8824 | wxDC * _arg0; | |
8825 | PyObject * _argo0 = 0; | |
8826 | char *_kwnames[] = { "self", NULL }; | |
8827 | char _ptemp[128]; | |
8828 | ||
8829 | self = self; | |
8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8831 | return NULL; | |
8832 | if (_argo0) { | |
8833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8836 | return NULL; | |
8837 | } | |
8838 | } | |
8839 | { | |
474c48f9 | 8840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8841 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
e02c03a4 | 8842 | |
474c48f9 | 8843 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8844 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8845 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8846 | _resultobj = Py_BuildValue("s",_ptemp); | |
8847 | return _resultobj; | |
8848 | } | |
8849 | ||
8850 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8851 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8852 | PyObject * _resultobj; | |
8853 | wxDC * _arg0; | |
8854 | int * _arg1; | |
8855 | int temp; | |
8856 | int * _arg2; | |
8857 | int temp0; | |
8858 | PyObject * _argo0 = 0; | |
8859 | char *_kwnames[] = { "self", NULL }; | |
8860 | ||
8861 | self = self; | |
8862 | { | |
8863 | _arg1 = &temp; | |
8864 | } | |
8865 | { | |
8866 | _arg2 = &temp0; | |
8867 | } | |
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8869 | return NULL; | |
8870 | if (_argo0) { | |
8871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8874 | return NULL; | |
8875 | } | |
8876 | } | |
8877 | { | |
474c48f9 | 8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8879 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
e02c03a4 | 8880 | |
474c48f9 | 8881 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8882 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8883 | } Py_INCREF(Py_None); |
8884 | _resultobj = Py_None; | |
8885 | { | |
8886 | PyObject *o; | |
8887 | o = PyInt_FromLong((long) (*_arg1)); | |
8888 | _resultobj = t_output_helper(_resultobj, o); | |
8889 | } | |
8890 | { | |
8891 | PyObject *o; | |
8892 | o = PyInt_FromLong((long) (*_arg2)); | |
8893 | _resultobj = t_output_helper(_resultobj, o); | |
8894 | } | |
8895 | return _resultobj; | |
8896 | } | |
8897 | ||
8898 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8899 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8900 | PyObject * _resultobj; | |
8901 | wxDC * _arg0; | |
8902 | int _arg1; | |
8903 | int _arg2; | |
8904 | PyObject * _argo0 = 0; | |
8905 | char *_kwnames[] = { "self","x","y", NULL }; | |
8906 | ||
8907 | self = self; | |
8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8909 | return NULL; | |
8910 | if (_argo0) { | |
8911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8914 | return NULL; | |
8915 | } | |
8916 | } | |
8917 | { | |
474c48f9 | 8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8919 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
e02c03a4 | 8920 | |
474c48f9 | 8921 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8922 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8923 | } Py_INCREF(Py_None); |
8924 | _resultobj = Py_None; | |
8925 | return _resultobj; | |
8926 | } | |
8927 | ||
8928 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8929 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8930 | PyObject * _resultobj; | |
8931 | wxDC * _arg0; | |
8932 | int * _arg1; | |
8933 | int temp; | |
8934 | int * _arg2; | |
8935 | int temp0; | |
8936 | PyObject * _argo0 = 0; | |
8937 | char *_kwnames[] = { "self", NULL }; | |
8938 | ||
8939 | self = self; | |
8940 | { | |
8941 | _arg1 = &temp; | |
8942 | } | |
8943 | { | |
8944 | _arg2 = &temp0; | |
8945 | } | |
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8947 | return NULL; | |
8948 | if (_argo0) { | |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8952 | return NULL; | |
8953 | } | |
8954 | } | |
8955 | { | |
474c48f9 | 8956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8957 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
e02c03a4 | 8958 | |
474c48f9 | 8959 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8960 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
8961 | } Py_INCREF(Py_None); |
8962 | _resultobj = Py_None; | |
8963 | { | |
8964 | PyObject *o; | |
8965 | o = PyInt_FromLong((long) (*_arg1)); | |
8966 | _resultobj = t_output_helper(_resultobj, o); | |
8967 | } | |
8968 | { | |
8969 | PyObject *o; | |
8970 | o = PyInt_FromLong((long) (*_arg2)); | |
8971 | _resultobj = t_output_helper(_resultobj, o); | |
8972 | } | |
8973 | return _resultobj; | |
8974 | } | |
8975 | ||
8976 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8977 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8978 | PyObject * _resultobj; | |
8979 | wxDC * _arg0; | |
8980 | bool _arg1; | |
8981 | bool _arg2; | |
8982 | PyObject * _argo0 = 0; | |
8983 | int tempbool1; | |
8984 | int tempbool2; | |
8985 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8986 | ||
8987 | self = self; | |
8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8989 | return NULL; | |
8990 | if (_argo0) { | |
8991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8994 | return NULL; | |
8995 | } | |
8996 | } | |
8997 | _arg1 = (bool ) tempbool1; | |
8998 | _arg2 = (bool ) tempbool2; | |
8999 | { | |
474c48f9 | 9000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9001 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
e02c03a4 | 9002 | |
474c48f9 | 9003 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9004 | if (PyErr_Occurred()) return NULL; |
e02c03a4 RD |
9005 | } Py_INCREF(Py_None); |
9006 | _resultobj = Py_None; | |
9007 | return _resultobj; | |
9008 | } | |
9009 | ||
f6bcfd97 BP |
9010 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
9011 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9012 | PyObject * _resultobj; | |
9013 | wxDC * _arg0; | |
9014 | int _arg1; | |
9015 | int _arg2; | |
9016 | PyObject * _argo0 = 0; | |
9017 | char *_kwnames[] = { "self","x","y", NULL }; | |
9018 | ||
9019 | self = self; | |
9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9021 | return NULL; | |
9022 | if (_argo0) { | |
9023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9026 | return NULL; | |
9027 | } | |
9028 | } | |
9029 | { | |
474c48f9 | 9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9031 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
f6bcfd97 | 9032 | |
474c48f9 | 9033 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9034 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9035 | } Py_INCREF(Py_None); |
9036 | _resultobj = Py_None; | |
9037 | return _resultobj; | |
9038 | } | |
9039 | ||
9040 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9041 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9042 | PyObject * _resultobj; | |
9043 | wxDC * _arg0; | |
9044 | PyObject * _argo0 = 0; | |
9045 | char *_kwnames[] = { "self", NULL }; | |
9046 | ||
9047 | self = self; | |
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9049 | return NULL; | |
9050 | if (_argo0) { | |
9051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9054 | return NULL; | |
9055 | } | |
9056 | } | |
9057 | { | |
474c48f9 | 9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9059 | wxDC_ResetBoundingBox(_arg0); |
f6bcfd97 | 9060 | |
474c48f9 | 9061 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9062 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9063 | } Py_INCREF(Py_None); |
9064 | _resultobj = Py_None; | |
9065 | return _resultobj; | |
9066 | } | |
9067 | ||
3bcd5e1c RD |
9068 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9069 | PyObject * _resultobj; | |
9070 | wxDC * _arg0; | |
9071 | int * _arg1; | |
9072 | int temp; | |
9073 | int * _arg2; | |
9074 | int temp0; | |
9075 | int * _arg3; | |
9076 | int temp1; | |
9077 | int * _arg4; | |
9078 | int temp2; | |
9079 | PyObject * _argo0 = 0; | |
9080 | char *_kwnames[] = { "self", NULL }; | |
9081 | ||
9082 | self = self; | |
9083 | { | |
9084 | _arg1 = &temp; | |
9085 | } | |
9086 | { | |
9087 | _arg2 = &temp0; | |
9088 | } | |
9089 | { | |
9090 | _arg3 = &temp1; | |
9091 | } | |
9092 | { | |
9093 | _arg4 = &temp2; | |
9094 | } | |
9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
9096 | return NULL; | |
9097 | if (_argo0) { | |
9098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
9101 | return NULL; | |
9102 | } | |
9103 | } | |
9104 | { | |
474c48f9 | 9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9106 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
3bcd5e1c | 9107 | |
474c48f9 | 9108 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
9109 | if (PyErr_Occurred()) return NULL; |
9110 | } Py_INCREF(Py_None); | |
9111 | _resultobj = Py_None; | |
9112 | { | |
9113 | PyObject *o; | |
9114 | o = PyInt_FromLong((long) (*_arg1)); | |
9115 | _resultobj = t_output_helper(_resultobj, o); | |
9116 | } | |
9117 | { | |
9118 | PyObject *o; | |
9119 | o = PyInt_FromLong((long) (*_arg2)); | |
9120 | _resultobj = t_output_helper(_resultobj, o); | |
9121 | } | |
9122 | { | |
9123 | PyObject *o; | |
9124 | o = PyInt_FromLong((long) (*_arg3)); | |
9125 | _resultobj = t_output_helper(_resultobj, o); | |
9126 | } | |
9127 | { | |
9128 | PyObject *o; | |
9129 | o = PyInt_FromLong((long) (*_arg4)); | |
9130 | _resultobj = t_output_helper(_resultobj, o); | |
9131 | } | |
9132 | return _resultobj; | |
9133 | } | |
9134 | ||
9135 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
9136 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
9137 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9138 | int numObjs = 0; | |
9139 | int numPens = 0; | |
9140 | wxPen* pen; | |
9141 | PyObject* obj; | |
9142 | int x1, y1; | |
9143 | int i = 0; | |
9144 | ||
9145 | if (!PySequence_Check(pyPoints)) { | |
9146 | goto err0; | |
9147 | } | |
9148 | if (!PySequence_Check(pyPens)) { | |
9149 | goto err1; | |
9150 | } | |
9151 | numObjs = PySequence_Length(pyPoints); | |
9152 | numPens = PySequence_Length(pyPens); | |
9153 | ||
9154 | for (i = 0; i < numObjs; i++) { | |
9155 | // Use a new pen? | |
9156 | if (i < numPens) { | |
9157 | if (isFastPens) { | |
9158 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9159 | } | |
9160 | else { | |
9161 | obj = PySequence_GetItem(pyPens, i); | |
9162 | } | |
9163 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9164 | if (!isFastPens) | |
9165 | Py_DECREF(obj); | |
9166 | goto err1; | |
9167 | } | |
9168 | ||
9169 | self->SetPen(*pen); | |
9170 | if (!isFastPens) | |
9171 | Py_DECREF(obj); | |
9172 | } | |
9173 | ||
9174 | // Get the point coordinants | |
9175 | if (isFastSeq) { | |
9176 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
9177 | } | |
9178 | else { | |
9179 | obj = PySequence_GetItem(pyPoints, i); | |
9180 | } | |
9181 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
9182 | if (!isFastPens) | |
9183 | Py_DECREF(obj); | |
9184 | goto err0; | |
9185 | } | |
9186 | ||
9187 | // Now draw the point | |
9188 | self->DrawPoint(x1, y1); | |
9189 | ||
9190 | if (!isFastSeq) | |
9191 | Py_DECREF(obj); | |
9192 | } | |
9193 | ||
9194 | Py_INCREF(Py_None); | |
9195 | return Py_None; | |
9196 | ||
9197 | err1: | |
9198 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9199 | return NULL; | |
9200 | err0: | |
9201 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
9202 | return NULL; | |
9203 | } | |
9204 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9205 | PyObject * _resultobj; | |
9206 | PyObject * _result; | |
9207 | wxDC * _arg0; | |
9208 | PyObject * _arg1; | |
9209 | PyObject * _arg2; | |
9210 | PyObject * _argo0 = 0; | |
9211 | PyObject * _obj1 = 0; | |
9212 | PyObject * _obj2 = 0; | |
9213 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
9214 | ||
9215 | self = self; | |
9216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9217 | return NULL; | |
9218 | if (_argo0) { | |
9219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
9222 | return NULL; | |
9223 | } | |
9224 | } | |
9225 | { | |
9226 | _arg1 = _obj1; | |
9227 | } | |
9228 | { | |
9229 | _arg2 = _obj2; | |
9230 | } | |
9231 | { | |
474c48f9 | 9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9233 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
3bcd5e1c | 9234 | |
474c48f9 | 9235 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
9236 | if (PyErr_Occurred()) return NULL; |
9237 | }{ | |
9238 | _resultobj = _result; | |
9239 | } | |
9240 | return _resultobj; | |
9241 | } | |
9242 | ||
9243 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
9244 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
9245 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9246 | int numObjs = 0; | |
9247 | int numPens = 0; | |
9248 | wxPen* pen; | |
9249 | PyObject* obj; | |
9250 | int x1, y1, x2, y2; | |
9251 | int i = 0; | |
9252 | ||
9253 | if (!PySequence_Check(pyLines)) { | |
9254 | goto err0; | |
9255 | } | |
9256 | if (!PySequence_Check(pyPens)) { | |
9257 | goto err1; | |
9258 | } | |
9259 | numObjs = PySequence_Length(pyLines); | |
9260 | numPens = PySequence_Length(pyPens); | |
9261 | ||
9262 | for (i = 0; i < numObjs; i++) { | |
9263 | // Use a new pen? | |
9264 | if (i < numPens) { | |
9265 | if (isFastPens) { | |
9266 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9267 | } | |
9268 | else { | |
9269 | obj = PySequence_GetItem(pyPens, i); | |
9270 | } | |
9271 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9272 | if (!isFastPens) | |
9273 | Py_DECREF(obj); | |
9274 | goto err1; | |
9275 | } | |
9276 | ||
9277 | self->SetPen(*pen); | |
9278 | if (!isFastPens) | |
9279 | Py_DECREF(obj); | |
9280 | } | |
9281 | ||
9282 | // Get the line coordinants | |
9283 | if (isFastSeq) { | |
9284 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
9285 | } | |
9286 | else { | |
9287 | obj = PySequence_GetItem(pyLines, i); | |
9288 | } | |
9289 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
9290 | if (!isFastPens) | |
9291 | Py_DECREF(obj); | |
9292 | goto err0; | |
9293 | } | |
9294 | ||
9295 | // Now draw the line | |
9296 | self->DrawLine(x1, y1, x2, y2); | |
9297 | ||
9298 | if (!isFastSeq) | |
9299 | Py_DECREF(obj); | |
9300 | } | |
9301 | ||
9302 | Py_INCREF(Py_None); | |
9303 | return Py_None; | |
9304 | ||
9305 | err1: | |
9306 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9307 | return NULL; | |
9308 | err0: | |
9309 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
9310 | return NULL; | |
9311 | } | |
9312 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9313 | PyObject * _resultobj; | |
9314 | PyObject * _result; | |
9315 | wxDC * _arg0; | |
9316 | PyObject * _arg1; | |
9317 | PyObject * _arg2; | |
9318 | PyObject * _argo0 = 0; | |
9319 | PyObject * _obj1 = 0; | |
9320 | PyObject * _obj2 = 0; | |
9321 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
9322 | ||
9323 | self = self; | |
9324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9325 | return NULL; | |
9326 | if (_argo0) { | |
9327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
9330 | return NULL; | |
9331 | } | |
9332 | } | |
9333 | { | |
9334 | _arg1 = _obj1; | |
9335 | } | |
9336 | { | |
9337 | _arg2 = _obj2; | |
9338 | } | |
9339 | { | |
474c48f9 | 9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9341 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
3bcd5e1c | 9342 | |
474c48f9 | 9343 | wxPyEndAllowThreads(__tstate); |
3bcd5e1c RD |
9344 | if (PyErr_Occurred()) return NULL; |
9345 | }{ | |
9346 | _resultobj = _result; | |
9347 | } | |
9348 | return _resultobj; | |
9349 | } | |
9350 | ||
70551f47 RD |
9351 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
9352 | wxMemoryDC *src; | |
9353 | wxDC *dest; | |
9354 | src = (wxMemoryDC *) ptr; | |
9355 | dest = (wxDC *) src; | |
9356 | return (void *) dest; | |
9357 | } | |
9358 | ||
9df61a29 RD |
9359 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
9360 | wxMemoryDC *src; | |
9361 | wxObject *dest; | |
9362 | src = (wxMemoryDC *) ptr; | |
9363 | dest = (wxObject *) src; | |
9364 | return (void *) dest; | |
9365 | } | |
9366 | ||
70551f47 | 9367 | #define new_wxMemoryDC() (new wxMemoryDC()) |
107e4716 | 9368 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9369 | PyObject * _resultobj; |
9370 | wxMemoryDC * _result; | |
107e4716 | 9371 | char *_kwnames[] = { NULL }; |
70551f47 RD |
9372 | char _ptemp[128]; |
9373 | ||
9374 | self = self; | |
107e4716 | 9375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
70551f47 | 9376 | return NULL; |
ab9bc19b | 9377 | { |
474c48f9 | 9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9379 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
ab9bc19b | 9380 | |
474c48f9 | 9381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9382 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9383 | } if (_result) { |
9384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9385 | _resultobj = Py_BuildValue("s",_ptemp); | |
9386 | } else { | |
9387 | Py_INCREF(Py_None); | |
9388 | _resultobj = Py_None; | |
9389 | } | |
70551f47 RD |
9390 | return _resultobj; |
9391 | } | |
9392 | ||
9393 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
107e4716 | 9394 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9395 | PyObject * _resultobj; |
9396 | wxMemoryDC * _arg0; | |
9397 | wxBitmap * _arg1; | |
2d091820 RD |
9398 | PyObject * _argo0 = 0; |
9399 | PyObject * _argo1 = 0; | |
107e4716 | 9400 | char *_kwnames[] = { "self","bitmap", NULL }; |
70551f47 RD |
9401 | |
9402 | self = self; | |
107e4716 | 9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
70551f47 | 9404 | return NULL; |
2d091820 RD |
9405 | if (_argo0) { |
9406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
70551f47 RD |
9408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
9409 | return NULL; | |
9410 | } | |
9411 | } | |
2d091820 RD |
9412 | if (_argo1) { |
9413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
70551f47 RD |
9415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
9416 | return NULL; | |
9417 | } | |
9418 | } | |
ab9bc19b | 9419 | { |
474c48f9 | 9420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9421 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
ab9bc19b | 9422 | |
474c48f9 | 9423 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9424 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9425 | } Py_INCREF(Py_None); |
70551f47 RD |
9426 | _resultobj = Py_None; |
9427 | return _resultobj; | |
9428 | } | |
9429 | ||
a884bee5 RD |
9430 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { |
9431 | wxBufferedDC *src; | |
9432 | wxMemoryDC *dest; | |
9433 | src = (wxBufferedDC *) ptr; | |
9434 | dest = (wxMemoryDC *) src; | |
9435 | return (void *) dest; | |
9436 | } | |
9437 | ||
9438 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
9439 | wxBufferedDC *src; | |
9440 | wxDC *dest; | |
9441 | src = (wxBufferedDC *) ptr; | |
9442 | dest = (wxDC *) src; | |
9443 | return (void *) dest; | |
9444 | } | |
9445 | ||
9446 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
9447 | wxBufferedDC *src; | |
9448 | wxObject *dest; | |
9449 | src = (wxBufferedDC *) ptr; | |
9450 | dest = (wxObject *) src; | |
9451 | return (void *) dest; | |
9452 | } | |
9453 | ||
9454 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
9455 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9456 | PyObject * _resultobj; | |
9457 | wxBufferedDC * _result; | |
9458 | wxDC * _arg0; | |
9459 | wxBitmap * _arg1; | |
9460 | PyObject * _argo0 = 0; | |
9461 | PyObject * _argo1 = 0; | |
9462 | char *_kwnames[] = { "dc","buffer", NULL }; | |
9463 | char _ptemp[128]; | |
9464 | ||
9465 | self = self; | |
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
9467 | return NULL; | |
9468 | if (_argo0) { | |
9469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
9472 | return NULL; | |
9473 | } | |
9474 | } | |
9475 | if (_argo1) { | |
9476 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9477 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); | |
9479 | return NULL; | |
9480 | } | |
9481 | } | |
9482 | { | |
9483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9484 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
9485 | ||
9486 | wxPyEndAllowThreads(__tstate); | |
9487 | if (PyErr_Occurred()) return NULL; | |
9488 | } if (_result) { | |
9489 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
9490 | _resultobj = Py_BuildValue("s",_ptemp); | |
9491 | } else { | |
9492 | Py_INCREF(Py_None); | |
9493 | _resultobj = Py_None; | |
9494 | } | |
9495 | return _resultobj; | |
9496 | } | |
9497 | ||
9498 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
9499 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9500 | PyObject * _resultobj; | |
9501 | wxBufferedDC * _result; | |
9502 | wxDC * _arg0; | |
9503 | wxSize * _arg1; | |
9504 | PyObject * _argo0 = 0; | |
9505 | wxSize temp; | |
9506 | PyObject * _obj1 = 0; | |
9507 | char *_kwnames[] = { "dc","area", NULL }; | |
9508 | char _ptemp[128]; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | { | |
9521 | _arg1 = &temp; | |
9522 | if (! wxSize_helper(_obj1, &_arg1)) | |
9523 | return NULL; | |
9524 | } | |
9525 | { | |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9527 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
9528 | ||
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) return NULL; | |
9531 | } if (_result) { | |
9532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
9533 | _resultobj = Py_BuildValue("s",_ptemp); | |
9534 | } else { | |
9535 | Py_INCREF(Py_None); | |
9536 | _resultobj = Py_None; | |
9537 | } | |
9538 | return _resultobj; | |
9539 | } | |
9540 | ||
9541 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { | |
9542 | wxBufferedPaintDC *src; | |
9543 | wxBufferedDC *dest; | |
9544 | src = (wxBufferedPaintDC *) ptr; | |
9545 | dest = (wxBufferedDC *) src; | |
9546 | return (void *) dest; | |
9547 | } | |
9548 | ||
9549 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
9550 | wxBufferedPaintDC *src; | |
9551 | wxMemoryDC *dest; | |
9552 | src = (wxBufferedPaintDC *) ptr; | |
9553 | dest = (wxMemoryDC *) src; | |
9554 | return (void *) dest; | |
9555 | } | |
9556 | ||
9557 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
9558 | wxBufferedPaintDC *src; | |
9559 | wxDC *dest; | |
9560 | src = (wxBufferedPaintDC *) ptr; | |
9561 | dest = (wxDC *) src; | |
9562 | return (void *) dest; | |
9563 | } | |
9564 | ||
9565 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
9566 | wxBufferedPaintDC *src; | |
9567 | wxObject *dest; | |
9568 | src = (wxBufferedPaintDC *) ptr; | |
9569 | dest = (wxObject *) src; | |
9570 | return (void *) dest; | |
9571 | } | |
9572 | ||
9573 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
9574 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject * _resultobj; | |
9576 | wxBufferedPaintDC * _result; | |
9577 | wxWindow * _arg0; | |
9578 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
9579 | PyObject * _argo0 = 0; | |
9580 | PyObject * _argo1 = 0; | |
9581 | char *_kwnames[] = { "window","buffer", NULL }; | |
9582 | char _ptemp[128]; | |
9583 | ||
9584 | self = self; | |
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
9586 | return NULL; | |
9587 | if (_argo0) { | |
9588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
9591 | return NULL; | |
9592 | } | |
9593 | } | |
9594 | if (_argo1) { | |
9595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); | |
9598 | return NULL; | |
9599 | } | |
9600 | } | |
9601 | { | |
9602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9603 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
9604 | ||
9605 | wxPyEndAllowThreads(__tstate); | |
9606 | if (PyErr_Occurred()) return NULL; | |
9607 | } if (_result) { | |
9608 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
9609 | _resultobj = Py_BuildValue("s",_ptemp); | |
9610 | } else { | |
9611 | Py_INCREF(Py_None); | |
9612 | _resultobj = Py_None; | |
9613 | } | |
9614 | return _resultobj; | |
9615 | } | |
9616 | ||
70551f47 RD |
9617 | static void *SwigwxScreenDCTowxDC(void *ptr) { |
9618 | wxScreenDC *src; | |
9619 | wxDC *dest; | |
9620 | src = (wxScreenDC *) ptr; | |
9621 | dest = (wxDC *) src; | |
9622 | return (void *) dest; | |
9623 | } | |
9624 | ||
9df61a29 RD |
9625 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
9626 | wxScreenDC *src; | |
9627 | wxObject *dest; | |
9628 | src = (wxScreenDC *) ptr; | |
9629 | dest = (wxObject *) src; | |
9630 | return (void *) dest; | |
9631 | } | |
9632 | ||
70551f47 | 9633 | #define new_wxScreenDC() (new wxScreenDC()) |
107e4716 | 9634 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9635 | PyObject * _resultobj; |
9636 | wxScreenDC * _result; | |
107e4716 | 9637 | char *_kwnames[] = { NULL }; |
70551f47 RD |
9638 | char _ptemp[128]; |
9639 | ||
9640 | self = self; | |
107e4716 | 9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
70551f47 | 9642 | return NULL; |
ab9bc19b | 9643 | { |
474c48f9 | 9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9645 | _result = (wxScreenDC *)new_wxScreenDC(); |
ab9bc19b | 9646 | |
474c48f9 | 9647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9648 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9649 | } if (_result) { |
9650 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9651 | _resultobj = Py_BuildValue("s",_ptemp); | |
9652 | } else { | |
9653 | Py_INCREF(Py_None); | |
9654 | _resultobj = Py_None; | |
9655 | } | |
70551f47 RD |
9656 | return _resultobj; |
9657 | } | |
9658 | ||
2fc99549 RD |
9659 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9660 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
9661 | PyObject * _resultobj; |
9662 | bool _result; | |
9663 | wxScreenDC * _arg0; | |
9664 | wxWindow * _arg1; | |
2d091820 RD |
9665 | PyObject * _argo0 = 0; |
9666 | PyObject * _argo1 = 0; | |
107e4716 | 9667 | char *_kwnames[] = { "self","window", NULL }; |
70551f47 RD |
9668 | |
9669 | self = self; | |
2fc99549 | 9670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
70551f47 | 9671 | return NULL; |
2d091820 RD |
9672 | if (_argo0) { |
9673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 9675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
70551f47 RD |
9676 | return NULL; |
9677 | } | |
9678 | } | |
2d091820 RD |
9679 | if (_argo1) { |
9680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2fc99549 | 9682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
70551f47 RD |
9683 | return NULL; |
9684 | } | |
9685 | } | |
ab9bc19b | 9686 | { |
474c48f9 | 9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9688 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
ab9bc19b | 9689 | |
474c48f9 | 9690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9691 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9692 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9693 | return _resultobj; |
9694 | } | |
9695 | ||
2fc99549 RD |
9696 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9697 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
70551f47 RD |
9698 | PyObject * _resultobj; |
9699 | bool _result; | |
9700 | wxScreenDC * _arg0; | |
2d091820 RD |
9701 | wxRect * _arg1 = (wxRect *) NULL; |
9702 | PyObject * _argo0 = 0; | |
37f6a977 RD |
9703 | wxRect temp; |
9704 | PyObject * _obj1 = 0; | |
107e4716 | 9705 | char *_kwnames[] = { "self","rect", NULL }; |
70551f47 RD |
9706 | |
9707 | self = self; | |
2fc99549 | 9708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
70551f47 | 9709 | return NULL; |
2d091820 RD |
9710 | if (_argo0) { |
9711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
2fc99549 | 9713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
70551f47 RD |
9714 | return NULL; |
9715 | } | |
9716 | } | |
37f6a977 RD |
9717 | if (_obj1) |
9718 | { | |
9719 | _arg1 = &temp; | |
9720 | if (! wxRect_helper(_obj1, &_arg1)) | |
70551f47 | 9721 | return NULL; |
37f6a977 | 9722 | } |
ab9bc19b | 9723 | { |
474c48f9 | 9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9725 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
ab9bc19b | 9726 | |
474c48f9 | 9727 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9728 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9729 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9730 | return _resultobj; |
9731 | } | |
9732 | ||
9733 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
107e4716 | 9734 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9735 | PyObject * _resultobj; |
9736 | bool _result; | |
9737 | wxScreenDC * _arg0; | |
2d091820 | 9738 | PyObject * _argo0 = 0; |
107e4716 | 9739 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
9740 | |
9741 | self = self; | |
107e4716 | 9742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
70551f47 | 9743 | return NULL; |
2d091820 RD |
9744 | if (_argo0) { |
9745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
70551f47 RD |
9747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
9748 | return NULL; | |
9749 | } | |
9750 | } | |
ab9bc19b | 9751 | { |
474c48f9 | 9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9753 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
ab9bc19b | 9754 | |
474c48f9 | 9755 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9756 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 9757 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
9758 | return _resultobj; |
9759 | } | |
9760 | ||
9761 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9762 | wxClientDC *src; | |
9763 | wxDC *dest; | |
9764 | src = (wxClientDC *) ptr; | |
9765 | dest = (wxDC *) src; | |
9766 | return (void *) dest; | |
9767 | } | |
9768 | ||
9df61a29 RD |
9769 | static void *SwigwxClientDCTowxObject(void *ptr) { |
9770 | wxClientDC *src; | |
9771 | wxObject *dest; | |
9772 | src = (wxClientDC *) ptr; | |
9773 | dest = (wxObject *) src; | |
9774 | return (void *) dest; | |
9775 | } | |
9776 | ||
70551f47 | 9777 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
107e4716 | 9778 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9779 | PyObject * _resultobj; |
9780 | wxClientDC * _result; | |
9781 | wxWindow * _arg0; | |
2d091820 | 9782 | PyObject * _argo0 = 0; |
107e4716 | 9783 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
9784 | char _ptemp[128]; |
9785 | ||
9786 | self = self; | |
107e4716 | 9787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
70551f47 | 9788 | return NULL; |
2d091820 RD |
9789 | if (_argo0) { |
9790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
9793 | return NULL; | |
9794 | } | |
9795 | } | |
ab9bc19b | 9796 | { |
474c48f9 | 9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9798 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
ab9bc19b | 9799 | |
474c48f9 | 9800 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9801 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9802 | } if (_result) { |
9803 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9804 | _resultobj = Py_BuildValue("s",_ptemp); | |
9805 | } else { | |
9806 | Py_INCREF(Py_None); | |
9807 | _resultobj = Py_None; | |
9808 | } | |
70551f47 RD |
9809 | return _resultobj; |
9810 | } | |
9811 | ||
9812 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9813 | wxPaintDC *src; | |
9814 | wxDC *dest; | |
9815 | src = (wxPaintDC *) ptr; | |
9816 | dest = (wxDC *) src; | |
9817 | return (void *) dest; | |
9818 | } | |
9819 | ||
9df61a29 RD |
9820 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
9821 | wxPaintDC *src; | |
9822 | wxObject *dest; | |
9823 | src = (wxPaintDC *) ptr; | |
9824 | dest = (wxObject *) src; | |
9825 | return (void *) dest; | |
9826 | } | |
9827 | ||
70551f47 | 9828 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
107e4716 | 9829 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
9830 | PyObject * _resultobj; |
9831 | wxPaintDC * _result; | |
9832 | wxWindow * _arg0; | |
2d091820 | 9833 | PyObject * _argo0 = 0; |
107e4716 | 9834 | char *_kwnames[] = { "win", NULL }; |
70551f47 RD |
9835 | char _ptemp[128]; |
9836 | ||
9837 | self = self; | |
107e4716 | 9838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
70551f47 | 9839 | return NULL; |
2d091820 RD |
9840 | if (_argo0) { |
9841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
9843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
9844 | return NULL; | |
9845 | } | |
9846 | } | |
ab9bc19b | 9847 | { |
474c48f9 | 9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9849 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
ab9bc19b | 9850 | |
474c48f9 | 9851 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9852 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9853 | } if (_result) { |
9854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9855 | _resultobj = Py_BuildValue("s",_ptemp); | |
9856 | } else { | |
9857 | Py_INCREF(Py_None); | |
9858 | _resultobj = Py_None; | |
9859 | } | |
70551f47 RD |
9860 | return _resultobj; |
9861 | } | |
9862 | ||
c95e68d8 RD |
9863 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
9864 | wxWindowDC *src; | |
9865 | wxDC *dest; | |
9866 | src = (wxWindowDC *) ptr; | |
9867 | dest = (wxDC *) src; | |
9868 | return (void *) dest; | |
9869 | } | |
9870 | ||
9df61a29 RD |
9871 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
9872 | wxWindowDC *src; | |
9873 | wxObject *dest; | |
9874 | src = (wxWindowDC *) ptr; | |
9875 | dest = (wxObject *) src; | |
9876 | return (void *) dest; | |
9877 | } | |
9878 | ||
c95e68d8 | 9879 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
107e4716 | 9880 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
9881 | PyObject * _resultobj; |
9882 | wxWindowDC * _result; | |
9883 | wxWindow * _arg0; | |
2d091820 | 9884 | PyObject * _argo0 = 0; |
107e4716 | 9885 | char *_kwnames[] = { "win", NULL }; |
c95e68d8 RD |
9886 | char _ptemp[128]; |
9887 | ||
9888 | self = self; | |
107e4716 | 9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
c95e68d8 | 9890 | return NULL; |
2d091820 RD |
9891 | if (_argo0) { |
9892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
9894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
9895 | return NULL; | |
9896 | } | |
9897 | } | |
ab9bc19b | 9898 | { |
474c48f9 | 9899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9900 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
ab9bc19b | 9901 | |
474c48f9 | 9902 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9903 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9904 | } if (_result) { |
9905 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9906 | _resultobj = Py_BuildValue("s",_ptemp); | |
9907 | } else { | |
9908 | Py_INCREF(Py_None); | |
9909 | _resultobj = Py_None; | |
9910 | } | |
c95e68d8 RD |
9911 | return _resultobj; |
9912 | } | |
9913 | ||
9df61a29 RD |
9914 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
9915 | wxPalette *src; | |
9916 | wxGDIObject *dest; | |
9917 | src = (wxPalette *) ptr; | |
9918 | dest = (wxGDIObject *) src; | |
9919 | return (void *) dest; | |
9920 | } | |
9921 | ||
9922 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9923 | wxPalette *src; | |
9924 | wxObject *dest; | |
9925 | src = (wxPalette *) ptr; | |
9926 | dest = (wxObject *) src; | |
9927 | return (void *) dest; | |
9928 | } | |
9929 | ||
105e45b9 | 9930 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 9931 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
9932 | PyObject * _resultobj; |
9933 | wxPalette * _result; | |
9934 | int _arg0; | |
9935 | byte * _arg1; | |
9936 | byte * _arg2; | |
9937 | byte * _arg3; | |
9938 | PyObject * _obj1 = 0; | |
9939 | PyObject * _obj2 = 0; | |
9940 | PyObject * _obj3 = 0; | |
e02c03a4 | 9941 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
105e45b9 RD |
9942 | char _ptemp[128]; |
9943 | ||
9944 | self = self; | |
107e4716 | 9945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
105e45b9 RD |
9946 | return NULL; |
9947 | { | |
9948 | _arg1 = byte_LIST_helper(_obj1); | |
9949 | if (_arg1 == NULL) { | |
9950 | return NULL; | |
9951 | } | |
9952 | } | |
9953 | { | |
9954 | _arg2 = byte_LIST_helper(_obj2); | |
9955 | if (_arg2 == NULL) { | |
9956 | return NULL; | |
9957 | } | |
9958 | } | |
9959 | if (_obj3) | |
9960 | { | |
9961 | _arg3 = byte_LIST_helper(_obj3); | |
9962 | if (_arg3 == NULL) { | |
9963 | return NULL; | |
9964 | } | |
9965 | } | |
9966 | { | |
ab9bc19b RD |
9967 | if (_obj1) { |
9968 | _arg0 = PyList_Size(_obj1); | |
9969 | } | |
9970 | else { | |
9971 | _arg0 = 0; | |
9972 | } | |
105e45b9 | 9973 | } |
ab9bc19b | 9974 | { |
474c48f9 | 9975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9976 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 9977 | |
474c48f9 | 9978 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9979 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
9980 | } if (_result) { |
9981 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9982 | _resultobj = Py_BuildValue("s",_ptemp); | |
9983 | } else { | |
9984 | Py_INCREF(Py_None); | |
9985 | _resultobj = Py_None; | |
9986 | } | |
105e45b9 RD |
9987 | { |
9988 | delete [] _arg1; | |
9989 | } | |
9990 | { | |
9991 | delete [] _arg2; | |
9992 | } | |
9993 | { | |
9994 | delete [] _arg3; | |
9995 | } | |
9996 | return _resultobj; | |
9997 | } | |
9998 | ||
9999 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
107e4716 | 10000 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10001 | PyObject * _resultobj; |
10002 | wxPalette * _arg0; | |
2d091820 | 10003 | PyObject * _argo0 = 0; |
107e4716 | 10004 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
10005 | |
10006 | self = self; | |
107e4716 | 10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
105e45b9 | 10008 | return NULL; |
2d091820 RD |
10009 | if (_argo0) { |
10010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
10013 | return NULL; | |
10014 | } | |
10015 | } | |
ab9bc19b | 10016 | { |
474c48f9 | 10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10018 | delete_wxPalette(_arg0); |
ab9bc19b | 10019 | |
474c48f9 | 10020 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10021 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10022 | } Py_INCREF(Py_None); |
105e45b9 RD |
10023 | _resultobj = Py_None; |
10024 | return _resultobj; | |
10025 | } | |
10026 | ||
10027 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 10028 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10029 | PyObject * _resultobj; |
10030 | int _result; | |
10031 | wxPalette * _arg0; | |
10032 | byte _arg1; | |
10033 | byte _arg2; | |
10034 | byte _arg3; | |
2d091820 | 10035 | PyObject * _argo0 = 0; |
107e4716 | 10036 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
105e45b9 RD |
10037 | |
10038 | self = self; | |
107e4716 | 10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
105e45b9 | 10040 | return NULL; |
2d091820 RD |
10041 | if (_argo0) { |
10042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
10045 | return NULL; | |
10046 | } | |
10047 | } | |
ab9bc19b | 10048 | { |
474c48f9 | 10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10050 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 10051 | |
474c48f9 | 10052 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10053 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10054 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
10055 | return _resultobj; |
10056 | } | |
10057 | ||
10058 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 10059 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10060 | PyObject * _resultobj; |
10061 | bool _result; | |
10062 | wxPalette * _arg0; | |
10063 | int _arg1; | |
10064 | byte * _arg2; | |
ef2060fa | 10065 | int temp; |
105e45b9 | 10066 | byte * _arg3; |
ef2060fa | 10067 | int temp0; |
105e45b9 | 10068 | byte * _arg4; |
ef2060fa | 10069 | int temp1; |
2d091820 | 10070 | PyObject * _argo0 = 0; |
ef2060fa | 10071 | char *_kwnames[] = { "self","pixel", NULL }; |
105e45b9 RD |
10072 | |
10073 | self = self; | |
ef2060fa RD |
10074 | { |
10075 | _arg2 = (byte*)&temp; | |
10076 | } | |
10077 | { | |
10078 | _arg3 = (byte*)&temp0; | |
10079 | } | |
10080 | { | |
10081 | _arg4 = (byte*)&temp1; | |
10082 | } | |
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
105e45b9 | 10084 | return NULL; |
2d091820 RD |
10085 | if (_argo0) { |
10086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
10089 | return NULL; | |
10090 | } | |
10091 | } | |
ab9bc19b | 10092 | { |
474c48f9 | 10093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10094 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 10095 | |
474c48f9 | 10096 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10097 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10098 | } _resultobj = Py_BuildValue("i",_result); |
ef2060fa RD |
10099 | { |
10100 | PyObject *o; | |
10101 | o = PyInt_FromLong((long) (*_arg2)); | |
10102 | _resultobj = t_output_helper(_resultobj, o); | |
10103 | } | |
10104 | { | |
10105 | PyObject *o; | |
10106 | o = PyInt_FromLong((long) (*_arg3)); | |
10107 | _resultobj = t_output_helper(_resultobj, o); | |
10108 | } | |
10109 | { | |
10110 | PyObject *o; | |
10111 | o = PyInt_FromLong((long) (*_arg4)); | |
10112 | _resultobj = t_output_helper(_resultobj, o); | |
10113 | } | |
105e45b9 RD |
10114 | return _resultobj; |
10115 | } | |
10116 | ||
10117 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 10118 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
10119 | PyObject * _resultobj; |
10120 | bool _result; | |
10121 | wxPalette * _arg0; | |
2d091820 | 10122 | PyObject * _argo0 = 0; |
107e4716 | 10123 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
10124 | |
10125 | self = self; | |
107e4716 | 10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
105e45b9 | 10127 | return NULL; |
2d091820 RD |
10128 | if (_argo0) { |
10129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
105e45b9 RD |
10131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
10132 | return NULL; | |
10133 | } | |
10134 | } | |
ab9bc19b | 10135 | { |
474c48f9 | 10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10137 | _result = (bool )wxPalette_Ok(_arg0); |
ab9bc19b | 10138 | |
474c48f9 | 10139 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10140 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10141 | } _resultobj = Py_BuildValue("i",_result); |
105e45b9 RD |
10142 | return _resultobj; |
10143 | } | |
10144 | ||
9df61a29 RD |
10145 | static void *SwigwxImageListTowxObject(void *ptr) { |
10146 | wxImageList *src; | |
10147 | wxObject *dest; | |
10148 | src = (wxImageList *) ptr; | |
10149 | dest = (wxObject *) src; | |
10150 | return (void *) dest; | |
10151 | } | |
10152 | ||
21f8d7ea | 10153 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
107e4716 | 10154 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10155 | PyObject * _resultobj; |
10156 | wxImageList * _result; | |
10157 | int _arg0; | |
10158 | int _arg1; | |
7ff49f0c | 10159 | int _arg2 = (int ) TRUE; |
2d091820 | 10160 | int _arg3 = (int ) 1; |
107e4716 | 10161 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
21f8d7ea RD |
10162 | char _ptemp[128]; |
10163 | ||
10164 | self = self; | |
56f5d962 | 10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
21f8d7ea | 10166 | return NULL; |
ab9bc19b | 10167 | { |
474c48f9 | 10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10169 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
ab9bc19b | 10170 | |
474c48f9 | 10171 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10172 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
10173 | } if (_result) { |
10174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
10175 | _resultobj = Py_BuildValue("s",_ptemp); | |
10176 | } else { | |
10177 | Py_INCREF(Py_None); | |
10178 | _resultobj = Py_None; | |
10179 | } | |
21f8d7ea RD |
10180 | return _resultobj; |
10181 | } | |
10182 | ||
10183 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
107e4716 | 10184 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10185 | PyObject * _resultobj; |
10186 | wxImageList * _arg0; | |
2d091820 | 10187 | PyObject * _argo0 = 0; |
107e4716 | 10188 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
10189 | |
10190 | self = self; | |
107e4716 | 10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
21f8d7ea | 10192 | return NULL; |
2d091820 RD |
10193 | if (_argo0) { |
10194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
10197 | return NULL; | |
10198 | } | |
10199 | } | |
ab9bc19b | 10200 | { |
474c48f9 | 10201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10202 | delete_wxImageList(_arg0); |
ab9bc19b | 10203 | |
474c48f9 | 10204 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10205 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10206 | } Py_INCREF(Py_None); |
21f8d7ea RD |
10207 | _resultobj = Py_None; |
10208 | return _resultobj; | |
10209 | } | |
10210 | ||
f6bcfd97 | 10211 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) |
107e4716 | 10212 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10213 | PyObject * _resultobj; |
10214 | int _result; | |
10215 | wxImageList * _arg0; | |
10216 | wxBitmap * _arg1; | |
f6bcfd97 | 10217 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
2d091820 RD |
10218 | PyObject * _argo0 = 0; |
10219 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
10220 | PyObject * _argo2 = 0; |
10221 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
21f8d7ea RD |
10222 | |
10223 | self = self; | |
f6bcfd97 | 10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
21f8d7ea | 10225 | return NULL; |
2d091820 RD |
10226 | if (_argo0) { |
10227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
10230 | return NULL; | |
10231 | } | |
10232 | } | |
2d091820 RD |
10233 | if (_argo1) { |
10234 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10235 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
21f8d7ea RD |
10236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
10237 | return NULL; | |
10238 | } | |
10239 | } | |
f6bcfd97 BP |
10240 | if (_argo2) { |
10241 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10242 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
10244 | return NULL; | |
10245 | } | |
10246 | } | |
10247 | { | |
474c48f9 | 10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10249 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 10250 | |
474c48f9 | 10251 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10252 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10253 | } _resultobj = Py_BuildValue("i",_result); |
10254 | return _resultobj; | |
10255 | } | |
10256 | ||
10257 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10258 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10259 | PyObject * _resultobj; | |
10260 | int _result; | |
10261 | wxImageList * _arg0; | |
10262 | wxBitmap * _arg1; | |
10263 | wxColour * _arg2; | |
10264 | PyObject * _argo0 = 0; | |
10265 | PyObject * _argo1 = 0; | |
10266 | wxColour temp; | |
10267 | PyObject * _obj2 = 0; | |
10268 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
10269 | ||
10270 | self = self; | |
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
10272 | return NULL; | |
10273 | if (_argo0) { | |
10274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
10277 | return NULL; | |
10278 | } | |
10279 | } | |
10280 | if (_argo1) { | |
10281 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10282 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
10284 | return NULL; | |
10285 | } | |
10286 | } | |
10287 | { | |
10288 | _arg2 = &temp; | |
10289 | if (! wxColour_helper(_obj2, &_arg2)) | |
10290 | return NULL; | |
10291 | } | |
ab9bc19b | 10292 | { |
474c48f9 | 10293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10294 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
f6bcfd97 | 10295 | |
474c48f9 | 10296 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10297 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10298 | } _resultobj = Py_BuildValue("i",_result); |
10299 | return _resultobj; | |
10300 | } | |
10301 | ||
10302 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
10303 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10304 | PyObject * _resultobj; | |
10305 | int _result; | |
10306 | wxImageList * _arg0; | |
10307 | wxIcon * _arg1; | |
10308 | PyObject * _argo0 = 0; | |
10309 | PyObject * _argo1 = 0; | |
10310 | char *_kwnames[] = { "self","icon", NULL }; | |
10311 | ||
10312 | self = self; | |
10313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
10314 | return NULL; | |
10315 | if (_argo0) { | |
10316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
10319 | return NULL; | |
10320 | } | |
10321 | } | |
10322 | if (_argo1) { | |
10323 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10324 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
10325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
10326 | return NULL; | |
10327 | } | |
10328 | } | |
10329 | { | |
474c48f9 | 10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10331 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
ab9bc19b | 10332 | |
474c48f9 | 10333 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10334 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10335 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10336 | return _resultobj; |
10337 | } | |
10338 | ||
10339 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
107e4716 | 10340 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10341 | PyObject * _resultobj; |
10342 | bool _result; | |
10343 | wxImageList * _arg0; | |
10344 | int _arg1; | |
10345 | wxBitmap * _arg2; | |
2d091820 RD |
10346 | PyObject * _argo0 = 0; |
10347 | PyObject * _argo2 = 0; | |
107e4716 | 10348 | char *_kwnames[] = { "self","index","bitmap", NULL }; |
21f8d7ea RD |
10349 | |
10350 | self = self; | |
107e4716 | 10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) |
21f8d7ea | 10352 | return NULL; |
2d091820 RD |
10353 | if (_argo0) { |
10354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
10357 | return NULL; | |
10358 | } | |
10359 | } | |
2d091820 RD |
10360 | if (_argo2) { |
10361 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10362 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea RD |
10363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
10364 | return NULL; | |
10365 | } | |
10366 | } | |
ab9bc19b | 10367 | { |
474c48f9 | 10368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10369 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); |
ab9bc19b | 10370 | |
474c48f9 | 10371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10372 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10373 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10374 | return _resultobj; |
10375 | } | |
10376 | ||
10377 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 10378 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10379 | PyObject * _resultobj; |
10380 | bool _result; | |
10381 | wxImageList * _arg0; | |
10382 | int _arg1; | |
10383 | wxDC * _arg2; | |
10384 | int _arg3; | |
10385 | int _arg4; | |
2d091820 RD |
10386 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
10387 | bool _arg6 = (bool ) FALSE; | |
10388 | PyObject * _argo0 = 0; | |
10389 | PyObject * _argo2 = 0; | |
10390 | int tempbool6 = (int) FALSE; | |
107e4716 | 10391 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
21f8d7ea RD |
10392 | |
10393 | self = self; | |
107e4716 | 10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
21f8d7ea | 10395 | return NULL; |
2d091820 RD |
10396 | if (_argo0) { |
10397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
10400 | return NULL; | |
10401 | } | |
10402 | } | |
2d091820 RD |
10403 | if (_argo2) { |
10404 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10405 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
10406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
10407 | return NULL; | |
10408 | } | |
10409 | } | |
10410 | _arg6 = (bool ) tempbool6; | |
ab9bc19b | 10411 | { |
474c48f9 | 10412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10413 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
ab9bc19b | 10414 | |
474c48f9 | 10415 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10416 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10417 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10418 | return _resultobj; |
10419 | } | |
10420 | ||
10421 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
107e4716 | 10422 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10423 | PyObject * _resultobj; |
10424 | int _result; | |
10425 | wxImageList * _arg0; | |
2d091820 | 10426 | PyObject * _argo0 = 0; |
107e4716 | 10427 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
10428 | |
10429 | self = self; | |
107e4716 | 10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
21f8d7ea | 10431 | return NULL; |
2d091820 RD |
10432 | if (_argo0) { |
10433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
10436 | return NULL; | |
10437 | } | |
10438 | } | |
ab9bc19b | 10439 | { |
474c48f9 | 10440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10441 | _result = (int )wxImageList_GetImageCount(_arg0); |
ab9bc19b | 10442 | |
474c48f9 | 10443 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10444 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10445 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10446 | return _resultobj; |
10447 | } | |
10448 | ||
10449 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
107e4716 | 10450 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10451 | PyObject * _resultobj; |
10452 | bool _result; | |
10453 | wxImageList * _arg0; | |
10454 | int _arg1; | |
2d091820 | 10455 | PyObject * _argo0 = 0; |
107e4716 | 10456 | char *_kwnames[] = { "self","index", NULL }; |
21f8d7ea RD |
10457 | |
10458 | self = self; | |
107e4716 | 10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 10460 | return NULL; |
2d091820 RD |
10461 | if (_argo0) { |
10462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
10465 | return NULL; | |
10466 | } | |
10467 | } | |
ab9bc19b | 10468 | { |
474c48f9 | 10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10470 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
ab9bc19b | 10471 | |
474c48f9 | 10472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10473 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10474 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10475 | return _resultobj; |
10476 | } | |
10477 | ||
10478 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
107e4716 | 10479 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
10480 | PyObject * _resultobj; |
10481 | bool _result; | |
10482 | wxImageList * _arg0; | |
2d091820 | 10483 | PyObject * _argo0 = 0; |
107e4716 | 10484 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
10485 | |
10486 | self = self; | |
107e4716 | 10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
21f8d7ea | 10488 | return NULL; |
2d091820 RD |
10489 | if (_argo0) { |
10490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea RD |
10492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
10493 | return NULL; | |
10494 | } | |
10495 | } | |
ab9bc19b | 10496 | { |
474c48f9 | 10497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10498 | _result = (bool )wxImageList_RemoveAll(_arg0); |
ab9bc19b | 10499 | |
474c48f9 | 10500 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10501 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 10502 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
10503 | return _resultobj; |
10504 | } | |
10505 | ||
f6bcfd97 BP |
10506 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
10507 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10508 | PyObject * _resultobj; | |
10509 | wxImageList * _arg0; | |
10510 | int _arg1; | |
10511 | int * _arg2; | |
10512 | int temp; | |
10513 | int * _arg3; | |
10514 | int temp0; | |
10515 | PyObject * _argo0 = 0; | |
10516 | char *_kwnames[] = { "self","index", NULL }; | |
10517 | ||
10518 | self = self; | |
10519 | { | |
10520 | _arg2 = &temp; | |
10521 | } | |
10522 | { | |
10523 | _arg3 = &temp0; | |
10524 | } | |
10525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10526 | return NULL; | |
10527 | if (_argo0) { | |
10528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10531 | return NULL; | |
10532 | } | |
10533 | } | |
10534 | { | |
474c48f9 | 10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10536 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
f6bcfd97 | 10537 | |
474c48f9 | 10538 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10539 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10540 | } Py_INCREF(Py_None); |
10541 | _resultobj = Py_None; | |
10542 | { | |
10543 | PyObject *o; | |
10544 | o = PyInt_FromLong((long) (*_arg2)); | |
10545 | _resultobj = t_output_helper(_resultobj, o); | |
10546 | } | |
10547 | { | |
10548 | PyObject *o; | |
10549 | o = PyInt_FromLong((long) (*_arg3)); | |
10550 | _resultobj = t_output_helper(_resultobj, o); | |
10551 | } | |
10552 | return _resultobj; | |
10553 | } | |
10554 | ||
9df61a29 RD |
10555 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
10556 | wxRegion *src; | |
10557 | wxGDIObject *dest; | |
10558 | src = (wxRegion *) ptr; | |
10559 | dest = (wxGDIObject *) src; | |
10560 | return (void *) dest; | |
10561 | } | |
10562 | ||
10563 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10564 | wxRegion *src; | |
10565 | wxObject *dest; | |
10566 | src = (wxRegion *) ptr; | |
10567 | dest = (wxObject *) src; | |
10568 | return (void *) dest; | |
10569 | } | |
10570 | ||
10571 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10572 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10573 | PyObject * _resultobj; | |
10574 | wxRegion * _result; | |
10575 | long _arg0 = (long ) 0; | |
10576 | long _arg1 = (long ) 0; | |
10577 | long _arg2 = (long ) 0; | |
10578 | long _arg3 = (long ) 0; | |
10579 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
10580 | char _ptemp[128]; | |
10581 | ||
10582 | self = self; | |
10583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10584 | return NULL; | |
10585 | { | |
474c48f9 | 10586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10587 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
9df61a29 | 10588 | |
474c48f9 | 10589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10590 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10591 | } if (_result) { |
10592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10593 | _resultobj = Py_BuildValue("s",_ptemp); | |
10594 | } else { | |
10595 | Py_INCREF(Py_None); | |
10596 | _resultobj = Py_None; | |
10597 | } | |
10598 | return _resultobj; | |
10599 | } | |
10600 | ||
10601 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
10602 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject * _resultobj; | |
10604 | wxRegion * _arg0; | |
10605 | PyObject * _argo0 = 0; | |
10606 | char *_kwnames[] = { "self", NULL }; | |
10607 | ||
10608 | self = self; | |
10609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10610 | return NULL; | |
10611 | if (_argo0) { | |
10612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10615 | return NULL; | |
10616 | } | |
10617 | } | |
10618 | { | |
474c48f9 | 10619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10620 | delete_wxRegion(_arg0); |
9df61a29 | 10621 | |
474c48f9 | 10622 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10623 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10624 | } Py_INCREF(Py_None); |
10625 | _resultobj = Py_None; | |
10626 | return _resultobj; | |
10627 | } | |
10628 | ||
10629 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10630 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10631 | PyObject * _resultobj; | |
10632 | wxRegion * _arg0; | |
10633 | PyObject * _argo0 = 0; | |
10634 | char *_kwnames[] = { "self", NULL }; | |
10635 | ||
10636 | self = self; | |
10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10638 | return NULL; | |
10639 | if (_argo0) { | |
10640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10643 | return NULL; | |
10644 | } | |
10645 | } | |
10646 | { | |
474c48f9 | 10647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10648 | wxRegion_Clear(_arg0); |
9df61a29 | 10649 | |
474c48f9 | 10650 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10651 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10652 | } Py_INCREF(Py_None); |
10653 | _resultobj = Py_None; | |
10654 | return _resultobj; | |
10655 | } | |
10656 | ||
8cb49012 RD |
10657 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
10658 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10659 | PyObject * _resultobj; | |
10660 | bool _result; | |
10661 | wxRegion * _arg0; | |
10662 | wxCoord _arg1; | |
10663 | wxCoord _arg2; | |
10664 | PyObject * _argo0 = 0; | |
10665 | char *_kwnames[] = { "self","x","y", NULL }; | |
10666 | ||
10667 | self = self; | |
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10669 | return NULL; | |
10670 | if (_argo0) { | |
10671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
10674 | return NULL; | |
10675 | } | |
10676 | } | |
10677 | { | |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10679 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); |
8cb49012 RD |
10680 | |
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) return NULL; | |
10683 | } _resultobj = Py_BuildValue("i",_result); | |
10684 | return _resultobj; | |
10685 | } | |
10686 | ||
9df61a29 RD |
10687 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
10688 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10689 | PyObject * _resultobj; | |
10690 | wxRegionContain _result; | |
10691 | wxRegion * _arg0; | |
10692 | long _arg1; | |
10693 | long _arg2; | |
10694 | PyObject * _argo0 = 0; | |
10695 | char *_kwnames[] = { "self","x","y", NULL }; | |
10696 | ||
10697 | self = self; | |
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10699 | return NULL; | |
10700 | if (_argo0) { | |
10701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10704 | return NULL; | |
10705 | } | |
10706 | } | |
10707 | { | |
474c48f9 | 10708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10709 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
9df61a29 | 10710 | |
474c48f9 | 10711 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10712 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10713 | } _resultobj = Py_BuildValue("i",_result); |
10714 | return _resultobj; | |
10715 | } | |
10716 | ||
10717 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10718 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject * _resultobj; | |
10720 | wxRegionContain _result; | |
10721 | wxRegion * _arg0; | |
10722 | wxPoint * _arg1; | |
10723 | PyObject * _argo0 = 0; | |
10724 | wxPoint temp; | |
10725 | PyObject * _obj1 = 0; | |
10726 | char *_kwnames[] = { "self","pt", NULL }; | |
10727 | ||
10728 | self = self; | |
10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10730 | return NULL; | |
10731 | if (_argo0) { | |
10732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10735 | return NULL; | |
10736 | } | |
10737 | } | |
10738 | { | |
10739 | _arg1 = &temp; | |
10740 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10741 | return NULL; | |
10742 | } | |
10743 | { | |
474c48f9 | 10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10745 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
9df61a29 | 10746 | |
474c48f9 | 10747 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10748 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10749 | } _resultobj = Py_BuildValue("i",_result); |
10750 | return _resultobj; | |
10751 | } | |
10752 | ||
10753 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10754 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10755 | PyObject * _resultobj; | |
10756 | wxRegionContain _result; | |
10757 | wxRegion * _arg0; | |
10758 | wxRect * _arg1; | |
10759 | PyObject * _argo0 = 0; | |
10760 | wxRect temp; | |
10761 | PyObject * _obj1 = 0; | |
10762 | char *_kwnames[] = { "self","rect", NULL }; | |
10763 | ||
10764 | self = self; | |
10765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10766 | return NULL; | |
10767 | if (_argo0) { | |
10768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10771 | return NULL; | |
10772 | } | |
10773 | } | |
10774 | { | |
10775 | _arg1 = &temp; | |
10776 | if (! wxRect_helper(_obj1, &_arg1)) | |
10777 | return NULL; | |
10778 | } | |
10779 | { | |
474c48f9 | 10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10781 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
9df61a29 | 10782 | |
474c48f9 | 10783 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10784 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10785 | } _resultobj = Py_BuildValue("i",_result); |
10786 | return _resultobj; | |
10787 | } | |
10788 | ||
10789 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10790 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject * _resultobj; | |
10792 | wxRegionContain _result; | |
10793 | wxRegion * _arg0; | |
10794 | long _arg1; | |
10795 | long _arg2; | |
10796 | long _arg3; | |
10797 | long _arg4; | |
10798 | PyObject * _argo0 = 0; | |
10799 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10800 | ||
10801 | self = self; | |
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10803 | return NULL; | |
10804 | if (_argo0) { | |
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_ContainsRectDim. Expected _wxRegion_p."); | |
10808 | return NULL; | |
10809 | } | |
10810 | } | |
10811 | { | |
474c48f9 | 10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10813 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 10814 | |
474c48f9 | 10815 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10816 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10817 | } _resultobj = Py_BuildValue("i",_result); |
10818 | return _resultobj; | |
10819 | } | |
10820 | ||
10821 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10822 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10823 | PyObject * _resultobj; | |
10824 | wxRect * _result; | |
10825 | wxRegion * _arg0; | |
10826 | PyObject * _argo0 = 0; | |
10827 | char *_kwnames[] = { "self", NULL }; | |
10828 | char _ptemp[128]; | |
10829 | ||
10830 | self = self; | |
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10832 | return NULL; | |
10833 | if (_argo0) { | |
10834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10837 | return NULL; | |
10838 | } | |
10839 | } | |
10840 | { | |
474c48f9 | 10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10842 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
9df61a29 | 10843 | |
474c48f9 | 10844 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10845 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10846 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10847 | _resultobj = Py_BuildValue("s",_ptemp); | |
10848 | return _resultobj; | |
10849 | } | |
10850 | ||
10851 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10852 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10853 | PyObject * _resultobj; | |
10854 | bool _result; | |
10855 | wxRegion * _arg0; | |
10856 | long _arg1; | |
10857 | long _arg2; | |
10858 | long _arg3; | |
10859 | long _arg4; | |
10860 | PyObject * _argo0 = 0; | |
10861 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10862 | ||
10863 | self = self; | |
10864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10865 | return NULL; | |
10866 | if (_argo0) { | |
10867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10870 | return NULL; | |
10871 | } | |
10872 | } | |
10873 | { | |
474c48f9 | 10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10875 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 10876 | |
474c48f9 | 10877 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10878 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10879 | } _resultobj = Py_BuildValue("i",_result); |
10880 | return _resultobj; | |
10881 | } | |
10882 | ||
10883 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10884 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10885 | PyObject * _resultobj; | |
10886 | bool _result; | |
10887 | wxRegion * _arg0; | |
10888 | wxRect * _arg1; | |
10889 | PyObject * _argo0 = 0; | |
10890 | wxRect temp; | |
10891 | PyObject * _obj1 = 0; | |
10892 | char *_kwnames[] = { "self","rect", NULL }; | |
10893 | ||
10894 | self = self; | |
10895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10896 | return NULL; | |
10897 | if (_argo0) { | |
10898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10901 | return NULL; | |
10902 | } | |
10903 | } | |
10904 | { | |
10905 | _arg1 = &temp; | |
10906 | if (! wxRect_helper(_obj1, &_arg1)) | |
10907 | return NULL; | |
10908 | } | |
10909 | { | |
474c48f9 | 10910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10911 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
9df61a29 | 10912 | |
474c48f9 | 10913 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10914 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10915 | } _resultobj = Py_BuildValue("i",_result); |
10916 | return _resultobj; | |
10917 | } | |
10918 | ||
10919 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10920 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10921 | PyObject * _resultobj; | |
10922 | bool _result; | |
10923 | wxRegion * _arg0; | |
10924 | wxRegion * _arg1; | |
10925 | PyObject * _argo0 = 0; | |
10926 | PyObject * _argo1 = 0; | |
10927 | char *_kwnames[] = { "self","region", NULL }; | |
10928 | ||
10929 | self = self; | |
10930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10931 | return NULL; | |
10932 | if (_argo0) { | |
10933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10936 | return NULL; | |
10937 | } | |
10938 | } | |
10939 | if (_argo1) { | |
10940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10943 | return NULL; | |
10944 | } | |
10945 | } | |
10946 | { | |
474c48f9 | 10947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10948 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
9df61a29 | 10949 | |
474c48f9 | 10950 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10951 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10952 | } _resultobj = Py_BuildValue("i",_result); |
10953 | return _resultobj; | |
10954 | } | |
10955 | ||
10956 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10957 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject * _resultobj; | |
10959 | bool _result; | |
10960 | wxRegion * _arg0; | |
10961 | PyObject * _argo0 = 0; | |
10962 | char *_kwnames[] = { "self", NULL }; | |
10963 | ||
10964 | self = self; | |
10965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10966 | return NULL; | |
10967 | if (_argo0) { | |
10968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10971 | return NULL; | |
10972 | } | |
10973 | } | |
10974 | { | |
474c48f9 | 10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10976 | _result = (bool )wxRegion_IsEmpty(_arg0); |
9df61a29 | 10977 | |
474c48f9 | 10978 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10979 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
10980 | } _resultobj = Py_BuildValue("i",_result); |
10981 | return _resultobj; | |
10982 | } | |
10983 | ||
10984 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10985 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10986 | PyObject * _resultobj; | |
10987 | bool _result; | |
10988 | wxRegion * _arg0; | |
10989 | long _arg1; | |
10990 | long _arg2; | |
10991 | long _arg3; | |
10992 | long _arg4; | |
10993 | PyObject * _argo0 = 0; | |
10994 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10995 | ||
10996 | self = self; | |
10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10998 | return NULL; | |
10999 | if (_argo0) { | |
11000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
11003 | return NULL; | |
11004 | } | |
11005 | } | |
11006 | { | |
474c48f9 | 11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11008 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 11009 | |
474c48f9 | 11010 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11011 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11012 | } _resultobj = Py_BuildValue("i",_result); |
11013 | return _resultobj; | |
11014 | } | |
11015 | ||
11016 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11017 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11018 | PyObject * _resultobj; | |
11019 | bool _result; | |
11020 | wxRegion * _arg0; | |
11021 | wxRect * _arg1; | |
11022 | PyObject * _argo0 = 0; | |
11023 | wxRect temp; | |
11024 | PyObject * _obj1 = 0; | |
11025 | char *_kwnames[] = { "self","rect", NULL }; | |
11026 | ||
11027 | self = self; | |
11028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
11029 | return NULL; | |
11030 | if (_argo0) { | |
11031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
11034 | return NULL; | |
11035 | } | |
11036 | } | |
11037 | { | |
11038 | _arg1 = &temp; | |
11039 | if (! wxRect_helper(_obj1, &_arg1)) | |
11040 | return NULL; | |
11041 | } | |
11042 | { | |
474c48f9 | 11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11044 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
9df61a29 | 11045 | |
474c48f9 | 11046 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11047 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11048 | } _resultobj = Py_BuildValue("i",_result); |
11049 | return _resultobj; | |
11050 | } | |
11051 | ||
11052 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11053 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11054 | PyObject * _resultobj; | |
11055 | bool _result; | |
11056 | wxRegion * _arg0; | |
11057 | wxRegion * _arg1; | |
11058 | PyObject * _argo0 = 0; | |
11059 | PyObject * _argo1 = 0; | |
11060 | char *_kwnames[] = { "self","region", NULL }; | |
11061 | ||
11062 | self = self; | |
11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
11064 | return NULL; | |
11065 | if (_argo0) { | |
11066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11069 | return NULL; | |
11070 | } | |
11071 | } | |
11072 | if (_argo1) { | |
11073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11076 | return NULL; | |
11077 | } | |
11078 | } | |
11079 | { | |
474c48f9 | 11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11081 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
9df61a29 | 11082 | |
474c48f9 | 11083 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11084 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11085 | } _resultobj = Py_BuildValue("i",_result); |
11086 | return _resultobj; | |
11087 | } | |
11088 | ||
11089 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11090 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11091 | PyObject * _resultobj; | |
11092 | bool _result; | |
11093 | wxRegion * _arg0; | |
11094 | long _arg1; | |
11095 | long _arg2; | |
11096 | long _arg3; | |
11097 | long _arg4; | |
11098 | PyObject * _argo0 = 0; | |
11099 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11100 | ||
11101 | self = self; | |
11102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11103 | return NULL; | |
11104 | if (_argo0) { | |
11105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
11108 | return NULL; | |
11109 | } | |
11110 | } | |
11111 | { | |
474c48f9 | 11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11113 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 11114 | |
474c48f9 | 11115 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11116 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11117 | } _resultobj = Py_BuildValue("i",_result); |
11118 | return _resultobj; | |
11119 | } | |
11120 | ||
11121 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11122 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11123 | PyObject * _resultobj; | |
11124 | bool _result; | |
11125 | wxRegion * _arg0; | |
11126 | wxRect * _arg1; | |
11127 | PyObject * _argo0 = 0; | |
11128 | wxRect temp; | |
11129 | PyObject * _obj1 = 0; | |
11130 | char *_kwnames[] = { "self","rect", NULL }; | |
11131 | ||
11132 | self = self; | |
11133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
11134 | return NULL; | |
11135 | if (_argo0) { | |
11136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
11139 | return NULL; | |
11140 | } | |
11141 | } | |
11142 | { | |
11143 | _arg1 = &temp; | |
11144 | if (! wxRect_helper(_obj1, &_arg1)) | |
11145 | return NULL; | |
11146 | } | |
11147 | { | |
474c48f9 | 11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11149 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
9df61a29 | 11150 | |
474c48f9 | 11151 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11152 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11153 | } _resultobj = Py_BuildValue("i",_result); |
11154 | return _resultobj; | |
11155 | } | |
11156 | ||
11157 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11158 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11159 | PyObject * _resultobj; | |
11160 | bool _result; | |
11161 | wxRegion * _arg0; | |
11162 | wxRegion * _arg1; | |
11163 | PyObject * _argo0 = 0; | |
11164 | PyObject * _argo1 = 0; | |
11165 | char *_kwnames[] = { "self","region", NULL }; | |
11166 | ||
11167 | self = self; | |
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
11169 | return NULL; | |
11170 | if (_argo0) { | |
11171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11174 | return NULL; | |
11175 | } | |
11176 | } | |
11177 | if (_argo1) { | |
11178 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11179 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11181 | return NULL; | |
11182 | } | |
11183 | } | |
11184 | { | |
474c48f9 | 11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11186 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
9df61a29 | 11187 | |
474c48f9 | 11188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11189 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11190 | } _resultobj = Py_BuildValue("i",_result); |
11191 | return _resultobj; | |
11192 | } | |
11193 | ||
11194 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11195 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11196 | PyObject * _resultobj; | |
11197 | bool _result; | |
11198 | wxRegion * _arg0; | |
11199 | long _arg1; | |
11200 | long _arg2; | |
11201 | long _arg3; | |
11202 | long _arg4; | |
11203 | PyObject * _argo0 = 0; | |
11204 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11205 | ||
11206 | self = self; | |
11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11208 | return NULL; | |
11209 | if (_argo0) { | |
11210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11213 | return NULL; | |
11214 | } | |
11215 | } | |
11216 | { | |
474c48f9 | 11217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11218 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
9df61a29 | 11219 | |
474c48f9 | 11220 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11221 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11222 | } _resultobj = Py_BuildValue("i",_result); |
11223 | return _resultobj; | |
11224 | } | |
11225 | ||
11226 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11227 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject * _resultobj; | |
11229 | bool _result; | |
11230 | wxRegion * _arg0; | |
11231 | wxRect * _arg1; | |
11232 | PyObject * _argo0 = 0; | |
11233 | wxRect temp; | |
11234 | PyObject * _obj1 = 0; | |
11235 | char *_kwnames[] = { "self","rect", NULL }; | |
11236 | ||
11237 | self = self; | |
11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11239 | return NULL; | |
11240 | if (_argo0) { | |
11241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11244 | return NULL; | |
11245 | } | |
11246 | } | |
11247 | { | |
11248 | _arg1 = &temp; | |
11249 | if (! wxRect_helper(_obj1, &_arg1)) | |
11250 | return NULL; | |
11251 | } | |
11252 | { | |
474c48f9 | 11253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11254 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
9df61a29 | 11255 | |
474c48f9 | 11256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11257 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11258 | } _resultobj = Py_BuildValue("i",_result); |
11259 | return _resultobj; | |
11260 | } | |
11261 | ||
11262 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11263 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11264 | PyObject * _resultobj; | |
11265 | bool _result; | |
11266 | wxRegion * _arg0; | |
11267 | wxRegion * _arg1; | |
11268 | PyObject * _argo0 = 0; | |
11269 | PyObject * _argo1 = 0; | |
11270 | char *_kwnames[] = { "self","region", NULL }; | |
11271 | ||
11272 | self = self; | |
11273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11274 | return NULL; | |
11275 | if (_argo0) { | |
11276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11279 | return NULL; | |
11280 | } | |
11281 | } | |
11282 | if (_argo1) { | |
11283 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11284 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11286 | return NULL; | |
11287 | } | |
11288 | } | |
11289 | { | |
474c48f9 | 11290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11291 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
9df61a29 | 11292 | |
474c48f9 | 11293 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11294 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11295 | } _resultobj = Py_BuildValue("i",_result); |
11296 | return _resultobj; | |
11297 | } | |
11298 | ||
11299 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11300 | wxRegionIterator *src; | |
11301 | wxObject *dest; | |
11302 | src = (wxRegionIterator *) ptr; | |
11303 | dest = (wxObject *) src; | |
11304 | return (void *) dest; | |
11305 | } | |
11306 | ||
11307 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11308 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11309 | PyObject * _resultobj; | |
11310 | wxRegionIterator * _result; | |
11311 | wxRegion * _arg0; | |
11312 | PyObject * _argo0 = 0; | |
11313 | char *_kwnames[] = { "region", NULL }; | |
11314 | char _ptemp[128]; | |
11315 | ||
11316 | self = self; | |
11317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11318 | return NULL; | |
11319 | if (_argo0) { | |
11320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11323 | return NULL; | |
11324 | } | |
11325 | } | |
11326 | { | |
474c48f9 | 11327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11328 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
9df61a29 | 11329 | |
474c48f9 | 11330 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11331 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11332 | } if (_result) { |
11333 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11334 | _resultobj = Py_BuildValue("s",_ptemp); | |
11335 | } else { | |
11336 | Py_INCREF(Py_None); | |
11337 | _resultobj = Py_None; | |
11338 | } | |
11339 | return _resultobj; | |
11340 | } | |
11341 | ||
11342 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11343 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11344 | PyObject * _resultobj; | |
11345 | wxRegionIterator * _arg0; | |
11346 | PyObject * _argo0 = 0; | |
11347 | char *_kwnames[] = { "self", NULL }; | |
11348 | ||
11349 | self = self; | |
11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11351 | return NULL; | |
11352 | if (_argo0) { | |
11353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11356 | return NULL; | |
11357 | } | |
11358 | } | |
11359 | { | |
474c48f9 | 11360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11361 | delete_wxRegionIterator(_arg0); |
9df61a29 | 11362 | |
474c48f9 | 11363 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11364 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11365 | } Py_INCREF(Py_None); |
11366 | _resultobj = Py_None; | |
11367 | return _resultobj; | |
11368 | } | |
11369 | ||
11370 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11371 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11372 | PyObject * _resultobj; | |
11373 | long _result; | |
11374 | wxRegionIterator * _arg0; | |
11375 | PyObject * _argo0 = 0; | |
11376 | char *_kwnames[] = { "self", NULL }; | |
11377 | ||
11378 | self = self; | |
11379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11380 | return NULL; | |
11381 | if (_argo0) { | |
11382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11385 | return NULL; | |
11386 | } | |
11387 | } | |
11388 | { | |
474c48f9 | 11389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11390 | _result = (long )wxRegionIterator_GetX(_arg0); |
9df61a29 | 11391 | |
474c48f9 | 11392 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11393 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11394 | } _resultobj = Py_BuildValue("l",_result); |
11395 | return _resultobj; | |
11396 | } | |
11397 | ||
11398 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11399 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11400 | PyObject * _resultobj; | |
11401 | long _result; | |
11402 | wxRegionIterator * _arg0; | |
11403 | PyObject * _argo0 = 0; | |
11404 | char *_kwnames[] = { "self", NULL }; | |
11405 | ||
11406 | self = self; | |
11407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11408 | return NULL; | |
11409 | if (_argo0) { | |
11410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11413 | return NULL; | |
11414 | } | |
11415 | } | |
11416 | { | |
474c48f9 | 11417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11418 | _result = (long )wxRegionIterator_GetY(_arg0); |
9df61a29 | 11419 | |
474c48f9 | 11420 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11421 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11422 | } _resultobj = Py_BuildValue("l",_result); |
11423 | return _resultobj; | |
11424 | } | |
11425 | ||
11426 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11427 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11428 | PyObject * _resultobj; | |
11429 | long _result; | |
11430 | wxRegionIterator * _arg0; | |
11431 | PyObject * _argo0 = 0; | |
11432 | char *_kwnames[] = { "self", NULL }; | |
11433 | ||
11434 | self = self; | |
11435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11436 | return NULL; | |
11437 | if (_argo0) { | |
11438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11441 | return NULL; | |
11442 | } | |
11443 | } | |
11444 | { | |
474c48f9 | 11445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11446 | _result = (long )wxRegionIterator_GetW(_arg0); |
9df61a29 | 11447 | |
474c48f9 | 11448 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11449 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11450 | } _resultobj = Py_BuildValue("l",_result); |
11451 | return _resultobj; | |
11452 | } | |
11453 | ||
11454 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11455 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11456 | PyObject * _resultobj; | |
11457 | long _result; | |
11458 | wxRegionIterator * _arg0; | |
11459 | PyObject * _argo0 = 0; | |
11460 | char *_kwnames[] = { "self", NULL }; | |
11461 | ||
11462 | self = self; | |
11463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11464 | return NULL; | |
11465 | if (_argo0) { | |
11466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11469 | return NULL; | |
11470 | } | |
11471 | } | |
11472 | { | |
474c48f9 | 11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11474 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
9df61a29 | 11475 | |
474c48f9 | 11476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11477 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11478 | } _resultobj = Py_BuildValue("l",_result); |
11479 | return _resultobj; | |
11480 | } | |
11481 | ||
11482 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11483 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11484 | PyObject * _resultobj; | |
11485 | long _result; | |
11486 | wxRegionIterator * _arg0; | |
11487 | PyObject * _argo0 = 0; | |
11488 | char *_kwnames[] = { "self", NULL }; | |
11489 | ||
11490 | self = self; | |
11491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11492 | return NULL; | |
11493 | if (_argo0) { | |
11494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11497 | return NULL; | |
11498 | } | |
11499 | } | |
11500 | { | |
474c48f9 | 11501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11502 | _result = (long )wxRegionIterator_GetH(_arg0); |
9df61a29 | 11503 | |
474c48f9 | 11504 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11505 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11506 | } _resultobj = Py_BuildValue("l",_result); |
11507 | return _resultobj; | |
11508 | } | |
11509 | ||
11510 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11511 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11512 | PyObject * _resultobj; | |
11513 | long _result; | |
11514 | wxRegionIterator * _arg0; | |
11515 | PyObject * _argo0 = 0; | |
11516 | char *_kwnames[] = { "self", NULL }; | |
11517 | ||
11518 | self = self; | |
11519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11520 | return NULL; | |
11521 | if (_argo0) { | |
11522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11525 | return NULL; | |
11526 | } | |
11527 | } | |
11528 | { | |
474c48f9 | 11529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11530 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
9df61a29 | 11531 | |
474c48f9 | 11532 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11533 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11534 | } _resultobj = Py_BuildValue("l",_result); |
11535 | return _resultobj; | |
11536 | } | |
11537 | ||
11538 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11539 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11540 | PyObject * _resultobj; | |
11541 | wxRect * _result; | |
11542 | wxRegionIterator * _arg0; | |
11543 | PyObject * _argo0 = 0; | |
11544 | char *_kwnames[] = { "self", NULL }; | |
11545 | char _ptemp[128]; | |
11546 | ||
11547 | self = self; | |
11548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11549 | return NULL; | |
11550 | if (_argo0) { | |
11551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11554 | return NULL; | |
11555 | } | |
11556 | } | |
11557 | { | |
474c48f9 | 11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11559 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
9df61a29 | 11560 | |
474c48f9 | 11561 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11562 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11563 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
11564 | _resultobj = Py_BuildValue("s",_ptemp); | |
11565 | return _resultobj; | |
11566 | } | |
11567 | ||
11568 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11569 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11570 | PyObject * _resultobj; | |
11571 | bool _result; | |
11572 | wxRegionIterator * _arg0; | |
11573 | PyObject * _argo0 = 0; | |
11574 | char *_kwnames[] = { "self", NULL }; | |
11575 | ||
11576 | self = self; | |
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11578 | return NULL; | |
11579 | if (_argo0) { | |
11580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11583 | return NULL; | |
11584 | } | |
11585 | } | |
11586 | { | |
474c48f9 | 11587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11588 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
9df61a29 | 11589 | |
474c48f9 | 11590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11591 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11592 | } _resultobj = Py_BuildValue("i",_result); |
11593 | return _resultobj; | |
11594 | } | |
11595 | ||
11596 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11597 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11598 | PyObject * _resultobj; | |
11599 | wxRegionIterator * _arg0; | |
11600 | PyObject * _argo0 = 0; | |
11601 | char *_kwnames[] = { "self", NULL }; | |
11602 | ||
11603 | self = self; | |
11604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11605 | return NULL; | |
11606 | if (_argo0) { | |
11607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11610 | return NULL; | |
11611 | } | |
11612 | } | |
11613 | { | |
474c48f9 | 11614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11615 | wxRegionIterator_Reset(_arg0); |
9df61a29 | 11616 | |
474c48f9 | 11617 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11618 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11619 | } Py_INCREF(Py_None); |
11620 | _resultobj = Py_None; | |
11621 | return _resultobj; | |
11622 | } | |
11623 | ||
11624 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11625 | (*self) ++; | |
11626 | } | |
11627 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11628 | PyObject * _resultobj; | |
11629 | wxRegionIterator * _arg0; | |
11630 | PyObject * _argo0 = 0; | |
11631 | char *_kwnames[] = { "self", NULL }; | |
11632 | ||
11633 | self = self; | |
11634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11635 | return NULL; | |
11636 | if (_argo0) { | |
11637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11640 | return NULL; | |
11641 | } | |
11642 | } | |
11643 | { | |
474c48f9 | 11644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11645 | wxRegionIterator_Next(_arg0); |
9df61a29 | 11646 | |
474c48f9 | 11647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11648 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
11649 | } Py_INCREF(Py_None); |
11650 | _resultobj = Py_None; | |
11651 | return _resultobj; | |
11652 | } | |
11653 | ||
70551f47 | 11654 | static PyMethodDef gdicMethods[] = { |
9df61a29 RD |
11655 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
11656 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11657 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11658 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11659 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11660 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11661 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11662 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11663 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11664 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11665 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11666 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11667 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11668 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11669 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11670 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11671 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11672 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11675 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11676 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11677 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11682 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11684 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11685 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
11686 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
11687 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11689 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11690 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
11691 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11692 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11693 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11694 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11695 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, |
11696 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11697 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, |
11698 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11699 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11700 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11701 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11702 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11703 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11704 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11705 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11706 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11707 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11708 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11709 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
2fc99549 | 11710 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11711 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 RD |
11712 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
11713 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
11714 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11715 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, |
11716 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
3bcd5e1c RD |
11717 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
11718 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11719 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11720 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
11721 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
11722 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
11723 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11728 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11729 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11730 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
11731 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11732 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11737 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11738 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11739 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11740 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11741 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11742 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11743 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 11744 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11745 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
11746 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11749 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11750 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11753 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11754 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11755 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11757 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11758 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11759 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
11760 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11763 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11764 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
11765 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11766 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11767 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11768 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11769 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 | 11770 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11771 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11772 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11773 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11774 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11775 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11776 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11777 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11778 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11779 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11780 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11781 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11782 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11783 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11785 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11786 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
11787 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11788 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11790 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 RD |
11791 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
11792 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11793 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
11794 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11795 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11800 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11801 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11802 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11803 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11804 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11805 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11806 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11807 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
7a9b33db | 11808 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11809 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
11810 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11811 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11812 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
11813 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11817 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11818 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11819 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11820 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
7a9b33db | 11821 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11822 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
11823 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 RD |
11825 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
11826 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
56f5d962 | 11828 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11829 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
11830 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11831 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11832 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11833 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11835 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11836 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11837 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11838 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11839 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11840 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11841 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11842 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
11843 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11844 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11845 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
11846 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11847 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11848 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11849 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11850 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11851 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11852 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
7a9b33db | 11853 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd RD |
11854 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
11855 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11857 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
11858 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
134d79dc RD |
11859 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
11860 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
11861 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
1893b029 | 11862 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11863 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
134d79dc | 11864 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11865 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
11866 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
11867 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11868 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11869 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11870 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
11871 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
11872 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 11873 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
db34b2d4 | 11874 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
134d79dc | 11875 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11876 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11877 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11878 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11879 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11880 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11881 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
d29aba2f | 11882 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
5e40f9dd | 11883 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11884 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11885 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
11886 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
11887 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11888 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
11889 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
11890 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
11892 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
11893 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11894 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11895 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11896 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
1893b029 RD |
11898 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
11899 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11900 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
11901 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
1893b029 RD |
11903 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, |
11904 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
85247b36 | 11905 | { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS }, |
1893b029 | 11906 | { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS }, |
85247b36 | 11907 | { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS }, |
1893b029 | 11908 | { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11909 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
11910 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 11911 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11912 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
11913 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, |
11914 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11918 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, |
11919 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11920 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
11921 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
fbcadfca | 11922 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11923 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 11924 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11925 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
11926 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, |
11927 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11928 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
56f5d962 RD |
11929 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, |
11930 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11931 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11932 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11933 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11934 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 11935 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
11936 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
11937 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11938 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
11939 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9df61a29 RD |
11940 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
11941 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11943 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11944 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
11945 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
11946 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
11947 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
4be61064 | 11948 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
11949 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
11950 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11951 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
9d6da64a | 11952 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
fbcadfca RD |
11953 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
11954 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 11955 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
70551f47 RD |
11956 | { NULL, NULL } |
11957 | }; | |
2d091820 RD |
11958 | #ifdef __cplusplus |
11959 | } | |
11960 | #endif | |
11961 | /* | |
11962 | * This table is used by the pointer type-checker | |
11963 | */ | |
11964 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 11965 | { "_signed_long","_long",0}, |
4120ef2b | 11966 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
11967 | { "_wxPrintQuality","_int",0}, |
11968 | { "_wxPrintQuality","_signed_int",0}, | |
11969 | { "_wxPrintQuality","_unsigned_int",0}, | |
11970 | { "_wxPrintQuality","_wxWindowID",0}, | |
11971 | { "_wxPrintQuality","_uint",0}, | |
11972 | { "_wxPrintQuality","_EBool",0}, | |
11973 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11974 | { "_wxPrintQuality","_time_t",0}, |
65191ae8 | 11975 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
2d091820 | 11976 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
11977 | { "_long","_unsigned_long",0}, |
11978 | { "_long","_signed_long",0}, | |
9df61a29 | 11979 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9df61a29 | 11980 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9df61a29 | 11981 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
65191ae8 | 11982 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9df61a29 | 11983 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9df61a29 | 11984 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9df61a29 | 11985 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9df61a29 | 11986 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9df61a29 | 11987 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
2d091820 | 11988 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
2d091820 | 11989 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
2d091820 | 11990 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
2d091820 | 11991 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
a884bee5 RD |
11992 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, |
11993 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
2d091820 | 11994 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
4120ef2b | 11995 | { "_size_t","_wxCoord",0}, |
2d091820 | 11996 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11997 | { "_size_t","_time_t",0}, |
2d091820 RD |
11998 | { "_size_t","_unsigned_int",0}, |
11999 | { "_size_t","_int",0}, | |
12000 | { "_size_t","_wxWindowID",0}, | |
12001 | { "_size_t","_uint",0}, | |
4120ef2b | 12002 | { "_uint","_wxCoord",0}, |
2d091820 | 12003 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 12004 | { "_uint","_time_t",0}, |
2d091820 RD |
12005 | { "_uint","_size_t",0}, |
12006 | { "_uint","_unsigned_int",0}, | |
12007 | { "_uint","_int",0}, | |
12008 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 12009 | { "_wxChar","_char",0}, |
f6bcfd97 | 12010 | { "_char","_wxChar",0}, |
a884bee5 | 12011 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, |
059a841c | 12012 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 12013 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
12014 | { "_EBool","_wxPrintQuality",0}, |
12015 | { "_EBool","_signed_int",0}, | |
12016 | { "_EBool","_int",0}, | |
12017 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 12018 | { "_unsigned_long","_long",0}, |
059a841c | 12019 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 12020 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
12021 | { "_signed_int","_wxPrintQuality",0}, |
12022 | { "_signed_int","_EBool",0}, | |
12023 | { "_signed_int","_wxWindowID",0}, | |
12024 | { "_signed_int","_int",0}, | |
2d091820 RD |
12025 | { "_WXTYPE","_short",0}, |
12026 | { "_WXTYPE","_signed_short",0}, | |
12027 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
12028 | { "_unsigned_short","_WXTYPE",0}, |
12029 | { "_unsigned_short","_short",0}, | |
9df61a29 | 12030 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9df61a29 | 12031 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9df61a29 | 12032 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9df61a29 | 12033 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9df61a29 | 12034 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9df61a29 | 12035 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9df61a29 | 12036 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9df61a29 | 12037 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
a884bee5 RD |
12038 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, |
12039 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
9df61a29 | 12040 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9df61a29 | 12041 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
65191ae8 | 12042 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9df61a29 | 12043 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9df61a29 | 12044 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
65191ae8 | 12045 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9df61a29 | 12046 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9df61a29 | 12047 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9df61a29 | 12048 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9df61a29 | 12049 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9df61a29 | 12050 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9df61a29 | 12051 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9df61a29 | 12052 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9df61a29 | 12053 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9df61a29 | 12054 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9df61a29 | 12055 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
2d091820 RD |
12056 | { "_signed_short","_WXTYPE",0}, |
12057 | { "_signed_short","_short",0}, | |
a884bee5 RD |
12058 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, |
12059 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
2d091820 | 12060 | { "_unsigned_char","_byte",0}, |
4120ef2b | 12061 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 12062 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12063 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
12064 | { "_unsigned_int","_size_t",0}, |
12065 | { "_unsigned_int","_uint",0}, | |
12066 | { "_unsigned_int","_wxWindowID",0}, | |
12067 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
12068 | { "_short","_WXTYPE",0}, |
12069 | { "_short","_unsigned_short",0}, | |
12070 | { "_short","_signed_short",0}, | |
4120ef2b | 12071 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 12072 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12073 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
12074 | { "_wxWindowID","_size_t",0}, |
12075 | { "_wxWindowID","_EBool",0}, | |
12076 | { "_wxWindowID","_uint",0}, | |
12077 | { "_wxWindowID","_int",0}, | |
12078 | { "_wxWindowID","_signed_int",0}, | |
12079 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 12080 | { "_int","_wxCoord",0}, |
2d091820 | 12081 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12082 | { "_int","_time_t",0}, |
2d091820 RD |
12083 | { "_int","_size_t",0}, |
12084 | { "_int","_EBool",0}, | |
12085 | { "_int","_uint",0}, | |
12086 | { "_int","_wxWindowID",0}, | |
12087 | { "_int","_unsigned_int",0}, | |
12088 | { "_int","_signed_int",0}, | |
c368d904 RD |
12089 | { "_time_t","_wxCoord",0}, |
12090 | { "_time_t","_wxPrintQuality",0}, | |
12091 | { "_time_t","_unsigned_int",0}, | |
12092 | { "_time_t","_int",0}, | |
12093 | { "_time_t","_wxWindowID",0}, | |
12094 | { "_time_t","_uint",0}, | |
12095 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
12096 | { "_wxCoord","_int",0}, |
12097 | { "_wxCoord","_signed_int",0}, | |
12098 | { "_wxCoord","_unsigned_int",0}, | |
12099 | { "_wxCoord","_wxWindowID",0}, | |
12100 | { "_wxCoord","_uint",0}, | |
12101 | { "_wxCoord","_EBool",0}, | |
12102 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12103 | { "_wxCoord","_time_t",0}, |
4120ef2b | 12104 | { "_wxCoord","_wxPrintQuality",0}, |
2d091820 RD |
12105 | {0,0,0}}; |
12106 | ||
70551f47 RD |
12107 | static PyObject *SWIG_globals; |
12108 | #ifdef __cplusplus | |
12109 | extern "C" | |
12110 | #endif | |
2d091820 | 12111 | SWIGEXPORT(void) initgdic() { |
70551f47 RD |
12112 | PyObject *m, *d; |
12113 | SWIG_globals = SWIG_newvarlink(); | |
12114 | m = Py_InitModule("gdic", gdicMethods); | |
12115 | d = PyModule_GetDict(m); | |
059a841c RD |
12116 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
12117 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
12118 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
12119 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
12120 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
12121 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
12122 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
12123 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
85247b36 | 12124 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
059a841c RD |
12125 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
12126 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
12127 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
12128 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
12129 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
12130 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
12131 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
12132 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
134d79dc RD |
12133 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
12134 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
12135 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
12136 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
12137 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
12138 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
12139 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
12140 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
12141 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
12142 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
12143 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
12144 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
12145 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
12146 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
12147 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
12148 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
12149 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
059a841c | 12150 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
134d79dc RD |
12151 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
12152 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
12153 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
12154 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
12155 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
12156 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
12157 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
12158 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
059a841c | 12159 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
a57d56d6 RD |
12160 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
12161 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
12162 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
12163 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
134d79dc RD |
12164 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
12165 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
12166 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
059a841c RD |
12167 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
12168 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
12169 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
12170 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
12171 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
12172 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
12173 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
12174 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
12175 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
134d79dc | 12176 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
3e212503 RD |
12177 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
12178 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
12179 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
12180 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
12181 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
12182 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
12183 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
12184 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
12185 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
12186 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
70551f47 RD |
12187 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12188 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
12189 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
12190 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
12191 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
12192 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
12193 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
12194 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
12195 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
12196 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
12197 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12198 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12199 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12200 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12201 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12202 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12203 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12204 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12205 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12206 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12207 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12208 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12209 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12210 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12211 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12212 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12213 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12214 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12215 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12216 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12217 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12218 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12219 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12220 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12221 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12222 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12223 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12224 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12225 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12226 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12227 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12228 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12229 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
5e40f9dd RD |
12230 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
12231 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12232 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12233 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
2d091820 RD |
12234 | { |
12235 | int i; | |
12236 | for (i = 0; _swig_mapping[i].n1; i++) | |
12237 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12238 | } | |
70551f47 | 12239 | } |