]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/gdi.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/metafile.h> | |
af309447 | 60 | #include <wx/imaglist.h> |
be4d9c1f | 61 | #ifndef __WXMSW__ |
08127323 | 62 | #include <wx/dcps.h> |
be4d9c1f | 63 | #endif |
8ab979d7 | 64 | |
8ab979d7 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
f3d9dc1d | 70 | if (!target) { |
8ab979d7 | 71 | target = o; |
f3d9dc1d | 72 | } else if (target == Py_None) { |
8ab979d7 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
f3d9dc1d | 75 | } else { |
8ab979d7 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
f3d9dc1d RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
83 | |
84 | o2 = target; | |
f3d9dc1d RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
8ab979d7 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
794c5cb1 RD |
92 | #if PYTHON_API_VERSION >= 1009 |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
95 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
96 | #endif | |
e508a2b6 RD |
97 | |
98 | static wxString wxPyEmptyStr(""); | |
96bfd053 RD |
99 | // Implementations of some alternate "constructors" |
100 | ||
8ab979d7 RD |
101 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
102 | return new wxBitmap(width, height, depth); | |
103 | } | |
104 | ||
96bfd053 RD |
105 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
106 | char** cArray = NULL; | |
107 | int count; | |
108 | ||
109 | if (!PyList_Check(listOfStrings)) { | |
110 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
111 | return NULL; | |
112 | } | |
113 | count = PyList_Size(listOfStrings); | |
114 | cArray = new char*[count]; | |
115 | ||
116 | for(int x=0; x<count; x++) { | |
117 | // TODO: Need some validation and error checking here | |
118 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
119 | } | |
120 | return cArray; | |
121 | } | |
122 | ||
123 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { | |
124 | char** cArray = NULL; | |
125 | wxBitmap* bmp; | |
126 | ||
127 | cArray = ConvertListOfStrings(listOfStrings); | |
128 | if (! cArray) | |
129 | return NULL; | |
130 | bmp = new wxBitmap(cArray); | |
131 | delete [] cArray; | |
132 | return bmp; | |
133 | } | |
134 | ||
135 | ||
136 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
137 | return new wxBitmap(icon); | |
138 | } | |
139 | ||
140 | ||
926bb76c | 141 | |
8bf5d46e | 142 | #ifdef __WXMSW__ |
4c9993c3 | 143 | wxBitmap* wxBitmapFromData(PyObject* data, long type, |
8bf5d46e | 144 | int width, int height, int depth = 1) { |
4c9993c3 RD |
145 | if (! PyString_Check(data)) { |
146 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
147 | return NULL; | |
148 | } | |
149 | ||
150 | return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
8bf5d46e RD |
151 | } |
152 | #endif | |
153 | ||
8ab979d7 RD |
154 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
155 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
156 | } |
157 | // Implementations of some alternate "constructors" | |
158 | wxIcon* wxEmptyIcon() { | |
159 | return new wxIcon(); | |
160 | } | |
161 | ||
162 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
163 | char** cArray = NULL; | |
164 | wxIcon* icon; | |
165 | ||
166 | cArray = ConvertListOfStrings(listOfStrings); | |
167 | if (! cArray) | |
168 | return NULL; | |
169 | icon = new wxIcon(cArray); | |
170 | delete [] cArray; | |
171 | return icon; | |
8ab979d7 RD |
172 | } |
173 | // Alternate 'constructor' | |
9c039d08 | 174 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
175 | return new wxCursor(id); |
176 | } | |
f0261a72 RD |
177 | |
178 | wxFontEncoding wxFont_GetDefaultEncoding() { | |
179 | return wxFont::GetDefaultEncoding(); | |
180 | } | |
181 | ||
182 | void wxFont_SetDefaultEncoding(wxFontEncoding encoding) { | |
183 | wxFont::SetDefaultEncoding(encoding); | |
184 | } | |
8ab979d7 RD |
185 | // Alternate 'constructor' |
186 | wxColour* wxNamedColour(const wxString& colorName) { | |
187 | return new wxColour(colorName); | |
188 | } | |
189 | // Alternate 'constructor' | |
190 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
191 | return new wxMemoryDC(oldDC); | |
192 | } | |
af309447 RD |
193 | |
194 | #if 0 | |
8ab979d7 RD |
195 | extern wxFont * wxNORMAL_FONT; |
196 | extern wxFont * wxSMALL_FONT; | |
197 | extern wxFont * wxITALIC_FONT; | |
198 | extern wxFont * wxSWISS_FONT; | |
199 | extern wxPen * wxRED_PEN; | |
200 | extern wxPen * wxCYAN_PEN; | |
201 | extern wxPen * wxGREEN_PEN; | |
202 | extern wxPen * wxBLACK_PEN; | |
203 | extern wxPen * wxWHITE_PEN; | |
204 | extern wxPen * wxTRANSPARENT_PEN; | |
205 | extern wxPen * wxBLACK_DASHED_PEN; | |
206 | extern wxPen * wxGREY_PEN; | |
207 | extern wxPen * wxMEDIUM_GREY_PEN; | |
208 | extern wxPen * wxLIGHT_GREY_PEN; | |
209 | extern wxBrush * wxBLUE_BRUSH; | |
210 | extern wxBrush * wxGREEN_BRUSH; | |
211 | extern wxBrush * wxWHITE_BRUSH; | |
212 | extern wxBrush * wxBLACK_BRUSH; | |
213 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
214 | extern wxBrush * wxCYAN_BRUSH; | |
215 | extern wxBrush * wxRED_BRUSH; | |
216 | extern wxBrush * wxGREY_BRUSH; | |
217 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
218 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
219 | extern wxColour * wxBLACK; | |
220 | extern wxColour * wxWHITE; | |
221 | extern wxColour * wxRED; | |
222 | extern wxColour * wxBLUE; | |
223 | extern wxColour * wxGREEN; | |
224 | extern wxColour * wxCYAN; | |
225 | extern wxColour * wxLIGHT_GREY; | |
226 | extern wxCursor * wxSTANDARD_CURSOR; | |
227 | extern wxCursor * wxHOURGLASS_CURSOR; | |
228 | extern wxCursor * wxCROSS_CURSOR; | |
229 | extern wxBitmap wxNullBitmap; | |
230 | extern wxIcon wxNullIcon; | |
231 | extern wxCursor wxNullCursor; | |
232 | extern wxPen wxNullPen; | |
233 | extern wxBrush wxNullBrush; | |
234 | extern wxPalette wxNullPalette; | |
235 | extern wxFont wxNullFont; | |
236 | extern wxColour wxNullColour; | |
0569df0f RD |
237 | extern wxFontList * wxTheFontList; |
238 | extern wxPenList * wxThePenList; | |
239 | extern wxBrushlist * wxTheBrushList; | |
240 | extern wxColourDatabase * wxTheColourDatabase; | |
af309447 | 241 | |
1d99702e RD |
242 | #endif |
243 | #ifdef __cplusplus | |
244 | extern "C" { | |
af309447 | 245 | #endif |
1afc06c2 | 246 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
247 | PyObject * _resultobj; |
248 | wxBitmap * _result; | |
249 | int _arg0; | |
250 | int _arg1; | |
1d99702e | 251 | int _arg2 = (int ) -1; |
1afc06c2 | 252 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
253 | char _ptemp[128]; |
254 | ||
255 | self = self; | |
1afc06c2 | 256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 257 | return NULL; |
cf694132 RD |
258 | { |
259 | wxPy_BEGIN_ALLOW_THREADS; | |
260 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
261 | ||
262 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 263 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
264 | } if (_result) { |
265 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
266 | _resultobj = Py_BuildValue("s",_ptemp); | |
267 | } else { | |
268 | Py_INCREF(Py_None); | |
269 | _resultobj = Py_None; | |
270 | } | |
8ab979d7 RD |
271 | return _resultobj; |
272 | } | |
273 | ||
96bfd053 RD |
274 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
275 | PyObject * _resultobj; | |
276 | wxBitmap * _result; | |
277 | PyObject * _arg0; | |
278 | PyObject * _obj0 = 0; | |
279 | char *_kwnames[] = { "listOfStrings", NULL }; | |
280 | char _ptemp[128]; | |
281 | ||
282 | self = self; | |
283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
284 | return NULL; | |
285 | { | |
286 | _arg0 = _obj0; | |
287 | } | |
288 | { | |
289 | wxPy_BEGIN_ALLOW_THREADS; | |
290 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
291 | ||
292 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 293 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
294 | } if (_result) { |
295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
296 | _resultobj = Py_BuildValue("s",_ptemp); | |
297 | } else { | |
298 | Py_INCREF(Py_None); | |
299 | _resultobj = Py_None; | |
300 | } | |
301 | return _resultobj; | |
302 | } | |
303 | ||
304 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
305 | PyObject * _resultobj; | |
306 | wxBitmap * _result; | |
307 | wxIcon * _arg0; | |
308 | PyObject * _argo0 = 0; | |
309 | char *_kwnames[] = { "icon", NULL }; | |
310 | char _ptemp[128]; | |
311 | ||
312 | self = self; | |
313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
314 | return NULL; | |
315 | if (_argo0) { | |
316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
319 | return NULL; | |
320 | } | |
321 | } | |
322 | { | |
323 | wxPy_BEGIN_ALLOW_THREADS; | |
324 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
325 | ||
326 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 327 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
328 | } if (_result) { |
329 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
330 | _resultobj = Py_BuildValue("s",_ptemp); | |
331 | } else { | |
332 | Py_INCREF(Py_None); | |
333 | _resultobj = Py_None; | |
334 | } | |
335 | return _resultobj; | |
336 | } | |
337 | ||
1afc06c2 | 338 | static PyObject *_wrap_wxBitmapFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
339 | PyObject * _resultobj; |
340 | wxBitmap * _result; | |
4c9993c3 | 341 | PyObject * _arg0; |
8bf5d46e RD |
342 | long _arg1; |
343 | int _arg2; | |
344 | int _arg3; | |
1d99702e | 345 | int _arg4 = (int ) 1; |
4c9993c3 | 346 | PyObject * _obj0 = 0; |
1afc06c2 | 347 | char *_kwnames[] = { "data","type","width","height","depth", NULL }; |
8bf5d46e RD |
348 | char _ptemp[128]; |
349 | ||
350 | self = self; | |
4c9993c3 | 351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii|i:wxBitmapFromData",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8bf5d46e | 352 | return NULL; |
4c9993c3 RD |
353 | { |
354 | _arg0 = _obj0; | |
355 | } | |
8bf5d46e RD |
356 | { |
357 | wxPy_BEGIN_ALLOW_THREADS; | |
358 | _result = (wxBitmap *)wxBitmapFromData(_arg0,_arg1,_arg2,_arg3,_arg4); | |
359 | ||
360 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 361 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
362 | } if (_result) { |
363 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
364 | _resultobj = Py_BuildValue("s",_ptemp); | |
365 | } else { | |
366 | Py_INCREF(Py_None); | |
367 | _resultobj = Py_None; | |
368 | } | |
8bf5d46e RD |
369 | return _resultobj; |
370 | } | |
371 | ||
1afc06c2 | 372 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
373 | PyObject * _resultobj; |
374 | wxMask * _result; | |
375 | wxBitmap * _arg0; | |
376 | wxColour * _arg1; | |
1d99702e | 377 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
378 | wxColour temp; |
379 | PyObject * _obj1 = 0; | |
1afc06c2 | 380 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
381 | char _ptemp[128]; |
382 | ||
383 | self = self; | |
f6bcfd97 | 384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 385 | return NULL; |
1d99702e RD |
386 | if (_argo0) { |
387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
390 | return NULL; | |
391 | } | |
392 | } | |
f6bcfd97 BP |
393 | { |
394 | _arg1 = &temp; | |
395 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 396 | return NULL; |
f6bcfd97 | 397 | } |
cf694132 RD |
398 | { |
399 | wxPy_BEGIN_ALLOW_THREADS; | |
400 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
401 | ||
402 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 403 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
404 | } if (_result) { |
405 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
406 | _resultobj = Py_BuildValue("s",_ptemp); | |
407 | } else { | |
408 | Py_INCREF(Py_None); | |
409 | _resultobj = Py_None; | |
410 | } | |
8ab979d7 RD |
411 | return _resultobj; |
412 | } | |
413 | ||
96bfd053 RD |
414 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
415 | PyObject * _resultobj; | |
416 | wxIcon * _result; | |
417 | char *_kwnames[] = { NULL }; | |
418 | char _ptemp[128]; | |
419 | ||
420 | self = self; | |
421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
422 | return NULL; | |
423 | { | |
424 | wxPy_BEGIN_ALLOW_THREADS; | |
425 | _result = (wxIcon *)wxEmptyIcon(); | |
426 | ||
427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 428 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
429 | } if (_result) { |
430 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
431 | _resultobj = Py_BuildValue("s",_ptemp); | |
432 | } else { | |
433 | Py_INCREF(Py_None); | |
434 | _resultobj = Py_None; | |
435 | } | |
436 | return _resultobj; | |
437 | } | |
438 | ||
439 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
440 | PyObject * _resultobj; | |
441 | wxIcon * _result; | |
442 | PyObject * _arg0; | |
443 | PyObject * _obj0 = 0; | |
444 | char *_kwnames[] = { "listOfStrings", NULL }; | |
445 | char _ptemp[128]; | |
446 | ||
447 | self = self; | |
448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
449 | return NULL; | |
450 | { | |
451 | _arg0 = _obj0; | |
452 | } | |
453 | { | |
454 | wxPy_BEGIN_ALLOW_THREADS; | |
455 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
456 | ||
457 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 458 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
459 | } if (_result) { |
460 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
461 | _resultobj = Py_BuildValue("s",_ptemp); | |
462 | } else { | |
463 | Py_INCREF(Py_None); | |
464 | _resultobj = Py_None; | |
465 | } | |
466 | return _resultobj; | |
467 | } | |
468 | ||
1afc06c2 | 469 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
470 | PyObject * _resultobj; |
471 | wxCursor * _result; | |
472 | int _arg0; | |
1afc06c2 | 473 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
474 | char _ptemp[128]; |
475 | ||
476 | self = self; | |
1afc06c2 | 477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 478 | return NULL; |
cf694132 RD |
479 | { |
480 | wxPy_BEGIN_ALLOW_THREADS; | |
481 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
482 | ||
483 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 484 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
485 | } if (_result) { |
486 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
487 | _resultobj = Py_BuildValue("s",_ptemp); | |
488 | } else { | |
489 | Py_INCREF(Py_None); | |
490 | _resultobj = Py_None; | |
491 | } | |
8ab979d7 RD |
492 | return _resultobj; |
493 | } | |
494 | ||
f0261a72 RD |
495 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
496 | PyObject * _resultobj; | |
497 | wxFontEncoding _result; | |
498 | char *_kwnames[] = { NULL }; | |
499 | ||
500 | self = self; | |
501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
502 | return NULL; | |
503 | { | |
504 | wxPy_BEGIN_ALLOW_THREADS; | |
505 | _result = (wxFontEncoding )wxFont_GetDefaultEncoding(); | |
506 | ||
507 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 508 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
509 | } _resultobj = Py_BuildValue("i",_result); |
510 | return _resultobj; | |
511 | } | |
512 | ||
513 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
514 | PyObject * _resultobj; | |
515 | wxFontEncoding _arg0; | |
516 | char *_kwnames[] = { "encoding", NULL }; | |
517 | ||
518 | self = self; | |
519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
520 | return NULL; | |
521 | { | |
522 | wxPy_BEGIN_ALLOW_THREADS; | |
523 | wxFont_SetDefaultEncoding(_arg0); | |
524 | ||
525 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 526 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
527 | } Py_INCREF(Py_None); |
528 | _resultobj = Py_None; | |
529 | return _resultobj; | |
530 | } | |
531 | ||
1afc06c2 | 532 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
533 | PyObject * _resultobj; |
534 | wxColour * _result; | |
535 | wxString * _arg0; | |
536 | PyObject * _obj0 = 0; | |
1afc06c2 | 537 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
538 | char _ptemp[128]; |
539 | ||
540 | self = self; | |
1afc06c2 | 541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
542 | return NULL; |
543 | { | |
185d7c3e RD |
544 | #if PYTHON_API_VERSION >= 1009 |
545 | char* tmpPtr; int tmpSize; | |
546 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 547 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
548 | return NULL; |
549 | } | |
550 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
551 | return NULL; | |
552 | _arg0 = new wxString(tmpPtr, tmpSize); | |
553 | #else | |
8ab979d7 RD |
554 | if (!PyString_Check(_obj0)) { |
555 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
556 | return NULL; | |
557 | } | |
185d7c3e RD |
558 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
559 | #endif | |
8ab979d7 | 560 | } |
cf694132 RD |
561 | { |
562 | wxPy_BEGIN_ALLOW_THREADS; | |
563 | _result = (wxColour *)wxNamedColour(*_arg0); | |
564 | ||
565 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 566 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
567 | } if (_result) { |
568 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
569 | _resultobj = Py_BuildValue("s",_ptemp); | |
570 | } else { | |
571 | Py_INCREF(Py_None); | |
572 | _resultobj = Py_None; | |
573 | } | |
8ab979d7 RD |
574 | { |
575 | if (_obj0) | |
576 | delete _arg0; | |
577 | } | |
578 | return _resultobj; | |
579 | } | |
580 | ||
1afc06c2 | 581 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
582 | PyObject * _resultobj; |
583 | wxMemoryDC * _result; | |
584 | wxDC * _arg0; | |
1d99702e | 585 | PyObject * _argo0 = 0; |
1afc06c2 | 586 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
587 | char _ptemp[128]; |
588 | ||
589 | self = self; | |
1afc06c2 | 590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 591 | return NULL; |
1d99702e RD |
592 | if (_argo0) { |
593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
596 | return NULL; | |
597 | } | |
598 | } | |
cf694132 RD |
599 | { |
600 | wxPy_BEGIN_ALLOW_THREADS; | |
601 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
602 | ||
603 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 604 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
605 | } if (_result) { |
606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
607 | _resultobj = Py_BuildValue("s",_ptemp); | |
608 | } else { | |
609 | Py_INCREF(Py_None); | |
610 | _resultobj = Py_None; | |
611 | } | |
8ab979d7 RD |
612 | return _resultobj; |
613 | } | |
614 | ||
615 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
616 | ||
617 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
618 | return 1; | |
619 | } | |
620 | ||
621 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
622 | PyObject * pyobj; | |
623 | char ptemp[128]; | |
624 | ||
625 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
626 | pyobj = PyString_FromString(ptemp); | |
627 | return pyobj; | |
628 | } | |
629 | ||
630 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
631 | ||
632 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
633 | return 1; | |
634 | } | |
635 | ||
636 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
637 | PyObject * pyobj; | |
638 | char ptemp[128]; | |
639 | ||
640 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
641 | pyobj = PyString_FromString(ptemp); | |
642 | return pyobj; | |
643 | } | |
644 | ||
645 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
646 | ||
647 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
648 | return 1; | |
649 | } | |
650 | ||
651 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
652 | PyObject * pyobj; | |
653 | char ptemp[128]; | |
654 | ||
655 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
656 | pyobj = PyString_FromString(ptemp); | |
657 | return pyobj; | |
658 | } | |
659 | ||
660 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
661 | ||
662 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
663 | return 1; | |
664 | } | |
665 | ||
666 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
667 | PyObject * pyobj; | |
668 | char ptemp[128]; | |
669 | ||
670 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
671 | pyobj = PyString_FromString(ptemp); | |
672 | return pyobj; | |
673 | } | |
674 | ||
675 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
676 | ||
677 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
678 | return 1; | |
679 | } | |
680 | ||
681 | static PyObject *_wrap_wxRED_PEN_get() { | |
682 | PyObject * pyobj; | |
683 | char ptemp[128]; | |
684 | ||
685 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
686 | pyobj = PyString_FromString(ptemp); | |
687 | return pyobj; | |
688 | } | |
689 | ||
690 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
691 | ||
692 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
693 | return 1; | |
694 | } | |
695 | ||
696 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
697 | PyObject * pyobj; | |
698 | char ptemp[128]; | |
699 | ||
700 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
701 | pyobj = PyString_FromString(ptemp); | |
702 | return pyobj; | |
703 | } | |
704 | ||
705 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
706 | ||
707 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
708 | return 1; | |
709 | } | |
710 | ||
711 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
712 | PyObject * pyobj; | |
713 | char ptemp[128]; | |
714 | ||
715 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
716 | pyobj = PyString_FromString(ptemp); | |
717 | return pyobj; | |
718 | } | |
719 | ||
720 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
721 | ||
722 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
723 | return 1; | |
724 | } | |
725 | ||
726 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
727 | PyObject * pyobj; | |
728 | char ptemp[128]; | |
729 | ||
730 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
731 | pyobj = PyString_FromString(ptemp); | |
732 | return pyobj; | |
733 | } | |
734 | ||
735 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
736 | ||
737 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
738 | return 1; | |
739 | } | |
740 | ||
741 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
742 | PyObject * pyobj; | |
743 | char ptemp[128]; | |
744 | ||
745 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
746 | pyobj = PyString_FromString(ptemp); | |
747 | return pyobj; | |
748 | } | |
749 | ||
750 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
751 | ||
752 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
753 | return 1; | |
754 | } | |
755 | ||
756 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
757 | PyObject * pyobj; | |
758 | char ptemp[128]; | |
759 | ||
760 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
761 | pyobj = PyString_FromString(ptemp); | |
762 | return pyobj; | |
763 | } | |
764 | ||
765 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
766 | ||
767 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
768 | return 1; | |
769 | } | |
770 | ||
771 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
772 | PyObject * pyobj; | |
773 | char ptemp[128]; | |
774 | ||
775 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
776 | pyobj = PyString_FromString(ptemp); | |
777 | return pyobj; | |
778 | } | |
779 | ||
780 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
781 | ||
782 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
783 | return 1; | |
784 | } | |
785 | ||
786 | static PyObject *_wrap_wxGREY_PEN_get() { | |
787 | PyObject * pyobj; | |
788 | char ptemp[128]; | |
789 | ||
790 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
791 | pyobj = PyString_FromString(ptemp); | |
792 | return pyobj; | |
793 | } | |
794 | ||
795 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
796 | ||
797 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
798 | return 1; | |
799 | } | |
800 | ||
801 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
802 | PyObject * pyobj; | |
803 | char ptemp[128]; | |
804 | ||
805 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
806 | pyobj = PyString_FromString(ptemp); | |
807 | return pyobj; | |
808 | } | |
809 | ||
810 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
811 | ||
812 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
813 | return 1; | |
814 | } | |
815 | ||
816 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
817 | PyObject * pyobj; | |
818 | char ptemp[128]; | |
819 | ||
820 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
821 | pyobj = PyString_FromString(ptemp); | |
822 | return pyobj; | |
823 | } | |
824 | ||
825 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
826 | ||
827 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
828 | return 1; | |
829 | } | |
830 | ||
831 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
832 | PyObject * pyobj; | |
833 | char ptemp[128]; | |
834 | ||
835 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
836 | pyobj = PyString_FromString(ptemp); | |
837 | return pyobj; | |
838 | } | |
839 | ||
840 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
841 | ||
842 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
843 | return 1; | |
844 | } | |
845 | ||
846 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
847 | PyObject * pyobj; | |
848 | char ptemp[128]; | |
849 | ||
850 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
851 | pyobj = PyString_FromString(ptemp); | |
852 | return pyobj; | |
853 | } | |
854 | ||
855 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
856 | ||
857 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
858 | return 1; | |
859 | } | |
860 | ||
861 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
862 | PyObject * pyobj; | |
863 | char ptemp[128]; | |
864 | ||
865 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
866 | pyobj = PyString_FromString(ptemp); | |
867 | return pyobj; | |
868 | } | |
869 | ||
870 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
871 | ||
872 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
873 | return 1; | |
874 | } | |
875 | ||
876 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
877 | PyObject * pyobj; | |
878 | char ptemp[128]; | |
879 | ||
880 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
881 | pyobj = PyString_FromString(ptemp); | |
882 | return pyobj; | |
883 | } | |
884 | ||
885 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
886 | ||
887 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
888 | return 1; | |
889 | } | |
890 | ||
891 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
892 | PyObject * pyobj; | |
893 | char ptemp[128]; | |
894 | ||
895 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
896 | pyobj = PyString_FromString(ptemp); | |
897 | return pyobj; | |
898 | } | |
899 | ||
900 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
901 | ||
902 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
903 | return 1; | |
904 | } | |
905 | ||
906 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
907 | PyObject * pyobj; | |
908 | char ptemp[128]; | |
909 | ||
910 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
911 | pyobj = PyString_FromString(ptemp); | |
912 | return pyobj; | |
913 | } | |
914 | ||
915 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
916 | ||
917 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
918 | return 1; | |
919 | } | |
920 | ||
921 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
922 | PyObject * pyobj; | |
923 | char ptemp[128]; | |
924 | ||
925 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
926 | pyobj = PyString_FromString(ptemp); | |
927 | return pyobj; | |
928 | } | |
929 | ||
930 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
931 | ||
932 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
933 | return 1; | |
934 | } | |
935 | ||
936 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
937 | PyObject * pyobj; | |
938 | char ptemp[128]; | |
939 | ||
940 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
941 | pyobj = PyString_FromString(ptemp); | |
942 | return pyobj; | |
943 | } | |
944 | ||
945 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
946 | ||
947 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
948 | return 1; | |
949 | } | |
950 | ||
951 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
952 | PyObject * pyobj; | |
953 | char ptemp[128]; | |
954 | ||
955 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
956 | pyobj = PyString_FromString(ptemp); | |
957 | return pyobj; | |
958 | } | |
959 | ||
960 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
961 | ||
962 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
963 | return 1; | |
964 | } | |
965 | ||
966 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
967 | PyObject * pyobj; | |
968 | char ptemp[128]; | |
969 | ||
970 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
971 | pyobj = PyString_FromString(ptemp); | |
972 | return pyobj; | |
973 | } | |
974 | ||
975 | static int _wrap_wxBLACK_set(PyObject *val) { | |
976 | ||
977 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
978 | return 1; | |
979 | } | |
980 | ||
981 | static PyObject *_wrap_wxBLACK_get() { | |
982 | PyObject * pyobj; | |
983 | char ptemp[128]; | |
984 | ||
985 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
986 | pyobj = PyString_FromString(ptemp); | |
987 | return pyobj; | |
988 | } | |
989 | ||
990 | static int _wrap_wxWHITE_set(PyObject *val) { | |
991 | ||
992 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
993 | return 1; | |
994 | } | |
995 | ||
996 | static PyObject *_wrap_wxWHITE_get() { | |
997 | PyObject * pyobj; | |
998 | char ptemp[128]; | |
999 | ||
1000 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1001 | pyobj = PyString_FromString(ptemp); | |
1002 | return pyobj; | |
1003 | } | |
1004 | ||
1005 | static int _wrap_wxRED_set(PyObject *val) { | |
1006 | ||
1007 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1008 | return 1; | |
1009 | } | |
1010 | ||
1011 | static PyObject *_wrap_wxRED_get() { | |
1012 | PyObject * pyobj; | |
1013 | char ptemp[128]; | |
1014 | ||
1015 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1016 | pyobj = PyString_FromString(ptemp); | |
1017 | return pyobj; | |
1018 | } | |
1019 | ||
1020 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1021 | ||
1022 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1023 | return 1; | |
1024 | } | |
1025 | ||
1026 | static PyObject *_wrap_wxBLUE_get() { | |
1027 | PyObject * pyobj; | |
1028 | char ptemp[128]; | |
1029 | ||
1030 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1031 | pyobj = PyString_FromString(ptemp); | |
1032 | return pyobj; | |
1033 | } | |
1034 | ||
1035 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1036 | ||
1037 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1038 | return 1; | |
1039 | } | |
1040 | ||
1041 | static PyObject *_wrap_wxGREEN_get() { | |
1042 | PyObject * pyobj; | |
1043 | char ptemp[128]; | |
1044 | ||
1045 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1046 | pyobj = PyString_FromString(ptemp); | |
1047 | return pyobj; | |
1048 | } | |
1049 | ||
1050 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1051 | ||
1052 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1053 | return 1; | |
1054 | } | |
1055 | ||
1056 | static PyObject *_wrap_wxCYAN_get() { | |
1057 | PyObject * pyobj; | |
1058 | char ptemp[128]; | |
1059 | ||
1060 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1061 | pyobj = PyString_FromString(ptemp); | |
1062 | return pyobj; | |
1063 | } | |
1064 | ||
1065 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1066 | ||
1067 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1068 | return 1; | |
1069 | } | |
1070 | ||
1071 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1072 | PyObject * pyobj; | |
1073 | char ptemp[128]; | |
1074 | ||
1075 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1076 | pyobj = PyString_FromString(ptemp); | |
1077 | return pyobj; | |
1078 | } | |
1079 | ||
1080 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1081 | ||
1082 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1083 | return 1; | |
1084 | } | |
1085 | ||
1086 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1087 | PyObject * pyobj; | |
1088 | char ptemp[128]; | |
1089 | ||
1090 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1091 | pyobj = PyString_FromString(ptemp); | |
1092 | return pyobj; | |
1093 | } | |
1094 | ||
1095 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1096 | ||
1097 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1098 | return 1; | |
1099 | } | |
1100 | ||
1101 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1102 | PyObject * pyobj; | |
1103 | char ptemp[128]; | |
1104 | ||
1105 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1106 | pyobj = PyString_FromString(ptemp); | |
1107 | return pyobj; | |
1108 | } | |
1109 | ||
1110 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1111 | ||
1112 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1113 | return 1; | |
1114 | } | |
1115 | ||
1116 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1117 | PyObject * pyobj; | |
1118 | char ptemp[128]; | |
1119 | ||
1120 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1121 | pyobj = PyString_FromString(ptemp); | |
1122 | return pyobj; | |
1123 | } | |
1124 | ||
1125 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1126 | ||
1127 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1128 | return 1; | |
1129 | } | |
1130 | ||
1131 | static PyObject *_wrap_wxNullBitmap_get() { | |
1132 | PyObject * pyobj; | |
1133 | char ptemp[128]; | |
1134 | ||
1135 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1136 | pyobj = PyString_FromString(ptemp); | |
1137 | return pyobj; | |
1138 | } | |
1139 | ||
1140 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1141 | ||
1142 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1143 | return 1; | |
1144 | } | |
1145 | ||
1146 | static PyObject *_wrap_wxNullIcon_get() { | |
1147 | PyObject * pyobj; | |
1148 | char ptemp[128]; | |
1149 | ||
1150 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1151 | pyobj = PyString_FromString(ptemp); | |
1152 | return pyobj; | |
1153 | } | |
1154 | ||
1155 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1156 | ||
1157 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1158 | return 1; | |
1159 | } | |
1160 | ||
1161 | static PyObject *_wrap_wxNullCursor_get() { | |
1162 | PyObject * pyobj; | |
1163 | char ptemp[128]; | |
1164 | ||
1165 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1166 | pyobj = PyString_FromString(ptemp); | |
1167 | return pyobj; | |
1168 | } | |
1169 | ||
1170 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1171 | ||
1172 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1173 | return 1; | |
1174 | } | |
1175 | ||
1176 | static PyObject *_wrap_wxNullPen_get() { | |
1177 | PyObject * pyobj; | |
1178 | char ptemp[128]; | |
1179 | ||
1180 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1181 | pyobj = PyString_FromString(ptemp); | |
1182 | return pyobj; | |
1183 | } | |
1184 | ||
1185 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1186 | ||
1187 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1188 | return 1; | |
1189 | } | |
1190 | ||
1191 | static PyObject *_wrap_wxNullBrush_get() { | |
1192 | PyObject * pyobj; | |
1193 | char ptemp[128]; | |
1194 | ||
1195 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1196 | pyobj = PyString_FromString(ptemp); | |
1197 | return pyobj; | |
1198 | } | |
1199 | ||
1200 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1201 | ||
1202 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1203 | return 1; | |
1204 | } | |
1205 | ||
1206 | static PyObject *_wrap_wxNullPalette_get() { | |
1207 | PyObject * pyobj; | |
1208 | char ptemp[128]; | |
1209 | ||
1210 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1211 | pyobj = PyString_FromString(ptemp); | |
1212 | return pyobj; | |
1213 | } | |
1214 | ||
1215 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1216 | ||
1217 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1218 | return 1; | |
1219 | } | |
1220 | ||
1221 | static PyObject *_wrap_wxNullFont_get() { | |
1222 | PyObject * pyobj; | |
1223 | char ptemp[128]; | |
1224 | ||
1225 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1226 | pyobj = PyString_FromString(ptemp); | |
1227 | return pyobj; | |
1228 | } | |
1229 | ||
1230 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1231 | ||
1232 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1233 | return 1; | |
1234 | } | |
1235 | ||
1236 | static PyObject *_wrap_wxNullColour_get() { | |
1237 | PyObject * pyobj; | |
1238 | char ptemp[128]; | |
1239 | ||
1240 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1241 | pyobj = PyString_FromString(ptemp); | |
1242 | return pyobj; | |
1243 | } | |
1244 | ||
0569df0f RD |
1245 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1246 | ||
1247 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1248 | return 1; | |
1249 | } | |
1250 | ||
1251 | static PyObject *_wrap_wxTheFontList_get() { | |
1252 | PyObject * pyobj; | |
1253 | char ptemp[128]; | |
1254 | ||
1255 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1256 | pyobj = PyString_FromString(ptemp); | |
1257 | return pyobj; | |
1258 | } | |
1259 | ||
1260 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1261 | ||
1262 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1263 | return 1; | |
1264 | } | |
1265 | ||
1266 | static PyObject *_wrap_wxThePenList_get() { | |
1267 | PyObject * pyobj; | |
1268 | char ptemp[128]; | |
1269 | ||
1270 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1271 | pyobj = PyString_FromString(ptemp); | |
1272 | return pyobj; | |
1273 | } | |
1274 | ||
1275 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1276 | ||
1277 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1278 | return 1; | |
1279 | } | |
1280 | ||
1281 | static PyObject *_wrap_wxTheBrushList_get() { | |
1282 | PyObject * pyobj; | |
1283 | char ptemp[128]; | |
1284 | ||
1285 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); | |
1286 | pyobj = PyString_FromString(ptemp); | |
1287 | return pyobj; | |
1288 | } | |
1289 | ||
1290 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1291 | ||
1292 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1293 | return 1; | |
1294 | } | |
1295 | ||
1296 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1297 | PyObject * pyobj; | |
1298 | char ptemp[128]; | |
1299 | ||
1300 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1301 | pyobj = PyString_FromString(ptemp); | |
1302 | return pyobj; | |
1303 | } | |
1304 | ||
9416aa89 RD |
1305 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1306 | wxGDIObject *src; | |
1307 | wxObject *dest; | |
1308 | src = (wxGDIObject *) ptr; | |
1309 | dest = (wxObject *) src; | |
1310 | return (void *) dest; | |
1311 | } | |
1312 | ||
1313 | #define new_wxGDIObject() (new wxGDIObject()) | |
1314 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject * _resultobj; | |
1316 | wxGDIObject * _result; | |
1317 | char *_kwnames[] = { NULL }; | |
1318 | char _ptemp[128]; | |
1319 | ||
1320 | self = self; | |
1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1322 | return NULL; | |
1323 | { | |
1324 | wxPy_BEGIN_ALLOW_THREADS; | |
1325 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1326 | ||
1327 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1328 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1329 | } if (_result) { |
1330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1331 | _resultobj = Py_BuildValue("s",_ptemp); | |
1332 | } else { | |
1333 | Py_INCREF(Py_None); | |
1334 | _resultobj = Py_None; | |
1335 | } | |
1336 | return _resultobj; | |
1337 | } | |
1338 | ||
1339 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1340 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1341 | PyObject * _resultobj; | |
1342 | wxGDIObject * _arg0; | |
1343 | PyObject * _argo0 = 0; | |
1344 | char *_kwnames[] = { "self", NULL }; | |
1345 | ||
1346 | self = self; | |
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1348 | return NULL; | |
1349 | if (_argo0) { | |
1350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1353 | return NULL; | |
1354 | } | |
1355 | } | |
1356 | { | |
1357 | wxPy_BEGIN_ALLOW_THREADS; | |
1358 | delete_wxGDIObject(_arg0); | |
1359 | ||
1360 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1361 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1362 | } Py_INCREF(Py_None); |
1363 | _resultobj = Py_None; | |
1364 | return _resultobj; | |
1365 | } | |
1366 | ||
1367 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1368 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1369 | PyObject * _resultobj; | |
1370 | bool _result; | |
1371 | wxGDIObject * _arg0; | |
1372 | PyObject * _argo0 = 0; | |
1373 | char *_kwnames[] = { "self", NULL }; | |
1374 | ||
1375 | self = self; | |
1376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1377 | return NULL; | |
1378 | if (_argo0) { | |
1379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1382 | return NULL; | |
1383 | } | |
1384 | } | |
1385 | { | |
1386 | wxPy_BEGIN_ALLOW_THREADS; | |
1387 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1388 | ||
1389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1390 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1391 | } _resultobj = Py_BuildValue("i",_result); |
1392 | return _resultobj; | |
1393 | } | |
1394 | ||
1395 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1396 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1397 | PyObject * _resultobj; | |
1398 | wxGDIObject * _arg0; | |
1399 | bool _arg1; | |
1400 | PyObject * _argo0 = 0; | |
1401 | int tempbool1; | |
1402 | char *_kwnames[] = { "self","visible", NULL }; | |
1403 | ||
1404 | self = self; | |
1405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1406 | return NULL; | |
1407 | if (_argo0) { | |
1408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1411 | return NULL; | |
1412 | } | |
1413 | } | |
1414 | _arg1 = (bool ) tempbool1; | |
1415 | { | |
1416 | wxPy_BEGIN_ALLOW_THREADS; | |
1417 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1418 | ||
1419 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1420 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1421 | } Py_INCREF(Py_None); |
1422 | _resultobj = Py_None; | |
1423 | return _resultobj; | |
1424 | } | |
1425 | ||
1426 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1427 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1428 | PyObject * _resultobj; | |
1429 | bool _result; | |
1430 | wxGDIObject * _arg0; | |
1431 | PyObject * _argo0 = 0; | |
1432 | char *_kwnames[] = { "self", NULL }; | |
1433 | ||
1434 | self = self; | |
1435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1436 | return NULL; | |
1437 | if (_argo0) { | |
1438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1441 | return NULL; | |
1442 | } | |
1443 | } | |
1444 | { | |
1445 | wxPy_BEGIN_ALLOW_THREADS; | |
1446 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1447 | ||
1448 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1449 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1450 | } _resultobj = Py_BuildValue("i",_result); |
1451 | return _resultobj; | |
1452 | } | |
1453 | ||
1454 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1455 | wxBitmap *src; | |
1456 | wxGDIObject *dest; | |
1457 | src = (wxBitmap *) ptr; | |
1458 | dest = (wxGDIObject *) src; | |
1459 | return (void *) dest; | |
1460 | } | |
1461 | ||
1462 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1463 | wxBitmap *src; | |
1464 | wxObject *dest; | |
1465 | src = (wxBitmap *) ptr; | |
1466 | dest = (wxObject *) src; | |
1467 | return (void *) dest; | |
1468 | } | |
1469 | ||
6999b0d8 RD |
1470 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1471 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1472 | PyObject * _resultobj; |
6999b0d8 RD |
1473 | wxBitmap * _result; |
1474 | wxString * _arg0; | |
0a651eb8 | 1475 | wxBitmapType _arg1; |
6999b0d8 RD |
1476 | PyObject * _obj0 = 0; |
1477 | char *_kwnames[] = { "name","type", NULL }; | |
1478 | char _ptemp[128]; | |
8ab979d7 RD |
1479 | |
1480 | self = self; | |
0a651eb8 | 1481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1482 | return NULL; |
6999b0d8 | 1483 | { |
185d7c3e RD |
1484 | #if PYTHON_API_VERSION >= 1009 |
1485 | char* tmpPtr; int tmpSize; | |
1486 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1487 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1488 | return NULL; |
1489 | } | |
1490 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1491 | return NULL; | |
1492 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1493 | #else | |
6999b0d8 RD |
1494 | if (!PyString_Check(_obj0)) { |
1495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1496 | return NULL; |
8ab979d7 | 1497 | } |
185d7c3e RD |
1498 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1499 | #endif | |
6999b0d8 | 1500 | } |
cf694132 RD |
1501 | { |
1502 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1503 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 RD |
1504 | |
1505 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1506 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1507 | } if (_result) { |
1508 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1509 | _resultobj = Py_BuildValue("s",_ptemp); | |
1510 | } else { | |
1511 | Py_INCREF(Py_None); | |
1512 | _resultobj = Py_None; | |
1513 | } | |
1514 | { | |
1515 | if (_obj0) | |
1516 | delete _arg0; | |
1517 | } | |
8ab979d7 RD |
1518 | return _resultobj; |
1519 | } | |
1520 | ||
6999b0d8 RD |
1521 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1522 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1523 | PyObject * _resultobj; |
1524 | wxBitmap * _arg0; | |
1d99702e | 1525 | PyObject * _argo0 = 0; |
6999b0d8 | 1526 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1527 | |
1528 | self = self; | |
6999b0d8 | 1529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1530 | return NULL; |
1d99702e RD |
1531 | if (_argo0) { |
1532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1535 | return NULL; |
1536 | } | |
1537 | } | |
cf694132 RD |
1538 | { |
1539 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1540 | delete_wxBitmap(_arg0); |
cf694132 RD |
1541 | |
1542 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1544 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1545 | _resultobj = Py_None; |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
6999b0d8 RD |
1549 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1550 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1551 | PyObject * _resultobj; |
6999b0d8 | 1552 | wxPalette * _result; |
8ab979d7 | 1553 | wxBitmap * _arg0; |
1d99702e | 1554 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1555 | char *_kwnames[] = { "self", NULL }; |
1556 | char _ptemp[128]; | |
8ab979d7 RD |
1557 | |
1558 | self = self; | |
6999b0d8 | 1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1560 | return NULL; |
1d99702e RD |
1561 | if (_argo0) { |
1562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1565 | return NULL; |
1566 | } | |
1567 | } | |
cf694132 RD |
1568 | { |
1569 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1570 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 RD |
1571 | |
1572 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1573 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1574 | } if (_result) { |
1575 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1576 | _resultobj = Py_BuildValue("s",_ptemp); | |
1577 | } else { | |
1578 | Py_INCREF(Py_None); | |
1579 | _resultobj = Py_None; | |
1580 | } | |
8ab979d7 RD |
1581 | return _resultobj; |
1582 | } | |
1583 | ||
6999b0d8 RD |
1584 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1585 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1586 | PyObject * _resultobj; |
1587 | wxMask * _result; | |
1588 | wxBitmap * _arg0; | |
1d99702e | 1589 | PyObject * _argo0 = 0; |
6999b0d8 | 1590 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1591 | char _ptemp[128]; |
1592 | ||
1593 | self = self; | |
6999b0d8 | 1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1595 | return NULL; |
1d99702e RD |
1596 | if (_argo0) { |
1597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1600 | return NULL; |
1601 | } | |
1602 | } | |
cf694132 RD |
1603 | { |
1604 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1605 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 RD |
1606 | |
1607 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1608 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1609 | } if (_result) { |
1610 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1611 | _resultobj = Py_BuildValue("s",_ptemp); | |
1612 | } else { | |
1613 | Py_INCREF(Py_None); | |
1614 | _resultobj = Py_None; | |
1615 | } | |
8ab979d7 RD |
1616 | return _resultobj; |
1617 | } | |
1618 | ||
6999b0d8 RD |
1619 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1620 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1621 | PyObject * _resultobj; |
6999b0d8 RD |
1622 | bool _result; |
1623 | wxBitmap * _arg0; | |
1624 | wxString * _arg1; | |
1625 | long _arg2; | |
1626 | PyObject * _argo0 = 0; | |
1627 | PyObject * _obj1 = 0; | |
1628 | char *_kwnames[] = { "self","name","flags", NULL }; | |
8ab979d7 RD |
1629 | |
1630 | self = self; | |
6999b0d8 RD |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1637 | return NULL; |
6999b0d8 RD |
1638 | } |
1639 | } | |
8ab979d7 | 1640 | { |
185d7c3e RD |
1641 | #if PYTHON_API_VERSION >= 1009 |
1642 | char* tmpPtr; int tmpSize; | |
1643 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1644 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1645 | return NULL; |
1646 | } | |
1647 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1648 | return NULL; | |
1649 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1650 | #else | |
6999b0d8 | 1651 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
1652 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1653 | return NULL; | |
1654 | } | |
185d7c3e RD |
1655 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1656 | #endif | |
8ab979d7 | 1657 | } |
cf694132 RD |
1658 | { |
1659 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1660 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 RD |
1661 | |
1662 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1663 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1664 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1665 | { |
6999b0d8 RD |
1666 | if (_obj1) |
1667 | delete _arg1; | |
8ab979d7 RD |
1668 | } |
1669 | return _resultobj; | |
1670 | } | |
1671 | ||
6999b0d8 RD |
1672 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1673 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1674 | PyObject * _resultobj; |
6999b0d8 RD |
1675 | bool _result; |
1676 | wxBitmap * _arg0; | |
1677 | wxString * _arg1; | |
1678 | int _arg2; | |
1679 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1d99702e | 1680 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1681 | PyObject * _obj1 = 0; |
1682 | PyObject * _argo3 = 0; | |
1683 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1684 | |
1685 | self = self; | |
6999b0d8 | 1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1687 | return NULL; |
1d99702e RD |
1688 | if (_argo0) { |
1689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1692 | return NULL; |
1693 | } | |
1694 | } | |
cf694132 | 1695 | { |
185d7c3e RD |
1696 | #if PYTHON_API_VERSION >= 1009 |
1697 | char* tmpPtr; int tmpSize; | |
1698 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1699 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1700 | return NULL; |
1701 | } | |
1702 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1703 | return NULL; | |
1704 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1705 | #else | |
6999b0d8 RD |
1706 | if (!PyString_Check(_obj1)) { |
1707 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1708 | return NULL; |
6999b0d8 | 1709 | } |
185d7c3e RD |
1710 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1711 | #endif | |
6999b0d8 RD |
1712 | } |
1713 | if (_argo3) { | |
1714 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1715 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1717 | return NULL; |
1718 | } | |
1719 | } | |
cf694132 RD |
1720 | { |
1721 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1722 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
1723 | |
1724 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1725 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1726 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1727 | { |
1728 | if (_obj1) | |
1729 | delete _arg1; | |
1730 | } | |
8ab979d7 RD |
1731 | return _resultobj; |
1732 | } | |
1733 | ||
6999b0d8 RD |
1734 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1735 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1736 | PyObject * _resultobj; |
6999b0d8 RD |
1737 | wxBitmap * _arg0; |
1738 | wxMask * _arg1; | |
1d99702e | 1739 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1740 | PyObject * _argo1 = 0; |
1741 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1742 | |
1743 | self = self; | |
6999b0d8 | 1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1745 | return NULL; |
1d99702e RD |
1746 | if (_argo0) { |
1747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1750 | return NULL; |
1751 | } | |
1752 | } | |
6999b0d8 RD |
1753 | if (_argo1) { |
1754 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1755 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1757 | return NULL; |
1758 | } | |
1759 | } | |
cf694132 RD |
1760 | { |
1761 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1762 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 RD |
1763 | |
1764 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1765 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1766 | } Py_INCREF(Py_None); |
1767 | _resultobj = Py_None; | |
8ab979d7 RD |
1768 | return _resultobj; |
1769 | } | |
1770 | ||
6999b0d8 RD |
1771 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1772 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject * _resultobj; | |
1774 | wxBitmap * _arg0; | |
1775 | wxPalette * _arg1; | |
1d99702e | 1776 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1777 | PyObject * _argo1 = 0; |
1778 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1779 | |
1780 | self = self; | |
6999b0d8 | 1781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1782 | return NULL; |
1d99702e RD |
1783 | if (_argo0) { |
1784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1787 | return NULL; |
1788 | } | |
1789 | } | |
6999b0d8 RD |
1790 | if (_argo1) { |
1791 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1792 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1794 | return NULL; |
6999b0d8 | 1795 | } |
8ab979d7 | 1796 | } |
cf694132 RD |
1797 | { |
1798 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1799 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 RD |
1800 | |
1801 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1802 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1803 | } Py_INCREF(Py_None); |
1804 | _resultobj = Py_None; | |
8ab979d7 RD |
1805 | return _resultobj; |
1806 | } | |
1807 | ||
9b3d3bc4 RD |
1808 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1809 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1810 | PyObject * _resultobj; |
9b3d3bc4 | 1811 | long _result; |
6999b0d8 | 1812 | wxBitmap * _arg0; |
1d99702e | 1813 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1814 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1815 | |
1816 | self = self; | |
9b3d3bc4 | 1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1818 | return NULL; |
1d99702e RD |
1819 | if (_argo0) { |
1820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1823 | return NULL; |
1824 | } | |
1825 | } | |
cf694132 RD |
1826 | { |
1827 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1828 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 RD |
1829 | |
1830 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1831 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1832 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1833 | return _resultobj; |
1834 | } | |
1835 | ||
9b3d3bc4 RD |
1836 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1837 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1838 | PyObject * _resultobj; |
9b3d3bc4 | 1839 | wxBitmap * _arg0; |
6999b0d8 | 1840 | long _arg1; |
9b3d3bc4 RD |
1841 | PyObject * _argo0 = 0; |
1842 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1843 | |
1844 | self = self; | |
9b3d3bc4 | 1845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1846 | return NULL; |
9b3d3bc4 RD |
1847 | if (_argo0) { |
1848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1851 | return NULL; |
9b3d3bc4 | 1852 | } |
8ab979d7 | 1853 | } |
9b3d3bc4 RD |
1854 | { |
1855 | wxPy_BEGIN_ALLOW_THREADS; | |
1856 | wxBitmap_SetHandle(_arg0,_arg1); | |
1857 | ||
1858 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1859 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1860 | } Py_INCREF(Py_None); |
1861 | _resultobj = Py_None; | |
1862 | return _resultobj; | |
6999b0d8 | 1863 | } |
9b3d3bc4 RD |
1864 | |
1865 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1866 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject * _resultobj; | |
1868 | bool _result; | |
1869 | wxBitmap * _arg0; | |
1870 | PyObject * _argo0 = 0; | |
1871 | char *_kwnames[] = { "self", NULL }; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1875 | return NULL; | |
1876 | if (_argo0) { | |
1877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1880 | return NULL; | |
1881 | } | |
1882 | } | |
cf694132 RD |
1883 | { |
1884 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1885 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 RD |
1886 | |
1887 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1888 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1889 | } _resultobj = Py_BuildValue("i",_result); |
1890 | return _resultobj; | |
1891 | } | |
1892 | ||
1893 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1894 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject * _resultobj; | |
1896 | int _result; | |
1897 | wxBitmap * _arg0; | |
1898 | PyObject * _argo0 = 0; | |
1899 | char *_kwnames[] = { "self", NULL }; | |
1900 | ||
1901 | self = self; | |
1902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1903 | return NULL; | |
1904 | if (_argo0) { | |
1905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1908 | return NULL; | |
1909 | } | |
6999b0d8 RD |
1910 | } |
1911 | { | |
9b3d3bc4 RD |
1912 | wxPy_BEGIN_ALLOW_THREADS; |
1913 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1914 | ||
1915 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1916 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1917 | } _resultobj = Py_BuildValue("i",_result); |
1918 | return _resultobj; | |
6999b0d8 | 1919 | } |
9b3d3bc4 RD |
1920 | |
1921 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1922 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject * _resultobj; | |
1924 | int _result; | |
1925 | wxBitmap * _arg0; | |
1926 | PyObject * _argo0 = 0; | |
1927 | char *_kwnames[] = { "self", NULL }; | |
1928 | ||
1929 | self = self; | |
1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1931 | return NULL; | |
1932 | if (_argo0) { | |
1933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1936 | return NULL; | |
1937 | } | |
1938 | } | |
1939 | { | |
1940 | wxPy_BEGIN_ALLOW_THREADS; | |
1941 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1942 | ||
1943 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1944 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1945 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1946 | return _resultobj; |
1947 | } | |
1948 | ||
9b3d3bc4 RD |
1949 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1950 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1951 | PyObject * _resultobj; |
9b3d3bc4 RD |
1952 | int _result; |
1953 | wxBitmap * _arg0; | |
1d99702e | 1954 | PyObject * _argo0 = 0; |
6999b0d8 | 1955 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1956 | |
1957 | self = self; | |
9b3d3bc4 | 1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1959 | return NULL; |
1d99702e RD |
1960 | if (_argo0) { |
1961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1964 | return NULL; |
1965 | } | |
1966 | } | |
cf694132 RD |
1967 | { |
1968 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
1969 | _result = (int )wxBitmap_GetDepth(_arg0); |
1970 | ||
1971 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1972 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1973 | } _resultobj = Py_BuildValue("i",_result); |
1974 | return _resultobj; | |
1975 | } | |
1976 | ||
1977 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1978 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1979 | PyObject * _resultobj; | |
1980 | wxBitmap * _arg0; | |
1981 | int _arg1; | |
1982 | PyObject * _argo0 = 0; | |
1983 | char *_kwnames[] = { "self","w", NULL }; | |
1984 | ||
1985 | self = self; | |
1986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1987 | return NULL; | |
1988 | if (_argo0) { | |
1989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1992 | return NULL; | |
1993 | } | |
1994 | } | |
1995 | { | |
1996 | wxPy_BEGIN_ALLOW_THREADS; | |
1997 | wxBitmap_SetWidth(_arg0,_arg1); | |
cf694132 RD |
1998 | |
1999 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2001 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2002 | _resultobj = Py_None; |
2003 | return _resultobj; | |
2004 | } | |
2005 | ||
9b3d3bc4 RD |
2006 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
2007 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2008 | PyObject * _resultobj; |
9b3d3bc4 RD |
2009 | wxBitmap * _arg0; |
2010 | int _arg1; | |
1d99702e | 2011 | PyObject * _argo0 = 0; |
9b3d3bc4 | 2012 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
2013 | |
2014 | self = self; | |
9b3d3bc4 | 2015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2016 | return NULL; |
1d99702e RD |
2017 | if (_argo0) { |
2018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
2020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
2021 | return NULL; |
2022 | } | |
2023 | } | |
6999b0d8 | 2024 | { |
9b3d3bc4 RD |
2025 | wxPy_BEGIN_ALLOW_THREADS; |
2026 | wxBitmap_SetHeight(_arg0,_arg1); | |
2027 | ||
2028 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2029 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2030 | } Py_INCREF(Py_None); |
2031 | _resultobj = Py_None; | |
2032 | return _resultobj; | |
2033 | } | |
2034 | ||
2035 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2036 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2037 | PyObject * _resultobj; | |
2038 | wxBitmap * _arg0; | |
2039 | int _arg1; | |
2040 | PyObject * _argo0 = 0; | |
2041 | char *_kwnames[] = { "self","d", NULL }; | |
2042 | ||
2043 | self = self; | |
2044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2045 | return NULL; | |
2046 | if (_argo0) { | |
2047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2050 | return NULL; |
9b3d3bc4 | 2051 | } |
6999b0d8 | 2052 | } |
cf694132 RD |
2053 | { |
2054 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 2055 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 RD |
2056 | |
2057 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2058 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2059 | } Py_INCREF(Py_None); |
2060 | _resultobj = Py_None; | |
2061 | return _resultobj; | |
2062 | } | |
2063 | ||
2064 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2065 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2066 | PyObject * _resultobj; | |
2067 | wxBitmap * _arg0; | |
2068 | wxSize * _arg1; | |
2069 | PyObject * _argo0 = 0; | |
2070 | wxSize temp; | |
2071 | PyObject * _obj1 = 0; | |
2072 | char *_kwnames[] = { "self","size", NULL }; | |
2073 | ||
2074 | self = self; | |
2075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2076 | return NULL; | |
2077 | if (_argo0) { | |
2078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2081 | return NULL; | |
2082 | } | |
2083 | } | |
6999b0d8 | 2084 | { |
9b3d3bc4 RD |
2085 | _arg1 = &temp; |
2086 | if (! wxSize_helper(_obj1, &_arg1)) | |
2087 | return NULL; | |
6999b0d8 | 2088 | } |
9b3d3bc4 RD |
2089 | { |
2090 | wxPy_BEGIN_ALLOW_THREADS; | |
2091 | wxBitmap_SetSize(_arg0,*_arg1); | |
2092 | ||
2093 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2094 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2095 | } Py_INCREF(Py_None); |
2096 | _resultobj = Py_None; | |
8ab979d7 RD |
2097 | return _resultobj; |
2098 | } | |
2099 | ||
f6bcfd97 BP |
2100 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2101 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2102 | PyObject * _resultobj; | |
2103 | wxBitmap * _result; | |
2104 | wxBitmap * _arg0; | |
2105 | wxRect * _arg1; | |
2106 | PyObject * _argo0 = 0; | |
2107 | wxRect temp; | |
2108 | PyObject * _obj1 = 0; | |
2109 | char *_kwnames[] = { "self","rect", NULL }; | |
2110 | char _ptemp[128]; | |
2111 | ||
2112 | self = self; | |
2113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2114 | return NULL; | |
2115 | if (_argo0) { | |
2116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2119 | return NULL; | |
2120 | } | |
2121 | } | |
2122 | { | |
2123 | _arg1 = &temp; | |
2124 | if (! wxRect_helper(_obj1, &_arg1)) | |
2125 | return NULL; | |
2126 | } | |
2127 | { | |
2128 | wxPy_BEGIN_ALLOW_THREADS; | |
2129 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
2130 | ||
2131 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2132 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2133 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2134 | _resultobj = Py_BuildValue("s",_ptemp); | |
2135 | return _resultobj; | |
2136 | } | |
2137 | ||
2138 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2139 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2140 | PyObject * _resultobj; | |
2141 | bool _result; | |
2142 | wxBitmap * _arg0; | |
2143 | wxIcon * _arg1; | |
2144 | PyObject * _argo0 = 0; | |
2145 | PyObject * _argo1 = 0; | |
2146 | char *_kwnames[] = { "self","icon", NULL }; | |
2147 | ||
2148 | self = self; | |
2149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2150 | return NULL; | |
2151 | if (_argo0) { | |
2152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2155 | return NULL; | |
2156 | } | |
2157 | } | |
2158 | if (_argo1) { | |
2159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2162 | return NULL; | |
2163 | } | |
2164 | } | |
2165 | { | |
2166 | wxPy_BEGIN_ALLOW_THREADS; | |
2167 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
2168 | ||
2169 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2170 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2171 | } _resultobj = Py_BuildValue("i",_result); |
2172 | return _resultobj; | |
2173 | } | |
2174 | ||
2175 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2176 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2177 | PyObject * _resultobj; | |
2178 | bool _result; | |
2179 | wxBitmap * _arg0; | |
2180 | wxCursor * _arg1; | |
2181 | PyObject * _argo0 = 0; | |
2182 | PyObject * _argo1 = 0; | |
2183 | char *_kwnames[] = { "self","cursor", NULL }; | |
2184 | ||
2185 | self = self; | |
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2187 | return NULL; | |
2188 | if (_argo0) { | |
2189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2192 | return NULL; | |
2193 | } | |
2194 | } | |
2195 | if (_argo1) { | |
2196 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2197 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2199 | return NULL; | |
2200 | } | |
2201 | } | |
2202 | { | |
2203 | wxPy_BEGIN_ALLOW_THREADS; | |
2204 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); | |
2205 | ||
2206 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2207 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2208 | } _resultobj = Py_BuildValue("i",_result); |
2209 | return _resultobj; | |
2210 | } | |
2211 | ||
2212 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2213 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2214 | PyObject * _resultobj; | |
2215 | int _result; | |
2216 | wxBitmap * _arg0; | |
2217 | PyObject * _argo0 = 0; | |
2218 | char *_kwnames[] = { "self", NULL }; | |
2219 | ||
2220 | self = self; | |
2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2222 | return NULL; | |
2223 | if (_argo0) { | |
2224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2227 | return NULL; | |
2228 | } | |
2229 | } | |
2230 | { | |
2231 | wxPy_BEGIN_ALLOW_THREADS; | |
2232 | _result = (int )wxBitmap_GetQuality(_arg0); | |
2233 | ||
2234 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2235 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2236 | } _resultobj = Py_BuildValue("i",_result); |
2237 | return _resultobj; | |
2238 | } | |
2239 | ||
2240 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2241 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2242 | PyObject * _resultobj; | |
2243 | wxBitmap * _arg0; | |
2244 | int _arg1; | |
2245 | PyObject * _argo0 = 0; | |
2246 | char *_kwnames[] = { "self","q", NULL }; | |
2247 | ||
2248 | self = self; | |
2249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2250 | return NULL; | |
2251 | if (_argo0) { | |
2252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2255 | return NULL; | |
2256 | } | |
2257 | } | |
2258 | { | |
2259 | wxPy_BEGIN_ALLOW_THREADS; | |
2260 | wxBitmap_SetQuality(_arg0,_arg1); | |
2261 | ||
2262 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2263 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2264 | } Py_INCREF(Py_None); |
2265 | _resultobj = Py_None; | |
2266 | return _resultobj; | |
2267 | } | |
2268 | ||
9416aa89 RD |
2269 | static void *SwigwxMaskTowxObject(void *ptr) { |
2270 | wxMask *src; | |
2271 | wxObject *dest; | |
2272 | src = (wxMask *) ptr; | |
2273 | dest = (wxObject *) src; | |
2274 | return (void *) dest; | |
2275 | } | |
2276 | ||
9b3d3bc4 RD |
2277 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2278 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2279 | PyObject * _resultobj; | |
2280 | wxMask * _result; | |
2281 | wxBitmap * _arg0; | |
2282 | PyObject * _argo0 = 0; | |
2283 | char *_kwnames[] = { "bitmap", NULL }; | |
2284 | char _ptemp[128]; | |
2285 | ||
2286 | self = self; | |
2287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2288 | return NULL; | |
2289 | if (_argo0) { | |
2290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2293 | return NULL; | |
2294 | } | |
2295 | } | |
2296 | { | |
2297 | wxPy_BEGIN_ALLOW_THREADS; | |
2298 | _result = (wxMask *)new_wxMask(*_arg0); | |
2299 | ||
2300 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2301 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2302 | } if (_result) { |
2303 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2304 | _resultobj = Py_BuildValue("s",_ptemp); | |
2305 | } else { | |
2306 | Py_INCREF(Py_None); | |
2307 | _resultobj = Py_None; | |
2308 | } | |
2309 | return _resultobj; | |
8ab979d7 RD |
2310 | } |
2311 | ||
96bfd053 RD |
2312 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2313 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2314 | PyObject * _resultobj; | |
2315 | wxMask * _arg0; | |
2316 | PyObject * _argo0 = 0; | |
2317 | char *_kwnames[] = { "self", NULL }; | |
2318 | ||
2319 | self = self; | |
2320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2321 | return NULL; | |
2322 | if (_argo0) { | |
2323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2326 | return NULL; | |
2327 | } | |
2328 | } | |
2329 | { | |
2330 | wxPy_BEGIN_ALLOW_THREADS; | |
2331 | wxMask_Destroy(_arg0); | |
2332 | ||
2333 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2334 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2335 | } Py_INCREF(Py_None); |
2336 | _resultobj = Py_None; | |
2337 | return _resultobj; | |
2338 | } | |
2339 | ||
9416aa89 RD |
2340 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2341 | wxIcon *src; | |
2342 | wxGDIObject *dest; | |
2343 | src = (wxIcon *) ptr; | |
2344 | dest = (wxGDIObject *) src; | |
2345 | return (void *) dest; | |
2346 | } | |
2347 | ||
2348 | static void *SwigwxIconTowxObject(void *ptr) { | |
2349 | wxIcon *src; | |
2350 | wxObject *dest; | |
2351 | src = (wxIcon *) ptr; | |
2352 | dest = (wxObject *) src; | |
2353 | return (void *) dest; | |
2354 | } | |
2355 | ||
9b3d3bc4 RD |
2356 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2357 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2358 | PyObject * _resultobj; |
9b3d3bc4 | 2359 | wxIcon * _result; |
8ab979d7 RD |
2360 | wxString * _arg0; |
2361 | long _arg1; | |
9b3d3bc4 RD |
2362 | int _arg2 = (int ) -1; |
2363 | int _arg3 = (int ) -1; | |
8ab979d7 | 2364 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2365 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2366 | char _ptemp[128]; |
2367 | ||
2368 | self = self; | |
9b3d3bc4 | 2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2370 | return NULL; |
2371 | { | |
185d7c3e RD |
2372 | #if PYTHON_API_VERSION >= 1009 |
2373 | char* tmpPtr; int tmpSize; | |
2374 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2376 | return NULL; |
2377 | } | |
2378 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2379 | return NULL; | |
2380 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2381 | #else | |
8ab979d7 RD |
2382 | if (!PyString_Check(_obj0)) { |
2383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2384 | return NULL; | |
2385 | } | |
185d7c3e RD |
2386 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2387 | #endif | |
8ab979d7 | 2388 | } |
cf694132 RD |
2389 | { |
2390 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 2391 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
2392 | |
2393 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2394 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2395 | } if (_result) { |
9b3d3bc4 | 2396 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2397 | _resultobj = Py_BuildValue("s",_ptemp); |
2398 | } else { | |
2399 | Py_INCREF(Py_None); | |
2400 | _resultobj = Py_None; | |
2401 | } | |
8ab979d7 RD |
2402 | { |
2403 | if (_obj0) | |
2404 | delete _arg0; | |
2405 | } | |
2406 | return _resultobj; | |
2407 | } | |
2408 | ||
9b3d3bc4 RD |
2409 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2410 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2411 | PyObject * _resultobj; |
9b3d3bc4 | 2412 | wxIcon * _arg0; |
1d99702e | 2413 | PyObject * _argo0 = 0; |
1afc06c2 | 2414 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2415 | |
2416 | self = self; | |
9b3d3bc4 | 2417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2418 | return NULL; |
1d99702e RD |
2419 | if (_argo0) { |
2420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2423 | return NULL; |
2424 | } | |
2425 | } | |
cf694132 RD |
2426 | { |
2427 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
2428 | delete_wxIcon(_arg0); |
2429 | ||
2430 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2431 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2432 | } Py_INCREF(Py_None); |
2433 | _resultobj = Py_None; | |
2434 | return _resultobj; | |
2435 | } | |
2436 | ||
2437 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2438 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2439 | PyObject * _resultobj; | |
2440 | bool _result; | |
2441 | wxIcon * _arg0; | |
2442 | wxString * _arg1; | |
2443 | long _arg2; | |
2444 | PyObject * _argo0 = 0; | |
2445 | PyObject * _obj1 = 0; | |
2446 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2447 | ||
2448 | self = self; | |
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2450 | return NULL; | |
2451 | if (_argo0) { | |
2452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2455 | return NULL; | |
2456 | } | |
2457 | } | |
2458 | { | |
185d7c3e RD |
2459 | #if PYTHON_API_VERSION >= 1009 |
2460 | char* tmpPtr; int tmpSize; | |
2461 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2462 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2463 | return NULL; |
2464 | } | |
2465 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2466 | return NULL; | |
2467 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2468 | #else | |
9b3d3bc4 RD |
2469 | if (!PyString_Check(_obj1)) { |
2470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2471 | return NULL; | |
2472 | } | |
185d7c3e RD |
2473 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2474 | #endif | |
9b3d3bc4 RD |
2475 | } |
2476 | { | |
2477 | wxPy_BEGIN_ALLOW_THREADS; | |
2478 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2479 | ||
2480 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2481 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2482 | } _resultobj = Py_BuildValue("i",_result); |
2483 | { | |
2484 | if (_obj1) | |
2485 | delete _arg1; | |
2486 | } | |
2487 | return _resultobj; | |
2488 | } | |
2489 | ||
2490 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2491 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2492 | PyObject * _resultobj; | |
2493 | long _result; | |
2494 | wxIcon * _arg0; | |
2495 | PyObject * _argo0 = 0; | |
2496 | char *_kwnames[] = { "self", NULL }; | |
2497 | ||
2498 | self = self; | |
2499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2500 | return NULL; | |
2501 | if (_argo0) { | |
2502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2505 | return NULL; | |
2506 | } | |
2507 | } | |
2508 | { | |
2509 | wxPy_BEGIN_ALLOW_THREADS; | |
2510 | _result = (long )wxIcon_GetHandle(_arg0); | |
2511 | ||
2512 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2513 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2514 | } _resultobj = Py_BuildValue("l",_result); |
2515 | return _resultobj; | |
2516 | } | |
2517 | ||
2518 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2519 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2520 | PyObject * _resultobj; | |
2521 | wxIcon * _arg0; | |
2522 | long _arg1; | |
2523 | PyObject * _argo0 = 0; | |
2524 | char *_kwnames[] = { "self","handle", NULL }; | |
2525 | ||
2526 | self = self; | |
2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2528 | return NULL; | |
2529 | if (_argo0) { | |
2530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2533 | return NULL; | |
2534 | } | |
2535 | } | |
2536 | { | |
2537 | wxPy_BEGIN_ALLOW_THREADS; | |
2538 | wxIcon_SetHandle(_arg0,_arg1); | |
2539 | ||
2540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2541 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2542 | } Py_INCREF(Py_None); |
2543 | _resultobj = Py_None; | |
2544 | return _resultobj; | |
2545 | } | |
2546 | ||
2547 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2548 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2549 | PyObject * _resultobj; | |
2550 | bool _result; | |
2551 | wxIcon * _arg0; | |
2552 | PyObject * _argo0 = 0; | |
2553 | char *_kwnames[] = { "self", NULL }; | |
2554 | ||
2555 | self = self; | |
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2557 | return NULL; | |
2558 | if (_argo0) { | |
2559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2562 | return NULL; | |
2563 | } | |
2564 | } | |
2565 | { | |
2566 | wxPy_BEGIN_ALLOW_THREADS; | |
2567 | _result = (bool )wxIcon_Ok(_arg0); | |
2568 | ||
2569 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2570 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2571 | } _resultobj = Py_BuildValue("i",_result); |
2572 | return _resultobj; | |
2573 | } | |
2574 | ||
2575 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2576 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2577 | PyObject * _resultobj; | |
2578 | int _result; | |
2579 | wxIcon * _arg0; | |
2580 | PyObject * _argo0 = 0; | |
2581 | char *_kwnames[] = { "self", NULL }; | |
2582 | ||
2583 | self = self; | |
2584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2585 | return NULL; | |
2586 | if (_argo0) { | |
2587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2590 | return NULL; | |
2591 | } | |
2592 | } | |
2593 | { | |
2594 | wxPy_BEGIN_ALLOW_THREADS; | |
2595 | _result = (int )wxIcon_GetWidth(_arg0); | |
2596 | ||
2597 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2598 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2599 | } _resultobj = Py_BuildValue("i",_result); |
2600 | return _resultobj; | |
2601 | } | |
2602 | ||
2603 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2604 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2605 | PyObject * _resultobj; | |
2606 | int _result; | |
2607 | wxIcon * _arg0; | |
2608 | PyObject * _argo0 = 0; | |
2609 | char *_kwnames[] = { "self", NULL }; | |
2610 | ||
2611 | self = self; | |
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2613 | return NULL; | |
2614 | if (_argo0) { | |
2615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2618 | return NULL; | |
2619 | } | |
2620 | } | |
2621 | { | |
2622 | wxPy_BEGIN_ALLOW_THREADS; | |
2623 | _result = (int )wxIcon_GetHeight(_arg0); | |
2624 | ||
2625 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2626 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2627 | } _resultobj = Py_BuildValue("i",_result); |
2628 | return _resultobj; | |
2629 | } | |
2630 | ||
2631 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2632 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject * _resultobj; | |
2634 | int _result; | |
2635 | wxIcon * _arg0; | |
2636 | PyObject * _argo0 = 0; | |
2637 | char *_kwnames[] = { "self", NULL }; | |
2638 | ||
2639 | self = self; | |
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2641 | return NULL; | |
2642 | if (_argo0) { | |
2643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2646 | return NULL; | |
2647 | } | |
2648 | } | |
2649 | { | |
2650 | wxPy_BEGIN_ALLOW_THREADS; | |
2651 | _result = (int )wxIcon_GetDepth(_arg0); | |
2652 | ||
2653 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2654 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2655 | } _resultobj = Py_BuildValue("i",_result); |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
2659 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2660 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject * _resultobj; | |
2662 | wxIcon * _arg0; | |
2663 | int _arg1; | |
2664 | PyObject * _argo0 = 0; | |
2665 | char *_kwnames[] = { "self","w", NULL }; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2669 | return NULL; | |
2670 | if (_argo0) { | |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
2678 | wxPy_BEGIN_ALLOW_THREADS; | |
2679 | wxIcon_SetWidth(_arg0,_arg1); | |
2680 | ||
2681 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2682 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2683 | } Py_INCREF(Py_None); |
2684 | _resultobj = Py_None; | |
2685 | return _resultobj; | |
2686 | } | |
2687 | ||
2688 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2689 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject * _resultobj; | |
2691 | wxIcon * _arg0; | |
2692 | int _arg1; | |
2693 | PyObject * _argo0 = 0; | |
2694 | char *_kwnames[] = { "self","h", NULL }; | |
2695 | ||
2696 | self = self; | |
2697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2698 | return NULL; | |
2699 | if (_argo0) { | |
2700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2703 | return NULL; | |
2704 | } | |
2705 | } | |
2706 | { | |
2707 | wxPy_BEGIN_ALLOW_THREADS; | |
2708 | wxIcon_SetHeight(_arg0,_arg1); | |
2709 | ||
2710 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2711 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2712 | } Py_INCREF(Py_None); |
2713 | _resultobj = Py_None; | |
2714 | return _resultobj; | |
2715 | } | |
2716 | ||
2717 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2718 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2719 | PyObject * _resultobj; | |
2720 | wxIcon * _arg0; | |
2721 | int _arg1; | |
2722 | PyObject * _argo0 = 0; | |
2723 | char *_kwnames[] = { "self","d", NULL }; | |
2724 | ||
2725 | self = self; | |
2726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2727 | return NULL; | |
2728 | if (_argo0) { | |
2729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2732 | return NULL; | |
2733 | } | |
2734 | } | |
2735 | { | |
2736 | wxPy_BEGIN_ALLOW_THREADS; | |
2737 | wxIcon_SetDepth(_arg0,_arg1); | |
2738 | ||
2739 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2740 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2741 | } Py_INCREF(Py_None); |
2742 | _resultobj = Py_None; | |
2743 | return _resultobj; | |
2744 | } | |
2745 | ||
2746 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2747 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2748 | PyObject * _resultobj; | |
2749 | wxIcon * _arg0; | |
2750 | wxSize * _arg1; | |
2751 | PyObject * _argo0 = 0; | |
2752 | wxSize temp; | |
2753 | PyObject * _obj1 = 0; | |
2754 | char *_kwnames[] = { "self","size", NULL }; | |
2755 | ||
2756 | self = self; | |
2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2758 | return NULL; | |
2759 | if (_argo0) { | |
2760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
2766 | { | |
2767 | _arg1 = &temp; | |
2768 | if (! wxSize_helper(_obj1, &_arg1)) | |
2769 | return NULL; | |
2770 | } | |
2771 | { | |
2772 | wxPy_BEGIN_ALLOW_THREADS; | |
2773 | wxIcon_SetSize(_arg0,*_arg1); | |
2774 | ||
2775 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2776 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2777 | } Py_INCREF(Py_None); |
2778 | _resultobj = Py_None; | |
2779 | return _resultobj; | |
2780 | } | |
2781 | ||
96bfd053 RD |
2782 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2783 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2784 | PyObject * _resultobj; | |
2785 | wxIcon * _arg0; | |
2786 | wxBitmap * _arg1; | |
2787 | PyObject * _argo0 = 0; | |
2788 | PyObject * _argo1 = 0; | |
2789 | char *_kwnames[] = { "self","bmp", NULL }; | |
2790 | ||
2791 | self = self; | |
2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2793 | return NULL; | |
2794 | if (_argo0) { | |
2795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2798 | return NULL; | |
2799 | } | |
2800 | } | |
2801 | if (_argo1) { | |
2802 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2803 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2805 | return NULL; | |
2806 | } | |
2807 | } | |
2808 | { | |
2809 | wxPy_BEGIN_ALLOW_THREADS; | |
2810 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2811 | ||
2812 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2813 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2814 | } Py_INCREF(Py_None); |
2815 | _resultobj = Py_None; | |
2816 | return _resultobj; | |
2817 | } | |
2818 | ||
9416aa89 RD |
2819 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2820 | wxCursor *src; | |
2821 | wxGDIObject *dest; | |
2822 | src = (wxCursor *) ptr; | |
2823 | dest = (wxGDIObject *) src; | |
2824 | return (void *) dest; | |
2825 | } | |
2826 | ||
2827 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2828 | wxCursor *src; | |
2829 | wxObject *dest; | |
2830 | src = (wxCursor *) ptr; | |
2831 | dest = (wxObject *) src; | |
2832 | return (void *) dest; | |
2833 | } | |
2834 | ||
9b3d3bc4 RD |
2835 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2836 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2837 | PyObject * _resultobj; | |
2838 | wxCursor * _result; | |
2839 | wxString * _arg0; | |
2840 | long _arg1; | |
2841 | int _arg2 = (int ) 0; | |
2842 | int _arg3 = (int ) 0; | |
2843 | PyObject * _obj0 = 0; | |
2844 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2845 | char _ptemp[128]; | |
2846 | ||
2847 | self = self; | |
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2849 | return NULL; | |
2850 | { | |
185d7c3e RD |
2851 | #if PYTHON_API_VERSION >= 1009 |
2852 | char* tmpPtr; int tmpSize; | |
2853 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2855 | return NULL; |
2856 | } | |
2857 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2858 | return NULL; | |
2859 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2860 | #else | |
9b3d3bc4 RD |
2861 | if (!PyString_Check(_obj0)) { |
2862 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2863 | return NULL; | |
2864 | } | |
185d7c3e RD |
2865 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2866 | #endif | |
9b3d3bc4 RD |
2867 | } |
2868 | { | |
2869 | wxPy_BEGIN_ALLOW_THREADS; | |
2870 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); | |
2871 | ||
2872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2873 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2874 | } if (_result) { |
2875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2876 | _resultobj = Py_BuildValue("s",_ptemp); | |
2877 | } else { | |
2878 | Py_INCREF(Py_None); | |
2879 | _resultobj = Py_None; | |
2880 | } | |
2881 | { | |
2882 | if (_obj0) | |
2883 | delete _arg0; | |
2884 | } | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
2888 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2889 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2890 | PyObject * _resultobj; | |
2891 | wxCursor * _arg0; | |
2892 | PyObject * _argo0 = 0; | |
2893 | char *_kwnames[] = { "self", NULL }; | |
2894 | ||
2895 | self = self; | |
2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2897 | return NULL; | |
2898 | if (_argo0) { | |
2899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2902 | return NULL; | |
2903 | } | |
2904 | } | |
2905 | { | |
2906 | wxPy_BEGIN_ALLOW_THREADS; | |
2907 | delete_wxCursor(_arg0); | |
2908 | ||
2909 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2910 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2911 | } Py_INCREF(Py_None); |
2912 | _resultobj = Py_None; | |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
2916 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2917 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2918 | PyObject * _resultobj; | |
2919 | long _result; | |
2920 | wxCursor * _arg0; | |
2921 | PyObject * _argo0 = 0; | |
2922 | char *_kwnames[] = { "self", NULL }; | |
2923 | ||
2924 | self = self; | |
2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2926 | return NULL; | |
2927 | if (_argo0) { | |
2928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2931 | return NULL; | |
2932 | } | |
2933 | } | |
2934 | { | |
2935 | wxPy_BEGIN_ALLOW_THREADS; | |
2936 | _result = (long )wxCursor_GetHandle(_arg0); | |
2937 | ||
2938 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2939 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2940 | } _resultobj = Py_BuildValue("l",_result); |
2941 | return _resultobj; | |
2942 | } | |
2943 | ||
2944 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2945 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject * _resultobj; | |
2947 | wxCursor * _arg0; | |
2948 | long _arg1; | |
2949 | PyObject * _argo0 = 0; | |
2950 | char *_kwnames[] = { "self","handle", NULL }; | |
2951 | ||
2952 | self = self; | |
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2954 | return NULL; | |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2959 | return NULL; | |
2960 | } | |
2961 | } | |
2962 | { | |
2963 | wxPy_BEGIN_ALLOW_THREADS; | |
2964 | wxCursor_SetHandle(_arg0,_arg1); | |
2965 | ||
2966 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2967 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2968 | } Py_INCREF(Py_None); |
2969 | _resultobj = Py_None; | |
2970 | return _resultobj; | |
2971 | } | |
2972 | ||
2973 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2974 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2975 | PyObject * _resultobj; | |
2976 | bool _result; | |
2977 | wxCursor * _arg0; | |
2978 | PyObject * _argo0 = 0; | |
2979 | char *_kwnames[] = { "self", NULL }; | |
2980 | ||
2981 | self = self; | |
2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2983 | return NULL; | |
2984 | if (_argo0) { | |
2985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2988 | return NULL; | |
2989 | } | |
2990 | } | |
2991 | { | |
2992 | wxPy_BEGIN_ALLOW_THREADS; | |
2993 | _result = (bool )wxCursor_Ok(_arg0); | |
2994 | ||
2995 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2996 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2997 | } _resultobj = Py_BuildValue("i",_result); |
2998 | return _resultobj; | |
2999 | } | |
3000 | ||
3001 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
3002 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject * _resultobj; | |
3004 | int _result; | |
3005 | wxCursor * _arg0; | |
3006 | PyObject * _argo0 = 0; | |
3007 | char *_kwnames[] = { "self", NULL }; | |
3008 | ||
3009 | self = self; | |
3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
3011 | return NULL; | |
3012 | if (_argo0) { | |
3013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
3016 | return NULL; | |
3017 | } | |
3018 | } | |
3019 | { | |
3020 | wxPy_BEGIN_ALLOW_THREADS; | |
3021 | _result = (int )wxCursor_GetWidth(_arg0); | |
3022 | ||
3023 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3024 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3025 | } _resultobj = Py_BuildValue("i",_result); |
3026 | return _resultobj; | |
3027 | } | |
3028 | ||
3029 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
3030 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3031 | PyObject * _resultobj; | |
3032 | int _result; | |
3033 | wxCursor * _arg0; | |
3034 | PyObject * _argo0 = 0; | |
3035 | char *_kwnames[] = { "self", NULL }; | |
3036 | ||
3037 | self = self; | |
3038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
3039 | return NULL; | |
3040 | if (_argo0) { | |
3041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
3044 | return NULL; | |
3045 | } | |
3046 | } | |
3047 | { | |
3048 | wxPy_BEGIN_ALLOW_THREADS; | |
3049 | _result = (int )wxCursor_GetHeight(_arg0); | |
3050 | ||
3051 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3052 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3053 | } _resultobj = Py_BuildValue("i",_result); |
3054 | return _resultobj; | |
3055 | } | |
3056 | ||
3057 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
3058 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3059 | PyObject * _resultobj; | |
3060 | int _result; | |
3061 | wxCursor * _arg0; | |
3062 | PyObject * _argo0 = 0; | |
3063 | char *_kwnames[] = { "self", NULL }; | |
3064 | ||
3065 | self = self; | |
3066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
3067 | return NULL; | |
3068 | if (_argo0) { | |
3069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3072 | return NULL; | |
3073 | } | |
3074 | } | |
3075 | { | |
3076 | wxPy_BEGIN_ALLOW_THREADS; | |
3077 | _result = (int )wxCursor_GetDepth(_arg0); | |
3078 | ||
3079 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3080 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3081 | } _resultobj = Py_BuildValue("i",_result); |
3082 | return _resultobj; | |
3083 | } | |
3084 | ||
3085 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3086 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3087 | PyObject * _resultobj; | |
3088 | wxCursor * _arg0; | |
3089 | int _arg1; | |
3090 | PyObject * _argo0 = 0; | |
3091 | char *_kwnames[] = { "self","w", NULL }; | |
3092 | ||
3093 | self = self; | |
3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3095 | return NULL; | |
3096 | if (_argo0) { | |
3097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3100 | return NULL; | |
3101 | } | |
3102 | } | |
3103 | { | |
3104 | wxPy_BEGIN_ALLOW_THREADS; | |
3105 | wxCursor_SetWidth(_arg0,_arg1); | |
3106 | ||
3107 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3108 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3109 | } Py_INCREF(Py_None); |
3110 | _resultobj = Py_None; | |
3111 | return _resultobj; | |
3112 | } | |
3113 | ||
3114 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3115 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3116 | PyObject * _resultobj; | |
3117 | wxCursor * _arg0; | |
3118 | int _arg1; | |
3119 | PyObject * _argo0 = 0; | |
3120 | char *_kwnames[] = { "self","h", NULL }; | |
3121 | ||
3122 | self = self; | |
3123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3124 | return NULL; | |
3125 | if (_argo0) { | |
3126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3129 | return NULL; | |
3130 | } | |
3131 | } | |
3132 | { | |
3133 | wxPy_BEGIN_ALLOW_THREADS; | |
3134 | wxCursor_SetHeight(_arg0,_arg1); | |
3135 | ||
3136 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3137 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3138 | } Py_INCREF(Py_None); |
3139 | _resultobj = Py_None; | |
3140 | return _resultobj; | |
3141 | } | |
3142 | ||
3143 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3144 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3145 | PyObject * _resultobj; | |
3146 | wxCursor * _arg0; | |
3147 | int _arg1; | |
3148 | PyObject * _argo0 = 0; | |
3149 | char *_kwnames[] = { "self","d", NULL }; | |
3150 | ||
3151 | self = self; | |
3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3153 | return NULL; | |
3154 | if (_argo0) { | |
3155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3158 | return NULL; | |
3159 | } | |
3160 | } | |
3161 | { | |
3162 | wxPy_BEGIN_ALLOW_THREADS; | |
3163 | wxCursor_SetDepth(_arg0,_arg1); | |
3164 | ||
3165 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3166 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3167 | } Py_INCREF(Py_None); |
3168 | _resultobj = Py_None; | |
3169 | return _resultobj; | |
3170 | } | |
3171 | ||
3172 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3173 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3174 | PyObject * _resultobj; | |
3175 | wxCursor * _arg0; | |
3176 | wxSize * _arg1; | |
3177 | PyObject * _argo0 = 0; | |
3178 | wxSize temp; | |
3179 | PyObject * _obj1 = 0; | |
3180 | char *_kwnames[] = { "self","size", NULL }; | |
3181 | ||
3182 | self = self; | |
3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3184 | return NULL; | |
3185 | if (_argo0) { | |
3186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3189 | return NULL; | |
3190 | } | |
3191 | } | |
3192 | { | |
3193 | _arg1 = &temp; | |
3194 | if (! wxSize_helper(_obj1, &_arg1)) | |
3195 | return NULL; | |
3196 | } | |
3197 | { | |
3198 | wxPy_BEGIN_ALLOW_THREADS; | |
3199 | wxCursor_SetSize(_arg0,*_arg1); | |
cf694132 RD |
3200 | |
3201 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3203 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3204 | _resultobj = Py_None; |
3205 | return _resultobj; | |
3206 | } | |
3207 | ||
9416aa89 RD |
3208 | static void *SwigwxFontTowxGDIObject(void *ptr) { |
3209 | wxFont *src; | |
3210 | wxGDIObject *dest; | |
3211 | src = (wxFont *) ptr; | |
3212 | dest = (wxGDIObject *) src; | |
3213 | return (void *) dest; | |
3214 | } | |
3215 | ||
3216 | static void *SwigwxFontTowxObject(void *ptr) { | |
3217 | wxFont *src; | |
3218 | wxObject *dest; | |
3219 | src = (wxFont *) ptr; | |
3220 | dest = (wxObject *) src; | |
3221 | return (void *) dest; | |
3222 | } | |
3223 | ||
0569df0f | 3224 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
1afc06c2 | 3225 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3226 | PyObject * _resultobj; |
3227 | wxFont * _result; | |
3228 | int _arg0; | |
3229 | int _arg1; | |
3230 | int _arg2; | |
3231 | int _arg3; | |
1d99702e RD |
3232 | int _arg4 = (int ) FALSE; |
3233 | char * _arg5 = (char *) ""; | |
f0261a72 RD |
3234 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); |
3235 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
8ab979d7 RD |
3236 | char _ptemp[128]; |
3237 | ||
3238 | self = self; | |
f0261a72 | 3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 3240 | return NULL; |
cf694132 RD |
3241 | { |
3242 | wxPy_BEGIN_ALLOW_THREADS; | |
f0261a72 | 3243 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 RD |
3244 | |
3245 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3246 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3247 | } if (_result) { |
3248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3249 | _resultobj = Py_BuildValue("s",_ptemp); | |
3250 | } else { | |
3251 | Py_INCREF(Py_None); | |
3252 | _resultobj = Py_None; | |
3253 | } | |
8ab979d7 RD |
3254 | return _resultobj; |
3255 | } | |
3256 | ||
0569df0f RD |
3257 | #define delete_wxFont(_swigobj) (delete _swigobj) |
3258 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3259 | PyObject * _resultobj; | |
3260 | wxFont * _arg0; | |
3261 | PyObject * _argo0 = 0; | |
3262 | char *_kwnames[] = { "self", NULL }; | |
3263 | ||
3264 | self = self; | |
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3266 | return NULL; | |
3267 | if (_argo0) { | |
3268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3271 | return NULL; | |
3272 | } | |
3273 | } | |
3274 | { | |
3275 | wxPy_BEGIN_ALLOW_THREADS; | |
3276 | delete_wxFont(_arg0); | |
3277 | ||
3278 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3279 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3280 | } Py_INCREF(Py_None); |
3281 | _resultobj = Py_None; | |
3282 | return _resultobj; | |
3283 | } | |
3284 | ||
694759cf RD |
3285 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) |
3286 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject * _resultobj; | |
3288 | bool _result; | |
3289 | wxFont * _arg0; | |
3290 | PyObject * _argo0 = 0; | |
3291 | char *_kwnames[] = { "self", NULL }; | |
3292 | ||
3293 | self = self; | |
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3295 | return NULL; | |
3296 | if (_argo0) { | |
3297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3300 | return NULL; | |
3301 | } | |
3302 | } | |
3303 | { | |
3304 | wxPy_BEGIN_ALLOW_THREADS; | |
3305 | _result = (bool )wxFont_Ok(_arg0); | |
3306 | ||
3307 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3308 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
3309 | } _resultobj = Py_BuildValue("i",_result); |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
8ab979d7 | 3313 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
1afc06c2 | 3314 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3315 | PyObject * _resultobj; |
3316 | wxString * _result; | |
3317 | wxFont * _arg0; | |
1d99702e | 3318 | PyObject * _argo0 = 0; |
1afc06c2 | 3319 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3320 | |
3321 | self = self; | |
1afc06c2 | 3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 3323 | return NULL; |
1d99702e RD |
3324 | if (_argo0) { |
3325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
3328 | return NULL; | |
3329 | } | |
3330 | } | |
8ab979d7 | 3331 | { |
cf694132 RD |
3332 | wxPy_BEGIN_ALLOW_THREADS; |
3333 | _result = new wxString (wxFont_GetFaceName(_arg0)); | |
3334 | ||
3335 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3336 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3337 | }{ |
eec92d76 | 3338 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3339 | } |
3340 | { | |
3341 | delete _result; | |
3342 | } | |
3343 | return _resultobj; | |
3344 | } | |
3345 | ||
3346 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
1afc06c2 | 3347 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3348 | PyObject * _resultobj; |
3349 | int _result; | |
3350 | wxFont * _arg0; | |
1d99702e | 3351 | PyObject * _argo0 = 0; |
1afc06c2 | 3352 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3353 | |
3354 | self = self; | |
1afc06c2 | 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 3356 | return NULL; |
1d99702e RD |
3357 | if (_argo0) { |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
3361 | return NULL; | |
3362 | } | |
3363 | } | |
cf694132 RD |
3364 | { |
3365 | wxPy_BEGIN_ALLOW_THREADS; | |
3366 | _result = (int )wxFont_GetFamily(_arg0); | |
3367 | ||
3368 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3369 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3370 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3371 | return _resultobj; |
3372 | } | |
3373 | ||
3374 | #define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId()) | |
1afc06c2 | 3375 | static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3376 | PyObject * _resultobj; |
3377 | int _result; | |
3378 | wxFont * _arg0; | |
1d99702e | 3379 | PyObject * _argo0 = 0; |
1afc06c2 | 3380 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3381 | |
3382 | self = self; | |
1afc06c2 | 3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFontId",_kwnames,&_argo0)) |
8ab979d7 | 3384 | return NULL; |
1d99702e RD |
3385 | if (_argo0) { |
3386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p."); |
3389 | return NULL; | |
3390 | } | |
3391 | } | |
cf694132 RD |
3392 | { |
3393 | wxPy_BEGIN_ALLOW_THREADS; | |
3394 | _result = (int )wxFont_GetFontId(_arg0); | |
3395 | ||
3396 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3398 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3399 | return _resultobj; |
3400 | } | |
3401 | ||
3402 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
1afc06c2 | 3403 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3404 | PyObject * _resultobj; |
3405 | int _result; | |
3406 | wxFont * _arg0; | |
1d99702e | 3407 | PyObject * _argo0 = 0; |
1afc06c2 | 3408 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3409 | |
3410 | self = self; | |
1afc06c2 | 3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) |
8ab979d7 | 3412 | return NULL; |
1d99702e RD |
3413 | if (_argo0) { |
3414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); |
3417 | return NULL; | |
3418 | } | |
3419 | } | |
cf694132 RD |
3420 | { |
3421 | wxPy_BEGIN_ALLOW_THREADS; | |
3422 | _result = (int )wxFont_GetPointSize(_arg0); | |
3423 | ||
3424 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3426 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3427 | return _resultobj; |
3428 | } | |
3429 | ||
3430 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 3431 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3432 | PyObject * _resultobj; |
3433 | int _result; | |
3434 | wxFont * _arg0; | |
1d99702e | 3435 | PyObject * _argo0 = 0; |
1afc06c2 | 3436 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3437 | |
3438 | self = self; | |
1afc06c2 | 3439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 3440 | return NULL; |
1d99702e RD |
3441 | if (_argo0) { |
3442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
3445 | return NULL; | |
3446 | } | |
3447 | } | |
cf694132 RD |
3448 | { |
3449 | wxPy_BEGIN_ALLOW_THREADS; | |
3450 | _result = (int )wxFont_GetStyle(_arg0); | |
3451 | ||
3452 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3453 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3454 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3455 | return _resultobj; |
3456 | } | |
3457 | ||
3458 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 3459 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3460 | PyObject * _resultobj; |
3461 | bool _result; | |
3462 | wxFont * _arg0; | |
1d99702e | 3463 | PyObject * _argo0 = 0; |
1afc06c2 | 3464 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3465 | |
3466 | self = self; | |
1afc06c2 | 3467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 3468 | return NULL; |
1d99702e RD |
3469 | if (_argo0) { |
3470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
3473 | return NULL; | |
3474 | } | |
3475 | } | |
cf694132 RD |
3476 | { |
3477 | wxPy_BEGIN_ALLOW_THREADS; | |
3478 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
3479 | ||
3480 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3481 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3482 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3483 | return _resultobj; |
3484 | } | |
3485 | ||
3486 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
1afc06c2 | 3487 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3488 | PyObject * _resultobj; |
3489 | int _result; | |
3490 | wxFont * _arg0; | |
1d99702e | 3491 | PyObject * _argo0 = 0; |
1afc06c2 | 3492 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3493 | |
3494 | self = self; | |
1afc06c2 | 3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 3496 | return NULL; |
1d99702e RD |
3497 | if (_argo0) { |
3498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
3501 | return NULL; | |
3502 | } | |
3503 | } | |
cf694132 RD |
3504 | { |
3505 | wxPy_BEGIN_ALLOW_THREADS; | |
3506 | _result = (int )wxFont_GetWeight(_arg0); | |
3507 | ||
3508 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3510 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3511 | return _resultobj; |
3512 | } | |
3513 | ||
f0261a72 RD |
3514 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
3515 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject * _resultobj; | |
3517 | wxFontEncoding _result; | |
3518 | wxFont * _arg0; | |
3519 | PyObject * _argo0 = 0; | |
3520 | char *_kwnames[] = { "self", NULL }; | |
3521 | ||
3522 | self = self; | |
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
3524 | return NULL; | |
3525 | if (_argo0) { | |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
3532 | { | |
3533 | wxPy_BEGIN_ALLOW_THREADS; | |
3534 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
3535 | ||
3536 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3537 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
3538 | } _resultobj = Py_BuildValue("i",_result); |
3539 | return _resultobj; | |
3540 | } | |
3541 | ||
8ab979d7 | 3542 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) |
1afc06c2 | 3543 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3544 | PyObject * _resultobj; |
3545 | wxFont * _arg0; | |
3546 | wxString * _arg1; | |
1d99702e | 3547 | PyObject * _argo0 = 0; |
8ab979d7 | 3548 | PyObject * _obj1 = 0; |
1afc06c2 | 3549 | char *_kwnames[] = { "self","faceName", NULL }; |
8ab979d7 RD |
3550 | |
3551 | self = self; | |
1afc06c2 | 3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3553 | return NULL; |
1d99702e RD |
3554 | if (_argo0) { |
3555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); |
3558 | return NULL; | |
3559 | } | |
3560 | } | |
3561 | { | |
185d7c3e RD |
3562 | #if PYTHON_API_VERSION >= 1009 |
3563 | char* tmpPtr; int tmpSize; | |
3564 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 3565 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3566 | return NULL; |
3567 | } | |
3568 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3569 | return NULL; | |
3570 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3571 | #else | |
8ab979d7 RD |
3572 | if (!PyString_Check(_obj1)) { |
3573 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3574 | return NULL; | |
3575 | } | |
185d7c3e RD |
3576 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3577 | #endif | |
8ab979d7 | 3578 | } |
cf694132 RD |
3579 | { |
3580 | wxPy_BEGIN_ALLOW_THREADS; | |
3581 | wxFont_SetFaceName(_arg0,*_arg1); | |
3582 | ||
3583 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3585 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3586 | _resultobj = Py_None; |
3587 | { | |
3588 | if (_obj1) | |
3589 | delete _arg1; | |
3590 | } | |
3591 | return _resultobj; | |
3592 | } | |
3593 | ||
3594 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 3595 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3596 | PyObject * _resultobj; |
3597 | wxFont * _arg0; | |
3598 | int _arg1; | |
1d99702e | 3599 | PyObject * _argo0 = 0; |
1afc06c2 | 3600 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
3601 | |
3602 | self = self; | |
1afc06c2 | 3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3604 | return NULL; |
1d99702e RD |
3605 | if (_argo0) { |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
cf694132 RD |
3612 | { |
3613 | wxPy_BEGIN_ALLOW_THREADS; | |
3614 | wxFont_SetFamily(_arg0,_arg1); | |
3615 | ||
3616 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3617 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3618 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3619 | _resultobj = Py_None; |
3620 | return _resultobj; | |
3621 | } | |
3622 | ||
3623 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
1afc06c2 | 3624 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3625 | PyObject * _resultobj; |
3626 | wxFont * _arg0; | |
3627 | int _arg1; | |
1d99702e | 3628 | PyObject * _argo0 = 0; |
1afc06c2 | 3629 | char *_kwnames[] = { "self","pointSize", NULL }; |
8ab979d7 RD |
3630 | |
3631 | self = self; | |
1afc06c2 | 3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3633 | return NULL; |
1d99702e RD |
3634 | if (_argo0) { |
3635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); |
3638 | return NULL; | |
3639 | } | |
3640 | } | |
cf694132 RD |
3641 | { |
3642 | wxPy_BEGIN_ALLOW_THREADS; | |
3643 | wxFont_SetPointSize(_arg0,_arg1); | |
3644 | ||
3645 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3646 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3647 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3648 | _resultobj = Py_None; |
3649 | return _resultobj; | |
3650 | } | |
3651 | ||
3652 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 3653 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3654 | PyObject * _resultobj; |
3655 | wxFont * _arg0; | |
3656 | int _arg1; | |
1d99702e | 3657 | PyObject * _argo0 = 0; |
1afc06c2 | 3658 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3659 | |
3660 | self = self; | |
1afc06c2 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3662 | return NULL; |
1d99702e RD |
3663 | if (_argo0) { |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
cf694132 RD |
3670 | { |
3671 | wxPy_BEGIN_ALLOW_THREADS; | |
3672 | wxFont_SetStyle(_arg0,_arg1); | |
3673 | ||
3674 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3676 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3677 | _resultobj = Py_None; |
3678 | return _resultobj; | |
3679 | } | |
3680 | ||
3681 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 3682 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3683 | PyObject * _resultobj; |
3684 | wxFont * _arg0; | |
3685 | bool _arg1; | |
1d99702e | 3686 | PyObject * _argo0 = 0; |
8ab979d7 | 3687 | int tempbool1; |
1afc06c2 | 3688 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
3689 | |
3690 | self = self; | |
1afc06c2 | 3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3692 | return NULL; |
1d99702e RD |
3693 | if (_argo0) { |
3694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
3697 | return NULL; | |
3698 | } | |
3699 | } | |
3700 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3701 | { |
3702 | wxPy_BEGIN_ALLOW_THREADS; | |
3703 | wxFont_SetUnderlined(_arg0,_arg1); | |
3704 | ||
3705 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3706 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3707 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3708 | _resultobj = Py_None; |
3709 | return _resultobj; | |
3710 | } | |
3711 | ||
3712 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
1afc06c2 | 3713 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3714 | PyObject * _resultobj; |
3715 | wxFont * _arg0; | |
3716 | int _arg1; | |
1d99702e | 3717 | PyObject * _argo0 = 0; |
1afc06c2 | 3718 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
3719 | |
3720 | self = self; | |
1afc06c2 | 3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3722 | return NULL; |
1d99702e RD |
3723 | if (_argo0) { |
3724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
3726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
3727 | return NULL; | |
3728 | } | |
3729 | } | |
cf694132 RD |
3730 | { |
3731 | wxPy_BEGIN_ALLOW_THREADS; | |
3732 | wxFont_SetWeight(_arg0,_arg1); | |
3733 | ||
3734 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3735 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3736 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3737 | _resultobj = Py_None; |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
f0261a72 RD |
3741 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
3742 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3743 | PyObject * _resultobj; | |
3744 | wxFont * _arg0; | |
3745 | wxFontEncoding _arg1; | |
3746 | PyObject * _argo0 = 0; | |
3747 | char *_kwnames[] = { "self","encoding", NULL }; | |
3748 | ||
3749 | self = self; | |
3750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3751 | return NULL; | |
3752 | if (_argo0) { | |
3753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
3756 | return NULL; | |
3757 | } | |
3758 | } | |
3759 | { | |
3760 | wxPy_BEGIN_ALLOW_THREADS; | |
3761 | wxFont_SetEncoding(_arg0,_arg1); | |
3762 | ||
3763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3764 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
3765 | } Py_INCREF(Py_None); |
3766 | _resultobj = Py_None; | |
3767 | return _resultobj; | |
3768 | } | |
3769 | ||
3770 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
3771 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject * _resultobj; | |
3773 | wxString * _result; | |
3774 | wxFont * _arg0; | |
3775 | PyObject * _argo0 = 0; | |
3776 | char *_kwnames[] = { "self", NULL }; | |
3777 | ||
3778 | self = self; | |
3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
3780 | return NULL; | |
3781 | if (_argo0) { | |
3782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
3788 | { | |
3789 | wxPy_BEGIN_ALLOW_THREADS; | |
3790 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
3791 | ||
3792 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3793 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 3794 | }{ |
eec92d76 | 3795 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
3796 | } |
3797 | { | |
3798 | delete _result; | |
3799 | } | |
3800 | return _resultobj; | |
3801 | } | |
3802 | ||
3803 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
3804 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject * _resultobj; | |
3806 | wxString * _result; | |
3807 | wxFont * _arg0; | |
3808 | PyObject * _argo0 = 0; | |
3809 | char *_kwnames[] = { "self", NULL }; | |
3810 | ||
3811 | self = self; | |
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
3813 | return NULL; | |
3814 | if (_argo0) { | |
3815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
3818 | return NULL; | |
3819 | } | |
3820 | } | |
3821 | { | |
3822 | wxPy_BEGIN_ALLOW_THREADS; | |
3823 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
3824 | ||
3825 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3826 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 3827 | }{ |
eec92d76 | 3828 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
3829 | } |
3830 | { | |
3831 | delete _result; | |
3832 | } | |
3833 | return _resultobj; | |
3834 | } | |
3835 | ||
3836 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
3837 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3838 | PyObject * _resultobj; | |
3839 | wxString * _result; | |
3840 | wxFont * _arg0; | |
3841 | PyObject * _argo0 = 0; | |
3842 | char *_kwnames[] = { "self", NULL }; | |
3843 | ||
3844 | self = self; | |
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
3846 | return NULL; | |
3847 | if (_argo0) { | |
3848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
3851 | return NULL; | |
3852 | } | |
3853 | } | |
3854 | { | |
3855 | wxPy_BEGIN_ALLOW_THREADS; | |
3856 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
3857 | ||
3858 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3859 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 3860 | }{ |
eec92d76 | 3861 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
3862 | } |
3863 | { | |
3864 | delete _result; | |
3865 | } | |
3866 | return _resultobj; | |
3867 | } | |
3868 | ||
9416aa89 RD |
3869 | static void *SwigwxFontListTowxObject(void *ptr) { |
3870 | wxFontList *src; | |
3871 | wxObject *dest; | |
3872 | src = (wxFontList *) ptr; | |
3873 | dest = (wxObject *) src; | |
3874 | return (void *) dest; | |
3875 | } | |
3876 | ||
0569df0f RD |
3877 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
3878 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3879 | PyObject * _resultobj; | |
3880 | wxFontList * _arg0; | |
3881 | wxFont * _arg1; | |
3882 | PyObject * _argo0 = 0; | |
3883 | PyObject * _argo1 = 0; | |
3884 | char *_kwnames[] = { "self","font", NULL }; | |
3885 | ||
3886 | self = self; | |
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
3888 | return NULL; | |
3889 | if (_argo0) { | |
3890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
3893 | return NULL; | |
3894 | } | |
3895 | } | |
3896 | if (_argo1) { | |
3897 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3898 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
3900 | return NULL; | |
3901 | } | |
3902 | } | |
3903 | { | |
3904 | wxPy_BEGIN_ALLOW_THREADS; | |
3905 | wxFontList_AddFont(_arg0,_arg1); | |
3906 | ||
3907 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3908 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3909 | } Py_INCREF(Py_None); |
3910 | _resultobj = Py_None; | |
3911 | return _resultobj; | |
3912 | } | |
3913 | ||
3914 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3915 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3916 | PyObject * _resultobj; | |
3917 | wxFont * _result; | |
3918 | wxFontList * _arg0; | |
3919 | int _arg1; | |
3920 | int _arg2; | |
3921 | int _arg3; | |
3922 | int _arg4; | |
3923 | bool _arg5 = (bool ) FALSE; | |
3924 | char * _arg6 = (char *) NULL; | |
3925 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3926 | PyObject * _argo0 = 0; | |
3927 | int tempbool5 = (int) FALSE; | |
3928 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
3929 | char _ptemp[128]; | |
3930 | ||
3931 | self = self; | |
3932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
3933 | return NULL; | |
3934 | if (_argo0) { | |
3935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
3938 | return NULL; | |
3939 | } | |
3940 | } | |
3941 | _arg5 = (bool ) tempbool5; | |
3942 | { | |
3943 | wxPy_BEGIN_ALLOW_THREADS; | |
3944 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
3945 | ||
3946 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3947 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3948 | } if (_result) { |
3949 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3950 | _resultobj = Py_BuildValue("s",_ptemp); | |
3951 | } else { | |
3952 | Py_INCREF(Py_None); | |
3953 | _resultobj = Py_None; | |
3954 | } | |
3955 | return _resultobj; | |
3956 | } | |
3957 | ||
3958 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
3959 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3960 | PyObject * _resultobj; | |
3961 | wxFontList * _arg0; | |
3962 | wxFont * _arg1; | |
3963 | PyObject * _argo0 = 0; | |
3964 | PyObject * _argo1 = 0; | |
3965 | char *_kwnames[] = { "self","font", NULL }; | |
3966 | ||
3967 | self = self; | |
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
3969 | return NULL; | |
3970 | if (_argo0) { | |
3971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
3973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
3974 | return NULL; | |
3975 | } | |
3976 | } | |
3977 | if (_argo1) { | |
3978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
3981 | return NULL; | |
3982 | } | |
3983 | } | |
3984 | { | |
3985 | wxPy_BEGIN_ALLOW_THREADS; | |
3986 | wxFontList_RemoveFont(_arg0,_arg1); | |
3987 | ||
3988 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3989 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3990 | } Py_INCREF(Py_None); |
3991 | _resultobj = Py_None; | |
3992 | return _resultobj; | |
3993 | } | |
3994 | ||
9416aa89 RD |
3995 | static void *SwigwxColourTowxObject(void *ptr) { |
3996 | wxColour *src; | |
3997 | wxObject *dest; | |
3998 | src = (wxColour *) ptr; | |
3999 | dest = (wxObject *) src; | |
4000 | return (void *) dest; | |
4001 | } | |
4002 | ||
8ab979d7 | 4003 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 4004 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4005 | PyObject * _resultobj; |
4006 | wxColour * _result; | |
1d99702e RD |
4007 | unsigned char _arg0 = (unsigned char ) 0; |
4008 | unsigned char _arg1 = (unsigned char ) 0; | |
4009 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 4010 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
4011 | char _ptemp[128]; |
4012 | ||
4013 | self = self; | |
1afc06c2 | 4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 4015 | return NULL; |
cf694132 RD |
4016 | { |
4017 | wxPy_BEGIN_ALLOW_THREADS; | |
4018 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
4019 | ||
4020 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4021 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4022 | } if (_result) { |
4023 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4024 | _resultobj = Py_BuildValue("s",_ptemp); | |
4025 | } else { | |
4026 | Py_INCREF(Py_None); | |
4027 | _resultobj = Py_None; | |
4028 | } | |
8ab979d7 RD |
4029 | return _resultobj; |
4030 | } | |
4031 | ||
4032 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 4033 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4034 | PyObject * _resultobj; |
4035 | wxColour * _arg0; | |
f6bcfd97 BP |
4036 | wxColour temp; |
4037 | PyObject * _obj0 = 0; | |
1afc06c2 | 4038 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4039 | |
4040 | self = self; | |
f6bcfd97 | 4041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 4042 | return NULL; |
f6bcfd97 BP |
4043 | { |
4044 | _arg0 = &temp; | |
4045 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4046 | return NULL; |
f6bcfd97 | 4047 | } |
cf694132 RD |
4048 | { |
4049 | wxPy_BEGIN_ALLOW_THREADS; | |
4050 | delete_wxColour(_arg0); | |
4051 | ||
4052 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4053 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4054 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4055 | _resultobj = Py_None; |
4056 | return _resultobj; | |
4057 | } | |
4058 | ||
4059 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 4060 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4061 | PyObject * _resultobj; |
4062 | unsigned char _result; | |
4063 | wxColour * _arg0; | |
f6bcfd97 BP |
4064 | wxColour temp; |
4065 | PyObject * _obj0 = 0; | |
1afc06c2 | 4066 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4067 | |
4068 | self = self; | |
f6bcfd97 | 4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 4070 | return NULL; |
f6bcfd97 BP |
4071 | { |
4072 | _arg0 = &temp; | |
4073 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4074 | return NULL; |
f6bcfd97 | 4075 | } |
cf694132 RD |
4076 | { |
4077 | wxPy_BEGIN_ALLOW_THREADS; | |
4078 | _result = (unsigned char )wxColour_Red(_arg0); | |
4079 | ||
4080 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4082 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4083 | return _resultobj; |
4084 | } | |
4085 | ||
4086 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 4087 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4088 | PyObject * _resultobj; |
4089 | unsigned char _result; | |
4090 | wxColour * _arg0; | |
f6bcfd97 BP |
4091 | wxColour temp; |
4092 | PyObject * _obj0 = 0; | |
1afc06c2 | 4093 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4094 | |
4095 | self = self; | |
f6bcfd97 | 4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 4097 | return NULL; |
f6bcfd97 BP |
4098 | { |
4099 | _arg0 = &temp; | |
4100 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4101 | return NULL; |
f6bcfd97 | 4102 | } |
cf694132 RD |
4103 | { |
4104 | wxPy_BEGIN_ALLOW_THREADS; | |
4105 | _result = (unsigned char )wxColour_Green(_arg0); | |
4106 | ||
4107 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4108 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4109 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4110 | return _resultobj; |
4111 | } | |
4112 | ||
4113 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 4114 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4115 | PyObject * _resultobj; |
4116 | unsigned char _result; | |
4117 | wxColour * _arg0; | |
f6bcfd97 BP |
4118 | wxColour temp; |
4119 | PyObject * _obj0 = 0; | |
1afc06c2 | 4120 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4121 | |
4122 | self = self; | |
f6bcfd97 | 4123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 4124 | return NULL; |
f6bcfd97 BP |
4125 | { |
4126 | _arg0 = &temp; | |
4127 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4128 | return NULL; |
f6bcfd97 | 4129 | } |
cf694132 RD |
4130 | { |
4131 | wxPy_BEGIN_ALLOW_THREADS; | |
4132 | _result = (unsigned char )wxColour_Blue(_arg0); | |
4133 | ||
4134 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4135 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4136 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4137 | return _resultobj; |
4138 | } | |
4139 | ||
4140 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4141 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4142 | PyObject * _resultobj; |
4143 | bool _result; | |
4144 | wxColour * _arg0; | |
f6bcfd97 BP |
4145 | wxColour temp; |
4146 | PyObject * _obj0 = 0; | |
1afc06c2 | 4147 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4148 | |
4149 | self = self; | |
f6bcfd97 | 4150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 4151 | return NULL; |
f6bcfd97 BP |
4152 | { |
4153 | _arg0 = &temp; | |
4154 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4155 | return NULL; |
f6bcfd97 | 4156 | } |
cf694132 RD |
4157 | { |
4158 | wxPy_BEGIN_ALLOW_THREADS; | |
4159 | _result = (bool )wxColour_Ok(_arg0); | |
4160 | ||
4161 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4162 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4163 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4164 | return _resultobj; |
4165 | } | |
4166 | ||
4167 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 4168 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4169 | PyObject * _resultobj; |
4170 | wxColour * _arg0; | |
4171 | unsigned char _arg1; | |
4172 | unsigned char _arg2; | |
4173 | unsigned char _arg3; | |
f6bcfd97 BP |
4174 | wxColour temp; |
4175 | PyObject * _obj0 = 0; | |
1afc06c2 | 4176 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
4177 | |
4178 | self = self; | |
f6bcfd97 | 4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4180 | return NULL; |
f6bcfd97 BP |
4181 | { |
4182 | _arg0 = &temp; | |
4183 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4184 | return NULL; |
f6bcfd97 | 4185 | } |
cf694132 RD |
4186 | { |
4187 | wxPy_BEGIN_ALLOW_THREADS; | |
4188 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
4189 | ||
4190 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4192 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4193 | _resultobj = Py_None; |
4194 | return _resultobj; | |
4195 | } | |
4196 | ||
4197 | static PyObject * wxColour_Get(wxColour *self) { | |
4198 | PyObject* rv = PyTuple_New(3); | |
4199 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4200 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4201 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4202 | return rv; | |
4203 | } | |
1afc06c2 | 4204 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4205 | PyObject * _resultobj; |
4206 | PyObject * _result; | |
4207 | wxColour * _arg0; | |
f6bcfd97 BP |
4208 | wxColour temp; |
4209 | PyObject * _obj0 = 0; | |
1afc06c2 | 4210 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4211 | |
4212 | self = self; | |
f6bcfd97 | 4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 4214 | return NULL; |
f6bcfd97 BP |
4215 | { |
4216 | _arg0 = &temp; | |
4217 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4218 | return NULL; |
f6bcfd97 | 4219 | } |
8ab979d7 | 4220 | { |
cf694132 RD |
4221 | wxPy_BEGIN_ALLOW_THREADS; |
4222 | _result = (PyObject *)wxColour_Get(_arg0); | |
4223 | ||
4224 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4226 | }{ |
8ab979d7 RD |
4227 | _resultobj = _result; |
4228 | } | |
4229 | return _resultobj; | |
4230 | } | |
4231 | ||
9416aa89 RD |
4232 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
4233 | wxColourDatabase *src; | |
4234 | wxObject *dest; | |
4235 | src = (wxColourDatabase *) ptr; | |
4236 | dest = (wxObject *) src; | |
4237 | return (void *) dest; | |
4238 | } | |
4239 | ||
0569df0f RD |
4240 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
4241 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject * _resultobj; | |
4243 | wxColour * _result; | |
4244 | wxColourDatabase * _arg0; | |
4245 | wxString * _arg1; | |
4246 | PyObject * _argo0 = 0; | |
4247 | PyObject * _obj1 = 0; | |
4248 | char *_kwnames[] = { "self","colour", NULL }; | |
4249 | char _ptemp[128]; | |
4250 | ||
4251 | self = self; | |
4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
4253 | return NULL; | |
4254 | if (_argo0) { | |
4255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
4258 | return NULL; | |
8ab979d7 | 4259 | } |
0569df0f RD |
4260 | } |
4261 | { | |
4262 | #if PYTHON_API_VERSION >= 1009 | |
4263 | char* tmpPtr; int tmpSize; | |
4264 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4265 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
4266 | return NULL; |
4267 | } | |
4268 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4269 | return NULL; | |
4270 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4271 | #else | |
4272 | if (!PyString_Check(_obj1)) { | |
4273 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4274 | return NULL; | |
4275 | } | |
4276 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4277 | #endif | |
4278 | } | |
4279 | { | |
4280 | wxPy_BEGIN_ALLOW_THREADS; | |
4281 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
8ab979d7 | 4282 | |
0569df0f | 4283 | wxPy_END_ALLOW_THREADS; |
493f1553 | 4284 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4285 | } if (_result) { |
4286 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4287 | _resultobj = Py_BuildValue("s",_ptemp); | |
4288 | } else { | |
4289 | Py_INCREF(Py_None); | |
4290 | _resultobj = Py_None; | |
4291 | } | |
4292 | { | |
4293 | if (_obj1) | |
4294 | delete _arg1; | |
4295 | } | |
4296 | return _resultobj; | |
4297 | } | |
4298 | ||
4299 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
4300 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4301 | PyObject * _resultobj; | |
4302 | wxString * _result; | |
4303 | wxColourDatabase * _arg0; | |
4304 | wxColour * _arg1; | |
4305 | PyObject * _argo0 = 0; | |
4306 | wxColour temp; | |
4307 | PyObject * _obj1 = 0; | |
4308 | char *_kwnames[] = { "self","colour", NULL }; | |
4309 | ||
4310 | self = self; | |
4311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
4312 | return NULL; | |
4313 | if (_argo0) { | |
4314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
4317 | return NULL; | |
4318 | } | |
4319 | } | |
4320 | { | |
4321 | _arg1 = &temp; | |
4322 | if (! wxColour_helper(_obj1, &_arg1)) | |
4323 | return NULL; | |
4324 | } | |
4325 | { | |
4326 | wxPy_BEGIN_ALLOW_THREADS; | |
4327 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
4328 | ||
4329 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4330 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4331 | }{ |
4332 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4333 | } | |
4334 | { | |
4335 | delete _result; | |
4336 | } | |
4337 | return _resultobj; | |
4338 | } | |
4339 | ||
4340 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
4341 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
4342 | } | |
4343 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4344 | PyObject * _resultobj; | |
4345 | wxColourDatabase * _arg0; | |
4346 | wxString * _arg1; | |
4347 | int _arg2; | |
4348 | int _arg3; | |
4349 | int _arg4; | |
4350 | PyObject * _argo0 = 0; | |
4351 | PyObject * _obj1 = 0; | |
4352 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
4353 | ||
4354 | self = self; | |
4355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
4356 | return NULL; | |
4357 | if (_argo0) { | |
4358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
4361 | return NULL; | |
4362 | } | |
4363 | } | |
4364 | { | |
4365 | #if PYTHON_API_VERSION >= 1009 | |
4366 | char* tmpPtr; int tmpSize; | |
4367 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4368 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
4369 | return NULL; |
4370 | } | |
4371 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4372 | return NULL; | |
4373 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4374 | #else | |
4375 | if (!PyString_Check(_obj1)) { | |
4376 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4377 | return NULL; | |
4378 | } | |
4379 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4380 | #endif | |
4381 | } | |
4382 | { | |
4383 | wxPy_BEGIN_ALLOW_THREADS; | |
4384 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
4385 | ||
4386 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4387 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4388 | } Py_INCREF(Py_None); |
4389 | _resultobj = Py_None; | |
4390 | { | |
4391 | if (_obj1) | |
4392 | delete _arg1; | |
4393 | } | |
4394 | return _resultobj; | |
4395 | } | |
4396 | ||
9416aa89 RD |
4397 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
4398 | wxPen *src; | |
4399 | wxGDIObject *dest; | |
4400 | src = (wxPen *) ptr; | |
4401 | dest = (wxGDIObject *) src; | |
4402 | return (void *) dest; | |
4403 | } | |
4404 | ||
4405 | static void *SwigwxPenTowxObject(void *ptr) { | |
4406 | wxPen *src; | |
4407 | wxObject *dest; | |
4408 | src = (wxPen *) ptr; | |
4409 | dest = (wxObject *) src; | |
4410 | return (void *) dest; | |
4411 | } | |
4412 | ||
0569df0f | 4413 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 4414 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4415 | PyObject * _resultobj; |
4416 | wxPen * _result; | |
4417 | wxColour * _arg0; | |
1d99702e RD |
4418 | int _arg1 = (int ) 1; |
4419 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
4420 | wxColour temp; |
4421 | PyObject * _obj0 = 0; | |
1afc06c2 | 4422 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
4423 | char _ptemp[128]; |
4424 | ||
4425 | self = self; | |
f6bcfd97 | 4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 4427 | return NULL; |
f6bcfd97 BP |
4428 | { |
4429 | _arg0 = &temp; | |
4430 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4431 | return NULL; |
f6bcfd97 | 4432 | } |
cf694132 RD |
4433 | { |
4434 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 4435 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 RD |
4436 | |
4437 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4438 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4439 | } if (_result) { |
4440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4441 | _resultobj = Py_BuildValue("s",_ptemp); | |
4442 | } else { | |
4443 | Py_INCREF(Py_None); | |
4444 | _resultobj = Py_None; | |
4445 | } | |
8ab979d7 RD |
4446 | return _resultobj; |
4447 | } | |
4448 | ||
0569df0f RD |
4449 | #define delete_wxPen(_swigobj) (delete _swigobj) |
4450 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4451 | PyObject * _resultobj; | |
4452 | wxPen * _arg0; | |
4453 | PyObject * _argo0 = 0; | |
4454 | char *_kwnames[] = { "self", NULL }; | |
4455 | ||
4456 | self = self; | |
4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
4458 | return NULL; | |
4459 | if (_argo0) { | |
4460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
4463 | return NULL; | |
4464 | } | |
4465 | } | |
4466 | { | |
4467 | wxPy_BEGIN_ALLOW_THREADS; | |
4468 | delete_wxPen(_arg0); | |
4469 | ||
4470 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4471 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4472 | } Py_INCREF(Py_None); |
4473 | _resultobj = Py_None; | |
4474 | return _resultobj; | |
4475 | } | |
4476 | ||
8ab979d7 | 4477 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 4478 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4479 | PyObject * _resultobj; |
4480 | int _result; | |
4481 | wxPen * _arg0; | |
1d99702e | 4482 | PyObject * _argo0 = 0; |
1afc06c2 | 4483 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4484 | |
4485 | self = self; | |
1afc06c2 | 4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 4487 | return NULL; |
1d99702e RD |
4488 | if (_argo0) { |
4489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
cf694132 RD |
4495 | { |
4496 | wxPy_BEGIN_ALLOW_THREADS; | |
4497 | _result = (int )wxPen_GetCap(_arg0); | |
4498 | ||
4499 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4500 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4501 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4502 | return _resultobj; |
4503 | } | |
4504 | ||
4505 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 4506 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4507 | PyObject * _resultobj; |
4508 | wxColour * _result; | |
4509 | wxPen * _arg0; | |
1d99702e | 4510 | PyObject * _argo0 = 0; |
1afc06c2 | 4511 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4512 | char _ptemp[128]; |
4513 | ||
4514 | self = self; | |
1afc06c2 | 4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 4516 | return NULL; |
1d99702e RD |
4517 | if (_argo0) { |
4518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
4521 | return NULL; | |
4522 | } | |
4523 | } | |
cf694132 RD |
4524 | { |
4525 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 4526 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 RD |
4527 | |
4528 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4529 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
4530 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4531 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
4532 | return _resultobj; |
4533 | } | |
4534 | ||
8ab979d7 | 4535 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 4536 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4537 | PyObject * _resultobj; |
4538 | int _result; | |
4539 | wxPen * _arg0; | |
1d99702e | 4540 | PyObject * _argo0 = 0; |
1afc06c2 | 4541 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4542 | |
4543 | self = self; | |
1afc06c2 | 4544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 4545 | return NULL; |
1d99702e RD |
4546 | if (_argo0) { |
4547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
4550 | return NULL; | |
4551 | } | |
4552 | } | |
cf694132 RD |
4553 | { |
4554 | wxPy_BEGIN_ALLOW_THREADS; | |
4555 | _result = (int )wxPen_GetJoin(_arg0); | |
4556 | ||
4557 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4558 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4559 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4560 | return _resultobj; |
4561 | } | |
4562 | ||
4563 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 4564 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4565 | PyObject * _resultobj; |
4566 | int _result; | |
4567 | wxPen * _arg0; | |
1d99702e | 4568 | PyObject * _argo0 = 0; |
1afc06c2 | 4569 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4570 | |
4571 | self = self; | |
1afc06c2 | 4572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4573 | return NULL; |
1d99702e RD |
4574 | if (_argo0) { |
4575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
4578 | return NULL; | |
4579 | } | |
4580 | } | |
cf694132 RD |
4581 | { |
4582 | wxPy_BEGIN_ALLOW_THREADS; | |
4583 | _result = (int )wxPen_GetStyle(_arg0); | |
4584 | ||
4585 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4586 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4587 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4588 | return _resultobj; |
4589 | } | |
4590 | ||
4591 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 4592 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4593 | PyObject * _resultobj; |
4594 | int _result; | |
4595 | wxPen * _arg0; | |
1d99702e | 4596 | PyObject * _argo0 = 0; |
1afc06c2 | 4597 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4598 | |
4599 | self = self; | |
1afc06c2 | 4600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 4601 | return NULL; |
1d99702e RD |
4602 | if (_argo0) { |
4603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
4606 | return NULL; | |
4607 | } | |
4608 | } | |
cf694132 RD |
4609 | { |
4610 | wxPy_BEGIN_ALLOW_THREADS; | |
4611 | _result = (int )wxPen_GetWidth(_arg0); | |
4612 | ||
4613 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4614 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4615 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4616 | return _resultobj; |
4617 | } | |
4618 | ||
4619 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4620 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4621 | PyObject * _resultobj; |
4622 | bool _result; | |
4623 | wxPen * _arg0; | |
1d99702e | 4624 | PyObject * _argo0 = 0; |
1afc06c2 | 4625 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4626 | |
4627 | self = self; | |
1afc06c2 | 4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 4629 | return NULL; |
1d99702e RD |
4630 | if (_argo0) { |
4631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
4634 | return NULL; | |
4635 | } | |
4636 | } | |
cf694132 RD |
4637 | { |
4638 | wxPy_BEGIN_ALLOW_THREADS; | |
4639 | _result = (bool )wxPen_Ok(_arg0); | |
4640 | ||
4641 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4642 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4643 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4644 | return _resultobj; |
4645 | } | |
4646 | ||
4647 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 4648 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4649 | PyObject * _resultobj; |
4650 | wxPen * _arg0; | |
4651 | int _arg1; | |
1d99702e | 4652 | PyObject * _argo0 = 0; |
1afc06c2 | 4653 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
4654 | |
4655 | self = self; | |
1afc06c2 | 4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4657 | return NULL; |
1d99702e RD |
4658 | if (_argo0) { |
4659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
4662 | return NULL; | |
4663 | } | |
4664 | } | |
cf694132 RD |
4665 | { |
4666 | wxPy_BEGIN_ALLOW_THREADS; | |
4667 | wxPen_SetCap(_arg0,_arg1); | |
4668 | ||
4669 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4670 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4671 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4672 | _resultobj = Py_None; |
4673 | return _resultobj; | |
4674 | } | |
4675 | ||
4676 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 4677 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4678 | PyObject * _resultobj; |
4679 | wxPen * _arg0; | |
4680 | wxColour * _arg1; | |
1d99702e | 4681 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4682 | wxColour temp; |
4683 | PyObject * _obj1 = 0; | |
1afc06c2 | 4684 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4685 | |
4686 | self = self; | |
f6bcfd97 | 4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4688 | return NULL; |
1d99702e RD |
4689 | if (_argo0) { |
4690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
4693 | return NULL; | |
4694 | } | |
4695 | } | |
f6bcfd97 BP |
4696 | { |
4697 | _arg1 = &temp; | |
4698 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4699 | return NULL; |
f6bcfd97 | 4700 | } |
cf694132 RD |
4701 | { |
4702 | wxPy_BEGIN_ALLOW_THREADS; | |
4703 | wxPen_SetColour(_arg0,*_arg1); | |
4704 | ||
4705 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4706 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4707 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4708 | _resultobj = Py_None; |
4709 | return _resultobj; | |
4710 | } | |
4711 | ||
2ea09579 | 4712 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 4713 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4714 | PyObject * _resultobj; |
4715 | wxPen * _arg0; | |
4716 | int _arg1; | |
1d99702e | 4717 | PyObject * _argo0 = 0; |
1afc06c2 | 4718 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
4719 | |
4720 | self = self; | |
1afc06c2 | 4721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4722 | return NULL; |
1d99702e RD |
4723 | if (_argo0) { |
4724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
4727 | return NULL; |
4728 | } | |
4729 | } | |
cf694132 RD |
4730 | { |
4731 | wxPy_BEGIN_ALLOW_THREADS; | |
4732 | wxPen_SetJoin(_arg0,_arg1); | |
4733 | ||
4734 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4735 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4736 | } Py_INCREF(Py_None); |
2ea09579 RD |
4737 | _resultobj = Py_None; |
4738 | return _resultobj; | |
4739 | } | |
4740 | ||
4741 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 4742 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
4743 | PyObject * _resultobj; |
4744 | wxPen * _arg0; | |
4745 | int _arg1; | |
1d99702e | 4746 | PyObject * _argo0 = 0; |
1afc06c2 | 4747 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
4748 | |
4749 | self = self; | |
1afc06c2 | 4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4751 | return NULL; |
1d99702e RD |
4752 | if (_argo0) { |
4753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
4755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
4756 | return NULL; | |
4757 | } | |
8ab979d7 | 4758 | } |
cf694132 RD |
4759 | { |
4760 | wxPy_BEGIN_ALLOW_THREADS; | |
4761 | wxPen_SetStyle(_arg0,_arg1); | |
4762 | ||
4763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4764 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4765 | } Py_INCREF(Py_None); |
8ab979d7 | 4766 | _resultobj = Py_None; |
2ea09579 | 4767 | return _resultobj; |
8ab979d7 | 4768 | } |
2ea09579 RD |
4769 | |
4770 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 4771 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
4772 | PyObject * _resultobj; |
4773 | wxPen * _arg0; | |
4774 | int _arg1; | |
1d99702e | 4775 | PyObject * _argo0 = 0; |
1afc06c2 | 4776 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
4777 | |
4778 | self = self; | |
1afc06c2 | 4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 4780 | return NULL; |
1d99702e RD |
4781 | if (_argo0) { |
4782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
4784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
4785 | return NULL; | |
4786 | } | |
4787 | } | |
cf694132 RD |
4788 | { |
4789 | wxPy_BEGIN_ALLOW_THREADS; | |
4790 | wxPen_SetWidth(_arg0,_arg1); | |
4791 | ||
4792 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4793 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4794 | } Py_INCREF(Py_None); |
2ea09579 | 4795 | _resultobj = Py_None; |
8ab979d7 RD |
4796 | return _resultobj; |
4797 | } | |
4798 | ||
2ea09579 | 4799 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) |
1afc06c2 | 4800 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4801 | PyObject * _resultobj; |
2ea09579 | 4802 | int _result; |
8ab979d7 | 4803 | wxPen * _arg0; |
2ea09579 | 4804 | wxDash ** _arg1; |
1d99702e RD |
4805 | PyObject * _argo0 = 0; |
4806 | PyObject * _argo1 = 0; | |
1afc06c2 | 4807 | char *_kwnames[] = { "self","dashes", NULL }; |
8ab979d7 RD |
4808 | |
4809 | self = self; | |
1afc06c2 | 4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4811 | return NULL; |
1d99702e RD |
4812 | if (_argo0) { |
4813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
4816 | return NULL; |
4817 | } | |
4818 | } | |
1d99702e RD |
4819 | if (_argo1) { |
4820 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4821 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
2ea09579 | 4822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); |
8ab979d7 RD |
4823 | return NULL; |
4824 | } | |
4825 | } | |
cf694132 RD |
4826 | { |
4827 | wxPy_BEGIN_ALLOW_THREADS; | |
4828 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
4829 | ||
4830 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4831 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4832 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4833 | return _resultobj; |
4834 | } | |
4835 | ||
2ea09579 | 4836 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 4837 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4838 | PyObject * _resultobj; |
4839 | wxPen * _arg0; | |
4840 | int _arg1; | |
2ea09579 | 4841 | wxDash * _arg2; |
1d99702e | 4842 | PyObject * _argo0 = 0; |
2ea09579 | 4843 | PyObject * _obj2 = 0; |
eec92d76 | 4844 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
4845 | |
4846 | self = self; | |
1afc06c2 | 4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 4848 | return NULL; |
1d99702e RD |
4849 | if (_argo0) { |
4850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
4853 | return NULL; |
4854 | } | |
4855 | } | |
2ea09579 RD |
4856 | if (_obj2) |
4857 | { | |
f6bcfd97 | 4858 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
4859 | if (_arg2 == NULL) { |
4860 | return NULL; | |
4861 | } | |
4862 | } | |
4863 | { | |
cf694132 RD |
4864 | if (_obj2) { |
4865 | _arg1 = PyList_Size(_obj2); | |
4866 | } | |
4867 | else { | |
4868 | _arg1 = 0; | |
4869 | } | |
2ea09579 | 4870 | } |
cf694132 RD |
4871 | { |
4872 | wxPy_BEGIN_ALLOW_THREADS; | |
4873 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
4874 | ||
4875 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4877 | } Py_INCREF(Py_None); |
8ab979d7 | 4878 | _resultobj = Py_None; |
2ea09579 RD |
4879 | { |
4880 | delete [] _arg2; | |
4881 | } | |
8ab979d7 RD |
4882 | return _resultobj; |
4883 | } | |
4884 | ||
6999b0d8 RD |
4885 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
4886 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4887 | PyObject * _resultobj; | |
4888 | wxBitmap * _result; | |
4889 | wxPen * _arg0; | |
4890 | PyObject * _argo0 = 0; | |
4891 | char *_kwnames[] = { "self", NULL }; | |
4892 | char _ptemp[128]; | |
4893 | ||
4894 | self = self; | |
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
4896 | return NULL; | |
4897 | if (_argo0) { | |
4898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
4901 | return NULL; | |
4902 | } | |
4903 | } | |
4904 | { | |
4905 | wxPy_BEGIN_ALLOW_THREADS; | |
4906 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); | |
4907 | ||
4908 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4909 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
4910 | } if (_result) { |
4911 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4912 | _resultobj = Py_BuildValue("s",_ptemp); | |
4913 | } else { | |
4914 | Py_INCREF(Py_None); | |
4915 | _resultobj = Py_None; | |
4916 | } | |
4917 | return _resultobj; | |
4918 | } | |
4919 | ||
2ea09579 | 4920 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 4921 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4922 | PyObject * _resultobj; |
4923 | wxPen * _arg0; | |
2ea09579 | 4924 | wxBitmap * _arg1; |
1d99702e RD |
4925 | PyObject * _argo0 = 0; |
4926 | PyObject * _argo1 = 0; | |
1afc06c2 | 4927 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
4928 | |
4929 | self = self; | |
1afc06c2 | 4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4931 | return NULL; |
1d99702e RD |
4932 | if (_argo0) { |
4933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
4936 | return NULL; |
4937 | } | |
4938 | } | |
1d99702e RD |
4939 | if (_argo1) { |
4940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
4942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
4943 | return NULL; | |
4944 | } | |
4945 | } | |
cf694132 RD |
4946 | { |
4947 | wxPy_BEGIN_ALLOW_THREADS; | |
4948 | wxPen_SetStipple(_arg0,*_arg1); | |
4949 | ||
4950 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4951 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4952 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4953 | _resultobj = Py_None; |
4954 | return _resultobj; | |
4955 | } | |
4956 | ||
9416aa89 RD |
4957 | static void *SwigwxPenListTowxObject(void *ptr) { |
4958 | wxPenList *src; | |
4959 | wxObject *dest; | |
4960 | src = (wxPenList *) ptr; | |
4961 | dest = (wxObject *) src; | |
4962 | return (void *) dest; | |
4963 | } | |
4964 | ||
0569df0f RD |
4965 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
4966 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject * _resultobj; | |
4968 | wxPenList * _arg0; | |
4969 | wxPen * _arg1; | |
4970 | PyObject * _argo0 = 0; | |
4971 | PyObject * _argo1 = 0; | |
4972 | char *_kwnames[] = { "self","pen", NULL }; | |
4973 | ||
4974 | self = self; | |
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
4976 | return NULL; | |
4977 | if (_argo0) { | |
4978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
4981 | return NULL; | |
4982 | } | |
4983 | } | |
4984 | if (_argo1) { | |
4985 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4986 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
4988 | return NULL; | |
4989 | } | |
4990 | } | |
4991 | { | |
4992 | wxPy_BEGIN_ALLOW_THREADS; | |
4993 | wxPenList_AddPen(_arg0,_arg1); | |
4994 | ||
4995 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4996 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4997 | } Py_INCREF(Py_None); |
4998 | _resultobj = Py_None; | |
4999 | return _resultobj; | |
5000 | } | |
5001 | ||
5002 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5003 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject * _resultobj; | |
5005 | wxPen * _result; | |
5006 | wxPenList * _arg0; | |
5007 | wxColour * _arg1; | |
5008 | int _arg2; | |
5009 | int _arg3; | |
5010 | PyObject * _argo0 = 0; | |
5011 | wxColour temp; | |
5012 | PyObject * _obj1 = 0; | |
5013 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5014 | char _ptemp[128]; | |
5015 | ||
5016 | self = self; | |
5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5018 | return NULL; | |
5019 | if (_argo0) { | |
5020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5023 | return NULL; | |
5024 | } | |
5025 | } | |
5026 | { | |
5027 | _arg1 = &temp; | |
5028 | if (! wxColour_helper(_obj1, &_arg1)) | |
5029 | return NULL; | |
5030 | } | |
5031 | { | |
5032 | wxPy_BEGIN_ALLOW_THREADS; | |
5033 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
5034 | ||
5035 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5036 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5037 | } if (_result) { |
5038 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5039 | _resultobj = Py_BuildValue("s",_ptemp); | |
5040 | } else { | |
5041 | Py_INCREF(Py_None); | |
5042 | _resultobj = Py_None; | |
5043 | } | |
5044 | return _resultobj; | |
5045 | } | |
5046 | ||
5047 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5048 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject * _resultobj; | |
5050 | wxPenList * _arg0; | |
5051 | wxPen * _arg1; | |
5052 | PyObject * _argo0 = 0; | |
5053 | PyObject * _argo1 = 0; | |
5054 | char *_kwnames[] = { "self","pen", NULL }; | |
5055 | ||
5056 | self = self; | |
5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5058 | return NULL; | |
5059 | if (_argo0) { | |
5060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5063 | return NULL; | |
5064 | } | |
5065 | } | |
5066 | if (_argo1) { | |
5067 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5068 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5070 | return NULL; | |
8ab979d7 | 5071 | } |
0569df0f RD |
5072 | } |
5073 | { | |
5074 | wxPy_BEGIN_ALLOW_THREADS; | |
5075 | wxPenList_RemovePen(_arg0,_arg1); | |
8ab979d7 | 5076 | |
0569df0f | 5077 | wxPy_END_ALLOW_THREADS; |
493f1553 | 5078 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5079 | } Py_INCREF(Py_None); |
5080 | _resultobj = Py_None; | |
5081 | return _resultobj; | |
5082 | } | |
5083 | ||
9416aa89 RD |
5084 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5085 | wxBrush *src; | |
5086 | wxGDIObject *dest; | |
5087 | src = (wxBrush *) ptr; | |
5088 | dest = (wxGDIObject *) src; | |
5089 | return (void *) dest; | |
5090 | } | |
5091 | ||
5092 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5093 | wxBrush *src; | |
5094 | wxObject *dest; | |
5095 | src = (wxBrush *) ptr; | |
5096 | dest = (wxObject *) src; | |
5097 | return (void *) dest; | |
5098 | } | |
5099 | ||
0569df0f | 5100 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 5101 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5102 | PyObject * _resultobj; |
5103 | wxBrush * _result; | |
5104 | wxColour * _arg0; | |
1d99702e | 5105 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
5106 | wxColour temp; |
5107 | PyObject * _obj0 = 0; | |
1afc06c2 | 5108 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
5109 | char _ptemp[128]; |
5110 | ||
5111 | self = self; | |
f6bcfd97 | 5112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 5113 | return NULL; |
f6bcfd97 BP |
5114 | { |
5115 | _arg0 = &temp; | |
5116 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5117 | return NULL; |
f6bcfd97 | 5118 | } |
cf694132 RD |
5119 | { |
5120 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 5121 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 RD |
5122 | |
5123 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5124 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5125 | } if (_result) { |
5126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5127 | _resultobj = Py_BuildValue("s",_ptemp); | |
5128 | } else { | |
5129 | Py_INCREF(Py_None); | |
5130 | _resultobj = Py_None; | |
5131 | } | |
8ab979d7 RD |
5132 | return _resultobj; |
5133 | } | |
5134 | ||
0569df0f RD |
5135 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
5136 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5137 | PyObject * _resultobj; | |
5138 | wxBrush * _arg0; | |
5139 | PyObject * _argo0 = 0; | |
5140 | char *_kwnames[] = { "self", NULL }; | |
5141 | ||
5142 | self = self; | |
5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5144 | return NULL; | |
5145 | if (_argo0) { | |
5146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5149 | return NULL; | |
5150 | } | |
5151 | } | |
5152 | { | |
5153 | wxPy_BEGIN_ALLOW_THREADS; | |
5154 | delete_wxBrush(_arg0); | |
5155 | ||
5156 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5157 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5158 | } Py_INCREF(Py_None); |
5159 | _resultobj = Py_None; | |
5160 | return _resultobj; | |
5161 | } | |
5162 | ||
8ab979d7 | 5163 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 5164 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5165 | PyObject * _resultobj; |
5166 | wxColour * _result; | |
5167 | wxBrush * _arg0; | |
1d99702e | 5168 | PyObject * _argo0 = 0; |
1afc06c2 | 5169 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5170 | char _ptemp[128]; |
5171 | ||
5172 | self = self; | |
1afc06c2 | 5173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5174 | return NULL; |
1d99702e RD |
5175 | if (_argo0) { |
5176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
5179 | return NULL; | |
5180 | } | |
5181 | } | |
cf694132 RD |
5182 | { |
5183 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 5184 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 RD |
5185 | |
5186 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5187 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5188 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5189 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5190 | return _resultobj; |
5191 | } | |
5192 | ||
5193 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 5194 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5195 | PyObject * _resultobj; |
5196 | wxBitmap * _result; | |
5197 | wxBrush * _arg0; | |
1d99702e | 5198 | PyObject * _argo0 = 0; |
1afc06c2 | 5199 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5200 | char _ptemp[128]; |
5201 | ||
5202 | self = self; | |
1afc06c2 | 5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 5204 | return NULL; |
1d99702e RD |
5205 | if (_argo0) { |
5206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
5209 | return NULL; | |
5210 | } | |
5211 | } | |
cf694132 RD |
5212 | { |
5213 | wxPy_BEGIN_ALLOW_THREADS; | |
5214 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
5215 | ||
5216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5217 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5218 | } if (_result) { |
5219 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5220 | _resultobj = Py_BuildValue("s",_ptemp); | |
5221 | } else { | |
5222 | Py_INCREF(Py_None); | |
5223 | _resultobj = Py_None; | |
5224 | } | |
8ab979d7 RD |
5225 | return _resultobj; |
5226 | } | |
5227 | ||
5228 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5229 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5230 | PyObject * _resultobj; |
5231 | int _result; | |
5232 | wxBrush * _arg0; | |
1d99702e | 5233 | PyObject * _argo0 = 0; |
1afc06c2 | 5234 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5235 | |
5236 | self = self; | |
1afc06c2 | 5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5238 | return NULL; |
1d99702e RD |
5239 | if (_argo0) { |
5240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
5243 | return NULL; | |
5244 | } | |
5245 | } | |
cf694132 RD |
5246 | { |
5247 | wxPy_BEGIN_ALLOW_THREADS; | |
5248 | _result = (int )wxBrush_GetStyle(_arg0); | |
5249 | ||
5250 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5251 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5252 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5253 | return _resultobj; |
5254 | } | |
5255 | ||
5256 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5257 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5258 | PyObject * _resultobj; |
5259 | bool _result; | |
5260 | wxBrush * _arg0; | |
1d99702e | 5261 | PyObject * _argo0 = 0; |
1afc06c2 | 5262 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5263 | |
5264 | self = self; | |
1afc06c2 | 5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 5266 | return NULL; |
1d99702e RD |
5267 | if (_argo0) { |
5268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
5271 | return NULL; | |
5272 | } | |
5273 | } | |
cf694132 RD |
5274 | { |
5275 | wxPy_BEGIN_ALLOW_THREADS; | |
5276 | _result = (bool )wxBrush_Ok(_arg0); | |
5277 | ||
5278 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5279 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5280 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5281 | return _resultobj; |
5282 | } | |
5283 | ||
5284 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 5285 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5286 | PyObject * _resultobj; |
5287 | wxBrush * _arg0; | |
5288 | wxColour * _arg1; | |
1d99702e | 5289 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5290 | wxColour temp; |
5291 | PyObject * _obj1 = 0; | |
1afc06c2 | 5292 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
5293 | |
5294 | self = self; | |
f6bcfd97 | 5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5296 | return NULL; |
1d99702e RD |
5297 | if (_argo0) { |
5298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
5301 | return NULL; | |
5302 | } | |
5303 | } | |
f6bcfd97 BP |
5304 | { |
5305 | _arg1 = &temp; | |
5306 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 5307 | return NULL; |
f6bcfd97 | 5308 | } |
cf694132 RD |
5309 | { |
5310 | wxPy_BEGIN_ALLOW_THREADS; | |
5311 | wxBrush_SetColour(_arg0,*_arg1); | |
5312 | ||
5313 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5314 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5315 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5316 | _resultobj = Py_None; |
5317 | return _resultobj; | |
5318 | } | |
5319 | ||
5320 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 5321 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5322 | PyObject * _resultobj; |
5323 | wxBrush * _arg0; | |
5324 | wxBitmap * _arg1; | |
1d99702e RD |
5325 | PyObject * _argo0 = 0; |
5326 | PyObject * _argo1 = 0; | |
1afc06c2 | 5327 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
5328 | |
5329 | self = self; | |
1afc06c2 | 5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5331 | return NULL; |
1d99702e RD |
5332 | if (_argo0) { |
5333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
5336 | return NULL; | |
5337 | } | |
5338 | } | |
1d99702e RD |
5339 | if (_argo1) { |
5340 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5341 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
5342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
5343 | return NULL; | |
5344 | } | |
5345 | } | |
cf694132 RD |
5346 | { |
5347 | wxPy_BEGIN_ALLOW_THREADS; | |
5348 | wxBrush_SetStipple(_arg0,*_arg1); | |
5349 | ||
5350 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5353 | _resultobj = Py_None; |
5354 | return _resultobj; | |
5355 | } | |
5356 | ||
5357 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 5358 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5359 | PyObject * _resultobj; |
5360 | wxBrush * _arg0; | |
5361 | int _arg1; | |
1d99702e | 5362 | PyObject * _argo0 = 0; |
1afc06c2 | 5363 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
5364 | |
5365 | self = self; | |
1afc06c2 | 5366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5367 | return NULL; |
1d99702e RD |
5368 | if (_argo0) { |
5369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
5372 | return NULL; | |
5373 | } | |
5374 | } | |
cf694132 RD |
5375 | { |
5376 | wxPy_BEGIN_ALLOW_THREADS; | |
5377 | wxBrush_SetStyle(_arg0,_arg1); | |
5378 | ||
5379 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5381 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5382 | _resultobj = Py_None; |
5383 | return _resultobj; | |
5384 | } | |
5385 | ||
0569df0f RD |
5386 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
5387 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5388 | PyObject * _resultobj; | |
5389 | wxBrushList * _arg0; | |
5390 | wxBrush * _arg1; | |
5391 | PyObject * _argo0 = 0; | |
5392 | PyObject * _argo1 = 0; | |
5393 | char *_kwnames[] = { "self","brush", NULL }; | |
5394 | ||
5395 | self = self; | |
5396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
5397 | return NULL; | |
5398 | if (_argo0) { | |
5399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
5402 | return NULL; | |
5403 | } | |
5404 | } | |
5405 | if (_argo1) { | |
5406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
5409 | return NULL; | |
5410 | } | |
5411 | } | |
5412 | { | |
5413 | wxPy_BEGIN_ALLOW_THREADS; | |
5414 | wxBrushList_AddBrush(_arg0,_arg1); | |
5415 | ||
5416 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5417 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5418 | } Py_INCREF(Py_None); |
5419 | _resultobj = Py_None; | |
5420 | return _resultobj; | |
5421 | } | |
5422 | ||
5423 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
5424 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject * _resultobj; | |
5426 | wxBrush * _result; | |
5427 | wxBrushList * _arg0; | |
5428 | wxColour * _arg1; | |
5429 | int _arg2; | |
5430 | PyObject * _argo0 = 0; | |
5431 | wxColour temp; | |
5432 | PyObject * _obj1 = 0; | |
5433 | char *_kwnames[] = { "self","colour","style", NULL }; | |
5434 | char _ptemp[128]; | |
5435 | ||
5436 | self = self; | |
5437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5438 | return NULL; | |
5439 | if (_argo0) { | |
5440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
5443 | return NULL; | |
5444 | } | |
5445 | } | |
5446 | { | |
5447 | _arg1 = &temp; | |
5448 | if (! wxColour_helper(_obj1, &_arg1)) | |
5449 | return NULL; | |
5450 | } | |
5451 | { | |
5452 | wxPy_BEGIN_ALLOW_THREADS; | |
5453 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
5454 | ||
5455 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5456 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5457 | } if (_result) { |
5458 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5459 | _resultobj = Py_BuildValue("s",_ptemp); | |
5460 | } else { | |
5461 | Py_INCREF(Py_None); | |
5462 | _resultobj = Py_None; | |
5463 | } | |
5464 | return _resultobj; | |
5465 | } | |
5466 | ||
5467 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
5468 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject * _resultobj; | |
5470 | wxBrushList * _arg0; | |
5471 | wxBrush * _arg1; | |
5472 | PyObject * _argo0 = 0; | |
5473 | PyObject * _argo1 = 0; | |
5474 | char *_kwnames[] = { "self","brush", NULL }; | |
5475 | ||
5476 | self = self; | |
5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
5478 | return NULL; | |
5479 | if (_argo0) { | |
5480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
5483 | return NULL; | |
5484 | } | |
5485 | } | |
5486 | if (_argo1) { | |
5487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
5494 | wxPy_BEGIN_ALLOW_THREADS; | |
5495 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
5496 | ||
5497 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5498 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5499 | } Py_INCREF(Py_None); |
5500 | _resultobj = Py_None; | |
5501 | return _resultobj; | |
5502 | } | |
5503 | ||
9416aa89 RD |
5504 | static void *SwigwxDCTowxObject(void *ptr) { |
5505 | wxDC *src; | |
5506 | wxObject *dest; | |
5507 | src = (wxDC *) ptr; | |
5508 | dest = (wxObject *) src; | |
5509 | return (void *) dest; | |
5510 | } | |
5511 | ||
8ab979d7 | 5512 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 5513 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5514 | PyObject * _resultobj; |
5515 | wxDC * _arg0; | |
1d99702e | 5516 | PyObject * _argo0 = 0; |
1afc06c2 | 5517 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5518 | |
5519 | self = self; | |
1afc06c2 | 5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 5521 | return NULL; |
1d99702e RD |
5522 | if (_argo0) { |
5523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
5526 | return NULL; | |
5527 | } | |
5528 | } | |
cf694132 RD |
5529 | { |
5530 | wxPy_BEGIN_ALLOW_THREADS; | |
5531 | delete_wxDC(_arg0); | |
5532 | ||
5533 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5534 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5535 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5536 | _resultobj = Py_None; |
5537 | return _resultobj; | |
5538 | } | |
5539 | ||
5540 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 5541 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5542 | PyObject * _resultobj; |
5543 | wxDC * _arg0; | |
1d99702e | 5544 | PyObject * _argo0 = 0; |
1afc06c2 | 5545 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5546 | |
5547 | self = self; | |
1afc06c2 | 5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 5549 | return NULL; |
1d99702e RD |
5550 | if (_argo0) { |
5551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
5554 | return NULL; | |
5555 | } | |
5556 | } | |
cf694132 RD |
5557 | { |
5558 | wxPy_BEGIN_ALLOW_THREADS; | |
5559 | wxDC_BeginDrawing(_arg0); | |
5560 | ||
5561 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5562 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5563 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5564 | _resultobj = Py_None; |
5565 | return _resultobj; | |
5566 | } | |
5567 | ||
efc5f224 | 5568 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
1afc06c2 | 5569 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5570 | PyObject * _resultobj; |
5571 | bool _result; | |
5572 | wxDC * _arg0; | |
5573 | long _arg1; | |
5574 | long _arg2; | |
5575 | long _arg3; | |
5576 | long _arg4; | |
5577 | wxDC * _arg5; | |
5578 | long _arg6; | |
5579 | long _arg7; | |
efc5f224 RD |
5580 | int _arg8 = (int ) wxCOPY; |
5581 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
5582 | PyObject * _argo0 = 0; |
5583 | PyObject * _argo5 = 0; | |
1afc06c2 | 5584 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
5585 | |
5586 | self = self; | |
1afc06c2 | 5587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 5588 | return NULL; |
1d99702e RD |
5589 | if (_argo0) { |
5590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
5593 | return NULL; | |
5594 | } | |
5595 | } | |
1d99702e RD |
5596 | if (_argo5) { |
5597 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5598 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
5599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
5600 | return NULL; | |
5601 | } | |
5602 | } | |
cf694132 RD |
5603 | { |
5604 | wxPy_BEGIN_ALLOW_THREADS; | |
efc5f224 | 5605 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 RD |
5606 | |
5607 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5609 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5610 | return _resultobj; |
5611 | } | |
5612 | ||
5613 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 5614 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5615 | PyObject * _resultobj; |
5616 | wxDC * _arg0; | |
1d99702e | 5617 | PyObject * _argo0 = 0; |
1afc06c2 | 5618 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5619 | |
5620 | self = self; | |
1afc06c2 | 5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 5622 | return NULL; |
1d99702e RD |
5623 | if (_argo0) { |
5624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
5627 | return NULL; | |
5628 | } | |
5629 | } | |
cf694132 RD |
5630 | { |
5631 | wxPy_BEGIN_ALLOW_THREADS; | |
5632 | wxDC_Clear(_arg0); | |
5633 | ||
5634 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5635 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5636 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5637 | _resultobj = Py_None; |
5638 | return _resultobj; | |
5639 | } | |
5640 | ||
5641 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 5642 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5643 | PyObject * _resultobj; |
5644 | wxDC * _arg0; | |
5645 | long _arg1; | |
5646 | long _arg2; | |
1d99702e | 5647 | PyObject * _argo0 = 0; |
1afc06c2 | 5648 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5649 | |
5650 | self = self; | |
1afc06c2 | 5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5652 | return NULL; |
1d99702e RD |
5653 | if (_argo0) { |
5654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
cf694132 RD |
5660 | { |
5661 | wxPy_BEGIN_ALLOW_THREADS; | |
5662 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
5663 | ||
5664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5666 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5667 | _resultobj = Py_None; |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
5671 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 5672 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5673 | PyObject * _resultobj; |
5674 | wxDC * _arg0; | |
1d99702e | 5675 | PyObject * _argo0 = 0; |
1afc06c2 | 5676 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5677 | |
5678 | self = self; | |
1afc06c2 | 5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 5680 | return NULL; |
1d99702e RD |
5681 | if (_argo0) { |
5682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
5685 | return NULL; | |
5686 | } | |
5687 | } | |
cf694132 RD |
5688 | { |
5689 | wxPy_BEGIN_ALLOW_THREADS; | |
5690 | wxDC_DestroyClippingRegion(_arg0); | |
5691 | ||
5692 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5694 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5695 | _resultobj = Py_None; |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
5699 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 5700 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5701 | PyObject * _resultobj; |
5702 | long _result; | |
5703 | wxDC * _arg0; | |
5704 | long _arg1; | |
1d99702e | 5705 | PyObject * _argo0 = 0; |
1afc06c2 | 5706 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
5707 | |
5708 | self = self; | |
1afc06c2 | 5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5710 | return NULL; |
1d99702e RD |
5711 | if (_argo0) { |
5712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
5715 | return NULL; | |
5716 | } | |
5717 | } | |
cf694132 RD |
5718 | { |
5719 | wxPy_BEGIN_ALLOW_THREADS; | |
5720 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
5721 | ||
5722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5724 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5725 | return _resultobj; |
5726 | } | |
5727 | ||
5728 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 5729 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5730 | PyObject * _resultobj; |
5731 | long _result; | |
5732 | wxDC * _arg0; | |
5733 | long _arg1; | |
1d99702e | 5734 | PyObject * _argo0 = 0; |
1afc06c2 | 5735 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
5736 | |
5737 | self = self; | |
1afc06c2 | 5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5739 | return NULL; |
1d99702e RD |
5740 | if (_argo0) { |
5741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
5744 | return NULL; | |
5745 | } | |
5746 | } | |
cf694132 RD |
5747 | { |
5748 | wxPy_BEGIN_ALLOW_THREADS; | |
5749 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
5750 | ||
5751 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5752 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5753 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5754 | return _resultobj; |
5755 | } | |
5756 | ||
5757 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 5758 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5759 | PyObject * _resultobj; |
5760 | long _result; | |
5761 | wxDC * _arg0; | |
5762 | long _arg1; | |
1d99702e | 5763 | PyObject * _argo0 = 0; |
1afc06c2 | 5764 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
5765 | |
5766 | self = self; | |
1afc06c2 | 5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5768 | return NULL; |
1d99702e RD |
5769 | if (_argo0) { |
5770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
cf694132 RD |
5776 | { |
5777 | wxPy_BEGIN_ALLOW_THREADS; | |
5778 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
5779 | ||
5780 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5781 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5782 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5783 | return _resultobj; |
5784 | } | |
5785 | ||
5786 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 5787 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5788 | PyObject * _resultobj; |
5789 | long _result; | |
5790 | wxDC * _arg0; | |
5791 | long _arg1; | |
1d99702e | 5792 | PyObject * _argo0 = 0; |
1afc06c2 | 5793 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
5794 | |
5795 | self = self; | |
1afc06c2 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5797 | return NULL; |
1d99702e RD |
5798 | if (_argo0) { |
5799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
5802 | return NULL; | |
5803 | } | |
5804 | } | |
cf694132 RD |
5805 | { |
5806 | wxPy_BEGIN_ALLOW_THREADS; | |
5807 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
5808 | ||
5809 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5810 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5811 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5812 | return _resultobj; |
5813 | } | |
5814 | ||
5815 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 5816 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5817 | PyObject * _resultobj; |
5818 | wxDC * _arg0; | |
5819 | long _arg1; | |
5820 | long _arg2; | |
5821 | long _arg3; | |
5822 | long _arg4; | |
5823 | long _arg5; | |
5824 | long _arg6; | |
1d99702e | 5825 | PyObject * _argo0 = 0; |
1afc06c2 | 5826 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
5827 | |
5828 | self = self; | |
1afc06c2 | 5829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5830 | return NULL; |
1d99702e RD |
5831 | if (_argo0) { |
5832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
5835 | return NULL; | |
5836 | } | |
5837 | } | |
cf694132 RD |
5838 | { |
5839 | wxPy_BEGIN_ALLOW_THREADS; | |
5840 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5841 | ||
5842 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5843 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5844 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5845 | _resultobj = Py_None; |
5846 | return _resultobj; | |
5847 | } | |
5848 | ||
bb0054cd | 5849 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5850 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5851 | PyObject * _resultobj; |
5852 | wxDC * _arg0; | |
5853 | long _arg1; | |
5854 | long _arg2; | |
5855 | long _arg3; | |
1d99702e | 5856 | PyObject * _argo0 = 0; |
1afc06c2 | 5857 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
5858 | |
5859 | self = self; | |
1afc06c2 | 5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 5861 | return NULL; |
1d99702e RD |
5862 | if (_argo0) { |
5863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
5865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
5866 | return NULL; | |
5867 | } | |
5868 | } | |
5869 | { | |
5870 | wxPy_BEGIN_ALLOW_THREADS; | |
5871 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
5872 | ||
5873 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5874 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5875 | } Py_INCREF(Py_None); |
5876 | _resultobj = Py_None; | |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
8ab979d7 | 5880 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 5881 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5882 | PyObject * _resultobj; |
5883 | wxDC * _arg0; | |
5884 | long _arg1; | |
5885 | long _arg2; | |
5886 | long _arg3; | |
5887 | long _arg4; | |
1d99702e | 5888 | PyObject * _argo0 = 0; |
1afc06c2 | 5889 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
5890 | |
5891 | self = self; | |
1afc06c2 | 5892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5893 | return NULL; |
1d99702e RD |
5894 | if (_argo0) { |
5895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
5898 | return NULL; | |
5899 | } | |
5900 | } | |
cf694132 RD |
5901 | { |
5902 | wxPy_BEGIN_ALLOW_THREADS; | |
5903 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5904 | ||
5905 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5906 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5907 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5908 | _resultobj = Py_None; |
5909 | return _resultobj; | |
5910 | } | |
5911 | ||
5912 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 5913 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5914 | PyObject * _resultobj; |
5915 | wxDC * _arg0; | |
5916 | long _arg1; | |
5917 | long _arg2; | |
5918 | long _arg3; | |
5919 | long _arg4; | |
5920 | long _arg5; | |
5921 | long _arg6; | |
1d99702e | 5922 | PyObject * _argo0 = 0; |
1afc06c2 | 5923 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
5924 | |
5925 | self = self; | |
1afc06c2 | 5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5927 | return NULL; |
1d99702e RD |
5928 | if (_argo0) { |
5929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
5932 | return NULL; | |
5933 | } | |
5934 | } | |
cf694132 RD |
5935 | { |
5936 | wxPy_BEGIN_ALLOW_THREADS; | |
5937 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5938 | ||
5939 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5940 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5941 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5942 | _resultobj = Py_None; |
5943 | return _resultobj; | |
5944 | } | |
5945 | ||
5946 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5947 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5948 | PyObject * _resultobj; |
5949 | wxDC * _arg0; | |
5950 | wxIcon * _arg1; | |
5951 | long _arg2; | |
5952 | long _arg3; | |
1d99702e RD |
5953 | PyObject * _argo0 = 0; |
5954 | PyObject * _argo1 = 0; | |
1afc06c2 | 5955 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
5956 | |
5957 | self = self; | |
1afc06c2 | 5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5959 | return NULL; |
1d99702e RD |
5960 | if (_argo0) { |
5961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
5964 | return NULL; | |
5965 | } | |
5966 | } | |
1d99702e RD |
5967 | if (_argo1) { |
5968 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5969 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
5970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
5971 | return NULL; | |
5972 | } | |
5973 | } | |
cf694132 RD |
5974 | { |
5975 | wxPy_BEGIN_ALLOW_THREADS; | |
5976 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
5977 | ||
5978 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5979 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5980 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5981 | _resultobj = Py_None; |
5982 | return _resultobj; | |
5983 | } | |
5984 | ||
5985 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5986 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5987 | PyObject * _resultobj; |
5988 | wxDC * _arg0; | |
5989 | long _arg1; | |
5990 | long _arg2; | |
5991 | long _arg3; | |
5992 | long _arg4; | |
1d99702e | 5993 | PyObject * _argo0 = 0; |
1afc06c2 | 5994 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
5995 | |
5996 | self = self; | |
1afc06c2 | 5997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5998 | return NULL; |
1d99702e RD |
5999 | if (_argo0) { |
6000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
6003 | return NULL; | |
6004 | } | |
6005 | } | |
cf694132 RD |
6006 | { |
6007 | wxPy_BEGIN_ALLOW_THREADS; | |
6008 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6009 | ||
6010 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6011 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6012 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6013 | _resultobj = Py_None; |
6014 | return _resultobj; | |
6015 | } | |
6016 | ||
6017 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6018 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6019 | PyObject * _resultobj; |
6020 | wxDC * _arg0; | |
6021 | int _arg1; | |
6022 | wxPoint * _arg2; | |
1d99702e RD |
6023 | long _arg3 = (long ) 0; |
6024 | long _arg4 = (long ) 0; | |
6025 | PyObject * _argo0 = 0; | |
e0672e2f | 6026 | int NPOINTS; |
8ab979d7 | 6027 | PyObject * _obj2 = 0; |
eec92d76 | 6028 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
6029 | |
6030 | self = self; | |
1afc06c2 | 6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 6032 | return NULL; |
1d99702e RD |
6033 | if (_argo0) { |
6034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
6037 | return NULL; | |
6038 | } | |
6039 | } | |
6040 | if (_obj2) | |
6041 | { | |
e0672e2f RD |
6042 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6043 | if (_arg2 == NULL) { | |
6044 | return NULL; | |
6045 | } | |
8ab979d7 RD |
6046 | } |
6047 | { | |
e0672e2f | 6048 | _arg1 = NPOINTS; |
8ab979d7 | 6049 | } |
cf694132 RD |
6050 | { |
6051 | wxPy_BEGIN_ALLOW_THREADS; | |
6052 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6053 | ||
6054 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6056 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6057 | _resultobj = Py_None; |
6058 | { | |
6059 | delete [] _arg2; | |
6060 | } | |
6061 | return _resultobj; | |
6062 | } | |
6063 | ||
6064 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 6065 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6066 | PyObject * _resultobj; |
6067 | wxDC * _arg0; | |
6068 | int _arg1; | |
6069 | wxPoint * _arg2; | |
1d99702e RD |
6070 | long _arg3 = (long ) 0; |
6071 | long _arg4 = (long ) 0; | |
6072 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6073 | PyObject * _argo0 = 0; | |
e0672e2f | 6074 | int NPOINTS; |
8ab979d7 | 6075 | PyObject * _obj2 = 0; |
eec92d76 | 6076 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
6077 | |
6078 | self = self; | |
1afc06c2 | 6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 6080 | return NULL; |
1d99702e RD |
6081 | if (_argo0) { |
6082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
6085 | return NULL; | |
6086 | } | |
6087 | } | |
6088 | if (_obj2) | |
6089 | { | |
e0672e2f RD |
6090 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6091 | if (_arg2 == NULL) { | |
6092 | return NULL; | |
6093 | } | |
8ab979d7 RD |
6094 | } |
6095 | { | |
e0672e2f | 6096 | _arg1 = NPOINTS; |
8ab979d7 | 6097 | } |
cf694132 RD |
6098 | { |
6099 | wxPy_BEGIN_ALLOW_THREADS; | |
6100 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6101 | ||
6102 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6103 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6104 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6105 | _resultobj = Py_None; |
6106 | { | |
6107 | delete [] _arg2; | |
6108 | } | |
6109 | return _resultobj; | |
6110 | } | |
6111 | ||
6112 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 6113 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6114 | PyObject * _resultobj; |
6115 | wxDC * _arg0; | |
6116 | long _arg1; | |
6117 | long _arg2; | |
1d99702e | 6118 | PyObject * _argo0 = 0; |
1afc06c2 | 6119 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6120 | |
6121 | self = self; | |
1afc06c2 | 6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6123 | return NULL; |
1d99702e RD |
6124 | if (_argo0) { |
6125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
6128 | return NULL; | |
6129 | } | |
6130 | } | |
cf694132 RD |
6131 | { |
6132 | wxPy_BEGIN_ALLOW_THREADS; | |
6133 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
6134 | ||
6135 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6137 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6138 | _resultobj = Py_None; |
6139 | return _resultobj; | |
6140 | } | |
6141 | ||
6142 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6143 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6144 | PyObject * _resultobj; |
6145 | wxDC * _arg0; | |
6146 | long _arg1; | |
6147 | long _arg2; | |
6148 | long _arg3; | |
6149 | long _arg4; | |
1d99702e | 6150 | PyObject * _argo0 = 0; |
1afc06c2 | 6151 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
6152 | |
6153 | self = self; | |
1afc06c2 | 6154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 6155 | return NULL; |
1d99702e RD |
6156 | if (_argo0) { |
6157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
6160 | return NULL; | |
6161 | } | |
6162 | } | |
cf694132 RD |
6163 | { |
6164 | wxPy_BEGIN_ALLOW_THREADS; | |
6165 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6166 | ||
6167 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6168 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6169 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6170 | _resultobj = Py_None; |
6171 | return _resultobj; | |
6172 | } | |
6173 | ||
6999b0d8 RD |
6174 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6175 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6176 | PyObject * _resultobj; | |
6177 | wxDC * _arg0; | |
6178 | wxString * _arg1; | |
6179 | wxCoord _arg2; | |
6180 | wxCoord _arg3; | |
6181 | double _arg4; | |
6182 | PyObject * _argo0 = 0; | |
6183 | PyObject * _obj1 = 0; | |
6184 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6185 | ||
6186 | self = self; | |
6187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6188 | return NULL; | |
6189 | if (_argo0) { | |
6190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6193 | return NULL; | |
6194 | } | |
6195 | } | |
6196 | { | |
185d7c3e RD |
6197 | #if PYTHON_API_VERSION >= 1009 |
6198 | char* tmpPtr; int tmpSize; | |
6199 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6200 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6201 | return NULL; |
6202 | } | |
6203 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6204 | return NULL; | |
6205 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6206 | #else | |
6999b0d8 RD |
6207 | if (!PyString_Check(_obj1)) { |
6208 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6209 | return NULL; | |
6210 | } | |
185d7c3e RD |
6211 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6212 | #endif | |
6999b0d8 RD |
6213 | } |
6214 | { | |
6215 | wxPy_BEGIN_ALLOW_THREADS; | |
6216 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6217 | ||
6218 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6219 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6220 | } Py_INCREF(Py_None); |
6221 | _resultobj = Py_None; | |
6222 | { | |
6223 | if (_obj1) | |
6224 | delete _arg1; | |
6225 | } | |
6226 | return _resultobj; | |
6227 | } | |
6228 | ||
8ab979d7 | 6229 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 6230 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6231 | PyObject * _resultobj; |
6232 | wxDC * _arg0; | |
6233 | long _arg1; | |
6234 | long _arg2; | |
6235 | long _arg3; | |
6236 | long _arg4; | |
1d99702e RD |
6237 | long _arg5 = (long ) 20; |
6238 | PyObject * _argo0 = 0; | |
1afc06c2 | 6239 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
6240 | |
6241 | self = self; | |
1afc06c2 | 6242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 6243 | return NULL; |
1d99702e RD |
6244 | if (_argo0) { |
6245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
6248 | return NULL; | |
6249 | } | |
6250 | } | |
cf694132 RD |
6251 | { |
6252 | wxPy_BEGIN_ALLOW_THREADS; | |
6253 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6254 | ||
6255 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6256 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6257 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6258 | _resultobj = Py_None; |
6259 | return _resultobj; | |
6260 | } | |
6261 | ||
6262 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 6263 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6264 | PyObject * _resultobj; |
6265 | wxDC * _arg0; | |
6266 | int _arg1; | |
6267 | wxPoint * _arg2; | |
1d99702e | 6268 | PyObject * _argo0 = 0; |
e0672e2f | 6269 | int NPOINTS; |
8ab979d7 | 6270 | PyObject * _obj2 = 0; |
eec92d76 | 6271 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
6272 | |
6273 | self = self; | |
1afc06c2 | 6274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6275 | return NULL; |
1d99702e RD |
6276 | if (_argo0) { |
6277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
6280 | return NULL; | |
6281 | } | |
6282 | } | |
6283 | if (_obj2) | |
6284 | { | |
e0672e2f RD |
6285 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6286 | if (_arg2 == NULL) { | |
6287 | return NULL; | |
6288 | } | |
8ab979d7 RD |
6289 | } |
6290 | { | |
e0672e2f | 6291 | _arg1 = NPOINTS; |
8ab979d7 | 6292 | } |
cf694132 RD |
6293 | { |
6294 | wxPy_BEGIN_ALLOW_THREADS; | |
6295 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
6296 | ||
6297 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6299 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6300 | _resultobj = Py_None; |
6301 | { | |
6302 | delete [] _arg2; | |
6303 | } | |
6304 | return _resultobj; | |
6305 | } | |
6306 | ||
6307 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 6308 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6309 | PyObject * _resultobj; |
6310 | wxDC * _arg0; | |
6311 | wxString * _arg1; | |
6312 | long _arg2; | |
6313 | long _arg3; | |
1d99702e | 6314 | PyObject * _argo0 = 0; |
8ab979d7 | 6315 | PyObject * _obj1 = 0; |
1afc06c2 | 6316 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
6317 | |
6318 | self = self; | |
1afc06c2 | 6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 6320 | return NULL; |
1d99702e RD |
6321 | if (_argo0) { |
6322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
6325 | return NULL; | |
6326 | } | |
6327 | } | |
6328 | { | |
185d7c3e RD |
6329 | #if PYTHON_API_VERSION >= 1009 |
6330 | char* tmpPtr; int tmpSize; | |
6331 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6332 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6333 | return NULL; |
6334 | } | |
6335 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6336 | return NULL; | |
6337 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6338 | #else | |
8ab979d7 RD |
6339 | if (!PyString_Check(_obj1)) { |
6340 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6341 | return NULL; | |
6342 | } | |
185d7c3e RD |
6343 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6344 | #endif | |
8ab979d7 | 6345 | } |
cf694132 RD |
6346 | { |
6347 | wxPy_BEGIN_ALLOW_THREADS; | |
6348 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
6349 | ||
6350 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6353 | _resultobj = Py_None; |
6354 | { | |
6355 | if (_obj1) | |
6356 | delete _arg1; | |
6357 | } | |
6358 | return _resultobj; | |
6359 | } | |
6360 | ||
6361 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 6362 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6363 | PyObject * _resultobj; |
6364 | wxDC * _arg0; | |
1d99702e | 6365 | PyObject * _argo0 = 0; |
1afc06c2 | 6366 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6367 | |
6368 | self = self; | |
1afc06c2 | 6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 6370 | return NULL; |
1d99702e RD |
6371 | if (_argo0) { |
6372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
6375 | return NULL; | |
6376 | } | |
6377 | } | |
cf694132 RD |
6378 | { |
6379 | wxPy_BEGIN_ALLOW_THREADS; | |
6380 | wxDC_EndDoc(_arg0); | |
6381 | ||
6382 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6383 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6384 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6385 | _resultobj = Py_None; |
6386 | return _resultobj; | |
6387 | } | |
6388 | ||
6389 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 6390 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6391 | PyObject * _resultobj; |
6392 | wxDC * _arg0; | |
1d99702e | 6393 | PyObject * _argo0 = 0; |
1afc06c2 | 6394 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6395 | |
6396 | self = self; | |
1afc06c2 | 6397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 6398 | return NULL; |
1d99702e RD |
6399 | if (_argo0) { |
6400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
6403 | return NULL; | |
6404 | } | |
6405 | } | |
cf694132 RD |
6406 | { |
6407 | wxPy_BEGIN_ALLOW_THREADS; | |
6408 | wxDC_EndDrawing(_arg0); | |
6409 | ||
6410 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6411 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6412 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6413 | _resultobj = Py_None; |
6414 | return _resultobj; | |
6415 | } | |
6416 | ||
6417 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 6418 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6419 | PyObject * _resultobj; |
6420 | wxDC * _arg0; | |
1d99702e | 6421 | PyObject * _argo0 = 0; |
1afc06c2 | 6422 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6423 | |
6424 | self = self; | |
1afc06c2 | 6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 6426 | return NULL; |
1d99702e RD |
6427 | if (_argo0) { |
6428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
6431 | return NULL; | |
6432 | } | |
6433 | } | |
cf694132 RD |
6434 | { |
6435 | wxPy_BEGIN_ALLOW_THREADS; | |
6436 | wxDC_EndPage(_arg0); | |
6437 | ||
6438 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6440 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6441 | _resultobj = Py_None; |
6442 | return _resultobj; | |
6443 | } | |
6444 | ||
be4d9c1f | 6445 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 6446 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
6447 | PyObject * _resultobj; |
6448 | wxDC * _arg0; | |
6449 | long _arg1; | |
6450 | long _arg2; | |
6451 | wxColour * _arg3; | |
1d99702e RD |
6452 | int _arg4 = (int ) wxFLOOD_SURFACE; |
6453 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
6454 | wxColour temp; |
6455 | PyObject * _obj3 = 0; | |
1afc06c2 | 6456 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
6457 | |
6458 | self = self; | |
f6bcfd97 | 6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 6460 | return NULL; |
1d99702e RD |
6461 | if (_argo0) { |
6462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
6465 | return NULL; | |
6466 | } | |
6467 | } | |
f6bcfd97 BP |
6468 | { |
6469 | _arg3 = &temp; | |
6470 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 6471 | return NULL; |
f6bcfd97 | 6472 | } |
cf694132 RD |
6473 | { |
6474 | wxPy_BEGIN_ALLOW_THREADS; | |
6475 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
6476 | ||
6477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6479 | } Py_INCREF(Py_None); |
be4d9c1f RD |
6480 | _resultobj = Py_None; |
6481 | return _resultobj; | |
6482 | } | |
6483 | ||
8ab979d7 | 6484 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 6485 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6486 | PyObject * _resultobj; |
6487 | wxBrush * _result; | |
6488 | wxDC * _arg0; | |
1d99702e | 6489 | PyObject * _argo0 = 0; |
1afc06c2 | 6490 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6491 | char _ptemp[128]; |
6492 | ||
6493 | self = self; | |
1afc06c2 | 6494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 6495 | return NULL; |
1d99702e RD |
6496 | if (_argo0) { |
6497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
6500 | return NULL; | |
6501 | } | |
6502 | } | |
cf694132 RD |
6503 | { |
6504 | wxPy_BEGIN_ALLOW_THREADS; | |
6505 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
b8b8dda7 | 6506 | _result = (wxBrush *) &_result_ref; |
cf694132 RD |
6507 | |
6508 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6509 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6510 | } if (_result) { |
6511 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6512 | _resultobj = Py_BuildValue("s",_ptemp); | |
6513 | } else { | |
6514 | Py_INCREF(Py_None); | |
6515 | _resultobj = Py_None; | |
6516 | } | |
8ab979d7 RD |
6517 | return _resultobj; |
6518 | } | |
6519 | ||
6520 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 6521 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6522 | PyObject * _resultobj; |
6523 | wxBrush * _result; | |
6524 | wxDC * _arg0; | |
1d99702e | 6525 | PyObject * _argo0 = 0; |
1afc06c2 | 6526 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6527 | char _ptemp[128]; |
6528 | ||
6529 | self = self; | |
1afc06c2 | 6530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 6531 | return NULL; |
1d99702e RD |
6532 | if (_argo0) { |
6533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
6536 | return NULL; | |
6537 | } | |
6538 | } | |
cf694132 RD |
6539 | { |
6540 | wxPy_BEGIN_ALLOW_THREADS; | |
6541 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
b8b8dda7 | 6542 | _result = (wxBrush *) &_result_ref; |
cf694132 RD |
6543 | |
6544 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6545 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6546 | } if (_result) { |
6547 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6548 | _resultobj = Py_BuildValue("s",_ptemp); | |
6549 | } else { | |
6550 | Py_INCREF(Py_None); | |
6551 | _resultobj = Py_None; | |
6552 | } | |
8ab979d7 RD |
6553 | return _resultobj; |
6554 | } | |
6555 | ||
6556 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 6557 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6558 | PyObject * _resultobj; |
6559 | long _result; | |
6560 | wxDC * _arg0; | |
1d99702e | 6561 | PyObject * _argo0 = 0; |
1afc06c2 | 6562 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6563 | |
6564 | self = self; | |
1afc06c2 | 6565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 6566 | return NULL; |
1d99702e RD |
6567 | if (_argo0) { |
6568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
6571 | return NULL; | |
6572 | } | |
6573 | } | |
cf694132 RD |
6574 | { |
6575 | wxPy_BEGIN_ALLOW_THREADS; | |
6576 | _result = (long )wxDC_GetCharHeight(_arg0); | |
6577 | ||
6578 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6579 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6580 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6581 | return _resultobj; |
6582 | } | |
6583 | ||
6584 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 6585 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6586 | PyObject * _resultobj; |
6587 | long _result; | |
6588 | wxDC * _arg0; | |
1d99702e | 6589 | PyObject * _argo0 = 0; |
1afc06c2 | 6590 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6591 | |
6592 | self = self; | |
1afc06c2 | 6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 6594 | return NULL; |
1d99702e RD |
6595 | if (_argo0) { |
6596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
6599 | return NULL; | |
6600 | } | |
6601 | } | |
cf694132 RD |
6602 | { |
6603 | wxPy_BEGIN_ALLOW_THREADS; | |
6604 | _result = (long )wxDC_GetCharWidth(_arg0); | |
6605 | ||
6606 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6607 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6608 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6609 | return _resultobj; |
6610 | } | |
6611 | ||
6612 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6613 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6614 | PyObject * _resultobj; |
6615 | wxDC * _arg0; | |
6616 | long * _arg1; | |
6617 | long temp; | |
6618 | long * _arg2; | |
6619 | long temp0; | |
6620 | long * _arg3; | |
6621 | long temp1; | |
6622 | long * _arg4; | |
6623 | long temp2; | |
1d99702e | 6624 | PyObject * _argo0 = 0; |
1afc06c2 | 6625 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6626 | |
6627 | self = self; | |
6628 | { | |
6629 | _arg1 = &temp; | |
6630 | } | |
6631 | { | |
6632 | _arg2 = &temp0; | |
6633 | } | |
6634 | { | |
6635 | _arg3 = &temp1; | |
6636 | } | |
6637 | { | |
6638 | _arg4 = &temp2; | |
6639 | } | |
1afc06c2 | 6640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 6641 | return NULL; |
1d99702e RD |
6642 | if (_argo0) { |
6643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
6646 | return NULL; | |
6647 | } | |
6648 | } | |
cf694132 RD |
6649 | { |
6650 | wxPy_BEGIN_ALLOW_THREADS; | |
6651 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6652 | ||
6653 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6654 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6655 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6656 | _resultobj = Py_None; |
6657 | { | |
6658 | PyObject *o; | |
6659 | o = PyInt_FromLong((long) (*_arg1)); | |
6660 | _resultobj = t_output_helper(_resultobj, o); | |
6661 | } | |
6662 | { | |
6663 | PyObject *o; | |
6664 | o = PyInt_FromLong((long) (*_arg2)); | |
6665 | _resultobj = t_output_helper(_resultobj, o); | |
6666 | } | |
6667 | { | |
6668 | PyObject *o; | |
6669 | o = PyInt_FromLong((long) (*_arg3)); | |
6670 | _resultobj = t_output_helper(_resultobj, o); | |
6671 | } | |
6672 | { | |
6673 | PyObject *o; | |
6674 | o = PyInt_FromLong((long) (*_arg4)); | |
6675 | _resultobj = t_output_helper(_resultobj, o); | |
6676 | } | |
6677 | return _resultobj; | |
6678 | } | |
6679 | ||
6680 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 6681 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6682 | PyObject * _resultobj; |
6683 | wxFont * _result; | |
6684 | wxDC * _arg0; | |
1d99702e | 6685 | PyObject * _argo0 = 0; |
1afc06c2 | 6686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6687 | char _ptemp[128]; |
6688 | ||
6689 | self = self; | |
1afc06c2 | 6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 6691 | return NULL; |
1d99702e RD |
6692 | if (_argo0) { |
6693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
6696 | return NULL; | |
6697 | } | |
6698 | } | |
cf694132 RD |
6699 | { |
6700 | wxPy_BEGIN_ALLOW_THREADS; | |
6701 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
b8b8dda7 | 6702 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
6703 | |
6704 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6705 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6706 | } if (_result) { |
6707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
6708 | _resultobj = Py_BuildValue("s",_ptemp); | |
6709 | } else { | |
6710 | Py_INCREF(Py_None); | |
6711 | _resultobj = Py_None; | |
6712 | } | |
8ab979d7 RD |
6713 | return _resultobj; |
6714 | } | |
6715 | ||
6716 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 6717 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6718 | PyObject * _resultobj; |
6719 | int _result; | |
6720 | wxDC * _arg0; | |
1d99702e | 6721 | PyObject * _argo0 = 0; |
1afc06c2 | 6722 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6723 | |
6724 | self = self; | |
1afc06c2 | 6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 6726 | return NULL; |
1d99702e RD |
6727 | if (_argo0) { |
6728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
6731 | return NULL; | |
6732 | } | |
6733 | } | |
cf694132 RD |
6734 | { |
6735 | wxPy_BEGIN_ALLOW_THREADS; | |
6736 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
6737 | ||
6738 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6740 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6741 | return _resultobj; |
6742 | } | |
6743 | ||
eec92d76 RD |
6744 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
6745 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6746 | PyObject * _resultobj; | |
6747 | wxDC * _arg0; | |
6748 | double * _arg1; | |
6749 | double temp; | |
6750 | double * _arg2; | |
6751 | double temp0; | |
6752 | PyObject * _argo0 = 0; | |
6753 | char *_kwnames[] = { "self", NULL }; | |
6754 | ||
6755 | self = self; | |
6756 | { | |
6757 | _arg1 = &temp; | |
6758 | } | |
6759 | { | |
6760 | _arg2 = &temp0; | |
6761 | } | |
6762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
6763 | return NULL; | |
6764 | if (_argo0) { | |
6765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
6768 | return NULL; | |
6769 | } | |
6770 | } | |
6771 | { | |
6772 | wxPy_BEGIN_ALLOW_THREADS; | |
6773 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
6774 | ||
6775 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6776 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
6777 | } Py_INCREF(Py_None); |
6778 | _resultobj = Py_None; | |
6779 | { | |
6780 | PyObject *o; | |
6781 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6782 | _resultobj = t_output_helper(_resultobj, o); | |
6783 | } | |
6784 | { | |
6785 | PyObject *o; | |
6786 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6787 | _resultobj = t_output_helper(_resultobj, o); | |
6788 | } | |
6789 | return _resultobj; | |
6790 | } | |
6791 | ||
8ab979d7 | 6792 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 6793 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6794 | PyObject * _resultobj; |
6795 | int _result; | |
6796 | wxDC * _arg0; | |
1d99702e | 6797 | PyObject * _argo0 = 0; |
1afc06c2 | 6798 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6799 | |
6800 | self = self; | |
1afc06c2 | 6801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 6802 | return NULL; |
1d99702e RD |
6803 | if (_argo0) { |
6804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
6807 | return NULL; | |
6808 | } | |
6809 | } | |
cf694132 RD |
6810 | { |
6811 | wxPy_BEGIN_ALLOW_THREADS; | |
6812 | _result = (int )wxDC_GetMapMode(_arg0); | |
6813 | ||
6814 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6816 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6817 | return _resultobj; |
6818 | } | |
6819 | ||
6820 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 6821 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6822 | PyObject * _resultobj; |
6823 | bool _result; | |
6824 | wxDC * _arg0; | |
1d99702e | 6825 | PyObject * _argo0 = 0; |
1afc06c2 | 6826 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6827 | |
6828 | self = self; | |
1afc06c2 | 6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 6830 | return NULL; |
1d99702e RD |
6831 | if (_argo0) { |
6832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
6835 | return NULL; | |
6836 | } | |
6837 | } | |
cf694132 RD |
6838 | { |
6839 | wxPy_BEGIN_ALLOW_THREADS; | |
6840 | _result = (bool )wxDC_GetOptimization(_arg0); | |
6841 | ||
6842 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6843 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6844 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6845 | return _resultobj; |
6846 | } | |
6847 | ||
6848 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 6849 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6850 | PyObject * _resultobj; |
6851 | wxPen * _result; | |
6852 | wxDC * _arg0; | |
1d99702e | 6853 | PyObject * _argo0 = 0; |
1afc06c2 | 6854 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6855 | char _ptemp[128]; |
6856 | ||
6857 | self = self; | |
1afc06c2 | 6858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 6859 | return NULL; |
1d99702e RD |
6860 | if (_argo0) { |
6861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
6864 | return NULL; | |
6865 | } | |
6866 | } | |
cf694132 RD |
6867 | { |
6868 | wxPy_BEGIN_ALLOW_THREADS; | |
6869 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
b8b8dda7 | 6870 | _result = (wxPen *) &_result_ref; |
cf694132 RD |
6871 | |
6872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6873 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6874 | } if (_result) { |
6875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6876 | _resultobj = Py_BuildValue("s",_ptemp); | |
6877 | } else { | |
6878 | Py_INCREF(Py_None); | |
6879 | _resultobj = Py_None; | |
6880 | } | |
8ab979d7 RD |
6881 | return _resultobj; |
6882 | } | |
6883 | ||
6884 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
6885 | wxColour* wc = new wxColour(); | |
6886 | self->GetPixel(x, y, wc); | |
6887 | return wc; | |
6888 | } | |
1afc06c2 | 6889 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6890 | PyObject * _resultobj; |
6891 | wxColour * _result; | |
6892 | wxDC * _arg0; | |
6893 | long _arg1; | |
6894 | long _arg2; | |
1d99702e | 6895 | PyObject * _argo0 = 0; |
1afc06c2 | 6896 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6897 | char _ptemp[128]; |
6898 | ||
6899 | self = self; | |
1afc06c2 | 6900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6901 | return NULL; |
1d99702e RD |
6902 | if (_argo0) { |
6903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
6906 | return NULL; | |
6907 | } | |
6908 | } | |
cf694132 RD |
6909 | { |
6910 | wxPy_BEGIN_ALLOW_THREADS; | |
6911 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
6912 | ||
6913 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6914 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6915 | } if (_result) { |
6916 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6917 | _resultobj = Py_BuildValue("s",_ptemp); | |
6918 | } else { | |
6919 | Py_INCREF(Py_None); | |
6920 | _resultobj = Py_None; | |
6921 | } | |
8ab979d7 RD |
6922 | return _resultobj; |
6923 | } | |
6924 | ||
bb0054cd | 6925 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 6926 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6927 | PyObject * _resultobj; |
6928 | wxDC * _arg0; | |
6929 | int * _arg1; | |
6930 | int temp; | |
6931 | int * _arg2; | |
6932 | int temp0; | |
1d99702e | 6933 | PyObject * _argo0 = 0; |
1afc06c2 | 6934 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6935 | |
6936 | self = self; | |
6937 | { | |
6938 | _arg1 = &temp; | |
6939 | } | |
6940 | { | |
6941 | _arg2 = &temp0; | |
6942 | } | |
1afc06c2 | 6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 6944 | return NULL; |
1d99702e RD |
6945 | if (_argo0) { |
6946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
6949 | return NULL; |
6950 | } | |
6951 | } | |
cf694132 RD |
6952 | { |
6953 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 6954 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 RD |
6955 | |
6956 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6958 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6959 | _resultobj = Py_None; |
6960 | { | |
6961 | PyObject *o; | |
6962 | o = PyInt_FromLong((long) (*_arg1)); | |
6963 | _resultobj = t_output_helper(_resultobj, o); | |
6964 | } | |
6965 | { | |
6966 | PyObject *o; | |
6967 | o = PyInt_FromLong((long) (*_arg2)); | |
6968 | _resultobj = t_output_helper(_resultobj, o); | |
6969 | } | |
6970 | return _resultobj; | |
6971 | } | |
6972 | ||
bb0054cd | 6973 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 6974 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6975 | PyObject * _resultobj; |
6976 | wxSize * _result; | |
6977 | wxDC * _arg0; | |
1d99702e | 6978 | PyObject * _argo0 = 0; |
1afc06c2 | 6979 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
6980 | char _ptemp[128]; |
6981 | ||
6982 | self = self; | |
1afc06c2 | 6983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 6984 | return NULL; |
1d99702e RD |
6985 | if (_argo0) { |
6986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
6988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
6989 | return NULL; | |
6990 | } | |
6991 | } | |
6992 | { | |
6993 | wxPy_BEGIN_ALLOW_THREADS; | |
6994 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
6995 | ||
6996 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6997 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6998 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
6999 | _resultobj = Py_BuildValue("s",_ptemp); | |
7000 | return _resultobj; | |
7001 | } | |
7002 | ||
eec92d76 RD |
7003 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
7004 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7005 | PyObject * _resultobj; | |
7006 | wxSize * _result; | |
7007 | wxDC * _arg0; | |
7008 | PyObject * _argo0 = 0; | |
7009 | char *_kwnames[] = { "self", NULL }; | |
7010 | char _ptemp[128]; | |
7011 | ||
7012 | self = self; | |
7013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7014 | return NULL; | |
7015 | if (_argo0) { | |
7016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7019 | return NULL; | |
7020 | } | |
7021 | } | |
7022 | { | |
7023 | wxPy_BEGIN_ALLOW_THREADS; | |
7024 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
7025 | ||
7026 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7027 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7028 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7029 | _resultobj = Py_BuildValue("s",_ptemp); | |
7030 | return _resultobj; | |
7031 | } | |
7032 | ||
8ab979d7 | 7033 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 7034 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7035 | PyObject * _resultobj; |
7036 | wxColour * _result; | |
7037 | wxDC * _arg0; | |
1d99702e | 7038 | PyObject * _argo0 = 0; |
1afc06c2 | 7039 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7040 | char _ptemp[128]; |
7041 | ||
7042 | self = self; | |
1afc06c2 | 7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 7044 | return NULL; |
1d99702e RD |
7045 | if (_argo0) { |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
cf694132 RD |
7052 | { |
7053 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 7054 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 RD |
7055 | |
7056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7057 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
7058 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7059 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7060 | return _resultobj; |
7061 | } | |
7062 | ||
af309447 | 7063 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7064 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7065 | PyObject * _resultobj; |
7066 | wxDC * _arg0; | |
7067 | wxString * _arg1; | |
7068 | long * _arg2; | |
7069 | long temp; | |
7070 | long * _arg3; | |
7071 | long temp0; | |
1d99702e | 7072 | PyObject * _argo0 = 0; |
af309447 | 7073 | PyObject * _obj1 = 0; |
1afc06c2 | 7074 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
7075 | |
7076 | self = self; | |
7077 | { | |
7078 | _arg2 = &temp; | |
7079 | } | |
7080 | { | |
7081 | _arg3 = &temp0; | |
7082 | } | |
1afc06c2 | 7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 7084 | return NULL; |
1d99702e RD |
7085 | if (_argo0) { |
7086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
7088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
7089 | return NULL; | |
7090 | } | |
7091 | } | |
7092 | { | |
185d7c3e RD |
7093 | #if PYTHON_API_VERSION >= 1009 |
7094 | char* tmpPtr; int tmpSize; | |
7095 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7096 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7097 | return NULL; |
7098 | } | |
7099 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7100 | return NULL; | |
7101 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7102 | #else | |
af309447 RD |
7103 | if (!PyString_Check(_obj1)) { |
7104 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7105 | return NULL; | |
7106 | } | |
185d7c3e RD |
7107 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7108 | #endif | |
af309447 | 7109 | } |
cf694132 RD |
7110 | { |
7111 | wxPy_BEGIN_ALLOW_THREADS; | |
7112 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
7113 | ||
7114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7115 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7116 | } Py_INCREF(Py_None); |
af309447 RD |
7117 | _resultobj = Py_None; |
7118 | { | |
7119 | PyObject *o; | |
7120 | o = PyInt_FromLong((long) (*_arg2)); | |
7121 | _resultobj = t_output_helper(_resultobj, o); | |
7122 | } | |
7123 | { | |
7124 | PyObject *o; | |
7125 | o = PyInt_FromLong((long) (*_arg3)); | |
7126 | _resultobj = t_output_helper(_resultobj, o); | |
7127 | } | |
7128 | { | |
7129 | if (_obj1) | |
7130 | delete _arg1; | |
7131 | } | |
7132 | return _resultobj; | |
7133 | } | |
7134 | ||
7135 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7136 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7137 | PyObject * _resultobj; |
7138 | wxDC * _arg0; | |
7139 | wxString * _arg1; | |
7140 | long * _arg2; | |
7141 | long temp; | |
7142 | long * _arg3; | |
7143 | long temp0; | |
7144 | long * _arg4; | |
7145 | long temp1; | |
7146 | long * _arg5; | |
7147 | long temp2; | |
1d99702e RD |
7148 | wxFont * _arg6 = (wxFont *) NULL; |
7149 | PyObject * _argo0 = 0; | |
8ab979d7 | 7150 | PyObject * _obj1 = 0; |
1d99702e | 7151 | PyObject * _argo6 = 0; |
1afc06c2 | 7152 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
7153 | |
7154 | self = self; | |
7155 | { | |
7156 | _arg2 = &temp; | |
7157 | } | |
7158 | { | |
7159 | _arg3 = &temp0; | |
7160 | } | |
7161 | { | |
7162 | _arg4 = &temp1; | |
7163 | } | |
7164 | { | |
7165 | _arg5 = &temp2; | |
7166 | } | |
1afc06c2 | 7167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 7168 | return NULL; |
1d99702e RD |
7169 | if (_argo0) { |
7170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 7172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
7173 | return NULL; |
7174 | } | |
7175 | } | |
7176 | { | |
185d7c3e RD |
7177 | #if PYTHON_API_VERSION >= 1009 |
7178 | char* tmpPtr; int tmpSize; | |
7179 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7180 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7181 | return NULL; |
7182 | } | |
7183 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7184 | return NULL; | |
7185 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7186 | #else | |
8ab979d7 RD |
7187 | if (!PyString_Check(_obj1)) { |
7188 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7189 | return NULL; | |
7190 | } | |
185d7c3e RD |
7191 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7192 | #endif | |
8ab979d7 | 7193 | } |
1d99702e RD |
7194 | if (_argo6) { |
7195 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7196 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
7197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
7198 | return NULL; | |
7199 | } | |
7200 | } | |
cf694132 RD |
7201 | { |
7202 | wxPy_BEGIN_ALLOW_THREADS; | |
7203 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7204 | ||
7205 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7206 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7207 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7208 | _resultobj = Py_None; |
7209 | { | |
7210 | PyObject *o; | |
7211 | o = PyInt_FromLong((long) (*_arg2)); | |
7212 | _resultobj = t_output_helper(_resultobj, o); | |
7213 | } | |
7214 | { | |
7215 | PyObject *o; | |
7216 | o = PyInt_FromLong((long) (*_arg3)); | |
7217 | _resultobj = t_output_helper(_resultobj, o); | |
7218 | } | |
7219 | { | |
7220 | PyObject *o; | |
7221 | o = PyInt_FromLong((long) (*_arg4)); | |
7222 | _resultobj = t_output_helper(_resultobj, o); | |
7223 | } | |
7224 | { | |
7225 | PyObject *o; | |
7226 | o = PyInt_FromLong((long) (*_arg5)); | |
7227 | _resultobj = t_output_helper(_resultobj, o); | |
7228 | } | |
7229 | { | |
7230 | if (_obj1) | |
7231 | delete _arg1; | |
7232 | } | |
7233 | return _resultobj; | |
7234 | } | |
7235 | ||
7236 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 7237 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7238 | PyObject * _resultobj; |
7239 | wxColour * _result; | |
7240 | wxDC * _arg0; | |
1d99702e | 7241 | PyObject * _argo0 = 0; |
1afc06c2 | 7242 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7243 | char _ptemp[128]; |
7244 | ||
7245 | self = self; | |
1afc06c2 | 7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 7247 | return NULL; |
1d99702e RD |
7248 | if (_argo0) { |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
cf694132 RD |
7255 | { |
7256 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 7257 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 RD |
7258 | |
7259 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7260 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
7261 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7262 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7263 | return _resultobj; |
7264 | } | |
7265 | ||
eec92d76 RD |
7266 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
7267 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7268 | PyObject * _resultobj; | |
7269 | wxDC * _arg0; | |
7270 | double * _arg1; | |
7271 | double temp; | |
7272 | double * _arg2; | |
7273 | double temp0; | |
7274 | PyObject * _argo0 = 0; | |
7275 | char *_kwnames[] = { "self", NULL }; | |
7276 | ||
7277 | self = self; | |
7278 | { | |
7279 | _arg1 = &temp; | |
7280 | } | |
7281 | { | |
7282 | _arg2 = &temp0; | |
7283 | } | |
7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7285 | return NULL; | |
7286 | if (_argo0) { | |
7287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7290 | return NULL; | |
7291 | } | |
7292 | } | |
7293 | { | |
7294 | wxPy_BEGIN_ALLOW_THREADS; | |
7295 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
7296 | ||
7297 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7298 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7299 | } Py_INCREF(Py_None); |
7300 | _resultobj = Py_None; | |
7301 | { | |
7302 | PyObject *o; | |
7303 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7304 | _resultobj = t_output_helper(_resultobj, o); | |
7305 | } | |
7306 | { | |
7307 | PyObject *o; | |
7308 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7309 | _resultobj = t_output_helper(_resultobj, o); | |
7310 | } | |
7311 | return _resultobj; | |
7312 | } | |
7313 | ||
8ab979d7 | 7314 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 7315 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7316 | PyObject * _resultobj; |
7317 | long _result; | |
7318 | wxDC * _arg0; | |
7319 | long _arg1; | |
1d99702e | 7320 | PyObject * _argo0 = 0; |
1afc06c2 | 7321 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7322 | |
7323 | self = self; | |
1afc06c2 | 7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7325 | return NULL; |
1d99702e RD |
7326 | if (_argo0) { |
7327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
7330 | return NULL; | |
7331 | } | |
7332 | } | |
cf694132 RD |
7333 | { |
7334 | wxPy_BEGIN_ALLOW_THREADS; | |
7335 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
7336 | ||
7337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7339 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7340 | return _resultobj; |
7341 | } | |
7342 | ||
7343 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 7344 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7345 | PyObject * _resultobj; |
7346 | long _result; | |
7347 | wxDC * _arg0; | |
7348 | long _arg1; | |
1d99702e | 7349 | PyObject * _argo0 = 0; |
1afc06c2 | 7350 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7351 | |
7352 | self = self; | |
1afc06c2 | 7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7354 | return NULL; |
1d99702e RD |
7355 | if (_argo0) { |
7356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
7359 | return NULL; | |
7360 | } | |
7361 | } | |
cf694132 RD |
7362 | { |
7363 | wxPy_BEGIN_ALLOW_THREADS; | |
7364 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
7365 | ||
7366 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7367 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7368 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7369 | return _resultobj; |
7370 | } | |
7371 | ||
7372 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 7373 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7374 | PyObject * _resultobj; |
7375 | long _result; | |
7376 | wxDC * _arg0; | |
7377 | long _arg1; | |
1d99702e | 7378 | PyObject * _argo0 = 0; |
1afc06c2 | 7379 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7380 | |
7381 | self = self; | |
1afc06c2 | 7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7383 | return NULL; |
1d99702e RD |
7384 | if (_argo0) { |
7385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
7388 | return NULL; | |
7389 | } | |
7390 | } | |
cf694132 RD |
7391 | { |
7392 | wxPy_BEGIN_ALLOW_THREADS; | |
7393 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
7394 | ||
7395 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7396 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7397 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7398 | return _resultobj; |
7399 | } | |
7400 | ||
7401 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 7402 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7403 | PyObject * _resultobj; |
7404 | long _result; | |
7405 | wxDC * _arg0; | |
7406 | long _arg1; | |
1d99702e | 7407 | PyObject * _argo0 = 0; |
1afc06c2 | 7408 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7409 | |
7410 | self = self; | |
1afc06c2 | 7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7412 | return NULL; |
1d99702e RD |
7413 | if (_argo0) { |
7414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
7417 | return NULL; | |
7418 | } | |
7419 | } | |
cf694132 RD |
7420 | { |
7421 | wxPy_BEGIN_ALLOW_THREADS; | |
7422 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
7423 | ||
7424 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7426 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7427 | return _resultobj; |
7428 | } | |
7429 | ||
7430 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 7431 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7432 | PyObject * _resultobj; |
7433 | long _result; | |
7434 | wxDC * _arg0; | |
1d99702e | 7435 | PyObject * _argo0 = 0; |
1afc06c2 | 7436 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7437 | |
7438 | self = self; | |
1afc06c2 | 7439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 7440 | return NULL; |
1d99702e RD |
7441 | if (_argo0) { |
7442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
7445 | return NULL; | |
7446 | } | |
7447 | } | |
cf694132 RD |
7448 | { |
7449 | wxPy_BEGIN_ALLOW_THREADS; | |
7450 | _result = (long )wxDC_MaxX(_arg0); | |
7451 | ||
7452 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7453 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7454 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7455 | return _resultobj; |
7456 | } | |
7457 | ||
7458 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 7459 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7460 | PyObject * _resultobj; |
7461 | long _result; | |
7462 | wxDC * _arg0; | |
1d99702e | 7463 | PyObject * _argo0 = 0; |
1afc06c2 | 7464 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7465 | |
7466 | self = self; | |
1afc06c2 | 7467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 7468 | return NULL; |
1d99702e RD |
7469 | if (_argo0) { |
7470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
7473 | return NULL; | |
7474 | } | |
7475 | } | |
cf694132 RD |
7476 | { |
7477 | wxPy_BEGIN_ALLOW_THREADS; | |
7478 | _result = (long )wxDC_MaxY(_arg0); | |
7479 | ||
7480 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7481 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7482 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7483 | return _resultobj; |
7484 | } | |
7485 | ||
7486 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 7487 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7488 | PyObject * _resultobj; |
7489 | long _result; | |
7490 | wxDC * _arg0; | |
1d99702e | 7491 | PyObject * _argo0 = 0; |
1afc06c2 | 7492 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7493 | |
7494 | self = self; | |
1afc06c2 | 7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 7496 | return NULL; |
1d99702e RD |
7497 | if (_argo0) { |
7498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
7501 | return NULL; | |
7502 | } | |
7503 | } | |
cf694132 RD |
7504 | { |
7505 | wxPy_BEGIN_ALLOW_THREADS; | |
7506 | _result = (long )wxDC_MinX(_arg0); | |
7507 | ||
7508 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7510 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7511 | return _resultobj; |
7512 | } | |
7513 | ||
7514 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 7515 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7516 | PyObject * _resultobj; |
7517 | long _result; | |
7518 | wxDC * _arg0; | |
1d99702e | 7519 | PyObject * _argo0 = 0; |
1afc06c2 | 7520 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7521 | |
7522 | self = self; | |
1afc06c2 | 7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 7524 | return NULL; |
1d99702e RD |
7525 | if (_argo0) { |
7526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
7529 | return NULL; | |
7530 | } | |
7531 | } | |
cf694132 RD |
7532 | { |
7533 | wxPy_BEGIN_ALLOW_THREADS; | |
7534 | _result = (long )wxDC_MinY(_arg0); | |
7535 | ||
7536 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7538 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7539 | return _resultobj; |
7540 | } | |
7541 | ||
7542 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 7543 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7544 | PyObject * _resultobj; |
7545 | bool _result; | |
7546 | wxDC * _arg0; | |
1d99702e | 7547 | PyObject * _argo0 = 0; |
1afc06c2 | 7548 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7549 | |
7550 | self = self; | |
1afc06c2 | 7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 7552 | return NULL; |
1d99702e RD |
7553 | if (_argo0) { |
7554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
7557 | return NULL; | |
7558 | } | |
7559 | } | |
cf694132 RD |
7560 | { |
7561 | wxPy_BEGIN_ALLOW_THREADS; | |
7562 | _result = (bool )wxDC_Ok(_arg0); | |
7563 | ||
7564 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7565 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7566 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7567 | return _resultobj; |
7568 | } | |
7569 | ||
7570 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 7571 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7572 | PyObject * _resultobj; |
7573 | wxDC * _arg0; | |
7574 | long _arg1; | |
7575 | long _arg2; | |
1d99702e | 7576 | PyObject * _argo0 = 0; |
1afc06c2 | 7577 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7578 | |
7579 | self = self; | |
1afc06c2 | 7580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7581 | return NULL; |
1d99702e RD |
7582 | if (_argo0) { |
7583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
7586 | return NULL; | |
7587 | } | |
7588 | } | |
cf694132 RD |
7589 | { |
7590 | wxPy_BEGIN_ALLOW_THREADS; | |
7591 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
7592 | ||
7593 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7594 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7595 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7596 | _resultobj = Py_None; |
7597 | return _resultobj; | |
7598 | } | |
7599 | ||
7600 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 7601 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7602 | PyObject * _resultobj; |
7603 | wxDC * _arg0; | |
7604 | wxBrush * _arg1; | |
1d99702e RD |
7605 | PyObject * _argo0 = 0; |
7606 | PyObject * _argo1 = 0; | |
1afc06c2 | 7607 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
7608 | |
7609 | self = self; | |
1afc06c2 | 7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7611 | return NULL; |
1d99702e RD |
7612 | if (_argo0) { |
7613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
7616 | return NULL; | |
7617 | } | |
7618 | } | |
1d99702e RD |
7619 | if (_argo1) { |
7620 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7621 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
7622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
7623 | return NULL; | |
7624 | } | |
7625 | } | |
cf694132 RD |
7626 | { |
7627 | wxPy_BEGIN_ALLOW_THREADS; | |
7628 | wxDC_SetBackground(_arg0,*_arg1); | |
7629 | ||
7630 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7631 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7632 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7633 | _resultobj = Py_None; |
7634 | return _resultobj; | |
7635 | } | |
7636 | ||
7637 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 7638 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7639 | PyObject * _resultobj; |
7640 | wxDC * _arg0; | |
7641 | int _arg1; | |
1d99702e | 7642 | PyObject * _argo0 = 0; |
1afc06c2 | 7643 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
7644 | |
7645 | self = self; | |
1afc06c2 | 7646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7647 | return NULL; |
1d99702e RD |
7648 | if (_argo0) { |
7649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
7652 | return NULL; | |
7653 | } | |
7654 | } | |
cf694132 RD |
7655 | { |
7656 | wxPy_BEGIN_ALLOW_THREADS; | |
7657 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
7658 | ||
7659 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7661 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7662 | _resultobj = Py_None; |
7663 | return _resultobj; | |
7664 | } | |
7665 | ||
7666 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7667 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7668 | PyObject * _resultobj; |
7669 | wxDC * _arg0; | |
7670 | long _arg1; | |
7671 | long _arg2; | |
7672 | long _arg3; | |
7673 | long _arg4; | |
1d99702e | 7674 | PyObject * _argo0 = 0; |
1afc06c2 | 7675 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7676 | |
7677 | self = self; | |
1afc06c2 | 7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7679 | return NULL; |
1d99702e RD |
7680 | if (_argo0) { |
7681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
7684 | return NULL; | |
7685 | } | |
7686 | } | |
cf694132 RD |
7687 | { |
7688 | wxPy_BEGIN_ALLOW_THREADS; | |
7689 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7690 | ||
7691 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7692 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7693 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7694 | _resultobj = Py_None; |
7695 | return _resultobj; | |
7696 | } | |
7697 | ||
7698 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
1afc06c2 | 7699 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7700 | PyObject * _resultobj; |
7701 | wxDC * _arg0; | |
7702 | wxPalette * _arg1; | |
1d99702e RD |
7703 | PyObject * _argo0 = 0; |
7704 | PyObject * _argo1 = 0; | |
1afc06c2 | 7705 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
7706 | |
7707 | self = self; | |
1afc06c2 | 7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7709 | return NULL; |
1d99702e RD |
7710 | if (_argo0) { |
7711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
7714 | return NULL; | |
7715 | } | |
7716 | } | |
1d99702e RD |
7717 | if (_argo1) { |
7718 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7719 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
7720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
7721 | return NULL; | |
7722 | } | |
7723 | } | |
cf694132 RD |
7724 | { |
7725 | wxPy_BEGIN_ALLOW_THREADS; | |
7726 | wxDC_SetPalette(_arg0,*_arg1); | |
7727 | ||
7728 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7730 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7731 | _resultobj = Py_None; |
7732 | return _resultobj; | |
7733 | } | |
7734 | ||
7735 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 7736 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7737 | PyObject * _resultobj; |
7738 | wxDC * _arg0; | |
7739 | wxBrush * _arg1; | |
1d99702e RD |
7740 | PyObject * _argo0 = 0; |
7741 | PyObject * _argo1 = 0; | |
1afc06c2 | 7742 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
7743 | |
7744 | self = self; | |
1afc06c2 | 7745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7746 | return NULL; |
1d99702e RD |
7747 | if (_argo0) { |
7748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
7751 | return NULL; | |
7752 | } | |
7753 | } | |
1d99702e RD |
7754 | if (_argo1) { |
7755 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7756 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
7757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
7758 | return NULL; | |
7759 | } | |
7760 | } | |
cf694132 RD |
7761 | { |
7762 | wxPy_BEGIN_ALLOW_THREADS; | |
7763 | wxDC_SetBrush(_arg0,*_arg1); | |
7764 | ||
7765 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7766 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7767 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7768 | _resultobj = Py_None; |
7769 | return _resultobj; | |
7770 | } | |
7771 | ||
7772 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 7773 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7774 | PyObject * _resultobj; |
7775 | wxDC * _arg0; | |
7776 | wxFont * _arg1; | |
1d99702e RD |
7777 | PyObject * _argo0 = 0; |
7778 | PyObject * _argo1 = 0; | |
1afc06c2 | 7779 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
7780 | |
7781 | self = self; | |
1afc06c2 | 7782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7783 | return NULL; |
1d99702e RD |
7784 | if (_argo0) { |
7785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
7788 | return NULL; | |
7789 | } | |
7790 | } | |
1d99702e RD |
7791 | if (_argo1) { |
7792 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7793 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
7794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
7795 | return NULL; | |
7796 | } | |
7797 | } | |
cf694132 RD |
7798 | { |
7799 | wxPy_BEGIN_ALLOW_THREADS; | |
7800 | wxDC_SetFont(_arg0,*_arg1); | |
7801 | ||
7802 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7804 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7805 | _resultobj = Py_None; |
7806 | return _resultobj; | |
7807 | } | |
7808 | ||
7809 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 7810 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7811 | PyObject * _resultobj; |
7812 | wxDC * _arg0; | |
7813 | int _arg1; | |
1d99702e | 7814 | PyObject * _argo0 = 0; |
1afc06c2 | 7815 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
7816 | |
7817 | self = self; | |
1afc06c2 | 7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7819 | return NULL; |
1d99702e RD |
7820 | if (_argo0) { |
7821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
7824 | return NULL; | |
7825 | } | |
7826 | } | |
cf694132 RD |
7827 | { |
7828 | wxPy_BEGIN_ALLOW_THREADS; | |
7829 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
7830 | ||
7831 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7832 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7833 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7834 | _resultobj = Py_None; |
7835 | return _resultobj; | |
7836 | } | |
7837 | ||
eec92d76 RD |
7838 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
7839 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7840 | PyObject * _resultobj; | |
7841 | wxDC * _arg0; | |
7842 | double _arg1; | |
7843 | double _arg2; | |
7844 | PyObject * _argo0 = 0; | |
7845 | char *_kwnames[] = { "self","x","y", NULL }; | |
7846 | ||
7847 | self = self; | |
7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7849 | return NULL; | |
7850 | if (_argo0) { | |
7851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7854 | return NULL; | |
7855 | } | |
7856 | } | |
7857 | { | |
7858 | wxPy_BEGIN_ALLOW_THREADS; | |
7859 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
7860 | ||
7861 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7862 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7863 | } Py_INCREF(Py_None); |
7864 | _resultobj = Py_None; | |
7865 | return _resultobj; | |
7866 | } | |
7867 | ||
8ab979d7 | 7868 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 7869 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7870 | PyObject * _resultobj; |
7871 | wxDC * _arg0; | |
7872 | int _arg1; | |
1d99702e | 7873 | PyObject * _argo0 = 0; |
1afc06c2 | 7874 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
7875 | |
7876 | self = self; | |
1afc06c2 | 7877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7878 | return NULL; |
1d99702e RD |
7879 | if (_argo0) { |
7880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
7883 | return NULL; | |
7884 | } | |
7885 | } | |
cf694132 RD |
7886 | { |
7887 | wxPy_BEGIN_ALLOW_THREADS; | |
7888 | wxDC_SetMapMode(_arg0,_arg1); | |
7889 | ||
7890 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7891 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7892 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7893 | _resultobj = Py_None; |
7894 | return _resultobj; | |
7895 | } | |
7896 | ||
7897 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 7898 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7899 | PyObject * _resultobj; |
7900 | wxDC * _arg0; | |
7901 | bool _arg1; | |
1d99702e | 7902 | PyObject * _argo0 = 0; |
8ab979d7 | 7903 | int tempbool1; |
1afc06c2 | 7904 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
7905 | |
7906 | self = self; | |
1afc06c2 | 7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 7908 | return NULL; |
1d99702e RD |
7909 | if (_argo0) { |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
7913 | return NULL; | |
7914 | } | |
7915 | } | |
7916 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
7917 | { |
7918 | wxPy_BEGIN_ALLOW_THREADS; | |
7919 | wxDC_SetOptimization(_arg0,_arg1); | |
7920 | ||
7921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7923 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7924 | _resultobj = Py_None; |
7925 | return _resultobj; | |
7926 | } | |
7927 | ||
7928 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 7929 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7930 | PyObject * _resultobj; |
7931 | wxDC * _arg0; | |
7932 | wxPen * _arg1; | |
1d99702e RD |
7933 | PyObject * _argo0 = 0; |
7934 | PyObject * _argo1 = 0; | |
1afc06c2 | 7935 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
7936 | |
7937 | self = self; | |
1afc06c2 | 7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7939 | return NULL; |
1d99702e RD |
7940 | if (_argo0) { |
7941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
7944 | return NULL; | |
7945 | } | |
7946 | } | |
1d99702e RD |
7947 | if (_argo1) { |
7948 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7949 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
7950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
7951 | return NULL; | |
7952 | } | |
7953 | } | |
cf694132 RD |
7954 | { |
7955 | wxPy_BEGIN_ALLOW_THREADS; | |
7956 | wxDC_SetPen(_arg0,*_arg1); | |
7957 | ||
7958 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7960 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7961 | _resultobj = Py_None; |
7962 | return _resultobj; | |
7963 | } | |
7964 | ||
7965 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 7966 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7967 | PyObject * _resultobj; |
7968 | wxDC * _arg0; | |
7969 | wxColour * _arg1; | |
1d99702e | 7970 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7971 | wxColour temp; |
7972 | PyObject * _obj1 = 0; | |
1afc06c2 | 7973 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
7974 | |
7975 | self = self; | |
f6bcfd97 | 7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7977 | return NULL; |
1d99702e RD |
7978 | if (_argo0) { |
7979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
7982 | return NULL; | |
7983 | } | |
7984 | } | |
f6bcfd97 BP |
7985 | { |
7986 | _arg1 = &temp; | |
7987 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 7988 | return NULL; |
f6bcfd97 | 7989 | } |
cf694132 RD |
7990 | { |
7991 | wxPy_BEGIN_ALLOW_THREADS; | |
7992 | wxDC_SetTextBackground(_arg0,*_arg1); | |
7993 | ||
7994 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7995 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7996 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7997 | _resultobj = Py_None; |
7998 | return _resultobj; | |
7999 | } | |
8000 | ||
8001 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 8002 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8003 | PyObject * _resultobj; |
8004 | wxDC * _arg0; | |
8005 | wxColour * _arg1; | |
1d99702e | 8006 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8007 | wxColour temp; |
8008 | PyObject * _obj1 = 0; | |
1afc06c2 | 8009 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
8010 | |
8011 | self = self; | |
f6bcfd97 | 8012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8013 | return NULL; |
1d99702e RD |
8014 | if (_argo0) { |
8015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
8018 | return NULL; | |
8019 | } | |
8020 | } | |
f6bcfd97 BP |
8021 | { |
8022 | _arg1 = &temp; | |
8023 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 8024 | return NULL; |
f6bcfd97 | 8025 | } |
cf694132 RD |
8026 | { |
8027 | wxPy_BEGIN_ALLOW_THREADS; | |
8028 | wxDC_SetTextForeground(_arg0,*_arg1); | |
8029 | ||
8030 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8032 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8033 | _resultobj = Py_None; |
8034 | return _resultobj; | |
8035 | } | |
8036 | ||
8037 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 8038 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8039 | PyObject * _resultobj; |
8040 | wxDC * _arg0; | |
8041 | double _arg1; | |
8042 | double _arg2; | |
1d99702e | 8043 | PyObject * _argo0 = 0; |
1afc06c2 | 8044 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
8045 | |
8046 | self = self; | |
1afc06c2 | 8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8048 | return NULL; |
1d99702e RD |
8049 | if (_argo0) { |
8050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
8053 | return NULL; | |
8054 | } | |
8055 | } | |
cf694132 RD |
8056 | { |
8057 | wxPy_BEGIN_ALLOW_THREADS; | |
8058 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
8059 | ||
8060 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8061 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8062 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8063 | _resultobj = Py_None; |
8064 | return _resultobj; | |
8065 | } | |
8066 | ||
8067 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 8068 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8069 | PyObject * _resultobj; |
8070 | bool _result; | |
8071 | wxDC * _arg0; | |
8072 | wxString * _arg1; | |
1d99702e | 8073 | PyObject * _argo0 = 0; |
8ab979d7 | 8074 | PyObject * _obj1 = 0; |
1afc06c2 | 8075 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
8076 | |
8077 | self = self; | |
1afc06c2 | 8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8079 | return NULL; |
1d99702e RD |
8080 | if (_argo0) { |
8081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8084 | return NULL; | |
8085 | } | |
8086 | } | |
8087 | { | |
185d7c3e RD |
8088 | #if PYTHON_API_VERSION >= 1009 |
8089 | char* tmpPtr; int tmpSize; | |
8090 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8091 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8092 | return NULL; |
8093 | } | |
8094 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8095 | return NULL; | |
8096 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8097 | #else | |
8ab979d7 RD |
8098 | if (!PyString_Check(_obj1)) { |
8099 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8100 | return NULL; | |
8101 | } | |
185d7c3e RD |
8102 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8103 | #endif | |
8ab979d7 | 8104 | } |
cf694132 RD |
8105 | { |
8106 | wxPy_BEGIN_ALLOW_THREADS; | |
8107 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
8108 | ||
8109 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8110 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8111 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8112 | { |
8113 | if (_obj1) | |
8114 | delete _arg1; | |
8115 | } | |
8116 | return _resultobj; | |
8117 | } | |
8118 | ||
8119 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 8120 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8121 | PyObject * _resultobj; |
8122 | wxDC * _arg0; | |
1d99702e | 8123 | PyObject * _argo0 = 0; |
1afc06c2 | 8124 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8125 | |
8126 | self = self; | |
1afc06c2 | 8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 8128 | return NULL; |
1d99702e RD |
8129 | if (_argo0) { |
8130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
8133 | return NULL; | |
8134 | } | |
8135 | } | |
cf694132 RD |
8136 | { |
8137 | wxPy_BEGIN_ALLOW_THREADS; | |
8138 | wxDC_StartPage(_arg0); | |
8139 | ||
8140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8142 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8143 | _resultobj = Py_None; |
8144 | return _resultobj; | |
8145 | } | |
8146 | ||
efc5f224 | 8147 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8148 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8149 | PyObject * _resultobj; |
8150 | wxDC * _arg0; | |
8151 | wxBitmap * _arg1; | |
8152 | long _arg2; | |
8153 | long _arg3; | |
efc5f224 | 8154 | int _arg4 = (int ) FALSE; |
1d99702e RD |
8155 | PyObject * _argo0 = 0; |
8156 | PyObject * _argo1 = 0; | |
1afc06c2 | 8157 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
8158 | |
8159 | self = self; | |
1afc06c2 | 8160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 8161 | return NULL; |
1d99702e RD |
8162 | if (_argo0) { |
8163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
8166 | return NULL; | |
8167 | } | |
8168 | } | |
1d99702e RD |
8169 | if (_argo1) { |
8170 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8171 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
8172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
8173 | return NULL; | |
8174 | } | |
8175 | } | |
cf694132 RD |
8176 | { |
8177 | wxPy_BEGIN_ALLOW_THREADS; | |
8178 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
8179 | ||
8180 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8181 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8182 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8183 | _resultobj = Py_None; |
8184 | return _resultobj; | |
8185 | } | |
8186 | ||
eec92d76 RD |
8187 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
8188 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8189 | PyObject * _resultobj; | |
8190 | bool _result; | |
8191 | wxDC * _arg0; | |
8192 | PyObject * _argo0 = 0; | |
8193 | char *_kwnames[] = { "self", NULL }; | |
8194 | ||
8195 | self = self; | |
8196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8197 | return NULL; | |
8198 | if (_argo0) { | |
8199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
8202 | return NULL; | |
8203 | } | |
8204 | } | |
8205 | { | |
8206 | wxPy_BEGIN_ALLOW_THREADS; | |
8207 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
8208 | ||
8209 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8210 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8211 | } _resultobj = Py_BuildValue("i",_result); |
8212 | return _resultobj; | |
8213 | } | |
8214 | ||
8215 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8216 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8217 | PyObject * _resultobj; | |
8218 | bool _result; | |
8219 | wxDC * _arg0; | |
8220 | PyObject * _argo0 = 0; | |
8221 | char *_kwnames[] = { "self", NULL }; | |
8222 | ||
8223 | self = self; | |
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8225 | return NULL; | |
8226 | if (_argo0) { | |
8227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8230 | return NULL; | |
8231 | } | |
8232 | } | |
8233 | { | |
8234 | wxPy_BEGIN_ALLOW_THREADS; | |
8235 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
8236 | ||
8237 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8238 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8239 | } _resultobj = Py_BuildValue("i",_result); |
8240 | return _resultobj; | |
8241 | } | |
8242 | ||
8243 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8244 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8245 | PyObject * _resultobj; | |
8246 | int _result; | |
8247 | wxDC * _arg0; | |
8248 | PyObject * _argo0 = 0; | |
8249 | char *_kwnames[] = { "self", NULL }; | |
8250 | ||
8251 | self = self; | |
8252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8253 | return NULL; | |
8254 | if (_argo0) { | |
8255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8258 | return NULL; | |
8259 | } | |
8260 | } | |
8261 | { | |
8262 | wxPy_BEGIN_ALLOW_THREADS; | |
8263 | _result = (int )wxDC_GetDepth(_arg0); | |
8264 | ||
8265 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8266 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8267 | } _resultobj = Py_BuildValue("i",_result); |
8268 | return _resultobj; | |
8269 | } | |
8270 | ||
8271 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8272 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8273 | PyObject * _resultobj; | |
8274 | wxSize * _result; | |
8275 | wxDC * _arg0; | |
8276 | PyObject * _argo0 = 0; | |
8277 | char *_kwnames[] = { "self", NULL }; | |
8278 | char _ptemp[128]; | |
8279 | ||
8280 | self = self; | |
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8282 | return NULL; | |
8283 | if (_argo0) { | |
8284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8287 | return NULL; | |
8288 | } | |
8289 | } | |
8290 | { | |
8291 | wxPy_BEGIN_ALLOW_THREADS; | |
8292 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
8293 | ||
8294 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8295 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8297 | _resultobj = Py_BuildValue("s",_ptemp); | |
8298 | return _resultobj; | |
8299 | } | |
8300 | ||
8301 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8302 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8303 | PyObject * _resultobj; | |
8304 | wxDC * _arg0; | |
8305 | int * _arg1; | |
8306 | int temp; | |
8307 | int * _arg2; | |
8308 | int temp0; | |
8309 | PyObject * _argo0 = 0; | |
8310 | char *_kwnames[] = { "self", NULL }; | |
8311 | ||
8312 | self = self; | |
8313 | { | |
8314 | _arg1 = &temp; | |
8315 | } | |
8316 | { | |
8317 | _arg2 = &temp0; | |
8318 | } | |
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8320 | return NULL; | |
8321 | if (_argo0) { | |
8322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8325 | return NULL; | |
8326 | } | |
8327 | } | |
8328 | { | |
8329 | wxPy_BEGIN_ALLOW_THREADS; | |
8330 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
8331 | ||
8332 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8333 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8334 | } Py_INCREF(Py_None); |
8335 | _resultobj = Py_None; | |
8336 | { | |
8337 | PyObject *o; | |
8338 | o = PyInt_FromLong((long) (*_arg1)); | |
8339 | _resultobj = t_output_helper(_resultobj, o); | |
8340 | } | |
8341 | { | |
8342 | PyObject *o; | |
8343 | o = PyInt_FromLong((long) (*_arg2)); | |
8344 | _resultobj = t_output_helper(_resultobj, o); | |
8345 | } | |
8346 | return _resultobj; | |
8347 | } | |
8348 | ||
8349 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8350 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8351 | PyObject * _resultobj; | |
8352 | wxDC * _arg0; | |
8353 | int _arg1; | |
8354 | int _arg2; | |
8355 | PyObject * _argo0 = 0; | |
8356 | char *_kwnames[] = { "self","x","y", NULL }; | |
8357 | ||
8358 | self = self; | |
8359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8360 | return NULL; | |
8361 | if (_argo0) { | |
8362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8365 | return NULL; | |
8366 | } | |
8367 | } | |
8368 | { | |
8369 | wxPy_BEGIN_ALLOW_THREADS; | |
8370 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
8371 | ||
8372 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8373 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8374 | } Py_INCREF(Py_None); |
8375 | _resultobj = Py_None; | |
8376 | return _resultobj; | |
8377 | } | |
8378 | ||
8379 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8380 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8381 | PyObject * _resultobj; | |
8382 | wxDC * _arg0; | |
8383 | int * _arg1; | |
8384 | int temp; | |
8385 | int * _arg2; | |
8386 | int temp0; | |
8387 | PyObject * _argo0 = 0; | |
8388 | char *_kwnames[] = { "self", NULL }; | |
8389 | ||
8390 | self = self; | |
8391 | { | |
8392 | _arg1 = &temp; | |
8393 | } | |
8394 | { | |
8395 | _arg2 = &temp0; | |
8396 | } | |
8397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8398 | return NULL; | |
8399 | if (_argo0) { | |
8400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8403 | return NULL; | |
8404 | } | |
8405 | } | |
8406 | { | |
8407 | wxPy_BEGIN_ALLOW_THREADS; | |
8408 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
8409 | ||
8410 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8411 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8412 | } Py_INCREF(Py_None); |
8413 | _resultobj = Py_None; | |
8414 | { | |
8415 | PyObject *o; | |
8416 | o = PyInt_FromLong((long) (*_arg1)); | |
8417 | _resultobj = t_output_helper(_resultobj, o); | |
8418 | } | |
8419 | { | |
8420 | PyObject *o; | |
8421 | o = PyInt_FromLong((long) (*_arg2)); | |
8422 | _resultobj = t_output_helper(_resultobj, o); | |
8423 | } | |
8424 | return _resultobj; | |
8425 | } | |
8426 | ||
8427 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8428 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8429 | PyObject * _resultobj; | |
8430 | wxDC * _arg0; | |
8431 | bool _arg1; | |
8432 | bool _arg2; | |
8433 | PyObject * _argo0 = 0; | |
8434 | int tempbool1; | |
8435 | int tempbool2; | |
8436 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8437 | ||
8438 | self = self; | |
8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8440 | return NULL; | |
8441 | if (_argo0) { | |
8442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8445 | return NULL; | |
8446 | } | |
8447 | } | |
8448 | _arg1 = (bool ) tempbool1; | |
8449 | _arg2 = (bool ) tempbool2; | |
8450 | { | |
8451 | wxPy_BEGIN_ALLOW_THREADS; | |
8452 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
8453 | ||
8454 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8455 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8456 | } Py_INCREF(Py_None); |
8457 | _resultobj = Py_None; | |
8458 | return _resultobj; | |
8459 | } | |
8460 | ||
f6bcfd97 BP |
8461 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
8462 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8463 | PyObject * _resultobj; | |
8464 | wxDC * _arg0; | |
8465 | int _arg1; | |
8466 | int _arg2; | |
8467 | PyObject * _argo0 = 0; | |
8468 | char *_kwnames[] = { "self","x","y", NULL }; | |
8469 | ||
8470 | self = self; | |
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8472 | return NULL; | |
8473 | if (_argo0) { | |
8474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
8477 | return NULL; | |
8478 | } | |
8479 | } | |
8480 | { | |
8481 | wxPy_BEGIN_ALLOW_THREADS; | |
8482 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
8483 | ||
8484 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8485 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8486 | } Py_INCREF(Py_None); |
8487 | _resultobj = Py_None; | |
8488 | return _resultobj; | |
8489 | } | |
8490 | ||
8491 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
8492 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8493 | PyObject * _resultobj; | |
8494 | wxDC * _arg0; | |
8495 | PyObject * _argo0 = 0; | |
8496 | char *_kwnames[] = { "self", NULL }; | |
8497 | ||
8498 | self = self; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
8500 | return NULL; | |
8501 | if (_argo0) { | |
8502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
8505 | return NULL; | |
8506 | } | |
8507 | } | |
8508 | { | |
8509 | wxPy_BEGIN_ALLOW_THREADS; | |
8510 | wxDC_ResetBoundingBox(_arg0); | |
8511 | ||
8512 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8513 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8514 | } Py_INCREF(Py_None); |
8515 | _resultobj = Py_None; | |
8516 | return _resultobj; | |
8517 | } | |
8518 | ||
8ab979d7 RD |
8519 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
8520 | wxMemoryDC *src; | |
8521 | wxDC *dest; | |
8522 | src = (wxMemoryDC *) ptr; | |
8523 | dest = (wxDC *) src; | |
8524 | return (void *) dest; | |
8525 | } | |
8526 | ||
9416aa89 RD |
8527 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
8528 | wxMemoryDC *src; | |
8529 | wxObject *dest; | |
8530 | src = (wxMemoryDC *) ptr; | |
8531 | dest = (wxObject *) src; | |
8532 | return (void *) dest; | |
8533 | } | |
8534 | ||
8ab979d7 | 8535 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 8536 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8537 | PyObject * _resultobj; |
8538 | wxMemoryDC * _result; | |
1afc06c2 | 8539 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
8540 | char _ptemp[128]; |
8541 | ||
8542 | self = self; | |
1afc06c2 | 8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 8544 | return NULL; |
cf694132 RD |
8545 | { |
8546 | wxPy_BEGIN_ALLOW_THREADS; | |
8547 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
8548 | ||
8549 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8550 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8551 | } if (_result) { |
8552 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
8553 | _resultobj = Py_BuildValue("s",_ptemp); | |
8554 | } else { | |
8555 | Py_INCREF(Py_None); | |
8556 | _resultobj = Py_None; | |
8557 | } | |
8ab979d7 RD |
8558 | return _resultobj; |
8559 | } | |
8560 | ||
8561 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 8562 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8563 | PyObject * _resultobj; |
8564 | wxMemoryDC * _arg0; | |
8565 | wxBitmap * _arg1; | |
1d99702e RD |
8566 | PyObject * _argo0 = 0; |
8567 | PyObject * _argo1 = 0; | |
1afc06c2 | 8568 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
8569 | |
8570 | self = self; | |
1afc06c2 | 8571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8572 | return NULL; |
1d99702e RD |
8573 | if (_argo0) { |
8574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
8576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
8577 | return NULL; | |
8578 | } | |
8579 | } | |
1d99702e RD |
8580 | if (_argo1) { |
8581 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8582 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
8583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
8584 | return NULL; | |
8585 | } | |
8586 | } | |
cf694132 RD |
8587 | { |
8588 | wxPy_BEGIN_ALLOW_THREADS; | |
8589 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
8590 | ||
8591 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8592 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8593 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8594 | _resultobj = Py_None; |
8595 | return _resultobj; | |
8596 | } | |
8597 | ||
8598 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
8599 | wxScreenDC *src; | |
8600 | wxDC *dest; | |
8601 | src = (wxScreenDC *) ptr; | |
8602 | dest = (wxDC *) src; | |
8603 | return (void *) dest; | |
8604 | } | |
8605 | ||
9416aa89 RD |
8606 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
8607 | wxScreenDC *src; | |
8608 | wxObject *dest; | |
8609 | src = (wxScreenDC *) ptr; | |
8610 | dest = (wxObject *) src; | |
8611 | return (void *) dest; | |
8612 | } | |
8613 | ||
8ab979d7 | 8614 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 8615 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8616 | PyObject * _resultobj; |
8617 | wxScreenDC * _result; | |
1afc06c2 | 8618 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
8619 | char _ptemp[128]; |
8620 | ||
8621 | self = self; | |
1afc06c2 | 8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 8623 | return NULL; |
cf694132 RD |
8624 | { |
8625 | wxPy_BEGIN_ALLOW_THREADS; | |
8626 | _result = (wxScreenDC *)new_wxScreenDC(); | |
8627 | ||
8628 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8629 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8630 | } if (_result) { |
8631 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
8632 | _resultobj = Py_BuildValue("s",_ptemp); | |
8633 | } else { | |
8634 | Py_INCREF(Py_None); | |
8635 | _resultobj = Py_None; | |
8636 | } | |
8ab979d7 RD |
8637 | return _resultobj; |
8638 | } | |
8639 | ||
26b9cf27 RD |
8640 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
8641 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8642 | PyObject * _resultobj; |
8643 | bool _result; | |
8644 | wxScreenDC * _arg0; | |
8645 | wxWindow * _arg1; | |
1d99702e RD |
8646 | PyObject * _argo0 = 0; |
8647 | PyObject * _argo1 = 0; | |
1afc06c2 | 8648 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
8649 | |
8650 | self = self; | |
26b9cf27 | 8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8652 | return NULL; |
1d99702e RD |
8653 | if (_argo0) { |
8654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
8657 | return NULL; |
8658 | } | |
8659 | } | |
1d99702e RD |
8660 | if (_argo1) { |
8661 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8662 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 8663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
8664 | return NULL; |
8665 | } | |
8666 | } | |
cf694132 RD |
8667 | { |
8668 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 8669 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 RD |
8670 | |
8671 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8672 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8673 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8674 | return _resultobj; |
8675 | } | |
8676 | ||
26b9cf27 RD |
8677 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
8678 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8679 | PyObject * _resultobj; |
8680 | bool _result; | |
8681 | wxScreenDC * _arg0; | |
1d99702e RD |
8682 | wxRect * _arg1 = (wxRect *) NULL; |
8683 | PyObject * _argo0 = 0; | |
2f90df85 RD |
8684 | wxRect temp; |
8685 | PyObject * _obj1 = 0; | |
1afc06c2 | 8686 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
8687 | |
8688 | self = self; | |
26b9cf27 | 8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8690 | return NULL; |
1d99702e RD |
8691 | if (_argo0) { |
8692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 8694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
8695 | return NULL; |
8696 | } | |
8697 | } | |
2f90df85 RD |
8698 | if (_obj1) |
8699 | { | |
8700 | _arg1 = &temp; | |
8701 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 8702 | return NULL; |
2f90df85 | 8703 | } |
cf694132 RD |
8704 | { |
8705 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 8706 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 RD |
8707 | |
8708 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8709 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8710 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8711 | return _resultobj; |
8712 | } | |
8713 | ||
8714 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 8715 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8716 | PyObject * _resultobj; |
8717 | bool _result; | |
8718 | wxScreenDC * _arg0; | |
1d99702e | 8719 | PyObject * _argo0 = 0; |
1afc06c2 | 8720 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8721 | |
8722 | self = self; | |
1afc06c2 | 8723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 8724 | return NULL; |
1d99702e RD |
8725 | if (_argo0) { |
8726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
8728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
8729 | return NULL; | |
8730 | } | |
8731 | } | |
cf694132 RD |
8732 | { |
8733 | wxPy_BEGIN_ALLOW_THREADS; | |
8734 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
8735 | ||
8736 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8738 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8739 | return _resultobj; |
8740 | } | |
8741 | ||
8742 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
8743 | wxClientDC *src; | |
8744 | wxDC *dest; | |
8745 | src = (wxClientDC *) ptr; | |
8746 | dest = (wxDC *) src; | |
8747 | return (void *) dest; | |
8748 | } | |
8749 | ||
9416aa89 RD |
8750 | static void *SwigwxClientDCTowxObject(void *ptr) { |
8751 | wxClientDC *src; | |
8752 | wxObject *dest; | |
8753 | src = (wxClientDC *) ptr; | |
8754 | dest = (wxObject *) src; | |
8755 | return (void *) dest; | |
8756 | } | |
8757 | ||
8ab979d7 | 8758 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 8759 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8760 | PyObject * _resultobj; |
8761 | wxClientDC * _result; | |
8762 | wxWindow * _arg0; | |
1d99702e | 8763 | PyObject * _argo0 = 0; |
1afc06c2 | 8764 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
8765 | char _ptemp[128]; |
8766 | ||
8767 | self = self; | |
1afc06c2 | 8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 8769 | return NULL; |
1d99702e RD |
8770 | if (_argo0) { |
8771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
8774 | return NULL; | |
8775 | } | |
8776 | } | |
cf694132 RD |
8777 | { |
8778 | wxPy_BEGIN_ALLOW_THREADS; | |
8779 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
8780 | ||
8781 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8782 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8783 | } if (_result) { |
8784 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
8785 | _resultobj = Py_BuildValue("s",_ptemp); | |
8786 | } else { | |
8787 | Py_INCREF(Py_None); | |
8788 | _resultobj = Py_None; | |
8789 | } | |
8ab979d7 RD |
8790 | return _resultobj; |
8791 | } | |
8792 | ||
8793 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
8794 | wxPaintDC *src; | |
8795 | wxDC *dest; | |
8796 | src = (wxPaintDC *) ptr; | |
8797 | dest = (wxDC *) src; | |
8798 | return (void *) dest; | |
8799 | } | |
8800 | ||
9416aa89 RD |
8801 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
8802 | wxPaintDC *src; | |
8803 | wxObject *dest; | |
8804 | src = (wxPaintDC *) ptr; | |
8805 | dest = (wxObject *) src; | |
8806 | return (void *) dest; | |
8807 | } | |
8808 | ||
8ab979d7 | 8809 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 8810 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8811 | PyObject * _resultobj; |
8812 | wxPaintDC * _result; | |
8813 | wxWindow * _arg0; | |
1d99702e | 8814 | PyObject * _argo0 = 0; |
1afc06c2 | 8815 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
8816 | char _ptemp[128]; |
8817 | ||
8818 | self = self; | |
1afc06c2 | 8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 8820 | return NULL; |
1d99702e RD |
8821 | if (_argo0) { |
8822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
8824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
8825 | return NULL; | |
8826 | } | |
8827 | } | |
cf694132 RD |
8828 | { |
8829 | wxPy_BEGIN_ALLOW_THREADS; | |
8830 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
8831 | ||
8832 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8833 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8834 | } if (_result) { |
8835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
8836 | _resultobj = Py_BuildValue("s",_ptemp); | |
8837 | } else { | |
8838 | Py_INCREF(Py_None); | |
8839 | _resultobj = Py_None; | |
8840 | } | |
8ab979d7 RD |
8841 | return _resultobj; |
8842 | } | |
8843 | ||
b639c3c5 RD |
8844 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
8845 | wxWindowDC *src; | |
8846 | wxDC *dest; | |
8847 | src = (wxWindowDC *) ptr; | |
8848 | dest = (wxDC *) src; | |
8849 | return (void *) dest; | |
8850 | } | |
8851 | ||
9416aa89 RD |
8852 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
8853 | wxWindowDC *src; | |
8854 | wxObject *dest; | |
8855 | src = (wxWindowDC *) ptr; | |
8856 | dest = (wxObject *) src; | |
8857 | return (void *) dest; | |
8858 | } | |
8859 | ||
b639c3c5 | 8860 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 8861 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
8862 | PyObject * _resultobj; |
8863 | wxWindowDC * _result; | |
8864 | wxWindow * _arg0; | |
1d99702e | 8865 | PyObject * _argo0 = 0; |
1afc06c2 | 8866 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
8867 | char _ptemp[128]; |
8868 | ||
8869 | self = self; | |
1afc06c2 | 8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 8871 | return NULL; |
1d99702e RD |
8872 | if (_argo0) { |
8873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
8875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
8876 | return NULL; | |
8877 | } | |
8878 | } | |
cf694132 RD |
8879 | { |
8880 | wxPy_BEGIN_ALLOW_THREADS; | |
8881 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
8882 | ||
8883 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8884 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8885 | } if (_result) { |
8886 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
8887 | _resultobj = Py_BuildValue("s",_ptemp); | |
8888 | } else { | |
8889 | Py_INCREF(Py_None); | |
8890 | _resultobj = Py_None; | |
8891 | } | |
b639c3c5 RD |
8892 | return _resultobj; |
8893 | } | |
8894 | ||
8ab979d7 RD |
8895 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
8896 | wxMetaFileDC *src; | |
8897 | wxDC *dest; | |
8898 | src = (wxMetaFileDC *) ptr; | |
8899 | dest = (wxDC *) src; | |
8900 | return (void *) dest; | |
8901 | } | |
8902 | ||
9416aa89 RD |
8903 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
8904 | wxMetaFileDC *src; | |
8905 | wxObject *dest; | |
8906 | src = (wxMetaFileDC *) ptr; | |
8907 | dest = (wxObject *) src; | |
8908 | return (void *) dest; | |
8909 | } | |
8910 | ||
8ab979d7 | 8911 | #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0)) |
1afc06c2 | 8912 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8913 | PyObject * _resultobj; |
8914 | wxMetaFileDC * _result; | |
1d99702e | 8915 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
8ab979d7 | 8916 | PyObject * _obj0 = 0; |
1afc06c2 | 8917 | char *_kwnames[] = { "filename", NULL }; |
8ab979d7 RD |
8918 | char _ptemp[128]; |
8919 | ||
8920 | self = self; | |
1afc06c2 | 8921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFileDC",_kwnames,&_obj0)) |
8ab979d7 RD |
8922 | return NULL; |
8923 | if (_obj0) | |
8924 | { | |
185d7c3e RD |
8925 | #if PYTHON_API_VERSION >= 1009 |
8926 | char* tmpPtr; int tmpSize; | |
8927 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 8928 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8929 | return NULL; |
8930 | } | |
8931 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8932 | return NULL; | |
8933 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8934 | #else | |
8ab979d7 RD |
8935 | if (!PyString_Check(_obj0)) { |
8936 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8937 | return NULL; | |
8938 | } | |
185d7c3e RD |
8939 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
8940 | #endif | |
8ab979d7 | 8941 | } |
cf694132 RD |
8942 | { |
8943 | wxPy_BEGIN_ALLOW_THREADS; | |
8944 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0); | |
8945 | ||
8946 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8947 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8948 | } if (_result) { |
8949 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
8950 | _resultobj = Py_BuildValue("s",_ptemp); | |
8951 | } else { | |
8952 | Py_INCREF(Py_None); | |
8953 | _resultobj = Py_None; | |
8954 | } | |
8ab979d7 RD |
8955 | { |
8956 | if (_obj0) | |
8957 | delete _arg0; | |
8958 | } | |
8959 | return _resultobj; | |
8960 | } | |
8961 | ||
8962 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 8963 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8964 | PyObject * _resultobj; |
8965 | wxMetaFile * _result; | |
8966 | wxMetaFileDC * _arg0; | |
1d99702e | 8967 | PyObject * _argo0 = 0; |
1afc06c2 | 8968 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8969 | char _ptemp[128]; |
8970 | ||
8971 | self = self; | |
1afc06c2 | 8972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 8973 | return NULL; |
1d99702e RD |
8974 | if (_argo0) { |
8975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
8977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
8978 | return NULL; | |
8979 | } | |
8980 | } | |
cf694132 RD |
8981 | { |
8982 | wxPy_BEGIN_ALLOW_THREADS; | |
8983 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); | |
8984 | ||
8985 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8986 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8987 | } if (_result) { |
8988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
8989 | _resultobj = Py_BuildValue("s",_ptemp); | |
8990 | } else { | |
8991 | Py_INCREF(Py_None); | |
8992 | _resultobj = Py_None; | |
8993 | } | |
8ab979d7 RD |
8994 | return _resultobj; |
8995 | } | |
8996 | ||
9416aa89 RD |
8997 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
8998 | wxPalette *src; | |
8999 | wxGDIObject *dest; | |
9000 | src = (wxPalette *) ptr; | |
9001 | dest = (wxGDIObject *) src; | |
9002 | return (void *) dest; | |
9003 | } | |
9004 | ||
9005 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9006 | wxPalette *src; | |
9007 | wxObject *dest; | |
9008 | src = (wxPalette *) ptr; | |
9009 | dest = (wxObject *) src; | |
9010 | return (void *) dest; | |
9011 | } | |
9012 | ||
b639c3c5 | 9013 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9014 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9015 | PyObject * _resultobj; |
9016 | wxPalette * _result; | |
9017 | int _arg0; | |
9018 | byte * _arg1; | |
9019 | byte * _arg2; | |
9020 | byte * _arg3; | |
9021 | PyObject * _obj1 = 0; | |
9022 | PyObject * _obj2 = 0; | |
9023 | PyObject * _obj3 = 0; | |
eec92d76 | 9024 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
9025 | char _ptemp[128]; |
9026 | ||
9027 | self = self; | |
1afc06c2 | 9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
9029 | return NULL; |
9030 | { | |
9031 | _arg1 = byte_LIST_helper(_obj1); | |
9032 | if (_arg1 == NULL) { | |
9033 | return NULL; | |
9034 | } | |
9035 | } | |
9036 | { | |
9037 | _arg2 = byte_LIST_helper(_obj2); | |
9038 | if (_arg2 == NULL) { | |
9039 | return NULL; | |
9040 | } | |
9041 | } | |
9042 | if (_obj3) | |
9043 | { | |
9044 | _arg3 = byte_LIST_helper(_obj3); | |
9045 | if (_arg3 == NULL) { | |
9046 | return NULL; | |
9047 | } | |
9048 | } | |
9049 | { | |
cf694132 RD |
9050 | if (_obj1) { |
9051 | _arg0 = PyList_Size(_obj1); | |
9052 | } | |
9053 | else { | |
9054 | _arg0 = 0; | |
9055 | } | |
b639c3c5 | 9056 | } |
cf694132 RD |
9057 | { |
9058 | wxPy_BEGIN_ALLOW_THREADS; | |
9059 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
9060 | ||
9061 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9062 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9063 | } if (_result) { |
9064 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9065 | _resultobj = Py_BuildValue("s",_ptemp); | |
9066 | } else { | |
9067 | Py_INCREF(Py_None); | |
9068 | _resultobj = Py_None; | |
9069 | } | |
b639c3c5 RD |
9070 | { |
9071 | delete [] _arg1; | |
9072 | } | |
9073 | { | |
9074 | delete [] _arg2; | |
9075 | } | |
9076 | { | |
9077 | delete [] _arg3; | |
9078 | } | |
9079 | return _resultobj; | |
9080 | } | |
9081 | ||
9082 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 9083 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9084 | PyObject * _resultobj; |
9085 | wxPalette * _arg0; | |
1d99702e | 9086 | PyObject * _argo0 = 0; |
1afc06c2 | 9087 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
9088 | |
9089 | self = self; | |
1afc06c2 | 9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 9091 | return NULL; |
1d99702e RD |
9092 | if (_argo0) { |
9093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
9096 | return NULL; | |
9097 | } | |
9098 | } | |
cf694132 RD |
9099 | { |
9100 | wxPy_BEGIN_ALLOW_THREADS; | |
9101 | delete_wxPalette(_arg0); | |
9102 | ||
9103 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9105 | } Py_INCREF(Py_None); |
b639c3c5 RD |
9106 | _resultobj = Py_None; |
9107 | return _resultobj; | |
9108 | } | |
9109 | ||
9110 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 9111 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9112 | PyObject * _resultobj; |
9113 | int _result; | |
9114 | wxPalette * _arg0; | |
9115 | byte _arg1; | |
9116 | byte _arg2; | |
9117 | byte _arg3; | |
1d99702e | 9118 | PyObject * _argo0 = 0; |
1afc06c2 | 9119 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
9120 | |
9121 | self = self; | |
1afc06c2 | 9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 9123 | return NULL; |
1d99702e RD |
9124 | if (_argo0) { |
9125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
9128 | return NULL; | |
9129 | } | |
9130 | } | |
cf694132 RD |
9131 | { |
9132 | wxPy_BEGIN_ALLOW_THREADS; | |
9133 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
9134 | ||
9135 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9137 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9138 | return _resultobj; |
9139 | } | |
9140 | ||
9141 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9142 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9143 | PyObject * _resultobj; |
9144 | bool _result; | |
9145 | wxPalette * _arg0; | |
9146 | int _arg1; | |
9147 | byte * _arg2; | |
9148 | byte * _arg3; | |
9149 | byte * _arg4; | |
1d99702e RD |
9150 | PyObject * _argo0 = 0; |
9151 | PyObject * _argo2 = 0; | |
9152 | PyObject * _argo3 = 0; | |
9153 | PyObject * _argo4 = 0; | |
1afc06c2 | 9154 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
b639c3c5 RD |
9155 | |
9156 | self = self; | |
1afc06c2 | 9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
b639c3c5 | 9158 | return NULL; |
1d99702e RD |
9159 | if (_argo0) { |
9160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
9163 | return NULL; | |
9164 | } | |
9165 | } | |
1d99702e RD |
9166 | if (_argo2) { |
9167 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9168 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
b639c3c5 RD |
9169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
9170 | return NULL; | |
9171 | } | |
9172 | } | |
1d99702e RD |
9173 | if (_argo3) { |
9174 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9175 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
b639c3c5 RD |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
9177 | return NULL; | |
9178 | } | |
9179 | } | |
1d99702e RD |
9180 | if (_argo4) { |
9181 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
9182 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
b639c3c5 RD |
9183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
9184 | return NULL; | |
9185 | } | |
9186 | } | |
cf694132 RD |
9187 | { |
9188 | wxPy_BEGIN_ALLOW_THREADS; | |
9189 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9190 | ||
9191 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9192 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9193 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9194 | return _resultobj; |
9195 | } | |
9196 | ||
9197 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9198 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9199 | PyObject * _resultobj; |
9200 | bool _result; | |
9201 | wxPalette * _arg0; | |
1d99702e | 9202 | PyObject * _argo0 = 0; |
1afc06c2 | 9203 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
9204 | |
9205 | self = self; | |
1afc06c2 | 9206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 9207 | return NULL; |
1d99702e RD |
9208 | if (_argo0) { |
9209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
9212 | return NULL; | |
9213 | } | |
9214 | } | |
cf694132 RD |
9215 | { |
9216 | wxPy_BEGIN_ALLOW_THREADS; | |
9217 | _result = (bool )wxPalette_Ok(_arg0); | |
9218 | ||
9219 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9220 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9221 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9222 | return _resultobj; |
9223 | } | |
9224 | ||
9416aa89 RD |
9225 | static void *SwigwxImageListTowxObject(void *ptr) { |
9226 | wxImageList *src; | |
9227 | wxObject *dest; | |
9228 | src = (wxImageList *) ptr; | |
9229 | dest = (wxObject *) src; | |
9230 | return (void *) dest; | |
9231 | } | |
9232 | ||
af309447 | 9233 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9234 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9235 | PyObject * _resultobj; |
9236 | wxImageList * _result; | |
9237 | int _arg0; | |
9238 | int _arg1; | |
dcd38683 | 9239 | int _arg2 = (int ) TRUE; |
1d99702e | 9240 | int _arg3 = (int ) 1; |
1afc06c2 | 9241 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
9242 | char _ptemp[128]; |
9243 | ||
9244 | self = self; | |
6999b0d8 | 9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 9246 | return NULL; |
cf694132 RD |
9247 | { |
9248 | wxPy_BEGIN_ALLOW_THREADS; | |
9249 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
9250 | ||
9251 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9252 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9253 | } if (_result) { |
9254 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
9255 | _resultobj = Py_BuildValue("s",_ptemp); | |
9256 | } else { | |
9257 | Py_INCREF(Py_None); | |
9258 | _resultobj = Py_None; | |
9259 | } | |
af309447 RD |
9260 | return _resultobj; |
9261 | } | |
9262 | ||
9263 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 9264 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9265 | PyObject * _resultobj; |
9266 | wxImageList * _arg0; | |
1d99702e | 9267 | PyObject * _argo0 = 0; |
1afc06c2 | 9268 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
9269 | |
9270 | self = self; | |
1afc06c2 | 9271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 9272 | return NULL; |
1d99702e RD |
9273 | if (_argo0) { |
9274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
9276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
9277 | return NULL; | |
9278 | } | |
9279 | } | |
cf694132 RD |
9280 | { |
9281 | wxPy_BEGIN_ALLOW_THREADS; | |
9282 | delete_wxImageList(_arg0); | |
9283 | ||
9284 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9285 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9286 | } Py_INCREF(Py_None); |
af309447 RD |
9287 | _resultobj = Py_None; |
9288 | return _resultobj; | |
9289 | } | |
9290 | ||
9291 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 9292 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9293 | PyObject * _resultobj; |
9294 | int _result; | |
9295 | wxImageList * _arg0; | |
9296 | wxBitmap * _arg1; | |
1d99702e RD |
9297 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
9298 | PyObject * _argo0 = 0; | |
9299 | PyObject * _argo1 = 0; | |
9300 | PyObject * _argo2 = 0; | |
1afc06c2 | 9301 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
9302 | |
9303 | self = self; | |
1afc06c2 | 9304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 9305 | return NULL; |
1d99702e RD |
9306 | if (_argo0) { |
9307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
9309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
9310 | return NULL; | |
9311 | } | |
9312 | } | |
1d99702e RD |
9313 | if (_argo1) { |
9314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
9316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
9317 | return NULL; | |
9318 | } | |
9319 | } | |
1d99702e RD |
9320 | if (_argo2) { |
9321 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9322 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
9323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
9324 | return NULL; | |
9325 | } | |
9326 | } | |
cf694132 RD |
9327 | { |
9328 | wxPy_BEGIN_ALLOW_THREADS; | |
9329 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
9330 | ||
9331 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9333 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9334 | return _resultobj; |
9335 | } | |
9336 | ||
9337 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 9338 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9339 | PyObject * _resultobj; |
9340 | int _result; | |
9341 | wxImageList * _arg0; | |
9342 | wxBitmap * _arg1; | |
9343 | wxColour * _arg2; | |
1d99702e RD |
9344 | PyObject * _argo0 = 0; |
9345 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9346 | wxColour temp; |
9347 | PyObject * _obj2 = 0; | |
1afc06c2 | 9348 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
9349 | |
9350 | self = self; | |
f6bcfd97 | 9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 9352 | return NULL; |
1d99702e RD |
9353 | if (_argo0) { |
9354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
9356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
9357 | return NULL; | |
9358 | } | |
9359 | } | |
1d99702e RD |
9360 | if (_argo1) { |
9361 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9362 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
9363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
9364 | return NULL; | |
9365 | } | |
9366 | } | |
f6bcfd97 BP |
9367 | { |
9368 | _arg2 = &temp; | |
9369 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 9370 | return NULL; |
f6bcfd97 | 9371 | } |
cf694132 RD |
9372 | { |
9373 | wxPy_BEGIN_ALLOW_THREADS; | |
9374 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
9375 | ||
9376 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9377 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9378 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9379 | return _resultobj; |
9380 | } | |
9381 | ||
9382 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 9383 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9384 | PyObject * _resultobj; |
9385 | int _result; | |
9386 | wxImageList * _arg0; | |
9387 | wxIcon * _arg1; | |
1d99702e RD |
9388 | PyObject * _argo0 = 0; |
9389 | PyObject * _argo1 = 0; | |
1afc06c2 | 9390 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
9391 | |
9392 | self = self; | |
1afc06c2 | 9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 9394 | return NULL; |
1d99702e RD |
9395 | if (_argo0) { |
9396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
9398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
9399 | return NULL; | |
9400 | } | |
9401 | } | |
1d99702e RD |
9402 | if (_argo1) { |
9403 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9404 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
9405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
9406 | return NULL; | |
9407 | } | |
9408 | } | |
cf694132 RD |
9409 | { |
9410 | wxPy_BEGIN_ALLOW_THREADS; | |
9411 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
9412 | ||
9413 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9414 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9415 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9416 | return _resultobj; |
9417 | } | |
9418 | ||
21f8d7ea | 9419 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 9420 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9421 | PyObject * _resultobj; |
9422 | bool _result; | |
9423 | wxImageList * _arg0; | |
9424 | int _arg1; | |
21f8d7ea | 9425 | wxBitmap * _arg2; |
1d99702e RD |
9426 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
9427 | PyObject * _argo0 = 0; | |
9428 | PyObject * _argo2 = 0; | |
9429 | PyObject * _argo3 = 0; | |
1afc06c2 | 9430 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
9431 | |
9432 | self = self; | |
1afc06c2 | 9433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 9434 | return NULL; |
1d99702e RD |
9435 | if (_argo0) { |
9436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 9438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
9439 | return NULL; |
9440 | } | |
9441 | } | |
1d99702e RD |
9442 | if (_argo2) { |
9443 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9444 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 9445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
9446 | return NULL; |
9447 | } | |
9448 | } | |
1d99702e RD |
9449 | if (_argo3) { |
9450 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9451 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
9452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
9453 | return NULL; | |
9454 | } | |
9455 | } | |
cf694132 RD |
9456 | { |
9457 | wxPy_BEGIN_ALLOW_THREADS; | |
9458 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); | |
9459 | ||
9460 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9461 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9462 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9463 | return _resultobj; |
9464 | } | |
9465 | ||
21f8d7ea | 9466 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 9467 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9468 | PyObject * _resultobj; |
9469 | bool _result; | |
9470 | wxImageList * _arg0; | |
9471 | int _arg1; | |
21f8d7ea RD |
9472 | wxDC * _arg2; |
9473 | int _arg3; | |
9474 | int _arg4; | |
1d99702e RD |
9475 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
9476 | bool _arg6 = (bool ) FALSE; | |
9477 | PyObject * _argo0 = 0; | |
9478 | PyObject * _argo2 = 0; | |
9479 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 9480 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
9481 | |
9482 | self = self; | |
1afc06c2 | 9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 9484 | return NULL; |
1d99702e RD |
9485 | if (_argo0) { |
9486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 9488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
9489 | return NULL; |
9490 | } | |
9491 | } | |
1d99702e RD |
9492 | if (_argo2) { |
9493 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9494 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
9495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
9496 | return NULL; | |
9497 | } | |
9498 | } | |
9499 | _arg6 = (bool ) tempbool6; | |
cf694132 RD |
9500 | { |
9501 | wxPy_BEGIN_ALLOW_THREADS; | |
9502 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
9503 | ||
9504 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9505 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9506 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9507 | return _resultobj; |
9508 | } | |
9509 | ||
21f8d7ea | 9510 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 9511 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 9512 | PyObject * _resultobj; |
21f8d7ea | 9513 | int _result; |
af309447 | 9514 | wxImageList * _arg0; |
1d99702e | 9515 | PyObject * _argo0 = 0; |
1afc06c2 | 9516 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
9517 | |
9518 | self = self; | |
1afc06c2 | 9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 9520 | return NULL; |
1d99702e RD |
9521 | if (_argo0) { |
9522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 9524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
9525 | return NULL; |
9526 | } | |
9527 | } | |
cf694132 RD |
9528 | { |
9529 | wxPy_BEGIN_ALLOW_THREADS; | |
9530 | _result = (int )wxImageList_GetImageCount(_arg0); | |
9531 | ||
9532 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9533 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9534 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9535 | return _resultobj; |
9536 | } | |
9537 | ||
21f8d7ea | 9538 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 9539 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9540 | PyObject * _resultobj; |
9541 | bool _result; | |
9542 | wxImageList * _arg0; | |
9543 | int _arg1; | |
1d99702e | 9544 | PyObject * _argo0 = 0; |
1afc06c2 | 9545 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
9546 | |
9547 | self = self; | |
1afc06c2 | 9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 9549 | return NULL; |
1d99702e RD |
9550 | if (_argo0) { |
9551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 9553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
9554 | return NULL; |
9555 | } | |
9556 | } | |
cf694132 RD |
9557 | { |
9558 | wxPy_BEGIN_ALLOW_THREADS; | |
9559 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
9560 | ||
9561 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9562 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9563 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9564 | return _resultobj; |
9565 | } | |
9566 | ||
21f8d7ea | 9567 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 9568 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9569 | PyObject * _resultobj; |
9570 | bool _result; | |
9571 | wxImageList * _arg0; | |
1d99702e | 9572 | PyObject * _argo0 = 0; |
1afc06c2 | 9573 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
9574 | |
9575 | self = self; | |
1afc06c2 | 9576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 9577 | return NULL; |
1d99702e RD |
9578 | if (_argo0) { |
9579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 9581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
9582 | return NULL; |
9583 | } | |
9584 | } | |
cf694132 RD |
9585 | { |
9586 | wxPy_BEGIN_ALLOW_THREADS; | |
9587 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
9588 | ||
9589 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9590 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9591 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
9592 | return _resultobj; |
9593 | } | |
9594 | ||
f6bcfd97 BP |
9595 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
9596 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9597 | PyObject * _resultobj; | |
9598 | wxImageList * _arg0; | |
9599 | int _arg1; | |
9600 | int * _arg2; | |
9601 | int temp; | |
9602 | int * _arg3; | |
9603 | int temp0; | |
9604 | PyObject * _argo0 = 0; | |
9605 | char *_kwnames[] = { "self","index", NULL }; | |
9606 | ||
9607 | self = self; | |
9608 | { | |
9609 | _arg2 = &temp; | |
9610 | } | |
9611 | { | |
9612 | _arg3 = &temp0; | |
9613 | } | |
9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
9615 | return NULL; | |
9616 | if (_argo0) { | |
9617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
9619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
9620 | return NULL; | |
9621 | } | |
9622 | } | |
9623 | { | |
9624 | wxPy_BEGIN_ALLOW_THREADS; | |
9625 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
9626 | ||
9627 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9629 | } Py_INCREF(Py_None); |
9630 | _resultobj = Py_None; | |
9631 | { | |
9632 | PyObject *o; | |
9633 | o = PyInt_FromLong((long) (*_arg2)); | |
9634 | _resultobj = t_output_helper(_resultobj, o); | |
9635 | } | |
9636 | { | |
9637 | PyObject *o; | |
9638 | o = PyInt_FromLong((long) (*_arg3)); | |
9639 | _resultobj = t_output_helper(_resultobj, o); | |
9640 | } | |
9641 | return _resultobj; | |
9642 | } | |
9643 | ||
9416aa89 RD |
9644 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
9645 | wxRegion *src; | |
9646 | wxGDIObject *dest; | |
9647 | src = (wxRegion *) ptr; | |
9648 | dest = (wxGDIObject *) src; | |
9649 | return (void *) dest; | |
9650 | } | |
9651 | ||
9652 | static void *SwigwxRegionTowxObject(void *ptr) { | |
9653 | wxRegion *src; | |
9654 | wxObject *dest; | |
9655 | src = (wxRegion *) ptr; | |
9656 | dest = (wxObject *) src; | |
9657 | return (void *) dest; | |
9658 | } | |
9659 | ||
9660 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9661 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject * _resultobj; | |
9663 | wxRegion * _result; | |
9664 | long _arg0 = (long ) 0; | |
9665 | long _arg1 = (long ) 0; | |
9666 | long _arg2 = (long ) 0; | |
9667 | long _arg3 = (long ) 0; | |
9668 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
9669 | char _ptemp[128]; | |
9670 | ||
9671 | self = self; | |
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
9673 | return NULL; | |
9674 | { | |
9675 | wxPy_BEGIN_ALLOW_THREADS; | |
9676 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
9677 | ||
9678 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9679 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9680 | } if (_result) { |
9681 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
9682 | _resultobj = Py_BuildValue("s",_ptemp); | |
9683 | } else { | |
9684 | Py_INCREF(Py_None); | |
9685 | _resultobj = Py_None; | |
9686 | } | |
9687 | return _resultobj; | |
9688 | } | |
9689 | ||
9690 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
9691 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9692 | PyObject * _resultobj; | |
9693 | wxRegion * _arg0; | |
9694 | PyObject * _argo0 = 0; | |
9695 | char *_kwnames[] = { "self", NULL }; | |
9696 | ||
9697 | self = self; | |
9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
9699 | return NULL; | |
9700 | if (_argo0) { | |
9701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
9704 | return NULL; | |
9705 | } | |
9706 | } | |
9707 | { | |
9708 | wxPy_BEGIN_ALLOW_THREADS; | |
9709 | delete_wxRegion(_arg0); | |
9710 | ||
9711 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9712 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9713 | } Py_INCREF(Py_None); |
9714 | _resultobj = Py_None; | |
9715 | return _resultobj; | |
9716 | } | |
9717 | ||
9718 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
9719 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject * _resultobj; | |
9721 | wxRegion * _arg0; | |
9722 | PyObject * _argo0 = 0; | |
9723 | char *_kwnames[] = { "self", NULL }; | |
9724 | ||
9725 | self = self; | |
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
9727 | return NULL; | |
9728 | if (_argo0) { | |
9729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
9732 | return NULL; | |
9733 | } | |
9734 | } | |
9735 | { | |
9736 | wxPy_BEGIN_ALLOW_THREADS; | |
9737 | wxRegion_Clear(_arg0); | |
9738 | ||
9739 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9740 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9741 | } Py_INCREF(Py_None); |
9742 | _resultobj = Py_None; | |
9743 | return _resultobj; | |
9744 | } | |
9745 | ||
9746 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
9747 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject * _resultobj; | |
9749 | wxRegionContain _result; | |
9750 | wxRegion * _arg0; | |
9751 | long _arg1; | |
9752 | long _arg2; | |
9753 | PyObject * _argo0 = 0; | |
9754 | char *_kwnames[] = { "self","x","y", NULL }; | |
9755 | ||
9756 | self = self; | |
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9758 | return NULL; | |
9759 | if (_argo0) { | |
9760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
9763 | return NULL; | |
9764 | } | |
9765 | } | |
9766 | { | |
9767 | wxPy_BEGIN_ALLOW_THREADS; | |
9768 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
9769 | ||
9770 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9771 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9772 | } _resultobj = Py_BuildValue("i",_result); |
9773 | return _resultobj; | |
9774 | } | |
9775 | ||
9776 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9777 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9778 | PyObject * _resultobj; | |
9779 | wxRegionContain _result; | |
9780 | wxRegion * _arg0; | |
9781 | wxPoint * _arg1; | |
9782 | PyObject * _argo0 = 0; | |
9783 | wxPoint temp; | |
9784 | PyObject * _obj1 = 0; | |
9785 | char *_kwnames[] = { "self","pt", NULL }; | |
9786 | ||
9787 | self = self; | |
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
9789 | return NULL; | |
9790 | if (_argo0) { | |
9791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
9794 | return NULL; | |
9795 | } | |
9796 | } | |
9797 | { | |
9798 | _arg1 = &temp; | |
9799 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9800 | return NULL; | |
9801 | } | |
9802 | { | |
9803 | wxPy_BEGIN_ALLOW_THREADS; | |
9804 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
9805 | ||
9806 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9807 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9808 | } _resultobj = Py_BuildValue("i",_result); |
9809 | return _resultobj; | |
9810 | } | |
9811 | ||
9812 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
9813 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9814 | PyObject * _resultobj; | |
9815 | wxRegionContain _result; | |
9816 | wxRegion * _arg0; | |
9817 | wxRect * _arg1; | |
9818 | PyObject * _argo0 = 0; | |
9819 | wxRect temp; | |
9820 | PyObject * _obj1 = 0; | |
9821 | char *_kwnames[] = { "self","rect", NULL }; | |
9822 | ||
9823 | self = self; | |
9824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
9825 | return NULL; | |
9826 | if (_argo0) { | |
9827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
9830 | return NULL; | |
9831 | } | |
9832 | } | |
9833 | { | |
9834 | _arg1 = &temp; | |
9835 | if (! wxRect_helper(_obj1, &_arg1)) | |
9836 | return NULL; | |
9837 | } | |
9838 | { | |
9839 | wxPy_BEGIN_ALLOW_THREADS; | |
9840 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
9841 | ||
9842 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9843 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9844 | } _resultobj = Py_BuildValue("i",_result); |
9845 | return _resultobj; | |
9846 | } | |
9847 | ||
9848 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9849 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9850 | PyObject * _resultobj; | |
9851 | wxRegionContain _result; | |
9852 | wxRegion * _arg0; | |
9853 | long _arg1; | |
9854 | long _arg2; | |
9855 | long _arg3; | |
9856 | long _arg4; | |
9857 | PyObject * _argo0 = 0; | |
9858 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
9859 | ||
9860 | self = self; | |
9861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9862 | return NULL; | |
9863 | if (_argo0) { | |
9864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
9867 | return NULL; | |
9868 | } | |
9869 | } | |
9870 | { | |
9871 | wxPy_BEGIN_ALLOW_THREADS; | |
9872 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9873 | ||
9874 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9875 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9876 | } _resultobj = Py_BuildValue("i",_result); |
9877 | return _resultobj; | |
9878 | } | |
9879 | ||
9880 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
9881 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject * _resultobj; | |
9883 | wxRect * _result; | |
9884 | wxRegion * _arg0; | |
9885 | PyObject * _argo0 = 0; | |
9886 | char *_kwnames[] = { "self", NULL }; | |
9887 | char _ptemp[128]; | |
9888 | ||
9889 | self = self; | |
9890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
9891 | return NULL; | |
9892 | if (_argo0) { | |
9893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
9896 | return NULL; | |
9897 | } | |
9898 | } | |
9899 | { | |
9900 | wxPy_BEGIN_ALLOW_THREADS; | |
9901 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
9902 | ||
9903 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9904 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9905 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
9906 | _resultobj = Py_BuildValue("s",_ptemp); | |
9907 | return _resultobj; | |
9908 | } | |
9909 | ||
9910 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
9911 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9912 | PyObject * _resultobj; | |
9913 | bool _result; | |
9914 | wxRegion * _arg0; | |
9915 | long _arg1; | |
9916 | long _arg2; | |
9917 | long _arg3; | |
9918 | long _arg4; | |
9919 | PyObject * _argo0 = 0; | |
9920 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
9921 | ||
9922 | self = self; | |
9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
9924 | return NULL; | |
9925 | if (_argo0) { | |
9926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
9929 | return NULL; | |
9930 | } | |
9931 | } | |
9932 | { | |
9933 | wxPy_BEGIN_ALLOW_THREADS; | |
9934 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9935 | ||
9936 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9937 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9938 | } _resultobj = Py_BuildValue("i",_result); |
9939 | return _resultobj; | |
9940 | } | |
9941 | ||
9942 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9943 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9944 | PyObject * _resultobj; | |
9945 | bool _result; | |
9946 | wxRegion * _arg0; | |
9947 | wxRect * _arg1; | |
9948 | PyObject * _argo0 = 0; | |
9949 | wxRect temp; | |
9950 | PyObject * _obj1 = 0; | |
9951 | char *_kwnames[] = { "self","rect", NULL }; | |
9952 | ||
9953 | self = self; | |
9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
9955 | return NULL; | |
9956 | if (_argo0) { | |
9957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
9960 | return NULL; | |
9961 | } | |
9962 | } | |
9963 | { | |
9964 | _arg1 = &temp; | |
9965 | if (! wxRect_helper(_obj1, &_arg1)) | |
9966 | return NULL; | |
9967 | } | |
9968 | { | |
9969 | wxPy_BEGIN_ALLOW_THREADS; | |
9970 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
9971 | ||
9972 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9973 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
9974 | } _resultobj = Py_BuildValue("i",_result); |
9975 | return _resultobj; | |
9976 | } | |
9977 | ||
9978 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
9979 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9980 | PyObject * _resultobj; | |
9981 | bool _result; | |
9982 | wxRegion * _arg0; | |
9983 | wxRegion * _arg1; | |
9984 | PyObject * _argo0 = 0; | |
9985 | PyObject * _argo1 = 0; | |
9986 | char *_kwnames[] = { "self","region", NULL }; | |
9987 | ||
9988 | self = self; | |
9989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
9990 | return NULL; | |
9991 | if (_argo0) { | |
9992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
9994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
9995 | return NULL; | |
9996 | } | |
9997 | } | |
9998 | if (_argo1) { | |
9999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10002 | return NULL; | |
10003 | } | |
10004 | } | |
10005 | { | |
10006 | wxPy_BEGIN_ALLOW_THREADS; | |
10007 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
10008 | ||
10009 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10010 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10011 | } _resultobj = Py_BuildValue("i",_result); |
10012 | return _resultobj; | |
10013 | } | |
10014 | ||
10015 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10016 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10017 | PyObject * _resultobj; | |
10018 | bool _result; | |
10019 | wxRegion * _arg0; | |
10020 | PyObject * _argo0 = 0; | |
10021 | char *_kwnames[] = { "self", NULL }; | |
10022 | ||
10023 | self = self; | |
10024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10025 | return NULL; | |
10026 | if (_argo0) { | |
10027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10030 | return NULL; | |
10031 | } | |
10032 | } | |
10033 | { | |
10034 | wxPy_BEGIN_ALLOW_THREADS; | |
10035 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
10036 | ||
10037 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10038 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10039 | } _resultobj = Py_BuildValue("i",_result); |
10040 | return _resultobj; | |
10041 | } | |
10042 | ||
10043 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10044 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10045 | PyObject * _resultobj; | |
10046 | bool _result; | |
10047 | wxRegion * _arg0; | |
10048 | long _arg1; | |
10049 | long _arg2; | |
10050 | long _arg3; | |
10051 | long _arg4; | |
10052 | PyObject * _argo0 = 0; | |
10053 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10054 | ||
10055 | self = self; | |
10056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10057 | return NULL; | |
10058 | if (_argo0) { | |
10059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
10062 | return NULL; | |
10063 | } | |
10064 | } | |
10065 | { | |
10066 | wxPy_BEGIN_ALLOW_THREADS; | |
10067 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10068 | ||
10069 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10070 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10071 | } _resultobj = Py_BuildValue("i",_result); |
10072 | return _resultobj; | |
10073 | } | |
10074 | ||
10075 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10076 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject * _resultobj; | |
10078 | bool _result; | |
10079 | wxRegion * _arg0; | |
10080 | wxRect * _arg1; | |
10081 | PyObject * _argo0 = 0; | |
10082 | wxRect temp; | |
10083 | PyObject * _obj1 = 0; | |
10084 | char *_kwnames[] = { "self","rect", NULL }; | |
10085 | ||
10086 | self = self; | |
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10088 | return NULL; | |
10089 | if (_argo0) { | |
10090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10093 | return NULL; | |
10094 | } | |
10095 | } | |
10096 | { | |
10097 | _arg1 = &temp; | |
10098 | if (! wxRect_helper(_obj1, &_arg1)) | |
10099 | return NULL; | |
10100 | } | |
10101 | { | |
10102 | wxPy_BEGIN_ALLOW_THREADS; | |
10103 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
10104 | ||
10105 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10106 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10107 | } _resultobj = Py_BuildValue("i",_result); |
10108 | return _resultobj; | |
10109 | } | |
10110 | ||
10111 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10112 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10113 | PyObject * _resultobj; | |
10114 | bool _result; | |
10115 | wxRegion * _arg0; | |
10116 | wxRegion * _arg1; | |
10117 | PyObject * _argo0 = 0; | |
10118 | PyObject * _argo1 = 0; | |
10119 | char *_kwnames[] = { "self","region", NULL }; | |
10120 | ||
10121 | self = self; | |
10122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10123 | return NULL; | |
10124 | if (_argo0) { | |
10125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10128 | return NULL; | |
10129 | } | |
10130 | } | |
10131 | if (_argo1) { | |
10132 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10133 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10135 | return NULL; | |
10136 | } | |
10137 | } | |
10138 | { | |
10139 | wxPy_BEGIN_ALLOW_THREADS; | |
10140 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
10141 | ||
10142 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10143 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10144 | } _resultobj = Py_BuildValue("i",_result); |
10145 | return _resultobj; | |
10146 | } | |
10147 | ||
10148 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10149 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10150 | PyObject * _resultobj; | |
10151 | bool _result; | |
10152 | wxRegion * _arg0; | |
10153 | long _arg1; | |
10154 | long _arg2; | |
10155 | long _arg3; | |
10156 | long _arg4; | |
10157 | PyObject * _argo0 = 0; | |
10158 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10159 | ||
10160 | self = self; | |
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10162 | return NULL; | |
10163 | if (_argo0) { | |
10164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
10167 | return NULL; | |
10168 | } | |
10169 | } | |
10170 | { | |
10171 | wxPy_BEGIN_ALLOW_THREADS; | |
10172 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10173 | ||
10174 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10175 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10176 | } _resultobj = Py_BuildValue("i",_result); |
10177 | return _resultobj; | |
10178 | } | |
10179 | ||
10180 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10181 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10182 | PyObject * _resultobj; | |
10183 | bool _result; | |
10184 | wxRegion * _arg0; | |
10185 | wxRect * _arg1; | |
10186 | PyObject * _argo0 = 0; | |
10187 | wxRect temp; | |
10188 | PyObject * _obj1 = 0; | |
10189 | char *_kwnames[] = { "self","rect", NULL }; | |
10190 | ||
10191 | self = self; | |
10192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
10193 | return NULL; | |
10194 | if (_argo0) { | |
10195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
10198 | return NULL; | |
10199 | } | |
10200 | } | |
10201 | { | |
10202 | _arg1 = &temp; | |
10203 | if (! wxRect_helper(_obj1, &_arg1)) | |
10204 | return NULL; | |
10205 | } | |
10206 | { | |
10207 | wxPy_BEGIN_ALLOW_THREADS; | |
10208 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
10209 | ||
10210 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10211 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10212 | } _resultobj = Py_BuildValue("i",_result); |
10213 | return _resultobj; | |
10214 | } | |
10215 | ||
10216 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10217 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10218 | PyObject * _resultobj; | |
10219 | bool _result; | |
10220 | wxRegion * _arg0; | |
10221 | wxRegion * _arg1; | |
10222 | PyObject * _argo0 = 0; | |
10223 | PyObject * _argo1 = 0; | |
10224 | char *_kwnames[] = { "self","region", NULL }; | |
10225 | ||
10226 | self = self; | |
10227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
10228 | return NULL; | |
10229 | if (_argo0) { | |
10230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10233 | return NULL; | |
10234 | } | |
10235 | } | |
10236 | if (_argo1) { | |
10237 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10238 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10240 | return NULL; | |
10241 | } | |
10242 | } | |
10243 | { | |
10244 | wxPy_BEGIN_ALLOW_THREADS; | |
10245 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
10246 | ||
10247 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10248 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10249 | } _resultobj = Py_BuildValue("i",_result); |
10250 | return _resultobj; | |
10251 | } | |
10252 | ||
10253 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10254 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10255 | PyObject * _resultobj; | |
10256 | bool _result; | |
10257 | wxRegion * _arg0; | |
10258 | long _arg1; | |
10259 | long _arg2; | |
10260 | long _arg3; | |
10261 | long _arg4; | |
10262 | PyObject * _argo0 = 0; | |
10263 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10264 | ||
10265 | self = self; | |
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10267 | return NULL; | |
10268 | if (_argo0) { | |
10269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
10272 | return NULL; | |
10273 | } | |
10274 | } | |
10275 | { | |
10276 | wxPy_BEGIN_ALLOW_THREADS; | |
10277 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10278 | ||
10279 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10280 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10281 | } _resultobj = Py_BuildValue("i",_result); |
10282 | return _resultobj; | |
10283 | } | |
10284 | ||
10285 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10286 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10287 | PyObject * _resultobj; | |
10288 | bool _result; | |
10289 | wxRegion * _arg0; | |
10290 | wxRect * _arg1; | |
10291 | PyObject * _argo0 = 0; | |
10292 | wxRect temp; | |
10293 | PyObject * _obj1 = 0; | |
10294 | char *_kwnames[] = { "self","rect", NULL }; | |
10295 | ||
10296 | self = self; | |
10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
10298 | return NULL; | |
10299 | if (_argo0) { | |
10300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
10303 | return NULL; | |
10304 | } | |
10305 | } | |
10306 | { | |
10307 | _arg1 = &temp; | |
10308 | if (! wxRect_helper(_obj1, &_arg1)) | |
10309 | return NULL; | |
10310 | } | |
10311 | { | |
10312 | wxPy_BEGIN_ALLOW_THREADS; | |
10313 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
10314 | ||
10315 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10316 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10317 | } _resultobj = Py_BuildValue("i",_result); |
10318 | return _resultobj; | |
10319 | } | |
10320 | ||
10321 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10322 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject * _resultobj; | |
10324 | bool _result; | |
10325 | wxRegion * _arg0; | |
10326 | wxRegion * _arg1; | |
10327 | PyObject * _argo0 = 0; | |
10328 | PyObject * _argo1 = 0; | |
10329 | char *_kwnames[] = { "self","region", NULL }; | |
10330 | ||
10331 | self = self; | |
10332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
10333 | return NULL; | |
10334 | if (_argo0) { | |
10335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10338 | return NULL; | |
10339 | } | |
10340 | } | |
10341 | if (_argo1) { | |
10342 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10343 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
10345 | return NULL; | |
10346 | } | |
10347 | } | |
10348 | { | |
10349 | wxPy_BEGIN_ALLOW_THREADS; | |
10350 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
10351 | ||
10352 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10353 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10354 | } _resultobj = Py_BuildValue("i",_result); |
10355 | return _resultobj; | |
10356 | } | |
10357 | ||
10358 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
10359 | wxRegionIterator *src; | |
10360 | wxObject *dest; | |
10361 | src = (wxRegionIterator *) ptr; | |
10362 | dest = (wxObject *) src; | |
10363 | return (void *) dest; | |
10364 | } | |
10365 | ||
10366 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
10367 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10368 | PyObject * _resultobj; | |
10369 | wxRegionIterator * _result; | |
10370 | wxRegion * _arg0; | |
10371 | PyObject * _argo0 = 0; | |
10372 | char *_kwnames[] = { "region", NULL }; | |
10373 | char _ptemp[128]; | |
10374 | ||
10375 | self = self; | |
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
10377 | return NULL; | |
10378 | if (_argo0) { | |
10379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
10382 | return NULL; | |
10383 | } | |
10384 | } | |
10385 | { | |
10386 | wxPy_BEGIN_ALLOW_THREADS; | |
10387 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
10388 | ||
10389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10390 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10391 | } if (_result) { |
10392 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
10393 | _resultobj = Py_BuildValue("s",_ptemp); | |
10394 | } else { | |
10395 | Py_INCREF(Py_None); | |
10396 | _resultobj = Py_None; | |
10397 | } | |
10398 | return _resultobj; | |
10399 | } | |
10400 | ||
10401 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
10402 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10403 | PyObject * _resultobj; | |
10404 | wxRegionIterator * _arg0; | |
10405 | PyObject * _argo0 = 0; | |
10406 | char *_kwnames[] = { "self", NULL }; | |
10407 | ||
10408 | self = self; | |
10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
10410 | return NULL; | |
10411 | if (_argo0) { | |
10412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
10415 | return NULL; | |
10416 | } | |
10417 | } | |
10418 | { | |
10419 | wxPy_BEGIN_ALLOW_THREADS; | |
10420 | delete_wxRegionIterator(_arg0); | |
10421 | ||
10422 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10423 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10424 | } Py_INCREF(Py_None); |
10425 | _resultobj = Py_None; | |
10426 | return _resultobj; | |
10427 | } | |
10428 | ||
10429 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
10430 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject * _resultobj; | |
10432 | long _result; | |
10433 | wxRegionIterator * _arg0; | |
10434 | PyObject * _argo0 = 0; | |
10435 | char *_kwnames[] = { "self", NULL }; | |
10436 | ||
10437 | self = self; | |
10438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
10439 | return NULL; | |
10440 | if (_argo0) { | |
10441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
10444 | return NULL; | |
10445 | } | |
10446 | } | |
10447 | { | |
10448 | wxPy_BEGIN_ALLOW_THREADS; | |
10449 | _result = (long )wxRegionIterator_GetX(_arg0); | |
10450 | ||
10451 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10452 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10453 | } _resultobj = Py_BuildValue("l",_result); |
10454 | return _resultobj; | |
10455 | } | |
10456 | ||
10457 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
10458 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10459 | PyObject * _resultobj; | |
10460 | long _result; | |
10461 | wxRegionIterator * _arg0; | |
10462 | PyObject * _argo0 = 0; | |
10463 | char *_kwnames[] = { "self", NULL }; | |
10464 | ||
10465 | self = self; | |
10466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
10467 | return NULL; | |
10468 | if (_argo0) { | |
10469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
10472 | return NULL; | |
10473 | } | |
10474 | } | |
10475 | { | |
10476 | wxPy_BEGIN_ALLOW_THREADS; | |
10477 | _result = (long )wxRegionIterator_GetY(_arg0); | |
10478 | ||
10479 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10480 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10481 | } _resultobj = Py_BuildValue("l",_result); |
10482 | return _resultobj; | |
10483 | } | |
10484 | ||
10485 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
10486 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10487 | PyObject * _resultobj; | |
10488 | long _result; | |
10489 | wxRegionIterator * _arg0; | |
10490 | PyObject * _argo0 = 0; | |
10491 | char *_kwnames[] = { "self", NULL }; | |
10492 | ||
10493 | self = self; | |
10494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
10495 | return NULL; | |
10496 | if (_argo0) { | |
10497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
10500 | return NULL; | |
10501 | } | |
10502 | } | |
10503 | { | |
10504 | wxPy_BEGIN_ALLOW_THREADS; | |
10505 | _result = (long )wxRegionIterator_GetW(_arg0); | |
10506 | ||
10507 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10508 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10509 | } _resultobj = Py_BuildValue("l",_result); |
10510 | return _resultobj; | |
10511 | } | |
10512 | ||
10513 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10514 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10515 | PyObject * _resultobj; | |
10516 | long _result; | |
10517 | wxRegionIterator * _arg0; | |
10518 | PyObject * _argo0 = 0; | |
10519 | char *_kwnames[] = { "self", NULL }; | |
10520 | ||
10521 | self = self; | |
10522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
10523 | return NULL; | |
10524 | if (_argo0) { | |
10525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
10528 | return NULL; | |
10529 | } | |
10530 | } | |
10531 | { | |
10532 | wxPy_BEGIN_ALLOW_THREADS; | |
10533 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
10534 | ||
10535 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10536 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10537 | } _resultobj = Py_BuildValue("l",_result); |
10538 | return _resultobj; | |
10539 | } | |
10540 | ||
10541 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
10542 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10543 | PyObject * _resultobj; | |
10544 | long _result; | |
10545 | wxRegionIterator * _arg0; | |
10546 | PyObject * _argo0 = 0; | |
10547 | char *_kwnames[] = { "self", NULL }; | |
10548 | ||
10549 | self = self; | |
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
10551 | return NULL; | |
10552 | if (_argo0) { | |
10553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
10556 | return NULL; | |
10557 | } | |
10558 | } | |
10559 | { | |
10560 | wxPy_BEGIN_ALLOW_THREADS; | |
10561 | _result = (long )wxRegionIterator_GetH(_arg0); | |
10562 | ||
10563 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10564 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10565 | } _resultobj = Py_BuildValue("l",_result); |
10566 | return _resultobj; | |
10567 | } | |
10568 | ||
10569 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10570 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10571 | PyObject * _resultobj; | |
10572 | long _result; | |
10573 | wxRegionIterator * _arg0; | |
10574 | PyObject * _argo0 = 0; | |
10575 | char *_kwnames[] = { "self", NULL }; | |
10576 | ||
10577 | self = self; | |
10578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
10579 | return NULL; | |
10580 | if (_argo0) { | |
10581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
10584 | return NULL; | |
10585 | } | |
10586 | } | |
10587 | { | |
10588 | wxPy_BEGIN_ALLOW_THREADS; | |
10589 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
10590 | ||
10591 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10592 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10593 | } _resultobj = Py_BuildValue("l",_result); |
10594 | return _resultobj; | |
10595 | } | |
10596 | ||
10597 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
10598 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10599 | PyObject * _resultobj; | |
10600 | wxRect * _result; | |
10601 | wxRegionIterator * _arg0; | |
10602 | PyObject * _argo0 = 0; | |
10603 | char *_kwnames[] = { "self", NULL }; | |
10604 | char _ptemp[128]; | |
10605 | ||
10606 | self = self; | |
10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
10608 | return NULL; | |
10609 | if (_argo0) { | |
10610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
10613 | return NULL; | |
10614 | } | |
10615 | } | |
10616 | { | |
10617 | wxPy_BEGIN_ALLOW_THREADS; | |
10618 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
10619 | ||
10620 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10621 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10622 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10623 | _resultobj = Py_BuildValue("s",_ptemp); | |
10624 | return _resultobj; | |
10625 | } | |
10626 | ||
10627 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
10628 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10629 | PyObject * _resultobj; | |
10630 | bool _result; | |
10631 | wxRegionIterator * _arg0; | |
10632 | PyObject * _argo0 = 0; | |
10633 | char *_kwnames[] = { "self", NULL }; | |
10634 | ||
10635 | self = self; | |
10636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
10637 | return NULL; | |
10638 | if (_argo0) { | |
10639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
10642 | return NULL; | |
10643 | } | |
10644 | } | |
10645 | { | |
10646 | wxPy_BEGIN_ALLOW_THREADS; | |
10647 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
10648 | ||
10649 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10650 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10651 | } _resultobj = Py_BuildValue("i",_result); |
10652 | return _resultobj; | |
10653 | } | |
10654 | ||
10655 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
10656 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10657 | PyObject * _resultobj; | |
10658 | wxRegionIterator * _arg0; | |
10659 | PyObject * _argo0 = 0; | |
10660 | char *_kwnames[] = { "self", NULL }; | |
10661 | ||
10662 | self = self; | |
10663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
10664 | return NULL; | |
10665 | if (_argo0) { | |
10666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
10669 | return NULL; | |
10670 | } | |
10671 | } | |
10672 | { | |
10673 | wxPy_BEGIN_ALLOW_THREADS; | |
10674 | wxRegionIterator_Reset(_arg0); | |
10675 | ||
10676 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10677 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10678 | } Py_INCREF(Py_None); |
10679 | _resultobj = Py_None; | |
10680 | return _resultobj; | |
10681 | } | |
10682 | ||
10683 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
10684 | (*self) ++; | |
10685 | } | |
10686 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10687 | PyObject * _resultobj; | |
10688 | wxRegionIterator * _arg0; | |
10689 | PyObject * _argo0 = 0; | |
10690 | char *_kwnames[] = { "self", NULL }; | |
10691 | ||
10692 | self = self; | |
10693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
10694 | return NULL; | |
10695 | if (_argo0) { | |
10696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
10698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
10699 | return NULL; | |
10700 | } | |
10701 | } | |
10702 | { | |
10703 | wxPy_BEGIN_ALLOW_THREADS; | |
10704 | wxRegionIterator_Next(_arg0); | |
10705 | ||
10706 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10707 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10708 | } Py_INCREF(Py_None); |
10709 | _resultobj = Py_None; | |
10710 | return _resultobj; | |
10711 | } | |
10712 | ||
8ab979d7 | 10713 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
10714 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
10715 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
10716 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
10717 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10719 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10721 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
10722 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
10727 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
10728 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
10730 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
10731 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
10732 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
10733 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
10734 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10747 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10748 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
10749 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10752 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
10753 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10765 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
10766 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10769 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 10770 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10771 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
10772 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10774 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
10775 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
10776 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
10777 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10784 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
10785 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 10793 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10794 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
10795 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 10811 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10812 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
10813 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 10816 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10817 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
10818 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 10823 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10824 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
10825 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 10838 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10839 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
10840 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f RD |
10859 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
10860 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10862 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
10863 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 10869 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10870 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
10871 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
10872 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10874 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10875 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 10876 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10877 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, |
10878 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 10889 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10890 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
10891 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
10892 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10894 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
10895 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f RD |
10902 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
10903 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10905 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
10906 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10909 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, |
10910 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 | 10915 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10916 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
10917 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxFont_GetFontId", (PyCFunction) _wrap_wxFont_GetFontId, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10923 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 10924 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10925 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
10926 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10927 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10936 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
10937 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 10938 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
10939 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10940 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10949 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10950 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
10951 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 10952 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10953 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10954 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
10955 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
10959 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10960 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10969 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
10970 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10971 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10972 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10973 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
10974 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10975 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
10976 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
10977 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
10978 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10982 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
10983 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10984 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
10985 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10986 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
10987 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
10988 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
10989 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
10990 | { "wxBitmapFromData", (PyCFunction) _wrap_wxBitmapFromData, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 RD |
10991 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
10992 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10993 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10994 | { NULL, NULL } |
10995 | }; | |
1d99702e RD |
10996 | #ifdef __cplusplus |
10997 | } | |
10998 | #endif | |
10999 | /* | |
11000 | * This table is used by the pointer type-checker | |
11001 | */ | |
11002 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11003 | { "_signed_long","_long",0}, |
b1462dfa | 11004 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11005 | { "_wxPrintQuality","_int",0}, |
11006 | { "_wxPrintQuality","_signed_int",0}, | |
11007 | { "_wxPrintQuality","_unsigned_int",0}, | |
11008 | { "_wxPrintQuality","_wxWindowID",0}, | |
11009 | { "_wxPrintQuality","_uint",0}, | |
11010 | { "_wxPrintQuality","_EBool",0}, | |
11011 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11012 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11013 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11014 | { "_long","_unsigned_long",0}, |
11015 | { "_long","_signed_long",0}, | |
9416aa89 | 11016 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 11017 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 11018 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
9416aa89 | 11019 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 11020 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 11021 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 11022 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 11023 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 11024 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 11025 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 11026 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 11027 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 11028 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
1d99702e | 11029 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 11030 | { "_size_t","_wxCoord",0}, |
1d99702e | 11031 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11032 | { "_size_t","_time_t",0}, |
1d99702e RD |
11033 | { "_size_t","_unsigned_int",0}, |
11034 | { "_size_t","_int",0}, | |
11035 | { "_size_t","_wxWindowID",0}, | |
11036 | { "_size_t","_uint",0}, | |
b1462dfa | 11037 | { "_uint","_wxCoord",0}, |
1d99702e | 11038 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11039 | { "_uint","_time_t",0}, |
1d99702e RD |
11040 | { "_uint","_size_t",0}, |
11041 | { "_uint","_unsigned_int",0}, | |
11042 | { "_uint","_int",0}, | |
11043 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11044 | { "_wxChar","_char",0}, |
f6bcfd97 | 11045 | { "_char","_wxChar",0}, |
b1462dfa | 11046 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11047 | { "_EBool","_wxPrintQuality",0}, |
11048 | { "_EBool","_signed_int",0}, | |
11049 | { "_EBool","_int",0}, | |
11050 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11051 | { "_unsigned_long","_long",0}, |
b1462dfa | 11052 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11053 | { "_signed_int","_wxPrintQuality",0}, |
11054 | { "_signed_int","_EBool",0}, | |
11055 | { "_signed_int","_wxWindowID",0}, | |
11056 | { "_signed_int","_int",0}, | |
1d99702e RD |
11057 | { "_WXTYPE","_short",0}, |
11058 | { "_WXTYPE","_signed_short",0}, | |
11059 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11060 | { "_unsigned_short","_WXTYPE",0}, |
11061 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11062 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 11063 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 11064 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 11065 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 11066 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
9416aa89 | 11067 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 11068 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 11069 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 11070 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9416aa89 | 11071 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 11072 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
9416aa89 | 11073 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 11074 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
9416aa89 | 11075 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 11076 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 11077 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 11078 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 11079 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 11080 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 11081 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 11082 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 11083 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 11084 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
11085 | { "_signed_short","_WXTYPE",0}, |
11086 | { "_signed_short","_short",0}, | |
1d99702e | 11087 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11088 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11089 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11090 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11091 | { "_unsigned_int","_size_t",0}, |
11092 | { "_unsigned_int","_uint",0}, | |
11093 | { "_unsigned_int","_wxWindowID",0}, | |
11094 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11095 | { "_short","_WXTYPE",0}, |
11096 | { "_short","_unsigned_short",0}, | |
11097 | { "_short","_signed_short",0}, | |
b1462dfa | 11098 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11099 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11100 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11101 | { "_wxWindowID","_size_t",0}, |
11102 | { "_wxWindowID","_EBool",0}, | |
11103 | { "_wxWindowID","_uint",0}, | |
11104 | { "_wxWindowID","_int",0}, | |
11105 | { "_wxWindowID","_signed_int",0}, | |
11106 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11107 | { "_int","_wxCoord",0}, |
1d99702e | 11108 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11109 | { "_int","_time_t",0}, |
1d99702e RD |
11110 | { "_int","_size_t",0}, |
11111 | { "_int","_EBool",0}, | |
11112 | { "_int","_uint",0}, | |
11113 | { "_int","_wxWindowID",0}, | |
11114 | { "_int","_unsigned_int",0}, | |
11115 | { "_int","_signed_int",0}, | |
c368d904 RD |
11116 | { "_time_t","_wxCoord",0}, |
11117 | { "_time_t","_wxPrintQuality",0}, | |
11118 | { "_time_t","_unsigned_int",0}, | |
11119 | { "_time_t","_int",0}, | |
11120 | { "_time_t","_wxWindowID",0}, | |
11121 | { "_time_t","_uint",0}, | |
11122 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11123 | { "_wxCoord","_int",0}, |
11124 | { "_wxCoord","_signed_int",0}, | |
11125 | { "_wxCoord","_unsigned_int",0}, | |
11126 | { "_wxCoord","_wxWindowID",0}, | |
11127 | { "_wxCoord","_uint",0}, | |
11128 | { "_wxCoord","_EBool",0}, | |
11129 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11130 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11131 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
11132 | {0,0,0}}; |
11133 | ||
8ab979d7 RD |
11134 | static PyObject *SWIG_globals; |
11135 | #ifdef __cplusplus | |
11136 | extern "C" | |
11137 | #endif | |
1d99702e | 11138 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
11139 | PyObject *m, *d; |
11140 | SWIG_globals = SWIG_newvarlink(); | |
11141 | m = Py_InitModule("gdic", gdicMethods); | |
11142 | d = PyModule_GetDict(m); | |
f0261a72 RD |
11143 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
11144 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
11145 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
11146 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
11147 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
11148 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
11149 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
11150 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
11151 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
11152 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
11153 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
11154 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
11155 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
11156 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
11157 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
11158 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
11159 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
11160 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
11161 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
11162 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
11163 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
11164 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
11165 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
11166 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
11167 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
11168 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); | |
11169 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
11170 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
11171 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
8ab979d7 RD |
11172 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11173 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
11174 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
11175 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
11176 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
11177 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
11178 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
11179 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
11180 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
11181 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
11182 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
11183 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
11184 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
11185 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
11186 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
11187 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
11188 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
11189 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
11190 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
11191 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
11192 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
11193 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
11194 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
11195 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
11196 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
11197 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
11198 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
11199 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
11200 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
11201 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
11202 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
11203 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
11204 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
11205 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
11206 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
11207 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
11208 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
11209 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
11210 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
11211 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
11212 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
11213 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
11214 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
11215 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
11216 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
11217 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
11218 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
af309447 RD |
11219 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
11220 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
11221 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
11222 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
11223 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
11224 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
11225 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
9416aa89 RD |
11226 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); |
11227 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
11228 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
1d99702e RD |
11229 | { |
11230 | int i; | |
11231 | for (i = 0; _swig_mapping[i].n1; i++) | |
11232 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11233 | } | |
8ab979d7 | 11234 | } |