]>
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 |
6d8b4f8d RD |
64 | #include <wx/fontmap.h> |
65 | #include <wx/fontenc.h> | |
66 | #include <wx/fontmap.h> | |
67 | #include <wx/fontutil.h> | |
8ab979d7 | 68 | |
8ab979d7 RD |
69 | |
70 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
71 | PyObject* o2; | |
72 | PyObject* o3; | |
73 | ||
f3d9dc1d | 74 | if (!target) { |
8ab979d7 | 75 | target = o; |
f3d9dc1d | 76 | } else if (target == Py_None) { |
8ab979d7 RD |
77 | Py_DECREF(Py_None); |
78 | target = o; | |
f3d9dc1d | 79 | } else { |
8ab979d7 RD |
80 | if (!PyTuple_Check(target)) { |
81 | o2 = target; | |
82 | target = PyTuple_New(1); | |
83 | PyTuple_SetItem(target, 0, o2); | |
84 | } | |
f3d9dc1d RD |
85 | o3 = PyTuple_New(1); |
86 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
87 | |
88 | o2 = target; | |
f3d9dc1d RD |
89 | target = PySequence_Concat(o2, o3); |
90 | Py_DECREF(o2); | |
8ab979d7 RD |
91 | Py_DECREF(o3); |
92 | } | |
93 | return target; | |
94 | } | |
95 | ||
794c5cb1 RD |
96 | #if PYTHON_API_VERSION >= 1009 |
97 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
98 | #else | |
99 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
100 | #endif | |
e508a2b6 RD |
101 | |
102 | static wxString wxPyEmptyStr(""); | |
96bfd053 RD |
103 | // Implementations of some alternate "constructors" |
104 | ||
8ab979d7 RD |
105 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
106 | return new wxBitmap(width, height, depth); | |
107 | } | |
108 | ||
96bfd053 RD |
109 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
110 | char** cArray = NULL; | |
111 | int count; | |
112 | ||
113 | if (!PyList_Check(listOfStrings)) { | |
114 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
115 | return NULL; | |
116 | } | |
117 | count = PyList_Size(listOfStrings); | |
118 | cArray = new char*[count]; | |
119 | ||
120 | for(int x=0; x<count; x++) { | |
121 | // TODO: Need some validation and error checking here | |
122 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
123 | } | |
124 | return cArray; | |
125 | } | |
126 | ||
d56cebe7 | 127 | |
96bfd053 RD |
128 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
129 | char** cArray = NULL; | |
130 | wxBitmap* bmp; | |
131 | ||
132 | cArray = ConvertListOfStrings(listOfStrings); | |
133 | if (! cArray) | |
134 | return NULL; | |
135 | bmp = new wxBitmap(cArray); | |
136 | delete [] cArray; | |
137 | return bmp; | |
138 | } | |
139 | ||
140 | ||
141 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
142 | return new wxBitmap(icon); | |
143 | } | |
144 | ||
145 | ||
d56cebe7 RD |
146 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
147 | return new wxBitmap(bits, width, height, depth); | |
148 | } | |
926bb76c | 149 | |
4c9993c3 | 150 | |
d56cebe7 RD |
151 | // #ifdef __WXMSW__ |
152 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
153 | // int width, int height, int depth = 1) { | |
154 | // if (! PyString_Check(data)) { | |
155 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
156 | // return NULL; | |
157 | // } | |
158 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
159 | // } | |
160 | // #endif | |
8bf5d46e | 161 | |
8ab979d7 RD |
162 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
163 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
164 | } |
165 | // Implementations of some alternate "constructors" | |
166 | wxIcon* wxEmptyIcon() { | |
167 | return new wxIcon(); | |
168 | } | |
169 | ||
170 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
171 | char** cArray = NULL; | |
172 | wxIcon* icon; | |
173 | ||
174 | cArray = ConvertListOfStrings(listOfStrings); | |
175 | if (! cArray) | |
176 | return NULL; | |
177 | icon = new wxIcon(cArray); | |
178 | delete [] cArray; | |
179 | return icon; | |
8ab979d7 RD |
180 | } |
181 | // Alternate 'constructor' | |
9c039d08 | 182 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
183 | return new wxCursor(id); |
184 | } | |
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 | ||
d56cebe7 | 338 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
339 | PyObject * _resultobj; |
340 | wxBitmap * _result; | |
d56cebe7 RD |
341 | char * _arg0; |
342 | int _arg1; | |
8bf5d46e | 343 | int _arg2; |
d56cebe7 RD |
344 | int _arg3 = (int ) 1; |
345 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
8bf5d46e RD |
346 | char _ptemp[128]; |
347 | ||
348 | self = self; | |
d56cebe7 | 349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
350 | return NULL; |
351 | { | |
352 | wxPy_BEGIN_ALLOW_THREADS; | |
d56cebe7 | 353 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e RD |
354 | |
355 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 356 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
357 | } if (_result) { |
358 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
359 | _resultobj = Py_BuildValue("s",_ptemp); | |
360 | } else { | |
361 | Py_INCREF(Py_None); | |
362 | _resultobj = Py_None; | |
363 | } | |
8bf5d46e RD |
364 | return _resultobj; |
365 | } | |
366 | ||
1afc06c2 | 367 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
368 | PyObject * _resultobj; |
369 | wxMask * _result; | |
370 | wxBitmap * _arg0; | |
371 | wxColour * _arg1; | |
1d99702e | 372 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
373 | wxColour temp; |
374 | PyObject * _obj1 = 0; | |
1afc06c2 | 375 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
376 | char _ptemp[128]; |
377 | ||
378 | self = self; | |
f6bcfd97 | 379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 380 | return NULL; |
1d99702e RD |
381 | if (_argo0) { |
382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
385 | return NULL; | |
386 | } | |
387 | } | |
f6bcfd97 BP |
388 | { |
389 | _arg1 = &temp; | |
390 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 391 | return NULL; |
f6bcfd97 | 392 | } |
cf694132 RD |
393 | { |
394 | wxPy_BEGIN_ALLOW_THREADS; | |
395 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
396 | ||
397 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 398 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
399 | } if (_result) { |
400 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
401 | _resultobj = Py_BuildValue("s",_ptemp); | |
402 | } else { | |
403 | Py_INCREF(Py_None); | |
404 | _resultobj = Py_None; | |
405 | } | |
8ab979d7 RD |
406 | return _resultobj; |
407 | } | |
408 | ||
96bfd053 RD |
409 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
410 | PyObject * _resultobj; | |
411 | wxIcon * _result; | |
412 | char *_kwnames[] = { NULL }; | |
413 | char _ptemp[128]; | |
414 | ||
415 | self = self; | |
416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
417 | return NULL; | |
418 | { | |
419 | wxPy_BEGIN_ALLOW_THREADS; | |
420 | _result = (wxIcon *)wxEmptyIcon(); | |
421 | ||
422 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 423 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
424 | } if (_result) { |
425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
426 | _resultobj = Py_BuildValue("s",_ptemp); | |
427 | } else { | |
428 | Py_INCREF(Py_None); | |
429 | _resultobj = Py_None; | |
430 | } | |
431 | return _resultobj; | |
432 | } | |
433 | ||
434 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
435 | PyObject * _resultobj; | |
436 | wxIcon * _result; | |
437 | PyObject * _arg0; | |
438 | PyObject * _obj0 = 0; | |
439 | char *_kwnames[] = { "listOfStrings", NULL }; | |
440 | char _ptemp[128]; | |
441 | ||
442 | self = self; | |
443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
444 | return NULL; | |
445 | { | |
446 | _arg0 = _obj0; | |
447 | } | |
448 | { | |
449 | wxPy_BEGIN_ALLOW_THREADS; | |
450 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
451 | ||
452 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 453 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
454 | } if (_result) { |
455 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
456 | _resultobj = Py_BuildValue("s",_ptemp); | |
457 | } else { | |
458 | Py_INCREF(Py_None); | |
459 | _resultobj = Py_None; | |
460 | } | |
461 | return _resultobj; | |
462 | } | |
463 | ||
1afc06c2 | 464 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
465 | PyObject * _resultobj; |
466 | wxCursor * _result; | |
467 | int _arg0; | |
1afc06c2 | 468 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
469 | char _ptemp[128]; |
470 | ||
471 | self = self; | |
1afc06c2 | 472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 473 | return NULL; |
cf694132 RD |
474 | { |
475 | wxPy_BEGIN_ALLOW_THREADS; | |
476 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
477 | ||
478 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 479 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
480 | } if (_result) { |
481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
482 | _resultobj = Py_BuildValue("s",_ptemp); | |
483 | } else { | |
484 | Py_INCREF(Py_None); | |
485 | _resultobj = Py_None; | |
486 | } | |
8ab979d7 RD |
487 | return _resultobj; |
488 | } | |
489 | ||
1afc06c2 | 490 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
491 | PyObject * _resultobj; |
492 | wxColour * _result; | |
493 | wxString * _arg0; | |
494 | PyObject * _obj0 = 0; | |
1afc06c2 | 495 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
496 | char _ptemp[128]; |
497 | ||
498 | self = self; | |
1afc06c2 | 499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
500 | return NULL; |
501 | { | |
185d7c3e RD |
502 | #if PYTHON_API_VERSION >= 1009 |
503 | char* tmpPtr; int tmpSize; | |
504 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 505 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
506 | return NULL; |
507 | } | |
508 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
509 | return NULL; | |
510 | _arg0 = new wxString(tmpPtr, tmpSize); | |
511 | #else | |
8ab979d7 RD |
512 | if (!PyString_Check(_obj0)) { |
513 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
514 | return NULL; | |
515 | } | |
185d7c3e RD |
516 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
517 | #endif | |
8ab979d7 | 518 | } |
cf694132 RD |
519 | { |
520 | wxPy_BEGIN_ALLOW_THREADS; | |
521 | _result = (wxColour *)wxNamedColour(*_arg0); | |
522 | ||
523 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 524 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
525 | } if (_result) { |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
8ab979d7 RD |
532 | { |
533 | if (_obj0) | |
534 | delete _arg0; | |
535 | } | |
536 | return _resultobj; | |
537 | } | |
538 | ||
1afc06c2 | 539 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
540 | PyObject * _resultobj; |
541 | wxMemoryDC * _result; | |
542 | wxDC * _arg0; | |
1d99702e | 543 | PyObject * _argo0 = 0; |
1afc06c2 | 544 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
545 | char _ptemp[128]; |
546 | ||
547 | self = self; | |
1afc06c2 | 548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 549 | return NULL; |
1d99702e RD |
550 | if (_argo0) { |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
554 | return NULL; | |
555 | } | |
556 | } | |
cf694132 RD |
557 | { |
558 | wxPy_BEGIN_ALLOW_THREADS; | |
559 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
560 | ||
561 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 562 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
563 | } if (_result) { |
564 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
565 | _resultobj = Py_BuildValue("s",_ptemp); | |
566 | } else { | |
567 | Py_INCREF(Py_None); | |
568 | _resultobj = Py_None; | |
569 | } | |
8ab979d7 RD |
570 | return _resultobj; |
571 | } | |
572 | ||
573 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
574 | ||
575 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
576 | return 1; | |
577 | } | |
578 | ||
579 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
580 | PyObject * pyobj; | |
581 | char ptemp[128]; | |
582 | ||
583 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
584 | pyobj = PyString_FromString(ptemp); | |
585 | return pyobj; | |
586 | } | |
587 | ||
588 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
589 | ||
590 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
591 | return 1; | |
592 | } | |
593 | ||
594 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
595 | PyObject * pyobj; | |
596 | char ptemp[128]; | |
597 | ||
598 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
599 | pyobj = PyString_FromString(ptemp); | |
600 | return pyobj; | |
601 | } | |
602 | ||
603 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
604 | ||
605 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
606 | return 1; | |
607 | } | |
608 | ||
609 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
610 | PyObject * pyobj; | |
611 | char ptemp[128]; | |
612 | ||
613 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
614 | pyobj = PyString_FromString(ptemp); | |
615 | return pyobj; | |
616 | } | |
617 | ||
618 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
619 | ||
620 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
621 | return 1; | |
622 | } | |
623 | ||
624 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
625 | PyObject * pyobj; | |
626 | char ptemp[128]; | |
627 | ||
628 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
629 | pyobj = PyString_FromString(ptemp); | |
630 | return pyobj; | |
631 | } | |
632 | ||
633 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
634 | ||
635 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
636 | return 1; | |
637 | } | |
638 | ||
639 | static PyObject *_wrap_wxRED_PEN_get() { | |
640 | PyObject * pyobj; | |
641 | char ptemp[128]; | |
642 | ||
643 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
644 | pyobj = PyString_FromString(ptemp); | |
645 | return pyobj; | |
646 | } | |
647 | ||
648 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
649 | ||
650 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
651 | return 1; | |
652 | } | |
653 | ||
654 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
655 | PyObject * pyobj; | |
656 | char ptemp[128]; | |
657 | ||
658 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
659 | pyobj = PyString_FromString(ptemp); | |
660 | return pyobj; | |
661 | } | |
662 | ||
663 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
664 | ||
665 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
666 | return 1; | |
667 | } | |
668 | ||
669 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
670 | PyObject * pyobj; | |
671 | char ptemp[128]; | |
672 | ||
673 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
674 | pyobj = PyString_FromString(ptemp); | |
675 | return pyobj; | |
676 | } | |
677 | ||
678 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
679 | ||
680 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
681 | return 1; | |
682 | } | |
683 | ||
684 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
685 | PyObject * pyobj; | |
686 | char ptemp[128]; | |
687 | ||
688 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
689 | pyobj = PyString_FromString(ptemp); | |
690 | return pyobj; | |
691 | } | |
692 | ||
693 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
694 | ||
695 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
696 | return 1; | |
697 | } | |
698 | ||
699 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
700 | PyObject * pyobj; | |
701 | char ptemp[128]; | |
702 | ||
703 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
704 | pyobj = PyString_FromString(ptemp); | |
705 | return pyobj; | |
706 | } | |
707 | ||
708 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
709 | ||
710 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
711 | return 1; | |
712 | } | |
713 | ||
714 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
715 | PyObject * pyobj; | |
716 | char ptemp[128]; | |
717 | ||
718 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
719 | pyobj = PyString_FromString(ptemp); | |
720 | return pyobj; | |
721 | } | |
722 | ||
723 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
724 | ||
725 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
726 | return 1; | |
727 | } | |
728 | ||
729 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
730 | PyObject * pyobj; | |
731 | char ptemp[128]; | |
732 | ||
733 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
734 | pyobj = PyString_FromString(ptemp); | |
735 | return pyobj; | |
736 | } | |
737 | ||
738 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
739 | ||
740 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
741 | return 1; | |
742 | } | |
743 | ||
744 | static PyObject *_wrap_wxGREY_PEN_get() { | |
745 | PyObject * pyobj; | |
746 | char ptemp[128]; | |
747 | ||
748 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
749 | pyobj = PyString_FromString(ptemp); | |
750 | return pyobj; | |
751 | } | |
752 | ||
753 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
754 | ||
755 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
756 | return 1; | |
757 | } | |
758 | ||
759 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
760 | PyObject * pyobj; | |
761 | char ptemp[128]; | |
762 | ||
763 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
764 | pyobj = PyString_FromString(ptemp); | |
765 | return pyobj; | |
766 | } | |
767 | ||
768 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
769 | ||
770 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
771 | return 1; | |
772 | } | |
773 | ||
774 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
775 | PyObject * pyobj; | |
776 | char ptemp[128]; | |
777 | ||
778 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
779 | pyobj = PyString_FromString(ptemp); | |
780 | return pyobj; | |
781 | } | |
782 | ||
783 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
784 | ||
785 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
786 | return 1; | |
787 | } | |
788 | ||
789 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
790 | PyObject * pyobj; | |
791 | char ptemp[128]; | |
792 | ||
793 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
794 | pyobj = PyString_FromString(ptemp); | |
795 | return pyobj; | |
796 | } | |
797 | ||
798 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
799 | ||
800 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
801 | return 1; | |
802 | } | |
803 | ||
804 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
805 | PyObject * pyobj; | |
806 | char ptemp[128]; | |
807 | ||
808 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
809 | pyobj = PyString_FromString(ptemp); | |
810 | return pyobj; | |
811 | } | |
812 | ||
813 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
814 | ||
815 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
816 | return 1; | |
817 | } | |
818 | ||
819 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
820 | PyObject * pyobj; | |
821 | char ptemp[128]; | |
822 | ||
823 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
824 | pyobj = PyString_FromString(ptemp); | |
825 | return pyobj; | |
826 | } | |
827 | ||
828 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
829 | ||
830 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
831 | return 1; | |
832 | } | |
833 | ||
834 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
835 | PyObject * pyobj; | |
836 | char ptemp[128]; | |
837 | ||
838 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
839 | pyobj = PyString_FromString(ptemp); | |
840 | return pyobj; | |
841 | } | |
842 | ||
843 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
844 | ||
845 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
846 | return 1; | |
847 | } | |
848 | ||
849 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
850 | PyObject * pyobj; | |
851 | char ptemp[128]; | |
852 | ||
853 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
854 | pyobj = PyString_FromString(ptemp); | |
855 | return pyobj; | |
856 | } | |
857 | ||
858 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
859 | ||
860 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
861 | return 1; | |
862 | } | |
863 | ||
864 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
865 | PyObject * pyobj; | |
866 | char ptemp[128]; | |
867 | ||
868 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
869 | pyobj = PyString_FromString(ptemp); | |
870 | return pyobj; | |
871 | } | |
872 | ||
873 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
874 | ||
875 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
876 | return 1; | |
877 | } | |
878 | ||
879 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
880 | PyObject * pyobj; | |
881 | char ptemp[128]; | |
882 | ||
883 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
884 | pyobj = PyString_FromString(ptemp); | |
885 | return pyobj; | |
886 | } | |
887 | ||
888 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
889 | ||
890 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
891 | return 1; | |
892 | } | |
893 | ||
894 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
895 | PyObject * pyobj; | |
896 | char ptemp[128]; | |
897 | ||
898 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
899 | pyobj = PyString_FromString(ptemp); | |
900 | return pyobj; | |
901 | } | |
902 | ||
903 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
904 | ||
905 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
906 | return 1; | |
907 | } | |
908 | ||
909 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
910 | PyObject * pyobj; | |
911 | char ptemp[128]; | |
912 | ||
913 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
914 | pyobj = PyString_FromString(ptemp); | |
915 | return pyobj; | |
916 | } | |
917 | ||
918 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
919 | ||
920 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
921 | return 1; | |
922 | } | |
923 | ||
924 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
925 | PyObject * pyobj; | |
926 | char ptemp[128]; | |
927 | ||
928 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
929 | pyobj = PyString_FromString(ptemp); | |
930 | return pyobj; | |
931 | } | |
932 | ||
933 | static int _wrap_wxBLACK_set(PyObject *val) { | |
934 | ||
935 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
936 | return 1; | |
937 | } | |
938 | ||
939 | static PyObject *_wrap_wxBLACK_get() { | |
940 | PyObject * pyobj; | |
941 | char ptemp[128]; | |
942 | ||
943 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
944 | pyobj = PyString_FromString(ptemp); | |
945 | return pyobj; | |
946 | } | |
947 | ||
948 | static int _wrap_wxWHITE_set(PyObject *val) { | |
949 | ||
950 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
951 | return 1; | |
952 | } | |
953 | ||
954 | static PyObject *_wrap_wxWHITE_get() { | |
955 | PyObject * pyobj; | |
956 | char ptemp[128]; | |
957 | ||
958 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
959 | pyobj = PyString_FromString(ptemp); | |
960 | return pyobj; | |
961 | } | |
962 | ||
963 | static int _wrap_wxRED_set(PyObject *val) { | |
964 | ||
965 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
966 | return 1; | |
967 | } | |
968 | ||
969 | static PyObject *_wrap_wxRED_get() { | |
970 | PyObject * pyobj; | |
971 | char ptemp[128]; | |
972 | ||
973 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
974 | pyobj = PyString_FromString(ptemp); | |
975 | return pyobj; | |
976 | } | |
977 | ||
978 | static int _wrap_wxBLUE_set(PyObject *val) { | |
979 | ||
980 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
981 | return 1; | |
982 | } | |
983 | ||
984 | static PyObject *_wrap_wxBLUE_get() { | |
985 | PyObject * pyobj; | |
986 | char ptemp[128]; | |
987 | ||
988 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
989 | pyobj = PyString_FromString(ptemp); | |
990 | return pyobj; | |
991 | } | |
992 | ||
993 | static int _wrap_wxGREEN_set(PyObject *val) { | |
994 | ||
995 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
996 | return 1; | |
997 | } | |
998 | ||
999 | static PyObject *_wrap_wxGREEN_get() { | |
1000 | PyObject * pyobj; | |
1001 | char ptemp[128]; | |
1002 | ||
1003 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1004 | pyobj = PyString_FromString(ptemp); | |
1005 | return pyobj; | |
1006 | } | |
1007 | ||
1008 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1009 | ||
1010 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1011 | return 1; | |
1012 | } | |
1013 | ||
1014 | static PyObject *_wrap_wxCYAN_get() { | |
1015 | PyObject * pyobj; | |
1016 | char ptemp[128]; | |
1017 | ||
1018 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1019 | pyobj = PyString_FromString(ptemp); | |
1020 | return pyobj; | |
1021 | } | |
1022 | ||
1023 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1024 | ||
1025 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1026 | return 1; | |
1027 | } | |
1028 | ||
1029 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1030 | PyObject * pyobj; | |
1031 | char ptemp[128]; | |
1032 | ||
1033 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1034 | pyobj = PyString_FromString(ptemp); | |
1035 | return pyobj; | |
1036 | } | |
1037 | ||
1038 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1039 | ||
1040 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1041 | return 1; | |
1042 | } | |
1043 | ||
1044 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1045 | PyObject * pyobj; | |
1046 | char ptemp[128]; | |
1047 | ||
1048 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1049 | pyobj = PyString_FromString(ptemp); | |
1050 | return pyobj; | |
1051 | } | |
1052 | ||
1053 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1054 | ||
1055 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1056 | return 1; | |
1057 | } | |
1058 | ||
1059 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1060 | PyObject * pyobj; | |
1061 | char ptemp[128]; | |
1062 | ||
1063 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1064 | pyobj = PyString_FromString(ptemp); | |
1065 | return pyobj; | |
1066 | } | |
1067 | ||
1068 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1069 | ||
1070 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1071 | return 1; | |
1072 | } | |
1073 | ||
1074 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1075 | PyObject * pyobj; | |
1076 | char ptemp[128]; | |
1077 | ||
1078 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1079 | pyobj = PyString_FromString(ptemp); | |
1080 | return pyobj; | |
1081 | } | |
1082 | ||
1083 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1084 | ||
1085 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1086 | return 1; | |
1087 | } | |
1088 | ||
1089 | static PyObject *_wrap_wxNullBitmap_get() { | |
1090 | PyObject * pyobj; | |
1091 | char ptemp[128]; | |
1092 | ||
1093 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1094 | pyobj = PyString_FromString(ptemp); | |
1095 | return pyobj; | |
1096 | } | |
1097 | ||
1098 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1099 | ||
1100 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1101 | return 1; | |
1102 | } | |
1103 | ||
1104 | static PyObject *_wrap_wxNullIcon_get() { | |
1105 | PyObject * pyobj; | |
1106 | char ptemp[128]; | |
1107 | ||
1108 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1109 | pyobj = PyString_FromString(ptemp); | |
1110 | return pyobj; | |
1111 | } | |
1112 | ||
1113 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1114 | ||
1115 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1116 | return 1; | |
1117 | } | |
1118 | ||
1119 | static PyObject *_wrap_wxNullCursor_get() { | |
1120 | PyObject * pyobj; | |
1121 | char ptemp[128]; | |
1122 | ||
1123 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1124 | pyobj = PyString_FromString(ptemp); | |
1125 | return pyobj; | |
1126 | } | |
1127 | ||
1128 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1129 | ||
1130 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1131 | return 1; | |
1132 | } | |
1133 | ||
1134 | static PyObject *_wrap_wxNullPen_get() { | |
1135 | PyObject * pyobj; | |
1136 | char ptemp[128]; | |
1137 | ||
1138 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1139 | pyobj = PyString_FromString(ptemp); | |
1140 | return pyobj; | |
1141 | } | |
1142 | ||
1143 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1144 | ||
1145 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1146 | return 1; | |
1147 | } | |
1148 | ||
1149 | static PyObject *_wrap_wxNullBrush_get() { | |
1150 | PyObject * pyobj; | |
1151 | char ptemp[128]; | |
1152 | ||
1153 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1154 | pyobj = PyString_FromString(ptemp); | |
1155 | return pyobj; | |
1156 | } | |
1157 | ||
1158 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1159 | ||
1160 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1161 | return 1; | |
1162 | } | |
1163 | ||
1164 | static PyObject *_wrap_wxNullPalette_get() { | |
1165 | PyObject * pyobj; | |
1166 | char ptemp[128]; | |
1167 | ||
1168 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1169 | pyobj = PyString_FromString(ptemp); | |
1170 | return pyobj; | |
1171 | } | |
1172 | ||
1173 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1174 | ||
1175 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1176 | return 1; | |
1177 | } | |
1178 | ||
1179 | static PyObject *_wrap_wxNullFont_get() { | |
1180 | PyObject * pyobj; | |
1181 | char ptemp[128]; | |
1182 | ||
1183 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1184 | pyobj = PyString_FromString(ptemp); | |
1185 | return pyobj; | |
1186 | } | |
1187 | ||
1188 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1189 | ||
1190 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1191 | return 1; | |
1192 | } | |
1193 | ||
1194 | static PyObject *_wrap_wxNullColour_get() { | |
1195 | PyObject * pyobj; | |
1196 | char ptemp[128]; | |
1197 | ||
1198 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1199 | pyobj = PyString_FromString(ptemp); | |
1200 | return pyobj; | |
1201 | } | |
1202 | ||
0569df0f RD |
1203 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1204 | ||
1205 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1206 | return 1; | |
1207 | } | |
1208 | ||
1209 | static PyObject *_wrap_wxTheFontList_get() { | |
1210 | PyObject * pyobj; | |
1211 | char ptemp[128]; | |
1212 | ||
1213 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1214 | pyobj = PyString_FromString(ptemp); | |
1215 | return pyobj; | |
1216 | } | |
1217 | ||
1218 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1219 | ||
1220 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1221 | return 1; | |
1222 | } | |
1223 | ||
1224 | static PyObject *_wrap_wxThePenList_get() { | |
1225 | PyObject * pyobj; | |
1226 | char ptemp[128]; | |
1227 | ||
1228 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1229 | pyobj = PyString_FromString(ptemp); | |
1230 | return pyobj; | |
1231 | } | |
1232 | ||
1233 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1234 | ||
1235 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1236 | return 1; | |
1237 | } | |
1238 | ||
1239 | static PyObject *_wrap_wxTheBrushList_get() { | |
1240 | PyObject * pyobj; | |
1241 | char ptemp[128]; | |
1242 | ||
1243 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p"); | |
1244 | pyobj = PyString_FromString(ptemp); | |
1245 | return pyobj; | |
1246 | } | |
1247 | ||
1248 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1249 | ||
1250 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1251 | return 1; | |
1252 | } | |
1253 | ||
1254 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1255 | PyObject * pyobj; | |
1256 | char ptemp[128]; | |
1257 | ||
1258 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1259 | pyobj = PyString_FromString(ptemp); | |
1260 | return pyobj; | |
1261 | } | |
1262 | ||
9416aa89 RD |
1263 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1264 | wxGDIObject *src; | |
1265 | wxObject *dest; | |
1266 | src = (wxGDIObject *) ptr; | |
1267 | dest = (wxObject *) src; | |
1268 | return (void *) dest; | |
1269 | } | |
1270 | ||
1271 | #define new_wxGDIObject() (new wxGDIObject()) | |
1272 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1273 | PyObject * _resultobj; | |
1274 | wxGDIObject * _result; | |
1275 | char *_kwnames[] = { NULL }; | |
1276 | char _ptemp[128]; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1280 | return NULL; | |
1281 | { | |
1282 | wxPy_BEGIN_ALLOW_THREADS; | |
1283 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1284 | ||
1285 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1286 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1287 | } if (_result) { |
1288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1289 | _resultobj = Py_BuildValue("s",_ptemp); | |
1290 | } else { | |
1291 | Py_INCREF(Py_None); | |
1292 | _resultobj = Py_None; | |
1293 | } | |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1298 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject * _resultobj; | |
1300 | wxGDIObject * _arg0; | |
1301 | PyObject * _argo0 = 0; | |
1302 | char *_kwnames[] = { "self", NULL }; | |
1303 | ||
1304 | self = self; | |
1305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1306 | return NULL; | |
1307 | if (_argo0) { | |
1308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1311 | return NULL; | |
1312 | } | |
1313 | } | |
1314 | { | |
1315 | wxPy_BEGIN_ALLOW_THREADS; | |
1316 | delete_wxGDIObject(_arg0); | |
1317 | ||
1318 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1319 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1320 | } Py_INCREF(Py_None); |
1321 | _resultobj = Py_None; | |
1322 | return _resultobj; | |
1323 | } | |
1324 | ||
1325 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1326 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1327 | PyObject * _resultobj; | |
1328 | bool _result; | |
1329 | wxGDIObject * _arg0; | |
1330 | PyObject * _argo0 = 0; | |
1331 | char *_kwnames[] = { "self", NULL }; | |
1332 | ||
1333 | self = self; | |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1335 | return NULL; | |
1336 | if (_argo0) { | |
1337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
1343 | { | |
1344 | wxPy_BEGIN_ALLOW_THREADS; | |
1345 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1346 | ||
1347 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1348 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1349 | } _resultobj = Py_BuildValue("i",_result); |
1350 | return _resultobj; | |
1351 | } | |
1352 | ||
1353 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1354 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1355 | PyObject * _resultobj; | |
1356 | wxGDIObject * _arg0; | |
1357 | bool _arg1; | |
1358 | PyObject * _argo0 = 0; | |
1359 | int tempbool1; | |
1360 | char *_kwnames[] = { "self","visible", NULL }; | |
1361 | ||
1362 | self = self; | |
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1364 | return NULL; | |
1365 | if (_argo0) { | |
1366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1369 | return NULL; | |
1370 | } | |
1371 | } | |
1372 | _arg1 = (bool ) tempbool1; | |
1373 | { | |
1374 | wxPy_BEGIN_ALLOW_THREADS; | |
1375 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1376 | ||
1377 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1378 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1379 | } Py_INCREF(Py_None); |
1380 | _resultobj = Py_None; | |
1381 | return _resultobj; | |
1382 | } | |
1383 | ||
1384 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1385 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject * _resultobj; | |
1387 | bool _result; | |
1388 | wxGDIObject * _arg0; | |
1389 | PyObject * _argo0 = 0; | |
1390 | char *_kwnames[] = { "self", NULL }; | |
1391 | ||
1392 | self = self; | |
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1394 | return NULL; | |
1395 | if (_argo0) { | |
1396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1399 | return NULL; | |
1400 | } | |
1401 | } | |
1402 | { | |
1403 | wxPy_BEGIN_ALLOW_THREADS; | |
1404 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1405 | ||
1406 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1407 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1408 | } _resultobj = Py_BuildValue("i",_result); |
1409 | return _resultobj; | |
1410 | } | |
1411 | ||
1412 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1413 | wxBitmap *src; | |
1414 | wxGDIObject *dest; | |
1415 | src = (wxBitmap *) ptr; | |
1416 | dest = (wxGDIObject *) src; | |
1417 | return (void *) dest; | |
1418 | } | |
1419 | ||
1420 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1421 | wxBitmap *src; | |
1422 | wxObject *dest; | |
1423 | src = (wxBitmap *) ptr; | |
1424 | dest = (wxObject *) src; | |
1425 | return (void *) dest; | |
1426 | } | |
1427 | ||
6999b0d8 RD |
1428 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1429 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1430 | PyObject * _resultobj; |
6999b0d8 RD |
1431 | wxBitmap * _result; |
1432 | wxString * _arg0; | |
0a651eb8 | 1433 | wxBitmapType _arg1; |
6999b0d8 RD |
1434 | PyObject * _obj0 = 0; |
1435 | char *_kwnames[] = { "name","type", NULL }; | |
1436 | char _ptemp[128]; | |
8ab979d7 RD |
1437 | |
1438 | self = self; | |
0a651eb8 | 1439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1440 | return NULL; |
6999b0d8 | 1441 | { |
185d7c3e RD |
1442 | #if PYTHON_API_VERSION >= 1009 |
1443 | char* tmpPtr; int tmpSize; | |
1444 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1446 | return NULL; |
1447 | } | |
1448 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1449 | return NULL; | |
1450 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1451 | #else | |
6999b0d8 RD |
1452 | if (!PyString_Check(_obj0)) { |
1453 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1454 | return NULL; |
8ab979d7 | 1455 | } |
185d7c3e RD |
1456 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1457 | #endif | |
6999b0d8 | 1458 | } |
cf694132 RD |
1459 | { |
1460 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1461 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 RD |
1462 | |
1463 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1464 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1465 | } if (_result) { |
1466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1467 | _resultobj = Py_BuildValue("s",_ptemp); | |
1468 | } else { | |
1469 | Py_INCREF(Py_None); | |
1470 | _resultobj = Py_None; | |
1471 | } | |
1472 | { | |
1473 | if (_obj0) | |
1474 | delete _arg0; | |
1475 | } | |
8ab979d7 RD |
1476 | return _resultobj; |
1477 | } | |
1478 | ||
6999b0d8 RD |
1479 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1480 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1481 | PyObject * _resultobj; |
1482 | wxBitmap * _arg0; | |
1d99702e | 1483 | PyObject * _argo0 = 0; |
6999b0d8 | 1484 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1485 | |
1486 | self = self; | |
6999b0d8 | 1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1488 | return NULL; |
1d99702e RD |
1489 | if (_argo0) { |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1493 | return NULL; |
1494 | } | |
1495 | } | |
cf694132 RD |
1496 | { |
1497 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1498 | delete_wxBitmap(_arg0); |
cf694132 RD |
1499 | |
1500 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1501 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1502 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1503 | _resultobj = Py_None; |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
6999b0d8 RD |
1507 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1508 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1509 | PyObject * _resultobj; |
6999b0d8 | 1510 | wxPalette * _result; |
8ab979d7 | 1511 | wxBitmap * _arg0; |
1d99702e | 1512 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1513 | char *_kwnames[] = { "self", NULL }; |
1514 | char _ptemp[128]; | |
8ab979d7 RD |
1515 | |
1516 | self = self; | |
6999b0d8 | 1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1518 | return NULL; |
1d99702e RD |
1519 | if (_argo0) { |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1523 | return NULL; |
1524 | } | |
1525 | } | |
cf694132 RD |
1526 | { |
1527 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1528 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 RD |
1529 | |
1530 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1531 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1532 | } if (_result) { |
1533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1534 | _resultobj = Py_BuildValue("s",_ptemp); | |
1535 | } else { | |
1536 | Py_INCREF(Py_None); | |
1537 | _resultobj = Py_None; | |
1538 | } | |
8ab979d7 RD |
1539 | return _resultobj; |
1540 | } | |
1541 | ||
6999b0d8 RD |
1542 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1543 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1544 | PyObject * _resultobj; |
1545 | wxMask * _result; | |
1546 | wxBitmap * _arg0; | |
1d99702e | 1547 | PyObject * _argo0 = 0; |
6999b0d8 | 1548 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1549 | char _ptemp[128]; |
1550 | ||
1551 | self = self; | |
6999b0d8 | 1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1553 | return NULL; |
1d99702e RD |
1554 | if (_argo0) { |
1555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1558 | return NULL; |
1559 | } | |
1560 | } | |
cf694132 RD |
1561 | { |
1562 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1563 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 RD |
1564 | |
1565 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1566 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1567 | } if (_result) { |
1568 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1569 | _resultobj = Py_BuildValue("s",_ptemp); | |
1570 | } else { | |
1571 | Py_INCREF(Py_None); | |
1572 | _resultobj = Py_None; | |
1573 | } | |
8ab979d7 RD |
1574 | return _resultobj; |
1575 | } | |
1576 | ||
6999b0d8 RD |
1577 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1578 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1579 | PyObject * _resultobj; |
6999b0d8 RD |
1580 | bool _result; |
1581 | wxBitmap * _arg0; | |
1582 | wxString * _arg1; | |
1583 | long _arg2; | |
1584 | PyObject * _argo0 = 0; | |
1585 | PyObject * _obj1 = 0; | |
1586 | char *_kwnames[] = { "self","name","flags", NULL }; | |
8ab979d7 RD |
1587 | |
1588 | self = self; | |
6999b0d8 RD |
1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
1590 | return NULL; | |
1591 | if (_argo0) { | |
1592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1595 | return NULL; |
6999b0d8 RD |
1596 | } |
1597 | } | |
8ab979d7 | 1598 | { |
185d7c3e RD |
1599 | #if PYTHON_API_VERSION >= 1009 |
1600 | char* tmpPtr; int tmpSize; | |
1601 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1602 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1603 | return NULL; |
1604 | } | |
1605 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1606 | return NULL; | |
1607 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1608 | #else | |
6999b0d8 | 1609 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
1610 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1611 | return NULL; | |
1612 | } | |
185d7c3e RD |
1613 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1614 | #endif | |
8ab979d7 | 1615 | } |
cf694132 RD |
1616 | { |
1617 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1618 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 RD |
1619 | |
1620 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1621 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1622 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1623 | { |
6999b0d8 RD |
1624 | if (_obj1) |
1625 | delete _arg1; | |
8ab979d7 RD |
1626 | } |
1627 | return _resultobj; | |
1628 | } | |
1629 | ||
6999b0d8 RD |
1630 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1631 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1632 | PyObject * _resultobj; |
6999b0d8 RD |
1633 | bool _result; |
1634 | wxBitmap * _arg0; | |
1635 | wxString * _arg1; | |
1636 | int _arg2; | |
1637 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1d99702e | 1638 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1639 | PyObject * _obj1 = 0; |
1640 | PyObject * _argo3 = 0; | |
1641 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1642 | |
1643 | self = self; | |
6999b0d8 | 1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1645 | return NULL; |
1d99702e RD |
1646 | if (_argo0) { |
1647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1650 | return NULL; |
1651 | } | |
1652 | } | |
cf694132 | 1653 | { |
185d7c3e RD |
1654 | #if PYTHON_API_VERSION >= 1009 |
1655 | char* tmpPtr; int tmpSize; | |
1656 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1657 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1658 | return NULL; |
1659 | } | |
1660 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1661 | return NULL; | |
1662 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1663 | #else | |
6999b0d8 RD |
1664 | if (!PyString_Check(_obj1)) { |
1665 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1666 | return NULL; |
6999b0d8 | 1667 | } |
185d7c3e RD |
1668 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1669 | #endif | |
6999b0d8 RD |
1670 | } |
1671 | if (_argo3) { | |
1672 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1673 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1675 | return NULL; |
1676 | } | |
1677 | } | |
cf694132 RD |
1678 | { |
1679 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1680 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
1681 | |
1682 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1684 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1685 | { |
1686 | if (_obj1) | |
1687 | delete _arg1; | |
1688 | } | |
8ab979d7 RD |
1689 | return _resultobj; |
1690 | } | |
1691 | ||
6999b0d8 RD |
1692 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1693 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1694 | PyObject * _resultobj; |
6999b0d8 RD |
1695 | wxBitmap * _arg0; |
1696 | wxMask * _arg1; | |
1d99702e | 1697 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1698 | PyObject * _argo1 = 0; |
1699 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1700 | |
1701 | self = self; | |
6999b0d8 | 1702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1703 | return NULL; |
1d99702e RD |
1704 | if (_argo0) { |
1705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1708 | return NULL; |
1709 | } | |
1710 | } | |
6999b0d8 RD |
1711 | if (_argo1) { |
1712 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1713 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1715 | return NULL; |
1716 | } | |
1717 | } | |
cf694132 RD |
1718 | { |
1719 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1720 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 RD |
1721 | |
1722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1723 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1724 | } Py_INCREF(Py_None); |
1725 | _resultobj = Py_None; | |
8ab979d7 RD |
1726 | return _resultobj; |
1727 | } | |
1728 | ||
6999b0d8 RD |
1729 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1730 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1731 | PyObject * _resultobj; | |
1732 | wxBitmap * _arg0; | |
1733 | wxPalette * _arg1; | |
1d99702e | 1734 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1735 | PyObject * _argo1 = 0; |
1736 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1737 | |
1738 | self = self; | |
6999b0d8 | 1739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1740 | return NULL; |
1d99702e RD |
1741 | if (_argo0) { |
1742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1745 | return NULL; |
1746 | } | |
1747 | } | |
6999b0d8 RD |
1748 | if (_argo1) { |
1749 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1752 | return NULL; |
6999b0d8 | 1753 | } |
8ab979d7 | 1754 | } |
cf694132 RD |
1755 | { |
1756 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1757 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 RD |
1758 | |
1759 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1760 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1761 | } Py_INCREF(Py_None); |
1762 | _resultobj = Py_None; | |
8ab979d7 RD |
1763 | return _resultobj; |
1764 | } | |
1765 | ||
9b3d3bc4 RD |
1766 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1767 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1768 | PyObject * _resultobj; |
9b3d3bc4 | 1769 | long _result; |
6999b0d8 | 1770 | wxBitmap * _arg0; |
1d99702e | 1771 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1772 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1773 | |
1774 | self = self; | |
9b3d3bc4 | 1775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1776 | return NULL; |
1d99702e RD |
1777 | if (_argo0) { |
1778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1781 | return NULL; |
1782 | } | |
1783 | } | |
cf694132 RD |
1784 | { |
1785 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1786 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 RD |
1787 | |
1788 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1789 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1790 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1791 | return _resultobj; |
1792 | } | |
1793 | ||
9b3d3bc4 RD |
1794 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1795 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1796 | PyObject * _resultobj; |
9b3d3bc4 | 1797 | wxBitmap * _arg0; |
6999b0d8 | 1798 | long _arg1; |
9b3d3bc4 RD |
1799 | PyObject * _argo0 = 0; |
1800 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1801 | |
1802 | self = self; | |
9b3d3bc4 | 1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1804 | return NULL; |
9b3d3bc4 RD |
1805 | if (_argo0) { |
1806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1809 | return NULL; |
9b3d3bc4 | 1810 | } |
8ab979d7 | 1811 | } |
9b3d3bc4 RD |
1812 | { |
1813 | wxPy_BEGIN_ALLOW_THREADS; | |
1814 | wxBitmap_SetHandle(_arg0,_arg1); | |
1815 | ||
1816 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1817 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1818 | } Py_INCREF(Py_None); |
1819 | _resultobj = Py_None; | |
1820 | return _resultobj; | |
6999b0d8 | 1821 | } |
9b3d3bc4 RD |
1822 | |
1823 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1824 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1825 | PyObject * _resultobj; | |
1826 | bool _result; | |
1827 | wxBitmap * _arg0; | |
1828 | PyObject * _argo0 = 0; | |
1829 | char *_kwnames[] = { "self", NULL }; | |
1830 | ||
1831 | self = self; | |
1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1833 | return NULL; | |
1834 | if (_argo0) { | |
1835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1838 | return NULL; | |
1839 | } | |
1840 | } | |
cf694132 RD |
1841 | { |
1842 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1843 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 RD |
1844 | |
1845 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1846 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1847 | } _resultobj = Py_BuildValue("i",_result); |
1848 | return _resultobj; | |
1849 | } | |
1850 | ||
1851 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1852 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1853 | PyObject * _resultobj; | |
1854 | int _result; | |
1855 | wxBitmap * _arg0; | |
1856 | PyObject * _argo0 = 0; | |
1857 | char *_kwnames[] = { "self", NULL }; | |
1858 | ||
1859 | self = self; | |
1860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1861 | return NULL; | |
1862 | if (_argo0) { | |
1863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1866 | return NULL; | |
1867 | } | |
6999b0d8 RD |
1868 | } |
1869 | { | |
9b3d3bc4 RD |
1870 | wxPy_BEGIN_ALLOW_THREADS; |
1871 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1872 | ||
1873 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1874 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1875 | } _resultobj = Py_BuildValue("i",_result); |
1876 | return _resultobj; | |
6999b0d8 | 1877 | } |
9b3d3bc4 RD |
1878 | |
1879 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1880 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1881 | PyObject * _resultobj; | |
1882 | int _result; | |
1883 | wxBitmap * _arg0; | |
1884 | PyObject * _argo0 = 0; | |
1885 | char *_kwnames[] = { "self", NULL }; | |
1886 | ||
1887 | self = self; | |
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1889 | return NULL; | |
1890 | if (_argo0) { | |
1891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1894 | return NULL; | |
1895 | } | |
1896 | } | |
1897 | { | |
1898 | wxPy_BEGIN_ALLOW_THREADS; | |
1899 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1900 | ||
1901 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1902 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1903 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1904 | return _resultobj; |
1905 | } | |
1906 | ||
9b3d3bc4 RD |
1907 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1908 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1909 | PyObject * _resultobj; |
9b3d3bc4 RD |
1910 | int _result; |
1911 | wxBitmap * _arg0; | |
1d99702e | 1912 | PyObject * _argo0 = 0; |
6999b0d8 | 1913 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1914 | |
1915 | self = self; | |
9b3d3bc4 | 1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1917 | return NULL; |
1d99702e RD |
1918 | if (_argo0) { |
1919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1922 | return NULL; |
1923 | } | |
1924 | } | |
cf694132 RD |
1925 | { |
1926 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
1927 | _result = (int )wxBitmap_GetDepth(_arg0); |
1928 | ||
1929 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1930 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1931 | } _resultobj = Py_BuildValue("i",_result); |
1932 | return _resultobj; | |
1933 | } | |
1934 | ||
1935 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1936 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1937 | PyObject * _resultobj; | |
1938 | wxBitmap * _arg0; | |
1939 | int _arg1; | |
1940 | PyObject * _argo0 = 0; | |
1941 | char *_kwnames[] = { "self","w", NULL }; | |
1942 | ||
1943 | self = self; | |
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1945 | return NULL; | |
1946 | if (_argo0) { | |
1947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1950 | return NULL; | |
1951 | } | |
1952 | } | |
1953 | { | |
1954 | wxPy_BEGIN_ALLOW_THREADS; | |
1955 | wxBitmap_SetWidth(_arg0,_arg1); | |
cf694132 RD |
1956 | |
1957 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1958 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1959 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1960 | _resultobj = Py_None; |
1961 | return _resultobj; | |
1962 | } | |
1963 | ||
9b3d3bc4 RD |
1964 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1965 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1966 | PyObject * _resultobj; |
9b3d3bc4 RD |
1967 | wxBitmap * _arg0; |
1968 | int _arg1; | |
1d99702e | 1969 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1970 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
1971 | |
1972 | self = self; | |
9b3d3bc4 | 1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1974 | return NULL; |
1d99702e RD |
1975 | if (_argo0) { |
1976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1979 | return NULL; |
1980 | } | |
1981 | } | |
6999b0d8 | 1982 | { |
9b3d3bc4 RD |
1983 | wxPy_BEGIN_ALLOW_THREADS; |
1984 | wxBitmap_SetHeight(_arg0,_arg1); | |
1985 | ||
1986 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1987 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1988 | } Py_INCREF(Py_None); |
1989 | _resultobj = Py_None; | |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
1993 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1994 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject * _resultobj; | |
1996 | wxBitmap * _arg0; | |
1997 | int _arg1; | |
1998 | PyObject * _argo0 = 0; | |
1999 | char *_kwnames[] = { "self","d", NULL }; | |
2000 | ||
2001 | self = self; | |
2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2003 | return NULL; | |
2004 | if (_argo0) { | |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2008 | return NULL; |
9b3d3bc4 | 2009 | } |
6999b0d8 | 2010 | } |
cf694132 RD |
2011 | { |
2012 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 2013 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 RD |
2014 | |
2015 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2016 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2017 | } Py_INCREF(Py_None); |
2018 | _resultobj = Py_None; | |
2019 | return _resultobj; | |
2020 | } | |
2021 | ||
2022 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2023 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject * _resultobj; | |
2025 | wxBitmap * _arg0; | |
2026 | wxSize * _arg1; | |
2027 | PyObject * _argo0 = 0; | |
2028 | wxSize temp; | |
2029 | PyObject * _obj1 = 0; | |
2030 | char *_kwnames[] = { "self","size", NULL }; | |
2031 | ||
2032 | self = self; | |
2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2034 | return NULL; | |
2035 | if (_argo0) { | |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2039 | return NULL; | |
2040 | } | |
2041 | } | |
6999b0d8 | 2042 | { |
9b3d3bc4 RD |
2043 | _arg1 = &temp; |
2044 | if (! wxSize_helper(_obj1, &_arg1)) | |
2045 | return NULL; | |
6999b0d8 | 2046 | } |
9b3d3bc4 RD |
2047 | { |
2048 | wxPy_BEGIN_ALLOW_THREADS; | |
2049 | wxBitmap_SetSize(_arg0,*_arg1); | |
2050 | ||
2051 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2052 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2053 | } Py_INCREF(Py_None); |
2054 | _resultobj = Py_None; | |
8ab979d7 RD |
2055 | return _resultobj; |
2056 | } | |
2057 | ||
f6bcfd97 BP |
2058 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2059 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2060 | PyObject * _resultobj; | |
2061 | wxBitmap * _result; | |
2062 | wxBitmap * _arg0; | |
2063 | wxRect * _arg1; | |
2064 | PyObject * _argo0 = 0; | |
2065 | wxRect temp; | |
2066 | PyObject * _obj1 = 0; | |
2067 | char *_kwnames[] = { "self","rect", NULL }; | |
2068 | char _ptemp[128]; | |
2069 | ||
2070 | self = self; | |
2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2072 | return NULL; | |
2073 | if (_argo0) { | |
2074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2077 | return NULL; | |
2078 | } | |
2079 | } | |
2080 | { | |
2081 | _arg1 = &temp; | |
2082 | if (! wxRect_helper(_obj1, &_arg1)) | |
2083 | return NULL; | |
2084 | } | |
2085 | { | |
2086 | wxPy_BEGIN_ALLOW_THREADS; | |
2087 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
2088 | ||
2089 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2090 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2091 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2092 | _resultobj = Py_BuildValue("s",_ptemp); | |
2093 | return _resultobj; | |
2094 | } | |
2095 | ||
2096 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2097 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2098 | PyObject * _resultobj; | |
2099 | bool _result; | |
2100 | wxBitmap * _arg0; | |
2101 | wxIcon * _arg1; | |
2102 | PyObject * _argo0 = 0; | |
2103 | PyObject * _argo1 = 0; | |
2104 | char *_kwnames[] = { "self","icon", NULL }; | |
2105 | ||
2106 | self = self; | |
2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2108 | return NULL; | |
2109 | if (_argo0) { | |
2110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2113 | return NULL; | |
2114 | } | |
2115 | } | |
2116 | if (_argo1) { | |
2117 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2118 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2120 | return NULL; | |
2121 | } | |
2122 | } | |
2123 | { | |
2124 | wxPy_BEGIN_ALLOW_THREADS; | |
2125 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
2126 | ||
2127 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2128 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2129 | } _resultobj = Py_BuildValue("i",_result); |
2130 | return _resultobj; | |
2131 | } | |
2132 | ||
2133 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2134 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2135 | PyObject * _resultobj; | |
2136 | bool _result; | |
2137 | wxBitmap * _arg0; | |
2138 | wxCursor * _arg1; | |
2139 | PyObject * _argo0 = 0; | |
2140 | PyObject * _argo1 = 0; | |
2141 | char *_kwnames[] = { "self","cursor", NULL }; | |
2142 | ||
2143 | self = self; | |
2144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2145 | return NULL; | |
2146 | if (_argo0) { | |
2147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2150 | return NULL; | |
2151 | } | |
2152 | } | |
2153 | if (_argo1) { | |
2154 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2155 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2157 | return NULL; | |
2158 | } | |
2159 | } | |
2160 | { | |
2161 | wxPy_BEGIN_ALLOW_THREADS; | |
2162 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); | |
2163 | ||
2164 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2165 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2166 | } _resultobj = Py_BuildValue("i",_result); |
2167 | return _resultobj; | |
2168 | } | |
2169 | ||
2170 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2171 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2172 | PyObject * _resultobj; | |
2173 | int _result; | |
2174 | wxBitmap * _arg0; | |
2175 | PyObject * _argo0 = 0; | |
2176 | char *_kwnames[] = { "self", NULL }; | |
2177 | ||
2178 | self = self; | |
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2180 | return NULL; | |
2181 | if (_argo0) { | |
2182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2185 | return NULL; | |
2186 | } | |
2187 | } | |
2188 | { | |
2189 | wxPy_BEGIN_ALLOW_THREADS; | |
2190 | _result = (int )wxBitmap_GetQuality(_arg0); | |
2191 | ||
2192 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2193 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2194 | } _resultobj = Py_BuildValue("i",_result); |
2195 | return _resultobj; | |
2196 | } | |
2197 | ||
2198 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2199 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2200 | PyObject * _resultobj; | |
2201 | wxBitmap * _arg0; | |
2202 | int _arg1; | |
2203 | PyObject * _argo0 = 0; | |
2204 | char *_kwnames[] = { "self","q", NULL }; | |
2205 | ||
2206 | self = self; | |
2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2208 | return NULL; | |
2209 | if (_argo0) { | |
2210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2213 | return NULL; | |
2214 | } | |
2215 | } | |
2216 | { | |
2217 | wxPy_BEGIN_ALLOW_THREADS; | |
2218 | wxBitmap_SetQuality(_arg0,_arg1); | |
2219 | ||
2220 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2221 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2222 | } Py_INCREF(Py_None); |
2223 | _resultobj = Py_None; | |
2224 | return _resultobj; | |
2225 | } | |
2226 | ||
9416aa89 RD |
2227 | static void *SwigwxMaskTowxObject(void *ptr) { |
2228 | wxMask *src; | |
2229 | wxObject *dest; | |
2230 | src = (wxMask *) ptr; | |
2231 | dest = (wxObject *) src; | |
2232 | return (void *) dest; | |
2233 | } | |
2234 | ||
9b3d3bc4 RD |
2235 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2236 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2237 | PyObject * _resultobj; | |
2238 | wxMask * _result; | |
2239 | wxBitmap * _arg0; | |
2240 | PyObject * _argo0 = 0; | |
2241 | char *_kwnames[] = { "bitmap", NULL }; | |
2242 | char _ptemp[128]; | |
2243 | ||
2244 | self = self; | |
2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2246 | return NULL; | |
2247 | if (_argo0) { | |
2248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2251 | return NULL; | |
2252 | } | |
2253 | } | |
2254 | { | |
2255 | wxPy_BEGIN_ALLOW_THREADS; | |
2256 | _result = (wxMask *)new_wxMask(*_arg0); | |
2257 | ||
2258 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2259 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2260 | } if (_result) { |
2261 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2262 | _resultobj = Py_BuildValue("s",_ptemp); | |
2263 | } else { | |
2264 | Py_INCREF(Py_None); | |
2265 | _resultobj = Py_None; | |
2266 | } | |
2267 | return _resultobj; | |
8ab979d7 RD |
2268 | } |
2269 | ||
96bfd053 RD |
2270 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2271 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject * _resultobj; | |
2273 | wxMask * _arg0; | |
2274 | PyObject * _argo0 = 0; | |
2275 | char *_kwnames[] = { "self", NULL }; | |
2276 | ||
2277 | self = self; | |
2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2279 | return NULL; | |
2280 | if (_argo0) { | |
2281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2284 | return NULL; | |
2285 | } | |
2286 | } | |
2287 | { | |
2288 | wxPy_BEGIN_ALLOW_THREADS; | |
2289 | wxMask_Destroy(_arg0); | |
2290 | ||
2291 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2292 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2293 | } Py_INCREF(Py_None); |
2294 | _resultobj = Py_None; | |
2295 | return _resultobj; | |
2296 | } | |
2297 | ||
9416aa89 RD |
2298 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2299 | wxIcon *src; | |
2300 | wxGDIObject *dest; | |
2301 | src = (wxIcon *) ptr; | |
2302 | dest = (wxGDIObject *) src; | |
2303 | return (void *) dest; | |
2304 | } | |
2305 | ||
2306 | static void *SwigwxIconTowxObject(void *ptr) { | |
2307 | wxIcon *src; | |
2308 | wxObject *dest; | |
2309 | src = (wxIcon *) ptr; | |
2310 | dest = (wxObject *) src; | |
2311 | return (void *) dest; | |
2312 | } | |
2313 | ||
9b3d3bc4 RD |
2314 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2315 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2316 | PyObject * _resultobj; |
9b3d3bc4 | 2317 | wxIcon * _result; |
8ab979d7 RD |
2318 | wxString * _arg0; |
2319 | long _arg1; | |
9b3d3bc4 RD |
2320 | int _arg2 = (int ) -1; |
2321 | int _arg3 = (int ) -1; | |
8ab979d7 | 2322 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2323 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2324 | char _ptemp[128]; |
2325 | ||
2326 | self = self; | |
9b3d3bc4 | 2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2328 | return NULL; |
2329 | { | |
185d7c3e RD |
2330 | #if PYTHON_API_VERSION >= 1009 |
2331 | char* tmpPtr; int tmpSize; | |
2332 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2333 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2334 | return NULL; |
2335 | } | |
2336 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2337 | return NULL; | |
2338 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2339 | #else | |
8ab979d7 RD |
2340 | if (!PyString_Check(_obj0)) { |
2341 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2342 | return NULL; | |
2343 | } | |
185d7c3e RD |
2344 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2345 | #endif | |
8ab979d7 | 2346 | } |
cf694132 RD |
2347 | { |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 2349 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
2350 | |
2351 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2352 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2353 | } if (_result) { |
9b3d3bc4 | 2354 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2355 | _resultobj = Py_BuildValue("s",_ptemp); |
2356 | } else { | |
2357 | Py_INCREF(Py_None); | |
2358 | _resultobj = Py_None; | |
2359 | } | |
8ab979d7 RD |
2360 | { |
2361 | if (_obj0) | |
2362 | delete _arg0; | |
2363 | } | |
2364 | return _resultobj; | |
2365 | } | |
2366 | ||
9b3d3bc4 RD |
2367 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2368 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2369 | PyObject * _resultobj; |
9b3d3bc4 | 2370 | wxIcon * _arg0; |
1d99702e | 2371 | PyObject * _argo0 = 0; |
1afc06c2 | 2372 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2373 | |
2374 | self = self; | |
9b3d3bc4 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2376 | return NULL; |
1d99702e RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2381 | return NULL; |
2382 | } | |
2383 | } | |
cf694132 RD |
2384 | { |
2385 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
2386 | delete_wxIcon(_arg0); |
2387 | ||
2388 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2389 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2390 | } Py_INCREF(Py_None); |
2391 | _resultobj = Py_None; | |
2392 | return _resultobj; | |
2393 | } | |
2394 | ||
2395 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2396 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2397 | PyObject * _resultobj; | |
2398 | bool _result; | |
2399 | wxIcon * _arg0; | |
2400 | wxString * _arg1; | |
2401 | long _arg2; | |
2402 | PyObject * _argo0 = 0; | |
2403 | PyObject * _obj1 = 0; | |
2404 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2405 | ||
2406 | self = self; | |
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2408 | return NULL; | |
2409 | if (_argo0) { | |
2410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2413 | return NULL; | |
2414 | } | |
2415 | } | |
2416 | { | |
185d7c3e RD |
2417 | #if PYTHON_API_VERSION >= 1009 |
2418 | char* tmpPtr; int tmpSize; | |
2419 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2420 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2421 | return NULL; |
2422 | } | |
2423 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2424 | return NULL; | |
2425 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2426 | #else | |
9b3d3bc4 RD |
2427 | if (!PyString_Check(_obj1)) { |
2428 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2429 | return NULL; | |
2430 | } | |
185d7c3e RD |
2431 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2432 | #endif | |
9b3d3bc4 RD |
2433 | } |
2434 | { | |
2435 | wxPy_BEGIN_ALLOW_THREADS; | |
2436 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2437 | ||
2438 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2439 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2440 | } _resultobj = Py_BuildValue("i",_result); |
2441 | { | |
2442 | if (_obj1) | |
2443 | delete _arg1; | |
2444 | } | |
2445 | return _resultobj; | |
2446 | } | |
2447 | ||
2448 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2449 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject * _resultobj; | |
2451 | long _result; | |
2452 | wxIcon * _arg0; | |
2453 | PyObject * _argo0 = 0; | |
2454 | char *_kwnames[] = { "self", NULL }; | |
2455 | ||
2456 | self = self; | |
2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2458 | return NULL; | |
2459 | if (_argo0) { | |
2460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2463 | return NULL; | |
2464 | } | |
2465 | } | |
2466 | { | |
2467 | wxPy_BEGIN_ALLOW_THREADS; | |
2468 | _result = (long )wxIcon_GetHandle(_arg0); | |
2469 | ||
2470 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2471 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2472 | } _resultobj = Py_BuildValue("l",_result); |
2473 | return _resultobj; | |
2474 | } | |
2475 | ||
2476 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2477 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject * _resultobj; | |
2479 | wxIcon * _arg0; | |
2480 | long _arg1; | |
2481 | PyObject * _argo0 = 0; | |
2482 | char *_kwnames[] = { "self","handle", NULL }; | |
2483 | ||
2484 | self = self; | |
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2486 | return NULL; | |
2487 | if (_argo0) { | |
2488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2491 | return NULL; | |
2492 | } | |
2493 | } | |
2494 | { | |
2495 | wxPy_BEGIN_ALLOW_THREADS; | |
2496 | wxIcon_SetHandle(_arg0,_arg1); | |
2497 | ||
2498 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2499 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2500 | } Py_INCREF(Py_None); |
2501 | _resultobj = Py_None; | |
2502 | return _resultobj; | |
2503 | } | |
2504 | ||
2505 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2506 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject * _resultobj; | |
2508 | bool _result; | |
2509 | wxIcon * _arg0; | |
2510 | PyObject * _argo0 = 0; | |
2511 | char *_kwnames[] = { "self", NULL }; | |
2512 | ||
2513 | self = self; | |
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2515 | return NULL; | |
2516 | if (_argo0) { | |
2517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2520 | return NULL; | |
2521 | } | |
2522 | } | |
2523 | { | |
2524 | wxPy_BEGIN_ALLOW_THREADS; | |
2525 | _result = (bool )wxIcon_Ok(_arg0); | |
2526 | ||
2527 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2528 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2529 | } _resultobj = Py_BuildValue("i",_result); |
2530 | return _resultobj; | |
2531 | } | |
2532 | ||
2533 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2534 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject * _resultobj; | |
2536 | int _result; | |
2537 | wxIcon * _arg0; | |
2538 | PyObject * _argo0 = 0; | |
2539 | char *_kwnames[] = { "self", NULL }; | |
2540 | ||
2541 | self = self; | |
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2543 | return NULL; | |
2544 | if (_argo0) { | |
2545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2548 | return NULL; | |
2549 | } | |
2550 | } | |
2551 | { | |
2552 | wxPy_BEGIN_ALLOW_THREADS; | |
2553 | _result = (int )wxIcon_GetWidth(_arg0); | |
2554 | ||
2555 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2556 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2557 | } _resultobj = Py_BuildValue("i",_result); |
2558 | return _resultobj; | |
2559 | } | |
2560 | ||
2561 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2562 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2563 | PyObject * _resultobj; | |
2564 | int _result; | |
2565 | wxIcon * _arg0; | |
2566 | PyObject * _argo0 = 0; | |
2567 | char *_kwnames[] = { "self", NULL }; | |
2568 | ||
2569 | self = self; | |
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2571 | return NULL; | |
2572 | if (_argo0) { | |
2573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2576 | return NULL; | |
2577 | } | |
2578 | } | |
2579 | { | |
2580 | wxPy_BEGIN_ALLOW_THREADS; | |
2581 | _result = (int )wxIcon_GetHeight(_arg0); | |
2582 | ||
2583 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2584 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2585 | } _resultobj = Py_BuildValue("i",_result); |
2586 | return _resultobj; | |
2587 | } | |
2588 | ||
2589 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2590 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject * _resultobj; | |
2592 | int _result; | |
2593 | wxIcon * _arg0; | |
2594 | PyObject * _argo0 = 0; | |
2595 | char *_kwnames[] = { "self", NULL }; | |
2596 | ||
2597 | self = self; | |
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2599 | return NULL; | |
2600 | if (_argo0) { | |
2601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2604 | return NULL; | |
2605 | } | |
2606 | } | |
2607 | { | |
2608 | wxPy_BEGIN_ALLOW_THREADS; | |
2609 | _result = (int )wxIcon_GetDepth(_arg0); | |
2610 | ||
2611 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2612 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2613 | } _resultobj = Py_BuildValue("i",_result); |
2614 | return _resultobj; | |
2615 | } | |
2616 | ||
2617 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2618 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2619 | PyObject * _resultobj; | |
2620 | wxIcon * _arg0; | |
2621 | int _arg1; | |
2622 | PyObject * _argo0 = 0; | |
2623 | char *_kwnames[] = { "self","w", NULL }; | |
2624 | ||
2625 | self = self; | |
2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2627 | return NULL; | |
2628 | if (_argo0) { | |
2629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2632 | return NULL; | |
2633 | } | |
2634 | } | |
2635 | { | |
2636 | wxPy_BEGIN_ALLOW_THREADS; | |
2637 | wxIcon_SetWidth(_arg0,_arg1); | |
2638 | ||
2639 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2640 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2641 | } Py_INCREF(Py_None); |
2642 | _resultobj = Py_None; | |
2643 | return _resultobj; | |
2644 | } | |
2645 | ||
2646 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2647 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject * _resultobj; | |
2649 | wxIcon * _arg0; | |
2650 | int _arg1; | |
2651 | PyObject * _argo0 = 0; | |
2652 | char *_kwnames[] = { "self","h", NULL }; | |
2653 | ||
2654 | self = self; | |
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2656 | return NULL; | |
2657 | if (_argo0) { | |
2658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2661 | return NULL; | |
2662 | } | |
2663 | } | |
2664 | { | |
2665 | wxPy_BEGIN_ALLOW_THREADS; | |
2666 | wxIcon_SetHeight(_arg0,_arg1); | |
2667 | ||
2668 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2669 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2670 | } Py_INCREF(Py_None); |
2671 | _resultobj = Py_None; | |
2672 | return _resultobj; | |
2673 | } | |
2674 | ||
2675 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2676 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject * _resultobj; | |
2678 | wxIcon * _arg0; | |
2679 | int _arg1; | |
2680 | PyObject * _argo0 = 0; | |
2681 | char *_kwnames[] = { "self","d", NULL }; | |
2682 | ||
2683 | self = self; | |
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2685 | return NULL; | |
2686 | if (_argo0) { | |
2687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2690 | return NULL; | |
2691 | } | |
2692 | } | |
2693 | { | |
2694 | wxPy_BEGIN_ALLOW_THREADS; | |
2695 | wxIcon_SetDepth(_arg0,_arg1); | |
2696 | ||
2697 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2698 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2699 | } Py_INCREF(Py_None); |
2700 | _resultobj = Py_None; | |
2701 | return _resultobj; | |
2702 | } | |
2703 | ||
2704 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2705 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2706 | PyObject * _resultobj; | |
2707 | wxIcon * _arg0; | |
2708 | wxSize * _arg1; | |
2709 | PyObject * _argo0 = 0; | |
2710 | wxSize temp; | |
2711 | PyObject * _obj1 = 0; | |
2712 | char *_kwnames[] = { "self","size", NULL }; | |
2713 | ||
2714 | self = self; | |
2715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2716 | return NULL; | |
2717 | if (_argo0) { | |
2718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2721 | return NULL; | |
2722 | } | |
2723 | } | |
2724 | { | |
2725 | _arg1 = &temp; | |
2726 | if (! wxSize_helper(_obj1, &_arg1)) | |
2727 | return NULL; | |
2728 | } | |
2729 | { | |
2730 | wxPy_BEGIN_ALLOW_THREADS; | |
2731 | wxIcon_SetSize(_arg0,*_arg1); | |
2732 | ||
2733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2734 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2735 | } Py_INCREF(Py_None); |
2736 | _resultobj = Py_None; | |
2737 | return _resultobj; | |
2738 | } | |
2739 | ||
96bfd053 RD |
2740 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2741 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2742 | PyObject * _resultobj; | |
2743 | wxIcon * _arg0; | |
2744 | wxBitmap * _arg1; | |
2745 | PyObject * _argo0 = 0; | |
2746 | PyObject * _argo1 = 0; | |
2747 | char *_kwnames[] = { "self","bmp", NULL }; | |
2748 | ||
2749 | self = self; | |
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2751 | return NULL; | |
2752 | if (_argo0) { | |
2753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2756 | return NULL; | |
2757 | } | |
2758 | } | |
2759 | if (_argo1) { | |
2760 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
2766 | { | |
2767 | wxPy_BEGIN_ALLOW_THREADS; | |
2768 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2769 | ||
2770 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2771 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2772 | } Py_INCREF(Py_None); |
2773 | _resultobj = Py_None; | |
2774 | return _resultobj; | |
2775 | } | |
2776 | ||
9416aa89 RD |
2777 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2778 | wxCursor *src; | |
2779 | wxGDIObject *dest; | |
2780 | src = (wxCursor *) ptr; | |
2781 | dest = (wxGDIObject *) src; | |
2782 | return (void *) dest; | |
2783 | } | |
2784 | ||
2785 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2786 | wxCursor *src; | |
2787 | wxObject *dest; | |
2788 | src = (wxCursor *) ptr; | |
2789 | dest = (wxObject *) src; | |
2790 | return (void *) dest; | |
2791 | } | |
2792 | ||
9b3d3bc4 RD |
2793 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2794 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2795 | PyObject * _resultobj; | |
2796 | wxCursor * _result; | |
2797 | wxString * _arg0; | |
2798 | long _arg1; | |
2799 | int _arg2 = (int ) 0; | |
2800 | int _arg3 = (int ) 0; | |
2801 | PyObject * _obj0 = 0; | |
2802 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2803 | char _ptemp[128]; | |
2804 | ||
2805 | self = self; | |
2806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2807 | return NULL; | |
2808 | { | |
185d7c3e RD |
2809 | #if PYTHON_API_VERSION >= 1009 |
2810 | char* tmpPtr; int tmpSize; | |
2811 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2812 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2813 | return NULL; |
2814 | } | |
2815 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2816 | return NULL; | |
2817 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2818 | #else | |
9b3d3bc4 RD |
2819 | if (!PyString_Check(_obj0)) { |
2820 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2821 | return NULL; | |
2822 | } | |
185d7c3e RD |
2823 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2824 | #endif | |
9b3d3bc4 RD |
2825 | } |
2826 | { | |
2827 | wxPy_BEGIN_ALLOW_THREADS; | |
2828 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); | |
2829 | ||
2830 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2831 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2832 | } if (_result) { |
2833 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2834 | _resultobj = Py_BuildValue("s",_ptemp); | |
2835 | } else { | |
2836 | Py_INCREF(Py_None); | |
2837 | _resultobj = Py_None; | |
2838 | } | |
2839 | { | |
2840 | if (_obj0) | |
2841 | delete _arg0; | |
2842 | } | |
2843 | return _resultobj; | |
2844 | } | |
2845 | ||
2846 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2847 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2848 | PyObject * _resultobj; | |
2849 | wxCursor * _arg0; | |
2850 | PyObject * _argo0 = 0; | |
2851 | char *_kwnames[] = { "self", NULL }; | |
2852 | ||
2853 | self = self; | |
2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2855 | return NULL; | |
2856 | if (_argo0) { | |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2863 | { | |
2864 | wxPy_BEGIN_ALLOW_THREADS; | |
2865 | delete_wxCursor(_arg0); | |
2866 | ||
2867 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2868 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2869 | } Py_INCREF(Py_None); |
2870 | _resultobj = Py_None; | |
2871 | return _resultobj; | |
2872 | } | |
2873 | ||
2874 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2875 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2876 | PyObject * _resultobj; | |
2877 | long _result; | |
2878 | wxCursor * _arg0; | |
2879 | PyObject * _argo0 = 0; | |
2880 | char *_kwnames[] = { "self", NULL }; | |
2881 | ||
2882 | self = self; | |
2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2884 | return NULL; | |
2885 | if (_argo0) { | |
2886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2889 | return NULL; | |
2890 | } | |
2891 | } | |
2892 | { | |
2893 | wxPy_BEGIN_ALLOW_THREADS; | |
2894 | _result = (long )wxCursor_GetHandle(_arg0); | |
2895 | ||
2896 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2897 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2898 | } _resultobj = Py_BuildValue("l",_result); |
2899 | return _resultobj; | |
2900 | } | |
2901 | ||
2902 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2903 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2904 | PyObject * _resultobj; | |
2905 | wxCursor * _arg0; | |
2906 | long _arg1; | |
2907 | PyObject * _argo0 = 0; | |
2908 | char *_kwnames[] = { "self","handle", NULL }; | |
2909 | ||
2910 | self = self; | |
2911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2912 | return NULL; | |
2913 | if (_argo0) { | |
2914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2917 | return NULL; | |
2918 | } | |
2919 | } | |
2920 | { | |
2921 | wxPy_BEGIN_ALLOW_THREADS; | |
2922 | wxCursor_SetHandle(_arg0,_arg1); | |
2923 | ||
2924 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2925 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2926 | } Py_INCREF(Py_None); |
2927 | _resultobj = Py_None; | |
2928 | return _resultobj; | |
2929 | } | |
2930 | ||
2931 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2932 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2933 | PyObject * _resultobj; | |
2934 | bool _result; | |
2935 | wxCursor * _arg0; | |
2936 | PyObject * _argo0 = 0; | |
2937 | char *_kwnames[] = { "self", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2941 | return NULL; | |
2942 | if (_argo0) { | |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
2949 | { | |
2950 | wxPy_BEGIN_ALLOW_THREADS; | |
2951 | _result = (bool )wxCursor_Ok(_arg0); | |
2952 | ||
2953 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2954 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2955 | } _resultobj = Py_BuildValue("i",_result); |
2956 | return _resultobj; | |
2957 | } | |
2958 | ||
2959 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2960 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2961 | PyObject * _resultobj; | |
2962 | int _result; | |
2963 | wxCursor * _arg0; | |
2964 | PyObject * _argo0 = 0; | |
2965 | char *_kwnames[] = { "self", NULL }; | |
2966 | ||
2967 | self = self; | |
2968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2969 | return NULL; | |
2970 | if (_argo0) { | |
2971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
2974 | return NULL; | |
2975 | } | |
2976 | } | |
2977 | { | |
2978 | wxPy_BEGIN_ALLOW_THREADS; | |
2979 | _result = (int )wxCursor_GetWidth(_arg0); | |
2980 | ||
2981 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2982 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2983 | } _resultobj = Py_BuildValue("i",_result); |
2984 | return _resultobj; | |
2985 | } | |
2986 | ||
2987 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2988 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2989 | PyObject * _resultobj; | |
2990 | int _result; | |
2991 | wxCursor * _arg0; | |
2992 | PyObject * _argo0 = 0; | |
2993 | char *_kwnames[] = { "self", NULL }; | |
2994 | ||
2995 | self = self; | |
2996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
2997 | return NULL; | |
2998 | if (_argo0) { | |
2999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
3002 | return NULL; | |
3003 | } | |
3004 | } | |
3005 | { | |
3006 | wxPy_BEGIN_ALLOW_THREADS; | |
3007 | _result = (int )wxCursor_GetHeight(_arg0); | |
3008 | ||
3009 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3010 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3011 | } _resultobj = Py_BuildValue("i",_result); |
3012 | return _resultobj; | |
3013 | } | |
3014 | ||
3015 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
3016 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3017 | PyObject * _resultobj; | |
3018 | int _result; | |
3019 | wxCursor * _arg0; | |
3020 | PyObject * _argo0 = 0; | |
3021 | char *_kwnames[] = { "self", NULL }; | |
3022 | ||
3023 | self = self; | |
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
3025 | return NULL; | |
3026 | if (_argo0) { | |
3027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3030 | return NULL; | |
3031 | } | |
3032 | } | |
3033 | { | |
3034 | wxPy_BEGIN_ALLOW_THREADS; | |
3035 | _result = (int )wxCursor_GetDepth(_arg0); | |
3036 | ||
3037 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3038 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3039 | } _resultobj = Py_BuildValue("i",_result); |
3040 | return _resultobj; | |
3041 | } | |
3042 | ||
3043 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3044 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject * _resultobj; | |
3046 | wxCursor * _arg0; | |
3047 | int _arg1; | |
3048 | PyObject * _argo0 = 0; | |
3049 | char *_kwnames[] = { "self","w", NULL }; | |
3050 | ||
3051 | self = self; | |
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3053 | return NULL; | |
3054 | if (_argo0) { | |
3055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3058 | return NULL; | |
3059 | } | |
3060 | } | |
3061 | { | |
3062 | wxPy_BEGIN_ALLOW_THREADS; | |
3063 | wxCursor_SetWidth(_arg0,_arg1); | |
3064 | ||
3065 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3066 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3067 | } Py_INCREF(Py_None); |
3068 | _resultobj = Py_None; | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3073 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject * _resultobj; | |
3075 | wxCursor * _arg0; | |
3076 | int _arg1; | |
3077 | PyObject * _argo0 = 0; | |
3078 | char *_kwnames[] = { "self","h", NULL }; | |
3079 | ||
3080 | self = self; | |
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3082 | return NULL; | |
3083 | if (_argo0) { | |
3084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3087 | return NULL; | |
3088 | } | |
3089 | } | |
3090 | { | |
3091 | wxPy_BEGIN_ALLOW_THREADS; | |
3092 | wxCursor_SetHeight(_arg0,_arg1); | |
3093 | ||
3094 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3095 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3096 | } Py_INCREF(Py_None); |
3097 | _resultobj = Py_None; | |
3098 | return _resultobj; | |
3099 | } | |
3100 | ||
3101 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3102 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject * _resultobj; | |
3104 | wxCursor * _arg0; | |
3105 | int _arg1; | |
3106 | PyObject * _argo0 = 0; | |
3107 | char *_kwnames[] = { "self","d", NULL }; | |
3108 | ||
3109 | self = self; | |
3110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3111 | return NULL; | |
3112 | if (_argo0) { | |
3113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3116 | return NULL; | |
3117 | } | |
3118 | } | |
3119 | { | |
3120 | wxPy_BEGIN_ALLOW_THREADS; | |
3121 | wxCursor_SetDepth(_arg0,_arg1); | |
3122 | ||
3123 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3124 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3125 | } Py_INCREF(Py_None); |
3126 | _resultobj = Py_None; | |
3127 | return _resultobj; | |
3128 | } | |
3129 | ||
3130 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3131 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3132 | PyObject * _resultobj; | |
3133 | wxCursor * _arg0; | |
3134 | wxSize * _arg1; | |
3135 | PyObject * _argo0 = 0; | |
3136 | wxSize temp; | |
3137 | PyObject * _obj1 = 0; | |
3138 | char *_kwnames[] = { "self","size", NULL }; | |
3139 | ||
3140 | self = self; | |
3141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3142 | return NULL; | |
3143 | if (_argo0) { | |
3144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3147 | return NULL; | |
3148 | } | |
3149 | } | |
3150 | { | |
3151 | _arg1 = &temp; | |
3152 | if (! wxSize_helper(_obj1, &_arg1)) | |
3153 | return NULL; | |
3154 | } | |
3155 | { | |
3156 | wxPy_BEGIN_ALLOW_THREADS; | |
3157 | wxCursor_SetSize(_arg0,*_arg1); | |
cf694132 RD |
3158 | |
3159 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3161 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3162 | _resultobj = Py_None; |
3163 | return _resultobj; | |
3164 | } | |
3165 | ||
6d8b4f8d RD |
3166 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
3167 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject * _resultobj; | |
3169 | bool _result; | |
3170 | wxNativeFontInfo * _arg0; | |
3171 | wxString * _arg1; | |
3172 | PyObject * _argo0 = 0; | |
3173 | PyObject * _obj1 = 0; | |
3174 | char *_kwnames[] = { "self","s", NULL }; | |
3175 | ||
3176 | self = self; | |
3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
3178 | return NULL; | |
3179 | if (_argo0) { | |
3180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3183 | return NULL; | |
3184 | } | |
3185 | } | |
3186 | { | |
3187 | #if PYTHON_API_VERSION >= 1009 | |
3188 | char* tmpPtr; int tmpSize; | |
3189 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3191 | return NULL; | |
3192 | } | |
3193 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3194 | return NULL; | |
3195 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3196 | #else | |
3197 | if (!PyString_Check(_obj1)) { | |
3198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3199 | return NULL; | |
3200 | } | |
3201 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3202 | #endif | |
9416aa89 | 3203 | } |
6d8b4f8d RD |
3204 | { |
3205 | wxPy_BEGIN_ALLOW_THREADS; | |
3206 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); | |
9416aa89 | 3207 | |
6d8b4f8d RD |
3208 | wxPy_END_ALLOW_THREADS; |
3209 | if (PyErr_Occurred()) return NULL; | |
3210 | } _resultobj = Py_BuildValue("i",_result); | |
3211 | { | |
3212 | if (_obj1) | |
3213 | delete _arg1; | |
3214 | } | |
3215 | return _resultobj; | |
9416aa89 RD |
3216 | } |
3217 | ||
6d8b4f8d RD |
3218 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
3219 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3220 | PyObject * _resultobj; |
6d8b4f8d RD |
3221 | wxString * _result; |
3222 | wxNativeFontInfo * _arg0; | |
3223 | PyObject * _argo0 = 0; | |
3224 | char *_kwnames[] = { "self", NULL }; | |
3225 | ||
3226 | self = self; | |
3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3228 | return NULL; | |
3229 | if (_argo0) { | |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
3236 | { | |
3237 | wxPy_BEGIN_ALLOW_THREADS; | |
3238 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); | |
3239 | ||
3240 | wxPy_END_ALLOW_THREADS; | |
3241 | if (PyErr_Occurred()) return NULL; | |
3242 | }{ | |
3243 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3244 | } | |
3245 | { | |
3246 | delete _result; | |
3247 | } | |
3248 | return _resultobj; | |
3249 | } | |
3250 | ||
3251 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3252 | return self->ToString(); | |
3253 | } | |
3254 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3255 | PyObject * _resultobj; | |
3256 | wxString * _result; | |
3257 | wxNativeFontInfo * _arg0; | |
3258 | PyObject * _argo0 = 0; | |
3259 | char *_kwnames[] = { "self", NULL }; | |
3260 | ||
3261 | self = self; | |
3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3263 | return NULL; | |
3264 | if (_argo0) { | |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | { | |
3272 | wxPy_BEGIN_ALLOW_THREADS; | |
3273 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); | |
3274 | ||
3275 | wxPy_END_ALLOW_THREADS; | |
3276 | if (PyErr_Occurred()) return NULL; | |
3277 | }{ | |
3278 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3279 | } | |
3280 | { | |
3281 | delete _result; | |
3282 | } | |
3283 | return _resultobj; | |
3284 | } | |
3285 | ||
3286 | #define new_wxFontMapper() (new wxFontMapper()) | |
3287 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3288 | PyObject * _resultobj; | |
3289 | wxFontMapper * _result; | |
3290 | char *_kwnames[] = { NULL }; | |
8ab979d7 RD |
3291 | char _ptemp[128]; |
3292 | ||
3293 | self = self; | |
6d8b4f8d | 3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) |
8ab979d7 | 3295 | return NULL; |
cf694132 RD |
3296 | { |
3297 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3298 | _result = (wxFontMapper *)new_wxFontMapper(); |
cf694132 RD |
3299 | |
3300 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3301 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3302 | } if (_result) { |
6d8b4f8d | 3303 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); |
1d99702e RD |
3304 | _resultobj = Py_BuildValue("s",_ptemp); |
3305 | } else { | |
3306 | Py_INCREF(Py_None); | |
3307 | _resultobj = Py_None; | |
3308 | } | |
8ab979d7 RD |
3309 | return _resultobj; |
3310 | } | |
3311 | ||
6d8b4f8d RD |
3312 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) |
3313 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0569df0f | 3314 | PyObject * _resultobj; |
6d8b4f8d | 3315 | wxFontMapper * _arg0; |
0569df0f RD |
3316 | PyObject * _argo0 = 0; |
3317 | char *_kwnames[] = { "self", NULL }; | |
3318 | ||
3319 | self = self; | |
6d8b4f8d | 3320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
0569df0f RD |
3321 | return NULL; |
3322 | if (_argo0) { | |
3323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
0569df0f RD |
3326 | return NULL; |
3327 | } | |
3328 | } | |
3329 | { | |
3330 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3331 | delete_wxFontMapper(_arg0); |
0569df0f RD |
3332 | |
3333 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3334 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3335 | } Py_INCREF(Py_None); |
3336 | _resultobj = Py_None; | |
3337 | return _resultobj; | |
3338 | } | |
3339 | ||
6d8b4f8d RD |
3340 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3341 | wxFontEncoding alt_enc; | |
3342 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3343 | return PyInt_FromLong(alt_enc); | |
3344 | else { | |
3345 | Py_INCREF(Py_None); | |
3346 | return Py_None; | |
3347 | } | |
3348 | } | |
3349 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
694759cf | 3350 | PyObject * _resultobj; |
6d8b4f8d RD |
3351 | PyObject * _result; |
3352 | wxFontMapper * _arg0; | |
3353 | wxFontEncoding _arg1; | |
3354 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3355 | bool _arg3 = (bool ) TRUE; | |
694759cf | 3356 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3357 | PyObject * _obj2 = 0; |
3358 | int tempbool3 = (int) TRUE; | |
3359 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
694759cf RD |
3360 | |
3361 | self = self; | |
6d8b4f8d | 3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
694759cf RD |
3363 | return NULL; |
3364 | if (_argo0) { | |
3365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
694759cf RD |
3368 | return NULL; |
3369 | } | |
3370 | } | |
6d8b4f8d RD |
3371 | if (_obj2) |
3372 | { | |
3373 | #if PYTHON_API_VERSION >= 1009 | |
3374 | char* tmpPtr; int tmpSize; | |
3375 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3376 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3377 | return NULL; | |
3378 | } | |
3379 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3380 | return NULL; | |
3381 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3382 | #else | |
3383 | if (!PyString_Check(_obj2)) { | |
3384 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3385 | return NULL; | |
3386 | } | |
3387 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3388 | #endif | |
3389 | } | |
3390 | _arg3 = (bool ) tempbool3; | |
694759cf RD |
3391 | { |
3392 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3393 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
694759cf RD |
3394 | |
3395 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3396 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
3397 | }{ |
3398 | _resultobj = _result; | |
3399 | } | |
3400 | { | |
3401 | if (_obj2) | |
3402 | delete _arg2; | |
3403 | } | |
694759cf RD |
3404 | return _resultobj; |
3405 | } | |
3406 | ||
6d8b4f8d RD |
3407 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
3408 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3409 | PyObject * _resultobj; |
6d8b4f8d RD |
3410 | bool _result; |
3411 | wxFontMapper * _arg0; | |
3412 | wxFontEncoding _arg1; | |
3413 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1d99702e | 3414 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3415 | PyObject * _obj2 = 0; |
3416 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
8ab979d7 RD |
3417 | |
3418 | self = self; | |
6d8b4f8d | 3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3420 | return NULL; |
1d99702e RD |
3421 | if (_argo0) { |
3422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
8ab979d7 RD |
3425 | return NULL; |
3426 | } | |
3427 | } | |
6d8b4f8d RD |
3428 | if (_obj2) |
3429 | { | |
3430 | #if PYTHON_API_VERSION >= 1009 | |
3431 | char* tmpPtr; int tmpSize; | |
3432 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3433 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3434 | return NULL; | |
3435 | } | |
3436 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3437 | return NULL; | |
3438 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3439 | #else | |
3440 | if (!PyString_Check(_obj2)) { | |
3441 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3442 | return NULL; | |
3443 | } | |
3444 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3445 | #endif | |
3446 | } | |
8ab979d7 | 3447 | { |
cf694132 | 3448 | wxPy_BEGIN_ALLOW_THREADS; |
6d8b4f8d | 3449 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
cf694132 RD |
3450 | |
3451 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3452 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 3453 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 3454 | { |
6d8b4f8d RD |
3455 | if (_obj2) |
3456 | delete _arg2; | |
8ab979d7 RD |
3457 | } |
3458 | return _resultobj; | |
3459 | } | |
3460 | ||
6d8b4f8d RD |
3461 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
3462 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3463 | PyObject * _resultobj; |
6d8b4f8d RD |
3464 | wxFontEncoding _result; |
3465 | wxFontMapper * _arg0; | |
3466 | wxString * _arg1; | |
3467 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3468 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3469 | PyObject * _obj1 = 0; |
3470 | int tempbool2 = (int) TRUE; | |
3471 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
8ab979d7 RD |
3472 | |
3473 | self = self; | |
6d8b4f8d | 3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 3475 | return NULL; |
1d99702e RD |
3476 | if (_argo0) { |
3477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3480 | return NULL; | |
3481 | } | |
3482 | } | |
3483 | { | |
3484 | #if PYTHON_API_VERSION >= 1009 | |
3485 | char* tmpPtr; int tmpSize; | |
3486 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3487 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3488 | return NULL; | |
3489 | } | |
3490 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3491 | return NULL; | |
3492 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3493 | #else | |
3494 | if (!PyString_Check(_obj1)) { | |
3495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3496 | return NULL; | |
3497 | } | |
3498 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3499 | #endif | |
3500 | } | |
3501 | _arg2 = (bool ) tempbool2; | |
3502 | { | |
3503 | wxPy_BEGIN_ALLOW_THREADS; | |
3504 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); | |
3505 | ||
3506 | wxPy_END_ALLOW_THREADS; | |
3507 | if (PyErr_Occurred()) return NULL; | |
3508 | } _resultobj = Py_BuildValue("i",_result); | |
3509 | { | |
3510 | if (_obj1) | |
3511 | delete _arg1; | |
3512 | } | |
3513 | return _resultobj; | |
3514 | } | |
3515 | ||
3516 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3517 | PyObject * _resultobj; | |
3518 | wxString * _result; | |
3519 | wxFontEncoding _arg0; | |
3520 | char *_kwnames[] = { "encoding", NULL }; | |
3521 | ||
3522 | self = self; | |
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3524 | return NULL; | |
3525 | { | |
3526 | wxPy_BEGIN_ALLOW_THREADS; | |
3527 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); | |
3528 | ||
3529 | wxPy_END_ALLOW_THREADS; | |
3530 | if (PyErr_Occurred()) return NULL; | |
3531 | }{ | |
3532 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3533 | } | |
3534 | { | |
3535 | delete _result; | |
3536 | } | |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
3540 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject * _resultobj; | |
3542 | wxString * _result; | |
3543 | wxFontEncoding _arg0; | |
3544 | char *_kwnames[] = { "encoding", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3548 | return NULL; | |
3549 | { | |
3550 | wxPy_BEGIN_ALLOW_THREADS; | |
3551 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); | |
3552 | ||
3553 | wxPy_END_ALLOW_THREADS; | |
3554 | if (PyErr_Occurred()) return NULL; | |
3555 | }{ | |
3556 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3557 | } | |
3558 | { | |
3559 | delete _result; | |
3560 | } | |
3561 | return _resultobj; | |
3562 | } | |
3563 | ||
3564 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3565 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3566 | PyObject * _resultobj; | |
3567 | wxFontMapper * _arg0; | |
3568 | wxWindow * _arg1; | |
3569 | PyObject * _argo0 = 0; | |
3570 | PyObject * _argo1 = 0; | |
3571 | char *_kwnames[] = { "self","parent", NULL }; | |
3572 | ||
3573 | self = self; | |
3574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3575 | return NULL; | |
3576 | if (_argo0) { | |
3577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3580 | return NULL; | |
3581 | } | |
3582 | } | |
3583 | if (_argo1) { | |
3584 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3585 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3587 | return NULL; | |
3588 | } | |
3589 | } | |
3590 | { | |
3591 | wxPy_BEGIN_ALLOW_THREADS; | |
3592 | wxFontMapper_SetDialogParent(_arg0,_arg1); | |
3593 | ||
3594 | wxPy_END_ALLOW_THREADS; | |
3595 | if (PyErr_Occurred()) return NULL; | |
3596 | } Py_INCREF(Py_None); | |
3597 | _resultobj = Py_None; | |
3598 | return _resultobj; | |
3599 | } | |
3600 | ||
3601 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3602 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject * _resultobj; | |
3604 | wxFontMapper * _arg0; | |
3605 | wxString * _arg1; | |
3606 | PyObject * _argo0 = 0; | |
3607 | PyObject * _obj1 = 0; | |
3608 | char *_kwnames[] = { "self","title", NULL }; | |
3609 | ||
3610 | self = self; | |
3611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3612 | return NULL; | |
3613 | if (_argo0) { | |
3614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3617 | return NULL; | |
3618 | } | |
3619 | } | |
3620 | { | |
3621 | #if PYTHON_API_VERSION >= 1009 | |
3622 | char* tmpPtr; int tmpSize; | |
3623 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3624 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3625 | return NULL; | |
3626 | } | |
3627 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3628 | return NULL; | |
3629 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3630 | #else | |
3631 | if (!PyString_Check(_obj1)) { | |
3632 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3633 | return NULL; | |
3634 | } | |
3635 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3636 | #endif | |
3637 | } | |
3638 | { | |
3639 | wxPy_BEGIN_ALLOW_THREADS; | |
3640 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); | |
3641 | ||
3642 | wxPy_END_ALLOW_THREADS; | |
3643 | if (PyErr_Occurred()) return NULL; | |
3644 | } Py_INCREF(Py_None); | |
3645 | _resultobj = Py_None; | |
3646 | { | |
3647 | if (_obj1) | |
3648 | delete _arg1; | |
3649 | } | |
3650 | return _resultobj; | |
3651 | } | |
3652 | ||
3653 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3654 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3655 | PyObject * _resultobj; | |
3656 | wxFontMapper * _arg0; | |
3657 | wxConfigBase * _arg1; | |
3658 | PyObject * _argo0 = 0; | |
3659 | PyObject * _argo1 = 0; | |
3660 | char *_kwnames[] = { "self","config", NULL }; | |
3661 | ||
3662 | self = self; | |
3663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3664 | return NULL; | |
3665 | if (_argo0) { | |
3666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3669 | return NULL; | |
3670 | } | |
3671 | } | |
3672 | if (_argo1) { | |
3673 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3674 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3676 | return NULL; | |
3677 | } | |
3678 | } | |
3679 | { | |
3680 | wxPy_BEGIN_ALLOW_THREADS; | |
3681 | wxFontMapper_SetConfig(_arg0,_arg1); | |
3682 | ||
3683 | wxPy_END_ALLOW_THREADS; | |
3684 | if (PyErr_Occurred()) return NULL; | |
3685 | } Py_INCREF(Py_None); | |
3686 | _resultobj = Py_None; | |
3687 | return _resultobj; | |
3688 | } | |
3689 | ||
3690 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3691 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3692 | PyObject * _resultobj; | |
3693 | wxFontMapper * _arg0; | |
3694 | wxString * _arg1; | |
3695 | PyObject * _argo0 = 0; | |
3696 | PyObject * _obj1 = 0; | |
3697 | char *_kwnames[] = { "self","prefix", NULL }; | |
3698 | ||
3699 | self = self; | |
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3701 | return NULL; | |
3702 | if (_argo0) { | |
3703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3706 | return NULL; | |
3707 | } | |
3708 | } | |
3709 | { | |
3710 | #if PYTHON_API_VERSION >= 1009 | |
3711 | char* tmpPtr; int tmpSize; | |
3712 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3714 | return NULL; | |
3715 | } | |
3716 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3717 | return NULL; | |
3718 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3719 | #else | |
3720 | if (!PyString_Check(_obj1)) { | |
3721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3722 | return NULL; | |
3723 | } | |
3724 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3725 | #endif | |
3726 | } | |
3727 | { | |
3728 | wxPy_BEGIN_ALLOW_THREADS; | |
3729 | wxFontMapper_SetConfigPath(_arg0,*_arg1); | |
3730 | ||
3731 | wxPy_END_ALLOW_THREADS; | |
3732 | if (PyErr_Occurred()) return NULL; | |
3733 | } Py_INCREF(Py_None); | |
3734 | _resultobj = Py_None; | |
3735 | { | |
3736 | if (_obj1) | |
3737 | delete _arg1; | |
3738 | } | |
3739 | return _resultobj; | |
3740 | } | |
3741 | ||
3742 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3743 | PyObject * _resultobj; | |
3744 | wxChar * _result; | |
3745 | char *_kwnames[] = { NULL }; | |
3746 | ||
3747 | self = self; | |
3748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3749 | return NULL; | |
3750 | { | |
3751 | wxPy_BEGIN_ALLOW_THREADS; | |
3752 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); | |
3753 | ||
3754 | wxPy_END_ALLOW_THREADS; | |
3755 | if (PyErr_Occurred()) return NULL; | |
3756 | } _resultobj = Py_BuildValue("s", _result); | |
3757 | return _resultobj; | |
3758 | } | |
3759 | ||
3760 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3761 | wxFont *src; | |
3762 | wxGDIObject *dest; | |
3763 | src = (wxFont *) ptr; | |
3764 | dest = (wxGDIObject *) src; | |
3765 | return (void *) dest; | |
3766 | } | |
3767 | ||
3768 | static void *SwigwxFontTowxObject(void *ptr) { | |
3769 | wxFont *src; | |
3770 | wxObject *dest; | |
3771 | src = (wxFont *) ptr; | |
3772 | dest = (wxObject *) src; | |
3773 | return (void *) dest; | |
3774 | } | |
3775 | ||
3776 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3777 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3778 | PyObject * _resultobj; | |
3779 | wxFont * _result; | |
3780 | int _arg0; | |
3781 | int _arg1; | |
3782 | int _arg2; | |
3783 | int _arg3; | |
3784 | int _arg4 = (int ) FALSE; | |
3785 | char * _arg5 = (char *) ""; | |
3786 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3787 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3788 | char _ptemp[128]; | |
3789 | ||
3790 | self = self; | |
3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3792 | return NULL; | |
3793 | { | |
3794 | wxPy_BEGIN_ALLOW_THREADS; | |
3795 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3796 | ||
3797 | wxPy_END_ALLOW_THREADS; | |
3798 | if (PyErr_Occurred()) return NULL; | |
3799 | } if (_result) { | |
3800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3801 | _resultobj = Py_BuildValue("s",_ptemp); | |
3802 | } else { | |
3803 | Py_INCREF(Py_None); | |
3804 | _resultobj = Py_None; | |
3805 | } | |
3806 | return _resultobj; | |
3807 | } | |
3808 | ||
3809 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3810 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3811 | PyObject * _resultobj; | |
3812 | wxFont * _result; | |
3813 | wxNativeFontInfo * _arg0; | |
3814 | PyObject * _argo0 = 0; | |
3815 | char *_kwnames[] = { "info", NULL }; | |
3816 | char _ptemp[128]; | |
3817 | ||
3818 | self = self; | |
3819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3820 | return NULL; | |
3821 | if (_argo0) { | |
3822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3825 | return NULL; | |
3826 | } | |
3827 | } | |
3828 | { | |
3829 | wxPy_BEGIN_ALLOW_THREADS; | |
3830 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); | |
3831 | ||
3832 | wxPy_END_ALLOW_THREADS; | |
3833 | if (PyErr_Occurred()) return NULL; | |
3834 | } if (_result) { | |
3835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3836 | _resultobj = Py_BuildValue("s",_ptemp); | |
3837 | } else { | |
3838 | Py_INCREF(Py_None); | |
3839 | _resultobj = Py_None; | |
3840 | } | |
3841 | return _resultobj; | |
3842 | } | |
3843 | ||
3844 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3845 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3846 | PyObject * _resultobj; | |
3847 | wxFont * _arg0; | |
3848 | PyObject * _argo0 = 0; | |
3849 | char *_kwnames[] = { "self", NULL }; | |
3850 | ||
3851 | self = self; | |
3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3853 | return NULL; | |
3854 | if (_argo0) { | |
3855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3858 | return NULL; | |
3859 | } | |
3860 | } | |
3861 | { | |
3862 | wxPy_BEGIN_ALLOW_THREADS; | |
3863 | delete_wxFont(_arg0); | |
3864 | ||
3865 | wxPy_END_ALLOW_THREADS; | |
3866 | if (PyErr_Occurred()) return NULL; | |
3867 | } Py_INCREF(Py_None); | |
3868 | _resultobj = Py_None; | |
3869 | return _resultobj; | |
3870 | } | |
3871 | ||
3872 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3873 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3874 | PyObject * _resultobj; | |
3875 | bool _result; | |
3876 | wxFont * _arg0; | |
3877 | PyObject * _argo0 = 0; | |
3878 | char *_kwnames[] = { "self", NULL }; | |
3879 | ||
3880 | self = self; | |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3882 | return NULL; | |
3883 | if (_argo0) { | |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | { | |
3891 | wxPy_BEGIN_ALLOW_THREADS; | |
3892 | _result = (bool )wxFont_Ok(_arg0); | |
3893 | ||
3894 | wxPy_END_ALLOW_THREADS; | |
3895 | if (PyErr_Occurred()) return NULL; | |
3896 | } _resultobj = Py_BuildValue("i",_result); | |
3897 | return _resultobj; | |
3898 | } | |
3899 | ||
3900 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3901 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3902 | PyObject * _resultobj; | |
3903 | int _result; | |
3904 | wxFont * _arg0; | |
3905 | PyObject * _argo0 = 0; | |
3906 | char *_kwnames[] = { "self", NULL }; | |
3907 | ||
3908 | self = self; | |
3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3910 | return NULL; | |
3911 | if (_argo0) { | |
3912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
8ab979d7 RD |
3915 | return NULL; |
3916 | } | |
3917 | } | |
cf694132 RD |
3918 | { |
3919 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3920 | _result = (int )wxFont_GetPointSize(_arg0); |
cf694132 RD |
3921 | |
3922 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3923 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3924 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3925 | return _resultobj; |
3926 | } | |
3927 | ||
6d8b4f8d RD |
3928 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) |
3929 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3930 | PyObject * _resultobj; |
3931 | int _result; | |
3932 | wxFont * _arg0; | |
1d99702e | 3933 | PyObject * _argo0 = 0; |
1afc06c2 | 3934 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3935 | |
3936 | self = self; | |
6d8b4f8d | 3937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 3938 | return NULL; |
1d99702e RD |
3939 | if (_argo0) { |
3940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 3942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
8ab979d7 RD |
3943 | return NULL; |
3944 | } | |
3945 | } | |
cf694132 RD |
3946 | { |
3947 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3948 | _result = (int )wxFont_GetFamily(_arg0); |
cf694132 RD |
3949 | |
3950 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3951 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3952 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3953 | return _resultobj; |
3954 | } | |
3955 | ||
6d8b4f8d RD |
3956 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) |
3957 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3958 | PyObject * _resultobj; |
3959 | int _result; | |
3960 | wxFont * _arg0; | |
1d99702e | 3961 | PyObject * _argo0 = 0; |
1afc06c2 | 3962 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3963 | |
3964 | self = self; | |
6d8b4f8d | 3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 3966 | return NULL; |
1d99702e RD |
3967 | if (_argo0) { |
3968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 3970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
3971 | return NULL; |
3972 | } | |
3973 | } | |
cf694132 RD |
3974 | { |
3975 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3976 | _result = (int )wxFont_GetStyle(_arg0); |
cf694132 RD |
3977 | |
3978 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3979 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3980 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3981 | return _resultobj; |
3982 | } | |
3983 | ||
6d8b4f8d RD |
3984 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) |
3985 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3986 | PyObject * _resultobj; |
3987 | int _result; | |
3988 | wxFont * _arg0; | |
1d99702e | 3989 | PyObject * _argo0 = 0; |
1afc06c2 | 3990 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3991 | |
3992 | self = self; | |
6d8b4f8d | 3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 3994 | return NULL; |
1d99702e RD |
3995 | if (_argo0) { |
3996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 3998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
3999 | return NULL; |
4000 | } | |
4001 | } | |
cf694132 RD |
4002 | { |
4003 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4004 | _result = (int )wxFont_GetWeight(_arg0); |
cf694132 RD |
4005 | |
4006 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4007 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4008 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4009 | return _resultobj; |
4010 | } | |
4011 | ||
4012 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 4013 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4014 | PyObject * _resultobj; |
4015 | bool _result; | |
4016 | wxFont * _arg0; | |
1d99702e | 4017 | PyObject * _argo0 = 0; |
1afc06c2 | 4018 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4019 | |
4020 | self = self; | |
1afc06c2 | 4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 4022 | return NULL; |
1d99702e RD |
4023 | if (_argo0) { |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
cf694132 RD |
4030 | { |
4031 | wxPy_BEGIN_ALLOW_THREADS; | |
4032 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
4033 | ||
4034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4036 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4037 | return _resultobj; |
4038 | } | |
4039 | ||
6d8b4f8d RD |
4040 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
4041 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4042 | PyObject * _resultobj; |
6d8b4f8d | 4043 | wxString * _result; |
8ab979d7 | 4044 | wxFont * _arg0; |
1d99702e | 4045 | PyObject * _argo0 = 0; |
1afc06c2 | 4046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4047 | |
4048 | self = self; | |
6d8b4f8d | 4049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 4050 | return NULL; |
1d99702e RD |
4051 | if (_argo0) { |
4052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
8ab979d7 RD |
4055 | return NULL; |
4056 | } | |
4057 | } | |
cf694132 RD |
4058 | { |
4059 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4060 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
cf694132 RD |
4061 | |
4062 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4063 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
4064 | }{ |
4065 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4066 | } | |
4067 | { | |
4068 | delete _result; | |
4069 | } | |
8ab979d7 RD |
4070 | return _resultobj; |
4071 | } | |
4072 | ||
f0261a72 RD |
4073 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
4074 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4075 | PyObject * _resultobj; | |
4076 | wxFontEncoding _result; | |
4077 | wxFont * _arg0; | |
4078 | PyObject * _argo0 = 0; | |
4079 | char *_kwnames[] = { "self", NULL }; | |
4080 | ||
4081 | self = self; | |
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
4083 | return NULL; | |
4084 | if (_argo0) { | |
4085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
4088 | return NULL; | |
4089 | } | |
4090 | } | |
4091 | { | |
4092 | wxPy_BEGIN_ALLOW_THREADS; | |
4093 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
4094 | ||
4095 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4096 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4097 | } _resultobj = Py_BuildValue("i",_result); |
4098 | return _resultobj; | |
4099 | } | |
4100 | ||
6d8b4f8d RD |
4101 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4102 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4103 | PyObject * _resultobj; |
6d8b4f8d | 4104 | wxNativeFontInfo * _result; |
8ab979d7 | 4105 | wxFont * _arg0; |
1d99702e | 4106 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4107 | char *_kwnames[] = { "self", NULL }; |
4108 | char _ptemp[128]; | |
8ab979d7 RD |
4109 | |
4110 | self = self; | |
6d8b4f8d | 4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
8ab979d7 | 4112 | return NULL; |
1d99702e RD |
4113 | if (_argo0) { |
4114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
8ab979d7 RD |
4117 | return NULL; |
4118 | } | |
4119 | } | |
4120 | { | |
6d8b4f8d RD |
4121 | wxPy_BEGIN_ALLOW_THREADS; |
4122 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); | |
4123 | ||
4124 | wxPy_END_ALLOW_THREADS; | |
4125 | if (PyErr_Occurred()) return NULL; | |
4126 | } if (_result) { | |
4127 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4128 | _resultobj = Py_BuildValue("s",_ptemp); | |
4129 | } else { | |
4130 | Py_INCREF(Py_None); | |
4131 | _resultobj = Py_None; | |
185d7c3e | 4132 | } |
6d8b4f8d RD |
4133 | return _resultobj; |
4134 | } | |
4135 | ||
4136 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
4137 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject * _resultobj; | |
4139 | wxFont * _arg0; | |
4140 | int _arg1; | |
4141 | PyObject * _argo0 = 0; | |
4142 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4143 | ||
4144 | self = self; | |
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4146 | return NULL; |
6d8b4f8d RD |
4147 | if (_argo0) { |
4148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
8ab979d7 | 4151 | return NULL; |
6d8b4f8d | 4152 | } |
8ab979d7 | 4153 | } |
cf694132 RD |
4154 | { |
4155 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4156 | wxFont_SetPointSize(_arg0,_arg1); |
cf694132 RD |
4157 | |
4158 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4160 | } Py_INCREF(Py_None); |
8ab979d7 | 4161 | _resultobj = Py_None; |
8ab979d7 RD |
4162 | return _resultobj; |
4163 | } | |
4164 | ||
4165 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 4166 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4167 | PyObject * _resultobj; |
4168 | wxFont * _arg0; | |
4169 | int _arg1; | |
1d99702e | 4170 | PyObject * _argo0 = 0; |
1afc06c2 | 4171 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
4172 | |
4173 | self = self; | |
1afc06c2 | 4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4175 | return NULL; |
1d99702e RD |
4176 | if (_argo0) { |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
cf694132 RD |
4183 | { |
4184 | wxPy_BEGIN_ALLOW_THREADS; | |
4185 | wxFont_SetFamily(_arg0,_arg1); | |
4186 | ||
4187 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4188 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4189 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4190 | _resultobj = Py_None; |
4191 | return _resultobj; | |
4192 | } | |
4193 | ||
6d8b4f8d RD |
4194 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
4195 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4196 | PyObject * _resultobj; |
4197 | wxFont * _arg0; | |
4198 | int _arg1; | |
1d99702e | 4199 | PyObject * _argo0 = 0; |
6d8b4f8d | 4200 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4201 | |
4202 | self = self; | |
6d8b4f8d | 4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4204 | return NULL; |
1d99702e RD |
4205 | if (_argo0) { |
4206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4209 | return NULL; |
4210 | } | |
4211 | } | |
cf694132 RD |
4212 | { |
4213 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4214 | wxFont_SetStyle(_arg0,_arg1); |
cf694132 RD |
4215 | |
4216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4218 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4219 | _resultobj = Py_None; |
4220 | return _resultobj; | |
4221 | } | |
4222 | ||
6d8b4f8d RD |
4223 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4224 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4225 | PyObject * _resultobj; |
4226 | wxFont * _arg0; | |
4227 | int _arg1; | |
1d99702e | 4228 | PyObject * _argo0 = 0; |
6d8b4f8d | 4229 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
4230 | |
4231 | self = self; | |
6d8b4f8d | 4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4233 | return NULL; |
1d99702e RD |
4234 | if (_argo0) { |
4235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4238 | return NULL; |
4239 | } | |
4240 | } | |
cf694132 RD |
4241 | { |
4242 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d RD |
4243 | wxFont_SetWeight(_arg0,_arg1); |
4244 | ||
4245 | wxPy_END_ALLOW_THREADS; | |
4246 | if (PyErr_Occurred()) return NULL; | |
4247 | } Py_INCREF(Py_None); | |
4248 | _resultobj = Py_None; | |
4249 | return _resultobj; | |
4250 | } | |
4251 | ||
4252 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4253 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4254 | PyObject * _resultobj; | |
4255 | wxFont * _arg0; | |
4256 | wxString * _arg1; | |
4257 | PyObject * _argo0 = 0; | |
4258 | PyObject * _obj1 = 0; | |
4259 | char *_kwnames[] = { "self","faceName", NULL }; | |
4260 | ||
4261 | self = self; | |
4262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4263 | return NULL; | |
4264 | if (_argo0) { | |
4265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4268 | return NULL; | |
4269 | } | |
4270 | } | |
4271 | { | |
4272 | #if PYTHON_API_VERSION >= 1009 | |
4273 | char* tmpPtr; int tmpSize; | |
4274 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4275 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4276 | return NULL; | |
4277 | } | |
4278 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4279 | return NULL; | |
4280 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4281 | #else | |
4282 | if (!PyString_Check(_obj1)) { | |
4283 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4284 | return NULL; | |
4285 | } | |
4286 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4287 | #endif | |
4288 | } | |
4289 | { | |
4290 | wxPy_BEGIN_ALLOW_THREADS; | |
4291 | wxFont_SetFaceName(_arg0,*_arg1); | |
cf694132 RD |
4292 | |
4293 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4295 | } Py_INCREF(Py_None); |
8ab979d7 | 4296 | _resultobj = Py_None; |
6d8b4f8d RD |
4297 | { |
4298 | if (_obj1) | |
4299 | delete _arg1; | |
4300 | } | |
8ab979d7 RD |
4301 | return _resultobj; |
4302 | } | |
4303 | ||
4304 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 4305 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4306 | PyObject * _resultobj; |
4307 | wxFont * _arg0; | |
4308 | bool _arg1; | |
1d99702e | 4309 | PyObject * _argo0 = 0; |
8ab979d7 | 4310 | int tempbool1; |
1afc06c2 | 4311 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
4312 | |
4313 | self = self; | |
1afc06c2 | 4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4315 | return NULL; |
1d99702e RD |
4316 | if (_argo0) { |
4317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
4323 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4324 | { |
4325 | wxPy_BEGIN_ALLOW_THREADS; | |
4326 | wxFont_SetUnderlined(_arg0,_arg1); | |
4327 | ||
4328 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4329 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4330 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4331 | _resultobj = Py_None; |
4332 | return _resultobj; | |
4333 | } | |
4334 | ||
6d8b4f8d RD |
4335 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
4336 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4337 | PyObject * _resultobj; |
4338 | wxFont * _arg0; | |
6d8b4f8d | 4339 | wxFontEncoding _arg1; |
1d99702e | 4340 | PyObject * _argo0 = 0; |
6d8b4f8d | 4341 | char *_kwnames[] = { "self","encoding", NULL }; |
8ab979d7 RD |
4342 | |
4343 | self = self; | |
6d8b4f8d | 4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4345 | return NULL; |
1d99702e RD |
4346 | if (_argo0) { |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
8ab979d7 RD |
4350 | return NULL; |
4351 | } | |
4352 | } | |
cf694132 RD |
4353 | { |
4354 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4355 | wxFont_SetEncoding(_arg0,_arg1); |
cf694132 RD |
4356 | |
4357 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4358 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4359 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4360 | _resultobj = Py_None; |
4361 | return _resultobj; | |
4362 | } | |
4363 | ||
6d8b4f8d RD |
4364 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
4365 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 RD |
4366 | PyObject * _resultobj; |
4367 | wxFont * _arg0; | |
6d8b4f8d | 4368 | wxNativeFontInfo * _arg1; |
f0261a72 | 4369 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4370 | PyObject * _argo1 = 0; |
4371 | char *_kwnames[] = { "self","info", NULL }; | |
f0261a72 RD |
4372 | |
4373 | self = self; | |
6d8b4f8d | 4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
f0261a72 RD |
4375 | return NULL; |
4376 | if (_argo0) { | |
4377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d RD |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
4383 | if (_argo1) { | |
4384 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4385 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
f0261a72 RD |
4387 | return NULL; |
4388 | } | |
4389 | } | |
4390 | { | |
4391 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4392 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
f0261a72 RD |
4393 | |
4394 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4395 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4396 | } Py_INCREF(Py_None); |
4397 | _resultobj = Py_None; | |
4398 | return _resultobj; | |
4399 | } | |
4400 | ||
4401 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
4402 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4403 | PyObject * _resultobj; | |
4404 | wxString * _result; | |
4405 | wxFont * _arg0; | |
4406 | PyObject * _argo0 = 0; | |
4407 | char *_kwnames[] = { "self", NULL }; | |
4408 | ||
4409 | self = self; | |
4410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4411 | return NULL; | |
4412 | if (_argo0) { | |
4413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4416 | return NULL; | |
4417 | } | |
4418 | } | |
4419 | { | |
4420 | wxPy_BEGIN_ALLOW_THREADS; | |
4421 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
4422 | ||
4423 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4424 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 4425 | }{ |
eec92d76 | 4426 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
4427 | } |
4428 | { | |
4429 | delete _result; | |
4430 | } | |
4431 | return _resultobj; | |
4432 | } | |
4433 | ||
4434 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4435 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4436 | PyObject * _resultobj; | |
4437 | wxString * _result; | |
4438 | wxFont * _arg0; | |
4439 | PyObject * _argo0 = 0; | |
4440 | char *_kwnames[] = { "self", NULL }; | |
4441 | ||
4442 | self = self; | |
4443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4444 | return NULL; | |
4445 | if (_argo0) { | |
4446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4449 | return NULL; | |
4450 | } | |
4451 | } | |
4452 | { | |
4453 | wxPy_BEGIN_ALLOW_THREADS; | |
4454 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
4455 | ||
4456 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4457 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 4458 | }{ |
eec92d76 | 4459 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
4460 | } |
4461 | { | |
4462 | delete _result; | |
4463 | } | |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
4467 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4468 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject * _resultobj; | |
4470 | wxString * _result; | |
4471 | wxFont * _arg0; | |
4472 | PyObject * _argo0 = 0; | |
4473 | char *_kwnames[] = { "self", NULL }; | |
4474 | ||
4475 | self = self; | |
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4477 | return NULL; | |
4478 | if (_argo0) { | |
4479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4482 | return NULL; | |
4483 | } | |
4484 | } | |
4485 | { | |
4486 | wxPy_BEGIN_ALLOW_THREADS; | |
4487 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
4488 | ||
4489 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4490 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 4491 | }{ |
eec92d76 | 4492 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
4493 | } |
4494 | { | |
4495 | delete _result; | |
4496 | } | |
4497 | return _resultobj; | |
4498 | } | |
4499 | ||
6d8b4f8d RD |
4500 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
4501 | PyObject * _resultobj; | |
4502 | wxFontEncoding _result; | |
4503 | char *_kwnames[] = { NULL }; | |
4504 | ||
4505 | self = self; | |
4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4507 | return NULL; | |
4508 | { | |
4509 | wxPy_BEGIN_ALLOW_THREADS; | |
4510 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); | |
4511 | ||
4512 | wxPy_END_ALLOW_THREADS; | |
4513 | if (PyErr_Occurred()) return NULL; | |
4514 | } _resultobj = Py_BuildValue("i",_result); | |
4515 | return _resultobj; | |
4516 | } | |
4517 | ||
4518 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4519 | PyObject * _resultobj; | |
4520 | wxFontEncoding _arg0; | |
4521 | char *_kwnames[] = { "encoding", NULL }; | |
4522 | ||
4523 | self = self; | |
4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4525 | return NULL; | |
4526 | { | |
4527 | wxPy_BEGIN_ALLOW_THREADS; | |
4528 | wxFont::SetDefaultEncoding(_arg0); | |
4529 | ||
4530 | wxPy_END_ALLOW_THREADS; | |
4531 | if (PyErr_Occurred()) return NULL; | |
4532 | } Py_INCREF(Py_None); | |
4533 | _resultobj = Py_None; | |
4534 | return _resultobj; | |
4535 | } | |
4536 | ||
9416aa89 RD |
4537 | static void *SwigwxFontListTowxObject(void *ptr) { |
4538 | wxFontList *src; | |
4539 | wxObject *dest; | |
4540 | src = (wxFontList *) ptr; | |
4541 | dest = (wxObject *) src; | |
4542 | return (void *) dest; | |
4543 | } | |
4544 | ||
0569df0f RD |
4545 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
4546 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4547 | PyObject * _resultobj; | |
4548 | wxFontList * _arg0; | |
4549 | wxFont * _arg1; | |
4550 | PyObject * _argo0 = 0; | |
4551 | PyObject * _argo1 = 0; | |
4552 | char *_kwnames[] = { "self","font", NULL }; | |
4553 | ||
4554 | self = self; | |
4555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4556 | return NULL; | |
4557 | if (_argo0) { | |
4558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4561 | return NULL; | |
4562 | } | |
4563 | } | |
4564 | if (_argo1) { | |
4565 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4566 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4568 | return NULL; | |
4569 | } | |
4570 | } | |
4571 | { | |
4572 | wxPy_BEGIN_ALLOW_THREADS; | |
4573 | wxFontList_AddFont(_arg0,_arg1); | |
4574 | ||
4575 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4576 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4577 | } Py_INCREF(Py_None); |
4578 | _resultobj = Py_None; | |
4579 | return _resultobj; | |
4580 | } | |
4581 | ||
4582 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4583 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4584 | PyObject * _resultobj; | |
4585 | wxFont * _result; | |
4586 | wxFontList * _arg0; | |
4587 | int _arg1; | |
4588 | int _arg2; | |
4589 | int _arg3; | |
4590 | int _arg4; | |
4591 | bool _arg5 = (bool ) FALSE; | |
4592 | char * _arg6 = (char *) NULL; | |
4593 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4594 | PyObject * _argo0 = 0; | |
4595 | int tempbool5 = (int) FALSE; | |
4596 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
4597 | char _ptemp[128]; | |
4598 | ||
4599 | self = self; | |
4600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
4601 | return NULL; | |
4602 | if (_argo0) { | |
4603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4606 | return NULL; | |
4607 | } | |
4608 | } | |
4609 | _arg5 = (bool ) tempbool5; | |
4610 | { | |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
4612 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
4613 | ||
4614 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4615 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4616 | } if (_result) { |
4617 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4618 | _resultobj = Py_BuildValue("s",_ptemp); | |
4619 | } else { | |
4620 | Py_INCREF(Py_None); | |
4621 | _resultobj = Py_None; | |
4622 | } | |
4623 | return _resultobj; | |
4624 | } | |
4625 | ||
4626 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4627 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4628 | PyObject * _resultobj; | |
4629 | wxFontList * _arg0; | |
4630 | wxFont * _arg1; | |
4631 | PyObject * _argo0 = 0; | |
4632 | PyObject * _argo1 = 0; | |
4633 | char *_kwnames[] = { "self","font", NULL }; | |
4634 | ||
4635 | self = self; | |
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4637 | return NULL; | |
4638 | if (_argo0) { | |
4639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4642 | return NULL; | |
4643 | } | |
4644 | } | |
4645 | if (_argo1) { | |
4646 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4647 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4649 | return NULL; | |
4650 | } | |
4651 | } | |
4652 | { | |
4653 | wxPy_BEGIN_ALLOW_THREADS; | |
4654 | wxFontList_RemoveFont(_arg0,_arg1); | |
4655 | ||
4656 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4657 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4658 | } Py_INCREF(Py_None); |
4659 | _resultobj = Py_None; | |
4660 | return _resultobj; | |
4661 | } | |
4662 | ||
9416aa89 RD |
4663 | static void *SwigwxColourTowxObject(void *ptr) { |
4664 | wxColour *src; | |
4665 | wxObject *dest; | |
4666 | src = (wxColour *) ptr; | |
4667 | dest = (wxObject *) src; | |
4668 | return (void *) dest; | |
4669 | } | |
4670 | ||
8ab979d7 | 4671 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 4672 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4673 | PyObject * _resultobj; |
4674 | wxColour * _result; | |
1d99702e RD |
4675 | unsigned char _arg0 = (unsigned char ) 0; |
4676 | unsigned char _arg1 = (unsigned char ) 0; | |
4677 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 4678 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
4679 | char _ptemp[128]; |
4680 | ||
4681 | self = self; | |
1afc06c2 | 4682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 4683 | return NULL; |
cf694132 RD |
4684 | { |
4685 | wxPy_BEGIN_ALLOW_THREADS; | |
4686 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
4687 | ||
4688 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4689 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4690 | } if (_result) { |
4691 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4692 | _resultobj = Py_BuildValue("s",_ptemp); | |
4693 | } else { | |
4694 | Py_INCREF(Py_None); | |
4695 | _resultobj = Py_None; | |
4696 | } | |
8ab979d7 RD |
4697 | return _resultobj; |
4698 | } | |
4699 | ||
4700 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 4701 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4702 | PyObject * _resultobj; |
4703 | wxColour * _arg0; | |
f6bcfd97 BP |
4704 | wxColour temp; |
4705 | PyObject * _obj0 = 0; | |
1afc06c2 | 4706 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4707 | |
4708 | self = self; | |
f6bcfd97 | 4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 4710 | return NULL; |
f6bcfd97 BP |
4711 | { |
4712 | _arg0 = &temp; | |
4713 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4714 | return NULL; |
f6bcfd97 | 4715 | } |
cf694132 RD |
4716 | { |
4717 | wxPy_BEGIN_ALLOW_THREADS; | |
4718 | delete_wxColour(_arg0); | |
4719 | ||
4720 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4721 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4722 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4723 | _resultobj = Py_None; |
4724 | return _resultobj; | |
4725 | } | |
4726 | ||
4727 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 4728 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4729 | PyObject * _resultobj; |
4730 | unsigned char _result; | |
4731 | wxColour * _arg0; | |
f6bcfd97 BP |
4732 | wxColour temp; |
4733 | PyObject * _obj0 = 0; | |
1afc06c2 | 4734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4735 | |
4736 | self = self; | |
f6bcfd97 | 4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 4738 | return NULL; |
f6bcfd97 BP |
4739 | { |
4740 | _arg0 = &temp; | |
4741 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4742 | return NULL; |
f6bcfd97 | 4743 | } |
cf694132 RD |
4744 | { |
4745 | wxPy_BEGIN_ALLOW_THREADS; | |
4746 | _result = (unsigned char )wxColour_Red(_arg0); | |
4747 | ||
4748 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4749 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4750 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4751 | return _resultobj; |
4752 | } | |
4753 | ||
4754 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 4755 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4756 | PyObject * _resultobj; |
4757 | unsigned char _result; | |
4758 | wxColour * _arg0; | |
f6bcfd97 BP |
4759 | wxColour temp; |
4760 | PyObject * _obj0 = 0; | |
1afc06c2 | 4761 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4762 | |
4763 | self = self; | |
f6bcfd97 | 4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 4765 | return NULL; |
f6bcfd97 BP |
4766 | { |
4767 | _arg0 = &temp; | |
4768 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4769 | return NULL; |
f6bcfd97 | 4770 | } |
cf694132 RD |
4771 | { |
4772 | wxPy_BEGIN_ALLOW_THREADS; | |
4773 | _result = (unsigned char )wxColour_Green(_arg0); | |
4774 | ||
4775 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4776 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4777 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4778 | return _resultobj; |
4779 | } | |
4780 | ||
4781 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 4782 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4783 | PyObject * _resultobj; |
4784 | unsigned char _result; | |
4785 | wxColour * _arg0; | |
f6bcfd97 BP |
4786 | wxColour temp; |
4787 | PyObject * _obj0 = 0; | |
1afc06c2 | 4788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4789 | |
4790 | self = self; | |
f6bcfd97 | 4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 4792 | return NULL; |
f6bcfd97 BP |
4793 | { |
4794 | _arg0 = &temp; | |
4795 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4796 | return NULL; |
f6bcfd97 | 4797 | } |
cf694132 RD |
4798 | { |
4799 | wxPy_BEGIN_ALLOW_THREADS; | |
4800 | _result = (unsigned char )wxColour_Blue(_arg0); | |
4801 | ||
4802 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4804 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4805 | return _resultobj; |
4806 | } | |
4807 | ||
4808 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4809 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4810 | PyObject * _resultobj; |
4811 | bool _result; | |
4812 | wxColour * _arg0; | |
f6bcfd97 BP |
4813 | wxColour temp; |
4814 | PyObject * _obj0 = 0; | |
1afc06c2 | 4815 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4816 | |
4817 | self = self; | |
f6bcfd97 | 4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 4819 | return NULL; |
f6bcfd97 BP |
4820 | { |
4821 | _arg0 = &temp; | |
4822 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4823 | return NULL; |
f6bcfd97 | 4824 | } |
cf694132 RD |
4825 | { |
4826 | wxPy_BEGIN_ALLOW_THREADS; | |
4827 | _result = (bool )wxColour_Ok(_arg0); | |
4828 | ||
4829 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4830 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4831 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4832 | return _resultobj; |
4833 | } | |
4834 | ||
4835 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 4836 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4837 | PyObject * _resultobj; |
4838 | wxColour * _arg0; | |
4839 | unsigned char _arg1; | |
4840 | unsigned char _arg2; | |
4841 | unsigned char _arg3; | |
f6bcfd97 BP |
4842 | wxColour temp; |
4843 | PyObject * _obj0 = 0; | |
1afc06c2 | 4844 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
4845 | |
4846 | self = self; | |
f6bcfd97 | 4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4848 | return NULL; |
f6bcfd97 BP |
4849 | { |
4850 | _arg0 = &temp; | |
4851 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4852 | return NULL; |
f6bcfd97 | 4853 | } |
cf694132 RD |
4854 | { |
4855 | wxPy_BEGIN_ALLOW_THREADS; | |
4856 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
4857 | ||
4858 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4859 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4860 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4861 | _resultobj = Py_None; |
4862 | return _resultobj; | |
4863 | } | |
4864 | ||
4865 | static PyObject * wxColour_Get(wxColour *self) { | |
4866 | PyObject* rv = PyTuple_New(3); | |
4867 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4868 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4869 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4870 | return rv; | |
4871 | } | |
1afc06c2 | 4872 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4873 | PyObject * _resultobj; |
4874 | PyObject * _result; | |
4875 | wxColour * _arg0; | |
f6bcfd97 BP |
4876 | wxColour temp; |
4877 | PyObject * _obj0 = 0; | |
1afc06c2 | 4878 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4879 | |
4880 | self = self; | |
f6bcfd97 | 4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 4882 | return NULL; |
f6bcfd97 BP |
4883 | { |
4884 | _arg0 = &temp; | |
4885 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4886 | return NULL; |
f6bcfd97 | 4887 | } |
8ab979d7 | 4888 | { |
cf694132 RD |
4889 | wxPy_BEGIN_ALLOW_THREADS; |
4890 | _result = (PyObject *)wxColour_Get(_arg0); | |
4891 | ||
4892 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4894 | }{ |
8ab979d7 RD |
4895 | _resultobj = _result; |
4896 | } | |
4897 | return _resultobj; | |
4898 | } | |
4899 | ||
9416aa89 RD |
4900 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
4901 | wxColourDatabase *src; | |
4902 | wxObject *dest; | |
4903 | src = (wxColourDatabase *) ptr; | |
4904 | dest = (wxObject *) src; | |
4905 | return (void *) dest; | |
4906 | } | |
4907 | ||
0569df0f RD |
4908 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
4909 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4910 | PyObject * _resultobj; | |
4911 | wxColour * _result; | |
4912 | wxColourDatabase * _arg0; | |
4913 | wxString * _arg1; | |
4914 | PyObject * _argo0 = 0; | |
4915 | PyObject * _obj1 = 0; | |
4916 | char *_kwnames[] = { "self","colour", NULL }; | |
4917 | char _ptemp[128]; | |
4918 | ||
4919 | self = self; | |
4920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
4921 | return NULL; | |
4922 | if (_argo0) { | |
4923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
4926 | return NULL; | |
8ab979d7 | 4927 | } |
0569df0f RD |
4928 | } |
4929 | { | |
4930 | #if PYTHON_API_VERSION >= 1009 | |
4931 | char* tmpPtr; int tmpSize; | |
4932 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4933 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
4934 | return NULL; |
4935 | } | |
4936 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4937 | return NULL; | |
4938 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4939 | #else | |
4940 | if (!PyString_Check(_obj1)) { | |
4941 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4942 | return NULL; | |
4943 | } | |
4944 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4945 | #endif | |
4946 | } | |
4947 | { | |
4948 | wxPy_BEGIN_ALLOW_THREADS; | |
4949 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
8ab979d7 | 4950 | |
0569df0f | 4951 | wxPy_END_ALLOW_THREADS; |
493f1553 | 4952 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4953 | } if (_result) { |
4954 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4955 | _resultobj = Py_BuildValue("s",_ptemp); | |
4956 | } else { | |
4957 | Py_INCREF(Py_None); | |
4958 | _resultobj = Py_None; | |
4959 | } | |
4960 | { | |
4961 | if (_obj1) | |
4962 | delete _arg1; | |
4963 | } | |
4964 | return _resultobj; | |
4965 | } | |
4966 | ||
4967 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
4968 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject * _resultobj; | |
4970 | wxString * _result; | |
4971 | wxColourDatabase * _arg0; | |
4972 | wxColour * _arg1; | |
4973 | PyObject * _argo0 = 0; | |
4974 | wxColour temp; | |
4975 | PyObject * _obj1 = 0; | |
4976 | char *_kwnames[] = { "self","colour", NULL }; | |
4977 | ||
4978 | self = self; | |
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
4980 | return NULL; | |
4981 | if (_argo0) { | |
4982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
4985 | return NULL; | |
4986 | } | |
4987 | } | |
4988 | { | |
4989 | _arg1 = &temp; | |
4990 | if (! wxColour_helper(_obj1, &_arg1)) | |
4991 | return NULL; | |
4992 | } | |
4993 | { | |
4994 | wxPy_BEGIN_ALLOW_THREADS; | |
4995 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
4996 | ||
4997 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4998 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4999 | }{ |
5000 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5001 | } | |
5002 | { | |
5003 | delete _result; | |
5004 | } | |
5005 | return _resultobj; | |
5006 | } | |
5007 | ||
5008 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
5009 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
5010 | } | |
5011 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject * _resultobj; | |
5013 | wxColourDatabase * _arg0; | |
5014 | wxString * _arg1; | |
5015 | int _arg2; | |
5016 | int _arg3; | |
5017 | int _arg4; | |
5018 | PyObject * _argo0 = 0; | |
5019 | PyObject * _obj1 = 0; | |
5020 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5021 | ||
5022 | self = self; | |
5023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5024 | return NULL; | |
5025 | if (_argo0) { | |
5026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5029 | return NULL; | |
5030 | } | |
5031 | } | |
5032 | { | |
5033 | #if PYTHON_API_VERSION >= 1009 | |
5034 | char* tmpPtr; int tmpSize; | |
5035 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5036 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
5037 | return NULL; |
5038 | } | |
5039 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5040 | return NULL; | |
5041 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5042 | #else | |
5043 | if (!PyString_Check(_obj1)) { | |
5044 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5045 | return NULL; | |
5046 | } | |
5047 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5048 | #endif | |
5049 | } | |
5050 | { | |
5051 | wxPy_BEGIN_ALLOW_THREADS; | |
5052 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5053 | ||
5054 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5055 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5056 | } Py_INCREF(Py_None); |
5057 | _resultobj = Py_None; | |
5058 | { | |
5059 | if (_obj1) | |
5060 | delete _arg1; | |
5061 | } | |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
9416aa89 RD |
5065 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
5066 | wxPen *src; | |
5067 | wxGDIObject *dest; | |
5068 | src = (wxPen *) ptr; | |
5069 | dest = (wxGDIObject *) src; | |
5070 | return (void *) dest; | |
5071 | } | |
5072 | ||
5073 | static void *SwigwxPenTowxObject(void *ptr) { | |
5074 | wxPen *src; | |
5075 | wxObject *dest; | |
5076 | src = (wxPen *) ptr; | |
5077 | dest = (wxObject *) src; | |
5078 | return (void *) dest; | |
5079 | } | |
5080 | ||
0569df0f | 5081 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5082 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5083 | PyObject * _resultobj; |
5084 | wxPen * _result; | |
5085 | wxColour * _arg0; | |
1d99702e RD |
5086 | int _arg1 = (int ) 1; |
5087 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
5088 | wxColour temp; |
5089 | PyObject * _obj0 = 0; | |
1afc06c2 | 5090 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
5091 | char _ptemp[128]; |
5092 | ||
5093 | self = self; | |
f6bcfd97 | 5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 5095 | return NULL; |
f6bcfd97 BP |
5096 | { |
5097 | _arg0 = &temp; | |
5098 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5099 | return NULL; |
f6bcfd97 | 5100 | } |
cf694132 RD |
5101 | { |
5102 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 5103 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 RD |
5104 | |
5105 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5106 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5107 | } if (_result) { |
5108 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5109 | _resultobj = Py_BuildValue("s",_ptemp); | |
5110 | } else { | |
5111 | Py_INCREF(Py_None); | |
5112 | _resultobj = Py_None; | |
5113 | } | |
8ab979d7 RD |
5114 | return _resultobj; |
5115 | } | |
5116 | ||
0569df0f RD |
5117 | #define delete_wxPen(_swigobj) (delete _swigobj) |
5118 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5119 | PyObject * _resultobj; | |
5120 | wxPen * _arg0; | |
5121 | PyObject * _argo0 = 0; | |
5122 | char *_kwnames[] = { "self", NULL }; | |
5123 | ||
5124 | self = self; | |
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5126 | return NULL; | |
5127 | if (_argo0) { | |
5128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5131 | return NULL; | |
5132 | } | |
5133 | } | |
5134 | { | |
5135 | wxPy_BEGIN_ALLOW_THREADS; | |
5136 | delete_wxPen(_arg0); | |
5137 | ||
5138 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5139 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5140 | } Py_INCREF(Py_None); |
5141 | _resultobj = Py_None; | |
5142 | return _resultobj; | |
5143 | } | |
5144 | ||
8ab979d7 | 5145 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 5146 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5147 | PyObject * _resultobj; |
5148 | int _result; | |
5149 | wxPen * _arg0; | |
1d99702e | 5150 | PyObject * _argo0 = 0; |
1afc06c2 | 5151 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5152 | |
5153 | self = self; | |
1afc06c2 | 5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 5155 | return NULL; |
1d99702e RD |
5156 | if (_argo0) { |
5157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
5160 | return NULL; | |
5161 | } | |
5162 | } | |
cf694132 RD |
5163 | { |
5164 | wxPy_BEGIN_ALLOW_THREADS; | |
5165 | _result = (int )wxPen_GetCap(_arg0); | |
5166 | ||
5167 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5168 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5169 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5170 | return _resultobj; |
5171 | } | |
5172 | ||
5173 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 5174 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5175 | PyObject * _resultobj; |
5176 | wxColour * _result; | |
5177 | wxPen * _arg0; | |
1d99702e | 5178 | PyObject * _argo0 = 0; |
1afc06c2 | 5179 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5180 | char _ptemp[128]; |
5181 | ||
5182 | self = self; | |
1afc06c2 | 5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5184 | return NULL; |
1d99702e RD |
5185 | if (_argo0) { |
5186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
5189 | return NULL; | |
5190 | } | |
5191 | } | |
cf694132 RD |
5192 | { |
5193 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 5194 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 RD |
5195 | |
5196 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5197 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5198 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5199 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5200 | return _resultobj; |
5201 | } | |
5202 | ||
8ab979d7 | 5203 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 5204 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5205 | PyObject * _resultobj; |
5206 | int _result; | |
5207 | wxPen * _arg0; | |
1d99702e | 5208 | PyObject * _argo0 = 0; |
1afc06c2 | 5209 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5210 | |
5211 | self = self; | |
1afc06c2 | 5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 5213 | return NULL; |
1d99702e RD |
5214 | if (_argo0) { |
5215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5218 | return NULL; | |
5219 | } | |
5220 | } | |
cf694132 RD |
5221 | { |
5222 | wxPy_BEGIN_ALLOW_THREADS; | |
5223 | _result = (int )wxPen_GetJoin(_arg0); | |
5224 | ||
5225 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5226 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5227 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5228 | return _resultobj; |
5229 | } | |
5230 | ||
5231 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5232 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5233 | PyObject * _resultobj; |
5234 | int _result; | |
5235 | wxPen * _arg0; | |
1d99702e | 5236 | PyObject * _argo0 = 0; |
1afc06c2 | 5237 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5238 | |
5239 | self = self; | |
1afc06c2 | 5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5241 | return NULL; |
1d99702e RD |
5242 | if (_argo0) { |
5243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
5246 | return NULL; | |
5247 | } | |
5248 | } | |
cf694132 RD |
5249 | { |
5250 | wxPy_BEGIN_ALLOW_THREADS; | |
5251 | _result = (int )wxPen_GetStyle(_arg0); | |
5252 | ||
5253 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5254 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5255 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5256 | return _resultobj; |
5257 | } | |
5258 | ||
5259 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 5260 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5261 | PyObject * _resultobj; |
5262 | int _result; | |
5263 | wxPen * _arg0; | |
1d99702e | 5264 | PyObject * _argo0 = 0; |
1afc06c2 | 5265 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5266 | |
5267 | self = self; | |
1afc06c2 | 5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 5269 | return NULL; |
1d99702e RD |
5270 | if (_argo0) { |
5271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
5274 | return NULL; | |
5275 | } | |
5276 | } | |
cf694132 RD |
5277 | { |
5278 | wxPy_BEGIN_ALLOW_THREADS; | |
5279 | _result = (int )wxPen_GetWidth(_arg0); | |
5280 | ||
5281 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5282 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5283 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5284 | return _resultobj; |
5285 | } | |
5286 | ||
5287 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5288 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5289 | PyObject * _resultobj; |
5290 | bool _result; | |
5291 | wxPen * _arg0; | |
1d99702e | 5292 | PyObject * _argo0 = 0; |
1afc06c2 | 5293 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5294 | |
5295 | self = self; | |
1afc06c2 | 5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 5297 | return NULL; |
1d99702e RD |
5298 | if (_argo0) { |
5299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
5302 | return NULL; | |
5303 | } | |
5304 | } | |
cf694132 RD |
5305 | { |
5306 | wxPy_BEGIN_ALLOW_THREADS; | |
5307 | _result = (bool )wxPen_Ok(_arg0); | |
5308 | ||
5309 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5311 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5312 | return _resultobj; |
5313 | } | |
5314 | ||
5315 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 5316 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5317 | PyObject * _resultobj; |
5318 | wxPen * _arg0; | |
5319 | int _arg1; | |
1d99702e | 5320 | PyObject * _argo0 = 0; |
1afc06c2 | 5321 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
5322 | |
5323 | self = self; | |
1afc06c2 | 5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5325 | return NULL; |
1d99702e RD |
5326 | if (_argo0) { |
5327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
5330 | return NULL; | |
5331 | } | |
5332 | } | |
cf694132 RD |
5333 | { |
5334 | wxPy_BEGIN_ALLOW_THREADS; | |
5335 | wxPen_SetCap(_arg0,_arg1); | |
5336 | ||
5337 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5339 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5340 | _resultobj = Py_None; |
5341 | return _resultobj; | |
5342 | } | |
5343 | ||
5344 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 5345 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5346 | PyObject * _resultobj; |
5347 | wxPen * _arg0; | |
5348 | wxColour * _arg1; | |
1d99702e | 5349 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5350 | wxColour temp; |
5351 | PyObject * _obj1 = 0; | |
1afc06c2 | 5352 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
5353 | |
5354 | self = self; | |
f6bcfd97 | 5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5356 | return NULL; |
1d99702e RD |
5357 | if (_argo0) { |
5358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
f6bcfd97 BP |
5364 | { |
5365 | _arg1 = &temp; | |
5366 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 5367 | return NULL; |
f6bcfd97 | 5368 | } |
cf694132 RD |
5369 | { |
5370 | wxPy_BEGIN_ALLOW_THREADS; | |
5371 | wxPen_SetColour(_arg0,*_arg1); | |
5372 | ||
5373 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5375 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5376 | _resultobj = Py_None; |
5377 | return _resultobj; | |
5378 | } | |
5379 | ||
2ea09579 | 5380 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 5381 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5382 | PyObject * _resultobj; |
5383 | wxPen * _arg0; | |
5384 | int _arg1; | |
1d99702e | 5385 | PyObject * _argo0 = 0; |
1afc06c2 | 5386 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
5387 | |
5388 | self = self; | |
1afc06c2 | 5389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5390 | return NULL; |
1d99702e RD |
5391 | if (_argo0) { |
5392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
5395 | return NULL; |
5396 | } | |
5397 | } | |
cf694132 RD |
5398 | { |
5399 | wxPy_BEGIN_ALLOW_THREADS; | |
5400 | wxPen_SetJoin(_arg0,_arg1); | |
5401 | ||
5402 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5403 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5404 | } Py_INCREF(Py_None); |
2ea09579 RD |
5405 | _resultobj = Py_None; |
5406 | return _resultobj; | |
5407 | } | |
5408 | ||
5409 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 5410 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
5411 | PyObject * _resultobj; |
5412 | wxPen * _arg0; | |
5413 | int _arg1; | |
1d99702e | 5414 | PyObject * _argo0 = 0; |
1afc06c2 | 5415 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
5416 | |
5417 | self = self; | |
1afc06c2 | 5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5419 | return NULL; |
1d99702e RD |
5420 | if (_argo0) { |
5421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
5423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
5424 | return NULL; | |
5425 | } | |
8ab979d7 | 5426 | } |
cf694132 RD |
5427 | { |
5428 | wxPy_BEGIN_ALLOW_THREADS; | |
5429 | wxPen_SetStyle(_arg0,_arg1); | |
5430 | ||
5431 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5433 | } Py_INCREF(Py_None); |
8ab979d7 | 5434 | _resultobj = Py_None; |
2ea09579 | 5435 | return _resultobj; |
8ab979d7 | 5436 | } |
2ea09579 RD |
5437 | |
5438 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 5439 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
5440 | PyObject * _resultobj; |
5441 | wxPen * _arg0; | |
5442 | int _arg1; | |
1d99702e | 5443 | PyObject * _argo0 = 0; |
1afc06c2 | 5444 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
5445 | |
5446 | self = self; | |
1afc06c2 | 5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 5448 | return NULL; |
1d99702e RD |
5449 | if (_argo0) { |
5450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
5452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
5453 | return NULL; | |
5454 | } | |
5455 | } | |
cf694132 RD |
5456 | { |
5457 | wxPy_BEGIN_ALLOW_THREADS; | |
5458 | wxPen_SetWidth(_arg0,_arg1); | |
5459 | ||
5460 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5461 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5462 | } Py_INCREF(Py_None); |
2ea09579 | 5463 | _resultobj = Py_None; |
8ab979d7 RD |
5464 | return _resultobj; |
5465 | } | |
5466 | ||
2ea09579 | 5467 | #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0)) |
1afc06c2 | 5468 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5469 | PyObject * _resultobj; |
2ea09579 | 5470 | int _result; |
8ab979d7 | 5471 | wxPen * _arg0; |
2ea09579 | 5472 | wxDash ** _arg1; |
1d99702e RD |
5473 | PyObject * _argo0 = 0; |
5474 | PyObject * _argo1 = 0; | |
1afc06c2 | 5475 | char *_kwnames[] = { "self","dashes", NULL }; |
8ab979d7 RD |
5476 | |
5477 | self = self; | |
1afc06c2 | 5478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5479 | return NULL; |
1d99702e RD |
5480 | if (_argo0) { |
5481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
5484 | return NULL; |
5485 | } | |
5486 | } | |
1d99702e RD |
5487 | if (_argo1) { |
5488 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5489 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) { | |
2ea09579 | 5490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp."); |
8ab979d7 RD |
5491 | return NULL; |
5492 | } | |
5493 | } | |
cf694132 RD |
5494 | { |
5495 | wxPy_BEGIN_ALLOW_THREADS; | |
5496 | _result = (int )wxPen_GetDashes(_arg0,_arg1); | |
5497 | ||
5498 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5499 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5500 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5501 | return _resultobj; |
5502 | } | |
5503 | ||
2ea09579 | 5504 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 5505 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5506 | PyObject * _resultobj; |
5507 | wxPen * _arg0; | |
5508 | int _arg1; | |
2ea09579 | 5509 | wxDash * _arg2; |
1d99702e | 5510 | PyObject * _argo0 = 0; |
2ea09579 | 5511 | PyObject * _obj2 = 0; |
eec92d76 | 5512 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
5513 | |
5514 | self = self; | |
1afc06c2 | 5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 5516 | return NULL; |
1d99702e RD |
5517 | if (_argo0) { |
5518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
5521 | return NULL; |
5522 | } | |
5523 | } | |
2ea09579 RD |
5524 | if (_obj2) |
5525 | { | |
f6bcfd97 | 5526 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
5527 | if (_arg2 == NULL) { |
5528 | return NULL; | |
5529 | } | |
5530 | } | |
5531 | { | |
cf694132 RD |
5532 | if (_obj2) { |
5533 | _arg1 = PyList_Size(_obj2); | |
5534 | } | |
5535 | else { | |
5536 | _arg1 = 0; | |
5537 | } | |
2ea09579 | 5538 | } |
cf694132 RD |
5539 | { |
5540 | wxPy_BEGIN_ALLOW_THREADS; | |
5541 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
5542 | ||
5543 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5544 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5545 | } Py_INCREF(Py_None); |
8ab979d7 | 5546 | _resultobj = Py_None; |
2ea09579 RD |
5547 | { |
5548 | delete [] _arg2; | |
5549 | } | |
8ab979d7 RD |
5550 | return _resultobj; |
5551 | } | |
5552 | ||
6999b0d8 RD |
5553 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
5554 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5555 | PyObject * _resultobj; | |
5556 | wxBitmap * _result; | |
5557 | wxPen * _arg0; | |
5558 | PyObject * _argo0 = 0; | |
5559 | char *_kwnames[] = { "self", NULL }; | |
5560 | char _ptemp[128]; | |
5561 | ||
5562 | self = self; | |
5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
5564 | return NULL; | |
5565 | if (_argo0) { | |
5566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
5569 | return NULL; | |
5570 | } | |
5571 | } | |
5572 | { | |
5573 | wxPy_BEGIN_ALLOW_THREADS; | |
5574 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); | |
5575 | ||
5576 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5577 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
5578 | } if (_result) { |
5579 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5580 | _resultobj = Py_BuildValue("s",_ptemp); | |
5581 | } else { | |
5582 | Py_INCREF(Py_None); | |
5583 | _resultobj = Py_None; | |
5584 | } | |
5585 | return _resultobj; | |
5586 | } | |
5587 | ||
2ea09579 | 5588 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 5589 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5590 | PyObject * _resultobj; |
5591 | wxPen * _arg0; | |
2ea09579 | 5592 | wxBitmap * _arg1; |
1d99702e RD |
5593 | PyObject * _argo0 = 0; |
5594 | PyObject * _argo1 = 0; | |
1afc06c2 | 5595 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
5596 | |
5597 | self = self; | |
1afc06c2 | 5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5599 | return NULL; |
1d99702e RD |
5600 | if (_argo0) { |
5601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
5604 | return NULL; |
5605 | } | |
5606 | } | |
1d99702e RD |
5607 | if (_argo1) { |
5608 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5609 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
5610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
5611 | return NULL; | |
5612 | } | |
5613 | } | |
cf694132 RD |
5614 | { |
5615 | wxPy_BEGIN_ALLOW_THREADS; | |
5616 | wxPen_SetStipple(_arg0,*_arg1); | |
5617 | ||
5618 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5619 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5620 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5621 | _resultobj = Py_None; |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
9416aa89 RD |
5625 | static void *SwigwxPenListTowxObject(void *ptr) { |
5626 | wxPenList *src; | |
5627 | wxObject *dest; | |
5628 | src = (wxPenList *) ptr; | |
5629 | dest = (wxObject *) src; | |
5630 | return (void *) dest; | |
5631 | } | |
5632 | ||
0569df0f RD |
5633 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
5634 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5635 | PyObject * _resultobj; | |
5636 | wxPenList * _arg0; | |
5637 | wxPen * _arg1; | |
5638 | PyObject * _argo0 = 0; | |
5639 | PyObject * _argo1 = 0; | |
5640 | char *_kwnames[] = { "self","pen", NULL }; | |
5641 | ||
5642 | self = self; | |
5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5644 | return NULL; | |
5645 | if (_argo0) { | |
5646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5649 | return NULL; | |
5650 | } | |
5651 | } | |
5652 | if (_argo1) { | |
5653 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5654 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5656 | return NULL; | |
5657 | } | |
5658 | } | |
5659 | { | |
5660 | wxPy_BEGIN_ALLOW_THREADS; | |
5661 | wxPenList_AddPen(_arg0,_arg1); | |
5662 | ||
5663 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5664 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5665 | } Py_INCREF(Py_None); |
5666 | _resultobj = Py_None; | |
5667 | return _resultobj; | |
5668 | } | |
5669 | ||
5670 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5671 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject * _resultobj; | |
5673 | wxPen * _result; | |
5674 | wxPenList * _arg0; | |
5675 | wxColour * _arg1; | |
5676 | int _arg2; | |
5677 | int _arg3; | |
5678 | PyObject * _argo0 = 0; | |
5679 | wxColour temp; | |
5680 | PyObject * _obj1 = 0; | |
5681 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5682 | char _ptemp[128]; | |
5683 | ||
5684 | self = self; | |
5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5686 | return NULL; | |
5687 | if (_argo0) { | |
5688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5691 | return NULL; | |
5692 | } | |
5693 | } | |
5694 | { | |
5695 | _arg1 = &temp; | |
5696 | if (! wxColour_helper(_obj1, &_arg1)) | |
5697 | return NULL; | |
5698 | } | |
5699 | { | |
5700 | wxPy_BEGIN_ALLOW_THREADS; | |
5701 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
5702 | ||
5703 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5704 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5705 | } if (_result) { |
5706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5707 | _resultobj = Py_BuildValue("s",_ptemp); | |
5708 | } else { | |
5709 | Py_INCREF(Py_None); | |
5710 | _resultobj = Py_None; | |
5711 | } | |
5712 | return _resultobj; | |
5713 | } | |
5714 | ||
5715 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5716 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject * _resultobj; | |
5718 | wxPenList * _arg0; | |
5719 | wxPen * _arg1; | |
5720 | PyObject * _argo0 = 0; | |
5721 | PyObject * _argo1 = 0; | |
5722 | char *_kwnames[] = { "self","pen", NULL }; | |
5723 | ||
5724 | self = self; | |
5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5726 | return NULL; | |
5727 | if (_argo0) { | |
5728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5731 | return NULL; | |
5732 | } | |
5733 | } | |
5734 | if (_argo1) { | |
5735 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5736 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5738 | return NULL; | |
8ab979d7 | 5739 | } |
0569df0f RD |
5740 | } |
5741 | { | |
5742 | wxPy_BEGIN_ALLOW_THREADS; | |
5743 | wxPenList_RemovePen(_arg0,_arg1); | |
8ab979d7 | 5744 | |
0569df0f | 5745 | wxPy_END_ALLOW_THREADS; |
493f1553 | 5746 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5747 | } Py_INCREF(Py_None); |
5748 | _resultobj = Py_None; | |
5749 | return _resultobj; | |
5750 | } | |
5751 | ||
9416aa89 RD |
5752 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5753 | wxBrush *src; | |
5754 | wxGDIObject *dest; | |
5755 | src = (wxBrush *) ptr; | |
5756 | dest = (wxGDIObject *) src; | |
5757 | return (void *) dest; | |
5758 | } | |
5759 | ||
5760 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5761 | wxBrush *src; | |
5762 | wxObject *dest; | |
5763 | src = (wxBrush *) ptr; | |
5764 | dest = (wxObject *) src; | |
5765 | return (void *) dest; | |
5766 | } | |
5767 | ||
0569df0f | 5768 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 5769 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5770 | PyObject * _resultobj; |
5771 | wxBrush * _result; | |
5772 | wxColour * _arg0; | |
1d99702e | 5773 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
5774 | wxColour temp; |
5775 | PyObject * _obj0 = 0; | |
1afc06c2 | 5776 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
5777 | char _ptemp[128]; |
5778 | ||
5779 | self = self; | |
f6bcfd97 | 5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 5781 | return NULL; |
f6bcfd97 BP |
5782 | { |
5783 | _arg0 = &temp; | |
5784 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5785 | return NULL; |
f6bcfd97 | 5786 | } |
cf694132 RD |
5787 | { |
5788 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 5789 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 RD |
5790 | |
5791 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5792 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5793 | } if (_result) { |
5794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5795 | _resultobj = Py_BuildValue("s",_ptemp); | |
5796 | } else { | |
5797 | Py_INCREF(Py_None); | |
5798 | _resultobj = Py_None; | |
5799 | } | |
8ab979d7 RD |
5800 | return _resultobj; |
5801 | } | |
5802 | ||
0569df0f RD |
5803 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
5804 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject * _resultobj; | |
5806 | wxBrush * _arg0; | |
5807 | PyObject * _argo0 = 0; | |
5808 | char *_kwnames[] = { "self", NULL }; | |
5809 | ||
5810 | self = self; | |
5811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5812 | return NULL; | |
5813 | if (_argo0) { | |
5814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5817 | return NULL; | |
5818 | } | |
5819 | } | |
5820 | { | |
5821 | wxPy_BEGIN_ALLOW_THREADS; | |
5822 | delete_wxBrush(_arg0); | |
5823 | ||
5824 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5825 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5826 | } Py_INCREF(Py_None); |
5827 | _resultobj = Py_None; | |
5828 | return _resultobj; | |
5829 | } | |
5830 | ||
8ab979d7 | 5831 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 5832 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5833 | PyObject * _resultobj; |
5834 | wxColour * _result; | |
5835 | wxBrush * _arg0; | |
1d99702e | 5836 | PyObject * _argo0 = 0; |
1afc06c2 | 5837 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5838 | char _ptemp[128]; |
5839 | ||
5840 | self = self; | |
1afc06c2 | 5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5842 | return NULL; |
1d99702e RD |
5843 | if (_argo0) { |
5844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
5847 | return NULL; | |
5848 | } | |
5849 | } | |
cf694132 RD |
5850 | { |
5851 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 5852 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 RD |
5853 | |
5854 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5855 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5856 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5857 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5858 | return _resultobj; |
5859 | } | |
5860 | ||
5861 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 5862 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5863 | PyObject * _resultobj; |
5864 | wxBitmap * _result; | |
5865 | wxBrush * _arg0; | |
1d99702e | 5866 | PyObject * _argo0 = 0; |
1afc06c2 | 5867 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5868 | char _ptemp[128]; |
5869 | ||
5870 | self = self; | |
1afc06c2 | 5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 5872 | return NULL; |
1d99702e RD |
5873 | if (_argo0) { |
5874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
5877 | return NULL; | |
5878 | } | |
5879 | } | |
cf694132 RD |
5880 | { |
5881 | wxPy_BEGIN_ALLOW_THREADS; | |
5882 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
5883 | ||
5884 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5885 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5886 | } if (_result) { |
5887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5888 | _resultobj = Py_BuildValue("s",_ptemp); | |
5889 | } else { | |
5890 | Py_INCREF(Py_None); | |
5891 | _resultobj = Py_None; | |
5892 | } | |
8ab979d7 RD |
5893 | return _resultobj; |
5894 | } | |
5895 | ||
5896 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5897 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5898 | PyObject * _resultobj; |
5899 | int _result; | |
5900 | wxBrush * _arg0; | |
1d99702e | 5901 | PyObject * _argo0 = 0; |
1afc06c2 | 5902 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5903 | |
5904 | self = self; | |
1afc06c2 | 5905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5906 | return NULL; |
1d99702e RD |
5907 | if (_argo0) { |
5908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
5911 | return NULL; | |
5912 | } | |
5913 | } | |
cf694132 RD |
5914 | { |
5915 | wxPy_BEGIN_ALLOW_THREADS; | |
5916 | _result = (int )wxBrush_GetStyle(_arg0); | |
5917 | ||
5918 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5919 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5920 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5921 | return _resultobj; |
5922 | } | |
5923 | ||
5924 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5925 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5926 | PyObject * _resultobj; |
5927 | bool _result; | |
5928 | wxBrush * _arg0; | |
1d99702e | 5929 | PyObject * _argo0 = 0; |
1afc06c2 | 5930 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5931 | |
5932 | self = self; | |
1afc06c2 | 5933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 5934 | return NULL; |
1d99702e RD |
5935 | if (_argo0) { |
5936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
5939 | return NULL; | |
5940 | } | |
5941 | } | |
cf694132 RD |
5942 | { |
5943 | wxPy_BEGIN_ALLOW_THREADS; | |
5944 | _result = (bool )wxBrush_Ok(_arg0); | |
5945 | ||
5946 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5947 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5948 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5949 | return _resultobj; |
5950 | } | |
5951 | ||
5952 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 5953 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5954 | PyObject * _resultobj; |
5955 | wxBrush * _arg0; | |
5956 | wxColour * _arg1; | |
1d99702e | 5957 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5958 | wxColour temp; |
5959 | PyObject * _obj1 = 0; | |
1afc06c2 | 5960 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
5961 | |
5962 | self = self; | |
f6bcfd97 | 5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5964 | return NULL; |
1d99702e RD |
5965 | if (_argo0) { |
5966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
5969 | return NULL; | |
5970 | } | |
5971 | } | |
f6bcfd97 BP |
5972 | { |
5973 | _arg1 = &temp; | |
5974 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 5975 | return NULL; |
f6bcfd97 | 5976 | } |
cf694132 RD |
5977 | { |
5978 | wxPy_BEGIN_ALLOW_THREADS; | |
5979 | wxBrush_SetColour(_arg0,*_arg1); | |
5980 | ||
5981 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5982 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5983 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5984 | _resultobj = Py_None; |
5985 | return _resultobj; | |
5986 | } | |
5987 | ||
5988 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 5989 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5990 | PyObject * _resultobj; |
5991 | wxBrush * _arg0; | |
5992 | wxBitmap * _arg1; | |
1d99702e RD |
5993 | PyObject * _argo0 = 0; |
5994 | PyObject * _argo1 = 0; | |
1afc06c2 | 5995 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
5996 | |
5997 | self = self; | |
1afc06c2 | 5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5999 | return NULL; |
1d99702e RD |
6000 | if (_argo0) { |
6001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
6004 | return NULL; | |
6005 | } | |
6006 | } | |
1d99702e RD |
6007 | if (_argo1) { |
6008 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6009 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
6011 | return NULL; | |
6012 | } | |
6013 | } | |
cf694132 RD |
6014 | { |
6015 | wxPy_BEGIN_ALLOW_THREADS; | |
6016 | wxBrush_SetStipple(_arg0,*_arg1); | |
6017 | ||
6018 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6020 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6021 | _resultobj = Py_None; |
6022 | return _resultobj; | |
6023 | } | |
6024 | ||
6025 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6026 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6027 | PyObject * _resultobj; |
6028 | wxBrush * _arg0; | |
6029 | int _arg1; | |
1d99702e | 6030 | PyObject * _argo0 = 0; |
1afc06c2 | 6031 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
6032 | |
6033 | self = self; | |
1afc06c2 | 6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6035 | return NULL; |
1d99702e RD |
6036 | if (_argo0) { |
6037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
6040 | return NULL; | |
6041 | } | |
6042 | } | |
cf694132 RD |
6043 | { |
6044 | wxPy_BEGIN_ALLOW_THREADS; | |
6045 | wxBrush_SetStyle(_arg0,_arg1); | |
6046 | ||
6047 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6048 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6049 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6050 | _resultobj = Py_None; |
6051 | return _resultobj; | |
6052 | } | |
6053 | ||
0569df0f RD |
6054 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6055 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6056 | PyObject * _resultobj; | |
6057 | wxBrushList * _arg0; | |
6058 | wxBrush * _arg1; | |
6059 | PyObject * _argo0 = 0; | |
6060 | PyObject * _argo1 = 0; | |
6061 | char *_kwnames[] = { "self","brush", NULL }; | |
6062 | ||
6063 | self = self; | |
6064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6065 | return NULL; | |
6066 | if (_argo0) { | |
6067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6070 | return NULL; | |
6071 | } | |
6072 | } | |
6073 | if (_argo1) { | |
6074 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6075 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6077 | return NULL; | |
6078 | } | |
6079 | } | |
6080 | { | |
6081 | wxPy_BEGIN_ALLOW_THREADS; | |
6082 | wxBrushList_AddBrush(_arg0,_arg1); | |
6083 | ||
6084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6085 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6086 | } Py_INCREF(Py_None); |
6087 | _resultobj = Py_None; | |
6088 | return _resultobj; | |
6089 | } | |
6090 | ||
6091 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6092 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6093 | PyObject * _resultobj; | |
6094 | wxBrush * _result; | |
6095 | wxBrushList * _arg0; | |
6096 | wxColour * _arg1; | |
6097 | int _arg2; | |
6098 | PyObject * _argo0 = 0; | |
6099 | wxColour temp; | |
6100 | PyObject * _obj1 = 0; | |
6101 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6102 | char _ptemp[128]; | |
6103 | ||
6104 | self = self; | |
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6106 | return NULL; | |
6107 | if (_argo0) { | |
6108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6111 | return NULL; | |
6112 | } | |
6113 | } | |
6114 | { | |
6115 | _arg1 = &temp; | |
6116 | if (! wxColour_helper(_obj1, &_arg1)) | |
6117 | return NULL; | |
6118 | } | |
6119 | { | |
6120 | wxPy_BEGIN_ALLOW_THREADS; | |
6121 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
6122 | ||
6123 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6124 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6125 | } if (_result) { |
6126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6127 | _resultobj = Py_BuildValue("s",_ptemp); | |
6128 | } else { | |
6129 | Py_INCREF(Py_None); | |
6130 | _resultobj = Py_None; | |
6131 | } | |
6132 | return _resultobj; | |
6133 | } | |
6134 | ||
6135 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6136 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6137 | PyObject * _resultobj; | |
6138 | wxBrushList * _arg0; | |
6139 | wxBrush * _arg1; | |
6140 | PyObject * _argo0 = 0; | |
6141 | PyObject * _argo1 = 0; | |
6142 | char *_kwnames[] = { "self","brush", NULL }; | |
6143 | ||
6144 | self = self; | |
6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6146 | return NULL; | |
6147 | if (_argo0) { | |
6148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6151 | return NULL; | |
6152 | } | |
6153 | } | |
6154 | if (_argo1) { | |
6155 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6156 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6158 | return NULL; | |
6159 | } | |
6160 | } | |
6161 | { | |
6162 | wxPy_BEGIN_ALLOW_THREADS; | |
6163 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
6164 | ||
6165 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6166 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6167 | } Py_INCREF(Py_None); |
6168 | _resultobj = Py_None; | |
6169 | return _resultobj; | |
6170 | } | |
6171 | ||
9416aa89 RD |
6172 | static void *SwigwxDCTowxObject(void *ptr) { |
6173 | wxDC *src; | |
6174 | wxObject *dest; | |
6175 | src = (wxDC *) ptr; | |
6176 | dest = (wxObject *) src; | |
6177 | return (void *) dest; | |
6178 | } | |
6179 | ||
8ab979d7 | 6180 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 6181 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6182 | PyObject * _resultobj; |
6183 | wxDC * _arg0; | |
1d99702e | 6184 | PyObject * _argo0 = 0; |
1afc06c2 | 6185 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6186 | |
6187 | self = self; | |
1afc06c2 | 6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 6189 | return NULL; |
1d99702e RD |
6190 | if (_argo0) { |
6191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
6194 | return NULL; | |
6195 | } | |
6196 | } | |
cf694132 RD |
6197 | { |
6198 | wxPy_BEGIN_ALLOW_THREADS; | |
6199 | delete_wxDC(_arg0); | |
6200 | ||
6201 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6203 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6204 | _resultobj = Py_None; |
6205 | return _resultobj; | |
6206 | } | |
6207 | ||
6208 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 6209 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6210 | PyObject * _resultobj; |
6211 | wxDC * _arg0; | |
1d99702e | 6212 | PyObject * _argo0 = 0; |
1afc06c2 | 6213 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6214 | |
6215 | self = self; | |
1afc06c2 | 6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 6217 | return NULL; |
1d99702e RD |
6218 | if (_argo0) { |
6219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
6222 | return NULL; | |
6223 | } | |
6224 | } | |
cf694132 RD |
6225 | { |
6226 | wxPy_BEGIN_ALLOW_THREADS; | |
6227 | wxDC_BeginDrawing(_arg0); | |
6228 | ||
6229 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6230 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6231 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6232 | _resultobj = Py_None; |
6233 | return _resultobj; | |
6234 | } | |
6235 | ||
efc5f224 | 6236 | #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 | 6237 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6238 | PyObject * _resultobj; |
6239 | bool _result; | |
6240 | wxDC * _arg0; | |
6241 | long _arg1; | |
6242 | long _arg2; | |
6243 | long _arg3; | |
6244 | long _arg4; | |
6245 | wxDC * _arg5; | |
6246 | long _arg6; | |
6247 | long _arg7; | |
efc5f224 RD |
6248 | int _arg8 = (int ) wxCOPY; |
6249 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
6250 | PyObject * _argo0 = 0; |
6251 | PyObject * _argo5 = 0; | |
1afc06c2 | 6252 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
6253 | |
6254 | self = self; | |
1afc06c2 | 6255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 6256 | return NULL; |
1d99702e RD |
6257 | if (_argo0) { |
6258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
6261 | return NULL; | |
6262 | } | |
6263 | } | |
1d99702e RD |
6264 | if (_argo5) { |
6265 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6266 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
6267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
6268 | return NULL; | |
6269 | } | |
6270 | } | |
cf694132 RD |
6271 | { |
6272 | wxPy_BEGIN_ALLOW_THREADS; | |
efc5f224 | 6273 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 RD |
6274 | |
6275 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6276 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6277 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6278 | return _resultobj; |
6279 | } | |
6280 | ||
6281 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 6282 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6283 | PyObject * _resultobj; |
6284 | wxDC * _arg0; | |
1d99702e | 6285 | PyObject * _argo0 = 0; |
1afc06c2 | 6286 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6287 | |
6288 | self = self; | |
1afc06c2 | 6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 6290 | return NULL; |
1d99702e RD |
6291 | if (_argo0) { |
6292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
6295 | return NULL; | |
6296 | } | |
6297 | } | |
cf694132 RD |
6298 | { |
6299 | wxPy_BEGIN_ALLOW_THREADS; | |
6300 | wxDC_Clear(_arg0); | |
6301 | ||
6302 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6303 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6304 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6305 | _resultobj = Py_None; |
6306 | return _resultobj; | |
6307 | } | |
6308 | ||
6309 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 6310 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6311 | PyObject * _resultobj; |
6312 | wxDC * _arg0; | |
6313 | long _arg1; | |
6314 | long _arg2; | |
1d99702e | 6315 | PyObject * _argo0 = 0; |
1afc06c2 | 6316 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6317 | |
6318 | self = self; | |
1afc06c2 | 6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
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_CrossHair. Expected _wxDC_p."); |
6325 | return NULL; | |
6326 | } | |
6327 | } | |
cf694132 RD |
6328 | { |
6329 | wxPy_BEGIN_ALLOW_THREADS; | |
6330 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
6331 | ||
6332 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6334 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6335 | _resultobj = Py_None; |
6336 | return _resultobj; | |
6337 | } | |
6338 | ||
6339 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 6340 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6341 | PyObject * _resultobj; |
6342 | wxDC * _arg0; | |
1d99702e | 6343 | PyObject * _argo0 = 0; |
1afc06c2 | 6344 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6345 | |
6346 | self = self; | |
1afc06c2 | 6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 6348 | return NULL; |
1d99702e RD |
6349 | if (_argo0) { |
6350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
6353 | return NULL; | |
6354 | } | |
6355 | } | |
cf694132 RD |
6356 | { |
6357 | wxPy_BEGIN_ALLOW_THREADS; | |
6358 | wxDC_DestroyClippingRegion(_arg0); | |
6359 | ||
6360 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6361 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6362 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6363 | _resultobj = Py_None; |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
6367 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 6368 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6369 | PyObject * _resultobj; |
6370 | long _result; | |
6371 | wxDC * _arg0; | |
6372 | long _arg1; | |
1d99702e | 6373 | PyObject * _argo0 = 0; |
1afc06c2 | 6374 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
6375 | |
6376 | self = self; | |
1afc06c2 | 6377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6378 | return NULL; |
1d99702e RD |
6379 | if (_argo0) { |
6380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
6383 | return NULL; | |
6384 | } | |
6385 | } | |
cf694132 RD |
6386 | { |
6387 | wxPy_BEGIN_ALLOW_THREADS; | |
6388 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
6389 | ||
6390 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6391 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6392 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6393 | return _resultobj; |
6394 | } | |
6395 | ||
6396 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 6397 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6398 | PyObject * _resultobj; |
6399 | long _result; | |
6400 | wxDC * _arg0; | |
6401 | long _arg1; | |
1d99702e | 6402 | PyObject * _argo0 = 0; |
1afc06c2 | 6403 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
6404 | |
6405 | self = self; | |
1afc06c2 | 6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6407 | return NULL; |
1d99702e RD |
6408 | if (_argo0) { |
6409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
6412 | return NULL; | |
6413 | } | |
6414 | } | |
cf694132 RD |
6415 | { |
6416 | wxPy_BEGIN_ALLOW_THREADS; | |
6417 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
6418 | ||
6419 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6421 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6422 | return _resultobj; |
6423 | } | |
6424 | ||
6425 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 6426 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6427 | PyObject * _resultobj; |
6428 | long _result; | |
6429 | wxDC * _arg0; | |
6430 | long _arg1; | |
1d99702e | 6431 | PyObject * _argo0 = 0; |
1afc06c2 | 6432 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
6433 | |
6434 | self = self; | |
1afc06c2 | 6435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6436 | return NULL; |
1d99702e RD |
6437 | if (_argo0) { |
6438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
6441 | return NULL; | |
6442 | } | |
6443 | } | |
cf694132 RD |
6444 | { |
6445 | wxPy_BEGIN_ALLOW_THREADS; | |
6446 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
6447 | ||
6448 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6450 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6451 | return _resultobj; |
6452 | } | |
6453 | ||
6454 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 6455 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6456 | PyObject * _resultobj; |
6457 | long _result; | |
6458 | wxDC * _arg0; | |
6459 | long _arg1; | |
1d99702e | 6460 | PyObject * _argo0 = 0; |
1afc06c2 | 6461 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
6462 | |
6463 | self = self; | |
1afc06c2 | 6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6465 | return NULL; |
1d99702e RD |
6466 | if (_argo0) { |
6467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
6470 | return NULL; | |
6471 | } | |
6472 | } | |
cf694132 RD |
6473 | { |
6474 | wxPy_BEGIN_ALLOW_THREADS; | |
6475 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
6476 | ||
6477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6479 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6480 | return _resultobj; |
6481 | } | |
6482 | ||
6483 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 6484 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6485 | PyObject * _resultobj; |
6486 | wxDC * _arg0; | |
6487 | long _arg1; | |
6488 | long _arg2; | |
6489 | long _arg3; | |
6490 | long _arg4; | |
6491 | long _arg5; | |
6492 | long _arg6; | |
1d99702e | 6493 | PyObject * _argo0 = 0; |
1afc06c2 | 6494 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
6495 | |
6496 | self = self; | |
1afc06c2 | 6497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 6498 | return NULL; |
1d99702e RD |
6499 | if (_argo0) { |
6500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
6503 | return NULL; | |
6504 | } | |
6505 | } | |
cf694132 RD |
6506 | { |
6507 | wxPy_BEGIN_ALLOW_THREADS; | |
6508 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6509 | ||
6510 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6511 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6512 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6513 | _resultobj = Py_None; |
6514 | return _resultobj; | |
6515 | } | |
6516 | ||
bb0054cd | 6517 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 6518 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6519 | PyObject * _resultobj; |
6520 | wxDC * _arg0; | |
6521 | long _arg1; | |
6522 | long _arg2; | |
6523 | long _arg3; | |
1d99702e | 6524 | PyObject * _argo0 = 0; |
1afc06c2 | 6525 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
6526 | |
6527 | self = self; | |
1afc06c2 | 6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 6529 | return NULL; |
1d99702e RD |
6530 | if (_argo0) { |
6531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
6533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
6534 | return NULL; | |
6535 | } | |
6536 | } | |
6537 | { | |
6538 | wxPy_BEGIN_ALLOW_THREADS; | |
6539 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
6540 | ||
6541 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6542 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6543 | } Py_INCREF(Py_None); |
6544 | _resultobj = Py_None; | |
6545 | return _resultobj; | |
6546 | } | |
6547 | ||
8ab979d7 | 6548 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 6549 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6550 | PyObject * _resultobj; |
6551 | wxDC * _arg0; | |
6552 | long _arg1; | |
6553 | long _arg2; | |
6554 | long _arg3; | |
6555 | long _arg4; | |
1d99702e | 6556 | PyObject * _argo0 = 0; |
1afc06c2 | 6557 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
6558 | |
6559 | self = self; | |
1afc06c2 | 6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 6561 | return NULL; |
1d99702e RD |
6562 | if (_argo0) { |
6563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
6566 | return NULL; | |
6567 | } | |
6568 | } | |
cf694132 RD |
6569 | { |
6570 | wxPy_BEGIN_ALLOW_THREADS; | |
6571 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6572 | ||
6573 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6574 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6575 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6576 | _resultobj = Py_None; |
6577 | return _resultobj; | |
6578 | } | |
6579 | ||
6580 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 6581 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6582 | PyObject * _resultobj; |
6583 | wxDC * _arg0; | |
6584 | long _arg1; | |
6585 | long _arg2; | |
6586 | long _arg3; | |
6587 | long _arg4; | |
6588 | long _arg5; | |
6589 | long _arg6; | |
1d99702e | 6590 | PyObject * _argo0 = 0; |
1afc06c2 | 6591 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
6592 | |
6593 | self = self; | |
1afc06c2 | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 6595 | return NULL; |
1d99702e RD |
6596 | if (_argo0) { |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
6600 | return NULL; | |
6601 | } | |
6602 | } | |
cf694132 RD |
6603 | { |
6604 | wxPy_BEGIN_ALLOW_THREADS; | |
6605 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6606 | ||
6607 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6609 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6610 | _resultobj = Py_None; |
6611 | return _resultobj; | |
6612 | } | |
6613 | ||
6614 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 6615 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6616 | PyObject * _resultobj; |
6617 | wxDC * _arg0; | |
6618 | wxIcon * _arg1; | |
6619 | long _arg2; | |
6620 | long _arg3; | |
1d99702e RD |
6621 | PyObject * _argo0 = 0; |
6622 | PyObject * _argo1 = 0; | |
1afc06c2 | 6623 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
6624 | |
6625 | self = self; | |
1afc06c2 | 6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 6627 | return NULL; |
1d99702e RD |
6628 | if (_argo0) { |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
6632 | return NULL; | |
6633 | } | |
6634 | } | |
1d99702e RD |
6635 | if (_argo1) { |
6636 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6637 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
6639 | return NULL; | |
6640 | } | |
6641 | } | |
cf694132 RD |
6642 | { |
6643 | wxPy_BEGIN_ALLOW_THREADS; | |
6644 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
6645 | ||
6646 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6647 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6648 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6649 | _resultobj = Py_None; |
6650 | return _resultobj; | |
6651 | } | |
6652 | ||
6653 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6654 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6655 | PyObject * _resultobj; |
6656 | wxDC * _arg0; | |
6657 | long _arg1; | |
6658 | long _arg2; | |
6659 | long _arg3; | |
6660 | long _arg4; | |
1d99702e | 6661 | PyObject * _argo0 = 0; |
1afc06c2 | 6662 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
6663 | |
6664 | self = self; | |
1afc06c2 | 6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 6666 | return NULL; |
1d99702e RD |
6667 | if (_argo0) { |
6668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
6671 | return NULL; | |
6672 | } | |
6673 | } | |
cf694132 RD |
6674 | { |
6675 | wxPy_BEGIN_ALLOW_THREADS; | |
6676 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6677 | ||
6678 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6679 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6680 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6681 | _resultobj = Py_None; |
6682 | return _resultobj; | |
6683 | } | |
6684 | ||
6685 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6686 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6687 | PyObject * _resultobj; |
6688 | wxDC * _arg0; | |
6689 | int _arg1; | |
6690 | wxPoint * _arg2; | |
1d99702e RD |
6691 | long _arg3 = (long ) 0; |
6692 | long _arg4 = (long ) 0; | |
6693 | PyObject * _argo0 = 0; | |
e0672e2f | 6694 | int NPOINTS; |
8ab979d7 | 6695 | PyObject * _obj2 = 0; |
eec92d76 | 6696 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
6697 | |
6698 | self = self; | |
1afc06c2 | 6699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 6700 | return NULL; |
1d99702e RD |
6701 | if (_argo0) { |
6702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
6705 | return NULL; | |
6706 | } | |
6707 | } | |
6708 | if (_obj2) | |
6709 | { | |
e0672e2f RD |
6710 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6711 | if (_arg2 == NULL) { | |
6712 | return NULL; | |
6713 | } | |
8ab979d7 RD |
6714 | } |
6715 | { | |
e0672e2f | 6716 | _arg1 = NPOINTS; |
8ab979d7 | 6717 | } |
cf694132 RD |
6718 | { |
6719 | wxPy_BEGIN_ALLOW_THREADS; | |
6720 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6721 | ||
6722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6724 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6725 | _resultobj = Py_None; |
6726 | { | |
6727 | delete [] _arg2; | |
6728 | } | |
6729 | return _resultobj; | |
6730 | } | |
6731 | ||
6732 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 6733 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6734 | PyObject * _resultobj; |
6735 | wxDC * _arg0; | |
6736 | int _arg1; | |
6737 | wxPoint * _arg2; | |
1d99702e RD |
6738 | long _arg3 = (long ) 0; |
6739 | long _arg4 = (long ) 0; | |
6740 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6741 | PyObject * _argo0 = 0; | |
e0672e2f | 6742 | int NPOINTS; |
8ab979d7 | 6743 | PyObject * _obj2 = 0; |
eec92d76 | 6744 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
6745 | |
6746 | self = self; | |
1afc06c2 | 6747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 6748 | return NULL; |
1d99702e RD |
6749 | if (_argo0) { |
6750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
6753 | return NULL; | |
6754 | } | |
6755 | } | |
6756 | if (_obj2) | |
6757 | { | |
e0672e2f RD |
6758 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6759 | if (_arg2 == NULL) { | |
6760 | return NULL; | |
6761 | } | |
8ab979d7 RD |
6762 | } |
6763 | { | |
e0672e2f | 6764 | _arg1 = NPOINTS; |
8ab979d7 | 6765 | } |
cf694132 RD |
6766 | { |
6767 | wxPy_BEGIN_ALLOW_THREADS; | |
6768 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6769 | ||
6770 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6771 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6772 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6773 | _resultobj = Py_None; |
6774 | { | |
6775 | delete [] _arg2; | |
6776 | } | |
6777 | return _resultobj; | |
6778 | } | |
6779 | ||
6780 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 6781 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6782 | PyObject * _resultobj; |
6783 | wxDC * _arg0; | |
6784 | long _arg1; | |
6785 | long _arg2; | |
1d99702e | 6786 | PyObject * _argo0 = 0; |
1afc06c2 | 6787 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6788 | |
6789 | self = self; | |
1afc06c2 | 6790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6791 | return NULL; |
1d99702e RD |
6792 | if (_argo0) { |
6793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
6796 | return NULL; | |
6797 | } | |
6798 | } | |
cf694132 RD |
6799 | { |
6800 | wxPy_BEGIN_ALLOW_THREADS; | |
6801 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
6802 | ||
6803 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6804 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6805 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6806 | _resultobj = Py_None; |
6807 | return _resultobj; | |
6808 | } | |
6809 | ||
6810 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6811 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6812 | PyObject * _resultobj; |
6813 | wxDC * _arg0; | |
6814 | long _arg1; | |
6815 | long _arg2; | |
6816 | long _arg3; | |
6817 | long _arg4; | |
1d99702e | 6818 | PyObject * _argo0 = 0; |
1afc06c2 | 6819 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
6820 | |
6821 | self = self; | |
1afc06c2 | 6822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 6823 | return NULL; |
1d99702e RD |
6824 | if (_argo0) { |
6825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
6828 | return NULL; | |
6829 | } | |
6830 | } | |
cf694132 RD |
6831 | { |
6832 | wxPy_BEGIN_ALLOW_THREADS; | |
6833 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6834 | ||
6835 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6837 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6838 | _resultobj = Py_None; |
6839 | return _resultobj; | |
6840 | } | |
6841 | ||
6999b0d8 RD |
6842 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6843 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6844 | PyObject * _resultobj; | |
6845 | wxDC * _arg0; | |
6846 | wxString * _arg1; | |
6847 | wxCoord _arg2; | |
6848 | wxCoord _arg3; | |
6849 | double _arg4; | |
6850 | PyObject * _argo0 = 0; | |
6851 | PyObject * _obj1 = 0; | |
6852 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6853 | ||
6854 | self = self; | |
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6856 | return NULL; | |
6857 | if (_argo0) { | |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
6864 | { | |
185d7c3e RD |
6865 | #if PYTHON_API_VERSION >= 1009 |
6866 | char* tmpPtr; int tmpSize; | |
6867 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6868 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6869 | return NULL; |
6870 | } | |
6871 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6872 | return NULL; | |
6873 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6874 | #else | |
6999b0d8 RD |
6875 | if (!PyString_Check(_obj1)) { |
6876 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6877 | return NULL; | |
6878 | } | |
185d7c3e RD |
6879 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6880 | #endif | |
6999b0d8 RD |
6881 | } |
6882 | { | |
6883 | wxPy_BEGIN_ALLOW_THREADS; | |
6884 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
6885 | ||
6886 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6887 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6888 | } Py_INCREF(Py_None); |
6889 | _resultobj = Py_None; | |
6890 | { | |
6891 | if (_obj1) | |
6892 | delete _arg1; | |
6893 | } | |
6894 | return _resultobj; | |
6895 | } | |
6896 | ||
8ab979d7 | 6897 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 6898 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6899 | PyObject * _resultobj; |
6900 | wxDC * _arg0; | |
6901 | long _arg1; | |
6902 | long _arg2; | |
6903 | long _arg3; | |
6904 | long _arg4; | |
1d99702e RD |
6905 | long _arg5 = (long ) 20; |
6906 | PyObject * _argo0 = 0; | |
1afc06c2 | 6907 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
6908 | |
6909 | self = self; | |
1afc06c2 | 6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 6911 | return NULL; |
1d99702e RD |
6912 | if (_argo0) { |
6913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
cf694132 RD |
6919 | { |
6920 | wxPy_BEGIN_ALLOW_THREADS; | |
6921 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6922 | ||
6923 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6924 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6925 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6926 | _resultobj = Py_None; |
6927 | return _resultobj; | |
6928 | } | |
6929 | ||
6930 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 6931 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6932 | PyObject * _resultobj; |
6933 | wxDC * _arg0; | |
6934 | int _arg1; | |
6935 | wxPoint * _arg2; | |
1d99702e | 6936 | PyObject * _argo0 = 0; |
e0672e2f | 6937 | int NPOINTS; |
8ab979d7 | 6938 | PyObject * _obj2 = 0; |
eec92d76 | 6939 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
6940 | |
6941 | self = self; | |
1afc06c2 | 6942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6943 | return NULL; |
1d99702e RD |
6944 | if (_argo0) { |
6945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
6948 | return NULL; | |
6949 | } | |
6950 | } | |
6951 | if (_obj2) | |
6952 | { | |
e0672e2f RD |
6953 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6954 | if (_arg2 == NULL) { | |
6955 | return NULL; | |
6956 | } | |
8ab979d7 RD |
6957 | } |
6958 | { | |
e0672e2f | 6959 | _arg1 = NPOINTS; |
8ab979d7 | 6960 | } |
cf694132 RD |
6961 | { |
6962 | wxPy_BEGIN_ALLOW_THREADS; | |
6963 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
6964 | ||
6965 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6966 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6967 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6968 | _resultobj = Py_None; |
6969 | { | |
6970 | delete [] _arg2; | |
6971 | } | |
6972 | return _resultobj; | |
6973 | } | |
6974 | ||
6975 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 6976 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6977 | PyObject * _resultobj; |
6978 | wxDC * _arg0; | |
6979 | wxString * _arg1; | |
6980 | long _arg2; | |
6981 | long _arg3; | |
1d99702e | 6982 | PyObject * _argo0 = 0; |
8ab979d7 | 6983 | PyObject * _obj1 = 0; |
1afc06c2 | 6984 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
6985 | |
6986 | self = self; | |
1afc06c2 | 6987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 6988 | return NULL; |
1d99702e RD |
6989 | if (_argo0) { |
6990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
6993 | return NULL; | |
6994 | } | |
6995 | } | |
6996 | { | |
185d7c3e RD |
6997 | #if PYTHON_API_VERSION >= 1009 |
6998 | char* tmpPtr; int tmpSize; | |
6999 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7000 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7001 | return NULL; |
7002 | } | |
7003 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7004 | return NULL; | |
7005 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7006 | #else | |
8ab979d7 RD |
7007 | if (!PyString_Check(_obj1)) { |
7008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7009 | return NULL; | |
7010 | } | |
185d7c3e RD |
7011 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7012 | #endif | |
8ab979d7 | 7013 | } |
cf694132 RD |
7014 | { |
7015 | wxPy_BEGIN_ALLOW_THREADS; | |
7016 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
7017 | ||
7018 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7020 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7021 | _resultobj = Py_None; |
7022 | { | |
7023 | if (_obj1) | |
7024 | delete _arg1; | |
7025 | } | |
7026 | return _resultobj; | |
7027 | } | |
7028 | ||
7029 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 7030 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7031 | PyObject * _resultobj; |
7032 | wxDC * _arg0; | |
1d99702e | 7033 | PyObject * _argo0 = 0; |
1afc06c2 | 7034 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7035 | |
7036 | self = self; | |
1afc06c2 | 7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 7038 | return NULL; |
1d99702e RD |
7039 | if (_argo0) { |
7040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
7043 | return NULL; | |
7044 | } | |
7045 | } | |
cf694132 RD |
7046 | { |
7047 | wxPy_BEGIN_ALLOW_THREADS; | |
7048 | wxDC_EndDoc(_arg0); | |
7049 | ||
7050 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7052 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7053 | _resultobj = Py_None; |
7054 | return _resultobj; | |
7055 | } | |
7056 | ||
7057 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 7058 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7059 | PyObject * _resultobj; |
7060 | wxDC * _arg0; | |
1d99702e | 7061 | PyObject * _argo0 = 0; |
1afc06c2 | 7062 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7063 | |
7064 | self = self; | |
1afc06c2 | 7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7066 | return NULL; |
1d99702e RD |
7067 | if (_argo0) { |
7068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
7071 | return NULL; | |
7072 | } | |
7073 | } | |
cf694132 RD |
7074 | { |
7075 | wxPy_BEGIN_ALLOW_THREADS; | |
7076 | wxDC_EndDrawing(_arg0); | |
7077 | ||
7078 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7080 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7081 | _resultobj = Py_None; |
7082 | return _resultobj; | |
7083 | } | |
7084 | ||
7085 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 7086 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7087 | PyObject * _resultobj; |
7088 | wxDC * _arg0; | |
1d99702e | 7089 | PyObject * _argo0 = 0; |
1afc06c2 | 7090 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7091 | |
7092 | self = self; | |
1afc06c2 | 7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 7094 | return NULL; |
1d99702e RD |
7095 | if (_argo0) { |
7096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
7099 | return NULL; | |
7100 | } | |
7101 | } | |
cf694132 RD |
7102 | { |
7103 | wxPy_BEGIN_ALLOW_THREADS; | |
7104 | wxDC_EndPage(_arg0); | |
7105 | ||
7106 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7107 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7108 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7109 | _resultobj = Py_None; |
7110 | return _resultobj; | |
7111 | } | |
7112 | ||
be4d9c1f | 7113 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7114 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
7115 | PyObject * _resultobj; |
7116 | wxDC * _arg0; | |
7117 | long _arg1; | |
7118 | long _arg2; | |
7119 | wxColour * _arg3; | |
1d99702e RD |
7120 | int _arg4 = (int ) wxFLOOD_SURFACE; |
7121 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
7122 | wxColour temp; |
7123 | PyObject * _obj3 = 0; | |
1afc06c2 | 7124 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
7125 | |
7126 | self = self; | |
f6bcfd97 | 7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 7128 | return NULL; |
1d99702e RD |
7129 | if (_argo0) { |
7130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
f6bcfd97 BP |
7136 | { |
7137 | _arg3 = &temp; | |
7138 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 7139 | return NULL; |
f6bcfd97 | 7140 | } |
cf694132 RD |
7141 | { |
7142 | wxPy_BEGIN_ALLOW_THREADS; | |
7143 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
7144 | ||
7145 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7146 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7147 | } Py_INCREF(Py_None); |
be4d9c1f RD |
7148 | _resultobj = Py_None; |
7149 | return _resultobj; | |
7150 | } | |
7151 | ||
8ab979d7 | 7152 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 7153 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7154 | PyObject * _resultobj; |
7155 | wxBrush * _result; | |
7156 | wxDC * _arg0; | |
1d99702e | 7157 | PyObject * _argo0 = 0; |
1afc06c2 | 7158 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7159 | char _ptemp[128]; |
7160 | ||
7161 | self = self; | |
1afc06c2 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 7163 | return NULL; |
1d99702e RD |
7164 | if (_argo0) { |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
7168 | return NULL; | |
7169 | } | |
7170 | } | |
cf694132 RD |
7171 | { |
7172 | wxPy_BEGIN_ALLOW_THREADS; | |
7173 | wxBrush & _result_ref = wxDC_GetBackground(_arg0); | |
b8b8dda7 | 7174 | _result = (wxBrush *) &_result_ref; |
cf694132 RD |
7175 | |
7176 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7177 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7178 | } if (_result) { |
7179 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
7180 | _resultobj = Py_BuildValue("s",_ptemp); | |
7181 | } else { | |
7182 | Py_INCREF(Py_None); | |
7183 | _resultobj = Py_None; | |
7184 | } | |
8ab979d7 RD |
7185 | return _resultobj; |
7186 | } | |
7187 | ||
7188 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 7189 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7190 | PyObject * _resultobj; |
7191 | wxBrush * _result; | |
7192 | wxDC * _arg0; | |
1d99702e | 7193 | PyObject * _argo0 = 0; |
1afc06c2 | 7194 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7195 | char _ptemp[128]; |
7196 | ||
7197 | self = self; | |
1afc06c2 | 7198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 7199 | return NULL; |
1d99702e RD |
7200 | if (_argo0) { |
7201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
7204 | return NULL; | |
7205 | } | |
7206 | } | |
cf694132 RD |
7207 | { |
7208 | wxPy_BEGIN_ALLOW_THREADS; | |
7209 | wxBrush & _result_ref = wxDC_GetBrush(_arg0); | |
b8b8dda7 | 7210 | _result = (wxBrush *) &_result_ref; |
cf694132 RD |
7211 | |
7212 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7213 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7214 | } if (_result) { |
7215 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
7216 | _resultobj = Py_BuildValue("s",_ptemp); | |
7217 | } else { | |
7218 | Py_INCREF(Py_None); | |
7219 | _resultobj = Py_None; | |
7220 | } | |
8ab979d7 RD |
7221 | return _resultobj; |
7222 | } | |
7223 | ||
7224 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 7225 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7226 | PyObject * _resultobj; |
7227 | long _result; | |
7228 | wxDC * _arg0; | |
1d99702e | 7229 | PyObject * _argo0 = 0; |
1afc06c2 | 7230 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7231 | |
7232 | self = self; | |
1afc06c2 | 7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 7234 | return NULL; |
1d99702e RD |
7235 | if (_argo0) { |
7236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
7239 | return NULL; | |
7240 | } | |
7241 | } | |
cf694132 RD |
7242 | { |
7243 | wxPy_BEGIN_ALLOW_THREADS; | |
7244 | _result = (long )wxDC_GetCharHeight(_arg0); | |
7245 | ||
7246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7248 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7249 | return _resultobj; |
7250 | } | |
7251 | ||
7252 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 7253 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7254 | PyObject * _resultobj; |
7255 | long _result; | |
7256 | wxDC * _arg0; | |
1d99702e | 7257 | PyObject * _argo0 = 0; |
1afc06c2 | 7258 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7259 | |
7260 | self = self; | |
1afc06c2 | 7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 7262 | return NULL; |
1d99702e RD |
7263 | if (_argo0) { |
7264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
7267 | return NULL; | |
7268 | } | |
7269 | } | |
cf694132 RD |
7270 | { |
7271 | wxPy_BEGIN_ALLOW_THREADS; | |
7272 | _result = (long )wxDC_GetCharWidth(_arg0); | |
7273 | ||
7274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7276 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7277 | return _resultobj; |
7278 | } | |
7279 | ||
7280 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7281 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7282 | PyObject * _resultobj; |
7283 | wxDC * _arg0; | |
7284 | long * _arg1; | |
7285 | long temp; | |
7286 | long * _arg2; | |
7287 | long temp0; | |
7288 | long * _arg3; | |
7289 | long temp1; | |
7290 | long * _arg4; | |
7291 | long temp2; | |
1d99702e | 7292 | PyObject * _argo0 = 0; |
1afc06c2 | 7293 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7294 | |
7295 | self = self; | |
7296 | { | |
7297 | _arg1 = &temp; | |
7298 | } | |
7299 | { | |
7300 | _arg2 = &temp0; | |
7301 | } | |
7302 | { | |
7303 | _arg3 = &temp1; | |
7304 | } | |
7305 | { | |
7306 | _arg4 = &temp2; | |
7307 | } | |
1afc06c2 | 7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 7309 | return NULL; |
1d99702e RD |
7310 | if (_argo0) { |
7311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
7314 | return NULL; | |
7315 | } | |
7316 | } | |
cf694132 RD |
7317 | { |
7318 | wxPy_BEGIN_ALLOW_THREADS; | |
7319 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7320 | ||
7321 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7322 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7323 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7324 | _resultobj = Py_None; |
7325 | { | |
7326 | PyObject *o; | |
7327 | o = PyInt_FromLong((long) (*_arg1)); | |
7328 | _resultobj = t_output_helper(_resultobj, o); | |
7329 | } | |
7330 | { | |
7331 | PyObject *o; | |
7332 | o = PyInt_FromLong((long) (*_arg2)); | |
7333 | _resultobj = t_output_helper(_resultobj, o); | |
7334 | } | |
7335 | { | |
7336 | PyObject *o; | |
7337 | o = PyInt_FromLong((long) (*_arg3)); | |
7338 | _resultobj = t_output_helper(_resultobj, o); | |
7339 | } | |
7340 | { | |
7341 | PyObject *o; | |
7342 | o = PyInt_FromLong((long) (*_arg4)); | |
7343 | _resultobj = t_output_helper(_resultobj, o); | |
7344 | } | |
7345 | return _resultobj; | |
7346 | } | |
7347 | ||
7348 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 7349 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7350 | PyObject * _resultobj; |
7351 | wxFont * _result; | |
7352 | wxDC * _arg0; | |
1d99702e | 7353 | PyObject * _argo0 = 0; |
1afc06c2 | 7354 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7355 | char _ptemp[128]; |
7356 | ||
7357 | self = self; | |
1afc06c2 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 7359 | return NULL; |
1d99702e RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
cf694132 RD |
7367 | { |
7368 | wxPy_BEGIN_ALLOW_THREADS; | |
7369 | wxFont & _result_ref = wxDC_GetFont(_arg0); | |
b8b8dda7 | 7370 | _result = (wxFont *) &_result_ref; |
cf694132 RD |
7371 | |
7372 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7373 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7374 | } if (_result) { |
7375 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
7376 | _resultobj = Py_BuildValue("s",_ptemp); | |
7377 | } else { | |
7378 | Py_INCREF(Py_None); | |
7379 | _resultobj = Py_None; | |
7380 | } | |
8ab979d7 RD |
7381 | return _resultobj; |
7382 | } | |
7383 | ||
7384 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 7385 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7386 | PyObject * _resultobj; |
7387 | int _result; | |
7388 | wxDC * _arg0; | |
1d99702e | 7389 | PyObject * _argo0 = 0; |
1afc06c2 | 7390 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7391 | |
7392 | self = self; | |
1afc06c2 | 7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 7394 | return NULL; |
1d99702e RD |
7395 | if (_argo0) { |
7396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
7399 | return NULL; | |
7400 | } | |
7401 | } | |
cf694132 RD |
7402 | { |
7403 | wxPy_BEGIN_ALLOW_THREADS; | |
7404 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
7405 | ||
7406 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7407 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7408 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7409 | return _resultobj; |
7410 | } | |
7411 | ||
eec92d76 RD |
7412 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
7413 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7414 | PyObject * _resultobj; | |
7415 | wxDC * _arg0; | |
7416 | double * _arg1; | |
7417 | double temp; | |
7418 | double * _arg2; | |
7419 | double temp0; | |
7420 | PyObject * _argo0 = 0; | |
7421 | char *_kwnames[] = { "self", NULL }; | |
7422 | ||
7423 | self = self; | |
7424 | { | |
7425 | _arg1 = &temp; | |
7426 | } | |
7427 | { | |
7428 | _arg2 = &temp0; | |
7429 | } | |
7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7431 | return NULL; | |
7432 | if (_argo0) { | |
7433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7436 | return NULL; | |
7437 | } | |
7438 | } | |
7439 | { | |
7440 | wxPy_BEGIN_ALLOW_THREADS; | |
7441 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
7442 | ||
7443 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7444 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7445 | } Py_INCREF(Py_None); |
7446 | _resultobj = Py_None; | |
7447 | { | |
7448 | PyObject *o; | |
7449 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7450 | _resultobj = t_output_helper(_resultobj, o); | |
7451 | } | |
7452 | { | |
7453 | PyObject *o; | |
7454 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7455 | _resultobj = t_output_helper(_resultobj, o); | |
7456 | } | |
7457 | return _resultobj; | |
7458 | } | |
7459 | ||
8ab979d7 | 7460 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 7461 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7462 | PyObject * _resultobj; |
7463 | int _result; | |
7464 | wxDC * _arg0; | |
1d99702e | 7465 | PyObject * _argo0 = 0; |
1afc06c2 | 7466 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7467 | |
7468 | self = self; | |
1afc06c2 | 7469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 7470 | return NULL; |
1d99702e RD |
7471 | if (_argo0) { |
7472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
7475 | return NULL; | |
7476 | } | |
7477 | } | |
cf694132 RD |
7478 | { |
7479 | wxPy_BEGIN_ALLOW_THREADS; | |
7480 | _result = (int )wxDC_GetMapMode(_arg0); | |
7481 | ||
7482 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7483 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7484 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7485 | return _resultobj; |
7486 | } | |
7487 | ||
7488 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 7489 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7490 | PyObject * _resultobj; |
7491 | bool _result; | |
7492 | wxDC * _arg0; | |
1d99702e | 7493 | PyObject * _argo0 = 0; |
1afc06c2 | 7494 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7495 | |
7496 | self = self; | |
1afc06c2 | 7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 7498 | return NULL; |
1d99702e RD |
7499 | if (_argo0) { |
7500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
7503 | return NULL; | |
7504 | } | |
7505 | } | |
cf694132 RD |
7506 | { |
7507 | wxPy_BEGIN_ALLOW_THREADS; | |
7508 | _result = (bool )wxDC_GetOptimization(_arg0); | |
7509 | ||
7510 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7511 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7512 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7513 | return _resultobj; |
7514 | } | |
7515 | ||
7516 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 7517 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7518 | PyObject * _resultobj; |
7519 | wxPen * _result; | |
7520 | wxDC * _arg0; | |
1d99702e | 7521 | PyObject * _argo0 = 0; |
1afc06c2 | 7522 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7523 | char _ptemp[128]; |
7524 | ||
7525 | self = self; | |
1afc06c2 | 7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 7527 | return NULL; |
1d99702e RD |
7528 | if (_argo0) { |
7529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
cf694132 RD |
7535 | { |
7536 | wxPy_BEGIN_ALLOW_THREADS; | |
7537 | wxPen & _result_ref = wxDC_GetPen(_arg0); | |
b8b8dda7 | 7538 | _result = (wxPen *) &_result_ref; |
cf694132 RD |
7539 | |
7540 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7541 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7542 | } if (_result) { |
7543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
7544 | _resultobj = Py_BuildValue("s",_ptemp); | |
7545 | } else { | |
7546 | Py_INCREF(Py_None); | |
7547 | _resultobj = Py_None; | |
7548 | } | |
8ab979d7 RD |
7549 | return _resultobj; |
7550 | } | |
7551 | ||
7552 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7553 | wxColour* wc = new wxColour(); | |
7554 | self->GetPixel(x, y, wc); | |
7555 | return wc; | |
7556 | } | |
1afc06c2 | 7557 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7558 | PyObject * _resultobj; |
7559 | wxColour * _result; | |
7560 | wxDC * _arg0; | |
7561 | long _arg1; | |
7562 | long _arg2; | |
1d99702e | 7563 | PyObject * _argo0 = 0; |
1afc06c2 | 7564 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7565 | char _ptemp[128]; |
7566 | ||
7567 | self = self; | |
1afc06c2 | 7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7569 | return NULL; |
1d99702e RD |
7570 | if (_argo0) { |
7571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
7574 | return NULL; | |
7575 | } | |
7576 | } | |
cf694132 RD |
7577 | { |
7578 | wxPy_BEGIN_ALLOW_THREADS; | |
7579 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
7580 | ||
7581 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7582 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7583 | } if (_result) { |
7584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7585 | _resultobj = Py_BuildValue("s",_ptemp); | |
7586 | } else { | |
7587 | Py_INCREF(Py_None); | |
7588 | _resultobj = Py_None; | |
7589 | } | |
8ab979d7 RD |
7590 | return _resultobj; |
7591 | } | |
7592 | ||
bb0054cd | 7593 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 7594 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7595 | PyObject * _resultobj; |
7596 | wxDC * _arg0; | |
7597 | int * _arg1; | |
7598 | int temp; | |
7599 | int * _arg2; | |
7600 | int temp0; | |
1d99702e | 7601 | PyObject * _argo0 = 0; |
1afc06c2 | 7602 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7603 | |
7604 | self = self; | |
7605 | { | |
7606 | _arg1 = &temp; | |
7607 | } | |
7608 | { | |
7609 | _arg2 = &temp0; | |
7610 | } | |
1afc06c2 | 7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 7612 | return NULL; |
1d99702e RD |
7613 | if (_argo0) { |
7614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 7616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
7617 | return NULL; |
7618 | } | |
7619 | } | |
cf694132 RD |
7620 | { |
7621 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 7622 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 RD |
7623 | |
7624 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7625 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7626 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7627 | _resultobj = Py_None; |
7628 | { | |
7629 | PyObject *o; | |
7630 | o = PyInt_FromLong((long) (*_arg1)); | |
7631 | _resultobj = t_output_helper(_resultobj, o); | |
7632 | } | |
7633 | { | |
7634 | PyObject *o; | |
7635 | o = PyInt_FromLong((long) (*_arg2)); | |
7636 | _resultobj = t_output_helper(_resultobj, o); | |
7637 | } | |
7638 | return _resultobj; | |
7639 | } | |
7640 | ||
bb0054cd | 7641 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 7642 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7643 | PyObject * _resultobj; |
7644 | wxSize * _result; | |
7645 | wxDC * _arg0; | |
1d99702e | 7646 | PyObject * _argo0 = 0; |
1afc06c2 | 7647 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
7648 | char _ptemp[128]; |
7649 | ||
7650 | self = self; | |
1afc06c2 | 7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 7652 | return NULL; |
1d99702e RD |
7653 | if (_argo0) { |
7654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
7656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
7657 | return NULL; | |
7658 | } | |
7659 | } | |
7660 | { | |
7661 | wxPy_BEGIN_ALLOW_THREADS; | |
7662 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
7663 | ||
7664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7665 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7666 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7667 | _resultobj = Py_BuildValue("s",_ptemp); | |
7668 | return _resultobj; | |
7669 | } | |
7670 | ||
eec92d76 RD |
7671 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
7672 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7673 | PyObject * _resultobj; | |
7674 | wxSize * _result; | |
7675 | wxDC * _arg0; | |
7676 | PyObject * _argo0 = 0; | |
7677 | char *_kwnames[] = { "self", NULL }; | |
7678 | char _ptemp[128]; | |
7679 | ||
7680 | self = self; | |
7681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7682 | return NULL; | |
7683 | if (_argo0) { | |
7684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7687 | return NULL; | |
7688 | } | |
7689 | } | |
7690 | { | |
7691 | wxPy_BEGIN_ALLOW_THREADS; | |
7692 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
7693 | ||
7694 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7695 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7697 | _resultobj = Py_BuildValue("s",_ptemp); | |
7698 | return _resultobj; | |
7699 | } | |
7700 | ||
8ab979d7 | 7701 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 7702 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7703 | PyObject * _resultobj; |
7704 | wxColour * _result; | |
7705 | wxDC * _arg0; | |
1d99702e | 7706 | PyObject * _argo0 = 0; |
1afc06c2 | 7707 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7708 | char _ptemp[128]; |
7709 | ||
7710 | self = self; | |
1afc06c2 | 7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 7712 | return NULL; |
1d99702e RD |
7713 | if (_argo0) { |
7714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
7717 | return NULL; | |
7718 | } | |
7719 | } | |
cf694132 RD |
7720 | { |
7721 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 7722 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 RD |
7723 | |
7724 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7725 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
7726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7727 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7728 | return _resultobj; |
7729 | } | |
7730 | ||
af309447 | 7731 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7732 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7733 | PyObject * _resultobj; |
7734 | wxDC * _arg0; | |
7735 | wxString * _arg1; | |
7736 | long * _arg2; | |
7737 | long temp; | |
7738 | long * _arg3; | |
7739 | long temp0; | |
1d99702e | 7740 | PyObject * _argo0 = 0; |
af309447 | 7741 | PyObject * _obj1 = 0; |
1afc06c2 | 7742 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
7743 | |
7744 | self = self; | |
7745 | { | |
7746 | _arg2 = &temp; | |
7747 | } | |
7748 | { | |
7749 | _arg3 = &temp0; | |
7750 | } | |
1afc06c2 | 7751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 7752 | return NULL; |
1d99702e RD |
7753 | if (_argo0) { |
7754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
7756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
7757 | return NULL; | |
7758 | } | |
7759 | } | |
7760 | { | |
185d7c3e RD |
7761 | #if PYTHON_API_VERSION >= 1009 |
7762 | char* tmpPtr; int tmpSize; | |
7763 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7764 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7765 | return NULL; |
7766 | } | |
7767 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7768 | return NULL; | |
7769 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7770 | #else | |
af309447 RD |
7771 | if (!PyString_Check(_obj1)) { |
7772 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7773 | return NULL; | |
7774 | } | |
185d7c3e RD |
7775 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7776 | #endif | |
af309447 | 7777 | } |
cf694132 RD |
7778 | { |
7779 | wxPy_BEGIN_ALLOW_THREADS; | |
7780 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
7781 | ||
7782 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7783 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7784 | } Py_INCREF(Py_None); |
af309447 RD |
7785 | _resultobj = Py_None; |
7786 | { | |
7787 | PyObject *o; | |
7788 | o = PyInt_FromLong((long) (*_arg2)); | |
7789 | _resultobj = t_output_helper(_resultobj, o); | |
7790 | } | |
7791 | { | |
7792 | PyObject *o; | |
7793 | o = PyInt_FromLong((long) (*_arg3)); | |
7794 | _resultobj = t_output_helper(_resultobj, o); | |
7795 | } | |
7796 | { | |
7797 | if (_obj1) | |
7798 | delete _arg1; | |
7799 | } | |
7800 | return _resultobj; | |
7801 | } | |
7802 | ||
7803 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7804 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7805 | PyObject * _resultobj; |
7806 | wxDC * _arg0; | |
7807 | wxString * _arg1; | |
7808 | long * _arg2; | |
7809 | long temp; | |
7810 | long * _arg3; | |
7811 | long temp0; | |
7812 | long * _arg4; | |
7813 | long temp1; | |
7814 | long * _arg5; | |
7815 | long temp2; | |
1d99702e RD |
7816 | wxFont * _arg6 = (wxFont *) NULL; |
7817 | PyObject * _argo0 = 0; | |
8ab979d7 | 7818 | PyObject * _obj1 = 0; |
1d99702e | 7819 | PyObject * _argo6 = 0; |
1afc06c2 | 7820 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
7821 | |
7822 | self = self; | |
7823 | { | |
7824 | _arg2 = &temp; | |
7825 | } | |
7826 | { | |
7827 | _arg3 = &temp0; | |
7828 | } | |
7829 | { | |
7830 | _arg4 = &temp1; | |
7831 | } | |
7832 | { | |
7833 | _arg5 = &temp2; | |
7834 | } | |
1afc06c2 | 7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 7836 | return NULL; |
1d99702e RD |
7837 | if (_argo0) { |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
7841 | return NULL; |
7842 | } | |
7843 | } | |
7844 | { | |
185d7c3e RD |
7845 | #if PYTHON_API_VERSION >= 1009 |
7846 | char* tmpPtr; int tmpSize; | |
7847 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7848 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7849 | return NULL; |
7850 | } | |
7851 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7852 | return NULL; | |
7853 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7854 | #else | |
8ab979d7 RD |
7855 | if (!PyString_Check(_obj1)) { |
7856 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7857 | return NULL; | |
7858 | } | |
185d7c3e RD |
7859 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7860 | #endif | |
8ab979d7 | 7861 | } |
1d99702e RD |
7862 | if (_argo6) { |
7863 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7864 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
7865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
7866 | return NULL; | |
7867 | } | |
7868 | } | |
cf694132 RD |
7869 | { |
7870 | wxPy_BEGIN_ALLOW_THREADS; | |
7871 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
7872 | ||
7873 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7874 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7875 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7876 | _resultobj = Py_None; |
7877 | { | |
7878 | PyObject *o; | |
7879 | o = PyInt_FromLong((long) (*_arg2)); | |
7880 | _resultobj = t_output_helper(_resultobj, o); | |
7881 | } | |
7882 | { | |
7883 | PyObject *o; | |
7884 | o = PyInt_FromLong((long) (*_arg3)); | |
7885 | _resultobj = t_output_helper(_resultobj, o); | |
7886 | } | |
7887 | { | |
7888 | PyObject *o; | |
7889 | o = PyInt_FromLong((long) (*_arg4)); | |
7890 | _resultobj = t_output_helper(_resultobj, o); | |
7891 | } | |
7892 | { | |
7893 | PyObject *o; | |
7894 | o = PyInt_FromLong((long) (*_arg5)); | |
7895 | _resultobj = t_output_helper(_resultobj, o); | |
7896 | } | |
7897 | { | |
7898 | if (_obj1) | |
7899 | delete _arg1; | |
7900 | } | |
7901 | return _resultobj; | |
7902 | } | |
7903 | ||
7904 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 7905 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7906 | PyObject * _resultobj; |
7907 | wxColour * _result; | |
7908 | wxDC * _arg0; | |
1d99702e | 7909 | PyObject * _argo0 = 0; |
1afc06c2 | 7910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7911 | char _ptemp[128]; |
7912 | ||
7913 | self = self; | |
1afc06c2 | 7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 7915 | return NULL; |
1d99702e RD |
7916 | if (_argo0) { |
7917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
7920 | return NULL; | |
7921 | } | |
7922 | } | |
cf694132 RD |
7923 | { |
7924 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 7925 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 RD |
7926 | |
7927 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7928 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
7929 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7930 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7931 | return _resultobj; |
7932 | } | |
7933 | ||
eec92d76 RD |
7934 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
7935 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject * _resultobj; | |
7937 | wxDC * _arg0; | |
7938 | double * _arg1; | |
7939 | double temp; | |
7940 | double * _arg2; | |
7941 | double temp0; | |
7942 | PyObject * _argo0 = 0; | |
7943 | char *_kwnames[] = { "self", NULL }; | |
7944 | ||
7945 | self = self; | |
7946 | { | |
7947 | _arg1 = &temp; | |
7948 | } | |
7949 | { | |
7950 | _arg2 = &temp0; | |
7951 | } | |
7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7953 | return NULL; | |
7954 | if (_argo0) { | |
7955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7958 | return NULL; | |
7959 | } | |
7960 | } | |
7961 | { | |
7962 | wxPy_BEGIN_ALLOW_THREADS; | |
7963 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
7964 | ||
7965 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7966 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7967 | } Py_INCREF(Py_None); |
7968 | _resultobj = Py_None; | |
7969 | { | |
7970 | PyObject *o; | |
7971 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7972 | _resultobj = t_output_helper(_resultobj, o); | |
7973 | } | |
7974 | { | |
7975 | PyObject *o; | |
7976 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7977 | _resultobj = t_output_helper(_resultobj, o); | |
7978 | } | |
7979 | return _resultobj; | |
7980 | } | |
7981 | ||
8ab979d7 | 7982 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 7983 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7984 | PyObject * _resultobj; |
7985 | long _result; | |
7986 | wxDC * _arg0; | |
7987 | long _arg1; | |
1d99702e | 7988 | PyObject * _argo0 = 0; |
1afc06c2 | 7989 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7990 | |
7991 | self = self; | |
1afc06c2 | 7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7993 | return NULL; |
1d99702e RD |
7994 | if (_argo0) { |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
cf694132 RD |
8001 | { |
8002 | wxPy_BEGIN_ALLOW_THREADS; | |
8003 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
8004 | ||
8005 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8006 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8007 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8008 | return _resultobj; |
8009 | } | |
8010 | ||
8011 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 8012 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8013 | PyObject * _resultobj; |
8014 | long _result; | |
8015 | wxDC * _arg0; | |
8016 | long _arg1; | |
1d99702e | 8017 | PyObject * _argo0 = 0; |
1afc06c2 | 8018 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8019 | |
8020 | self = self; | |
1afc06c2 | 8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8022 | return NULL; |
1d99702e RD |
8023 | if (_argo0) { |
8024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
8027 | return NULL; | |
8028 | } | |
8029 | } | |
cf694132 RD |
8030 | { |
8031 | wxPy_BEGIN_ALLOW_THREADS; | |
8032 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
8033 | ||
8034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8036 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8037 | return _resultobj; |
8038 | } | |
8039 | ||
8040 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 8041 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8042 | PyObject * _resultobj; |
8043 | long _result; | |
8044 | wxDC * _arg0; | |
8045 | long _arg1; | |
1d99702e | 8046 | PyObject * _argo0 = 0; |
1afc06c2 | 8047 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8048 | |
8049 | self = self; | |
1afc06c2 | 8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8051 | return NULL; |
1d99702e RD |
8052 | if (_argo0) { |
8053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
8056 | return NULL; | |
8057 | } | |
8058 | } | |
cf694132 RD |
8059 | { |
8060 | wxPy_BEGIN_ALLOW_THREADS; | |
8061 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
8062 | ||
8063 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8065 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8066 | return _resultobj; |
8067 | } | |
8068 | ||
8069 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 8070 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8071 | PyObject * _resultobj; |
8072 | long _result; | |
8073 | wxDC * _arg0; | |
8074 | long _arg1; | |
1d99702e | 8075 | PyObject * _argo0 = 0; |
1afc06c2 | 8076 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8077 | |
8078 | self = self; | |
1afc06c2 | 8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8080 | return NULL; |
1d99702e RD |
8081 | if (_argo0) { |
8082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
8085 | return NULL; | |
8086 | } | |
8087 | } | |
cf694132 RD |
8088 | { |
8089 | wxPy_BEGIN_ALLOW_THREADS; | |
8090 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
8091 | ||
8092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8093 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8094 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8095 | return _resultobj; |
8096 | } | |
8097 | ||
8098 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 8099 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8100 | PyObject * _resultobj; |
8101 | long _result; | |
8102 | wxDC * _arg0; | |
1d99702e | 8103 | PyObject * _argo0 = 0; |
1afc06c2 | 8104 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8105 | |
8106 | self = self; | |
1afc06c2 | 8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 8108 | return NULL; |
1d99702e RD |
8109 | if (_argo0) { |
8110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
8113 | return NULL; | |
8114 | } | |
8115 | } | |
cf694132 RD |
8116 | { |
8117 | wxPy_BEGIN_ALLOW_THREADS; | |
8118 | _result = (long )wxDC_MaxX(_arg0); | |
8119 | ||
8120 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8121 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8122 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8123 | return _resultobj; |
8124 | } | |
8125 | ||
8126 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 8127 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8128 | PyObject * _resultobj; |
8129 | long _result; | |
8130 | wxDC * _arg0; | |
1d99702e | 8131 | PyObject * _argo0 = 0; |
1afc06c2 | 8132 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8133 | |
8134 | self = self; | |
1afc06c2 | 8135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 8136 | return NULL; |
1d99702e RD |
8137 | if (_argo0) { |
8138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
8141 | return NULL; | |
8142 | } | |
8143 | } | |
cf694132 RD |
8144 | { |
8145 | wxPy_BEGIN_ALLOW_THREADS; | |
8146 | _result = (long )wxDC_MaxY(_arg0); | |
8147 | ||
8148 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8150 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8151 | return _resultobj; |
8152 | } | |
8153 | ||
8154 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 8155 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8156 | PyObject * _resultobj; |
8157 | long _result; | |
8158 | wxDC * _arg0; | |
1d99702e | 8159 | PyObject * _argo0 = 0; |
1afc06c2 | 8160 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8161 | |
8162 | self = self; | |
1afc06c2 | 8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 8164 | return NULL; |
1d99702e RD |
8165 | if (_argo0) { |
8166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
8169 | return NULL; | |
8170 | } | |
8171 | } | |
cf694132 RD |
8172 | { |
8173 | wxPy_BEGIN_ALLOW_THREADS; | |
8174 | _result = (long )wxDC_MinX(_arg0); | |
8175 | ||
8176 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8177 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8178 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8179 | return _resultobj; |
8180 | } | |
8181 | ||
8182 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 8183 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8184 | PyObject * _resultobj; |
8185 | long _result; | |
8186 | wxDC * _arg0; | |
1d99702e | 8187 | PyObject * _argo0 = 0; |
1afc06c2 | 8188 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8189 | |
8190 | self = self; | |
1afc06c2 | 8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 8192 | return NULL; |
1d99702e RD |
8193 | if (_argo0) { |
8194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
8197 | return NULL; | |
8198 | } | |
8199 | } | |
cf694132 RD |
8200 | { |
8201 | wxPy_BEGIN_ALLOW_THREADS; | |
8202 | _result = (long )wxDC_MinY(_arg0); | |
8203 | ||
8204 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8205 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8206 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8207 | return _resultobj; |
8208 | } | |
8209 | ||
8210 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 8211 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8212 | PyObject * _resultobj; |
8213 | bool _result; | |
8214 | wxDC * _arg0; | |
1d99702e | 8215 | PyObject * _argo0 = 0; |
1afc06c2 | 8216 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8217 | |
8218 | self = self; | |
1afc06c2 | 8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 8220 | return NULL; |
1d99702e RD |
8221 | if (_argo0) { |
8222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
8225 | return NULL; | |
8226 | } | |
8227 | } | |
cf694132 RD |
8228 | { |
8229 | wxPy_BEGIN_ALLOW_THREADS; | |
8230 | _result = (bool )wxDC_Ok(_arg0); | |
8231 | ||
8232 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8234 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8235 | return _resultobj; |
8236 | } | |
8237 | ||
8238 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 8239 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8240 | PyObject * _resultobj; |
8241 | wxDC * _arg0; | |
8242 | long _arg1; | |
8243 | long _arg2; | |
1d99702e | 8244 | PyObject * _argo0 = 0; |
1afc06c2 | 8245 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
8246 | |
8247 | self = self; | |
1afc06c2 | 8248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8249 | return NULL; |
1d99702e RD |
8250 | if (_argo0) { |
8251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
8254 | return NULL; | |
8255 | } | |
8256 | } | |
cf694132 RD |
8257 | { |
8258 | wxPy_BEGIN_ALLOW_THREADS; | |
8259 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
8260 | ||
8261 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8263 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8264 | _resultobj = Py_None; |
8265 | return _resultobj; | |
8266 | } | |
8267 | ||
8268 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 8269 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8270 | PyObject * _resultobj; |
8271 | wxDC * _arg0; | |
8272 | wxBrush * _arg1; | |
1d99702e RD |
8273 | PyObject * _argo0 = 0; |
8274 | PyObject * _argo1 = 0; | |
1afc06c2 | 8275 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
8276 | |
8277 | self = self; | |
1afc06c2 | 8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8279 | return NULL; |
1d99702e RD |
8280 | if (_argo0) { |
8281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
8284 | return NULL; | |
8285 | } | |
8286 | } | |
1d99702e RD |
8287 | if (_argo1) { |
8288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
8291 | return NULL; | |
8292 | } | |
8293 | } | |
cf694132 RD |
8294 | { |
8295 | wxPy_BEGIN_ALLOW_THREADS; | |
8296 | wxDC_SetBackground(_arg0,*_arg1); | |
8297 | ||
8298 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8299 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8300 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8301 | _resultobj = Py_None; |
8302 | return _resultobj; | |
8303 | } | |
8304 | ||
8305 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 8306 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8307 | PyObject * _resultobj; |
8308 | wxDC * _arg0; | |
8309 | int _arg1; | |
1d99702e | 8310 | PyObject * _argo0 = 0; |
1afc06c2 | 8311 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
8312 | |
8313 | self = self; | |
1afc06c2 | 8314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8315 | return NULL; |
1d99702e RD |
8316 | if (_argo0) { |
8317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
cf694132 RD |
8323 | { |
8324 | wxPy_BEGIN_ALLOW_THREADS; | |
8325 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
8326 | ||
8327 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8329 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8330 | _resultobj = Py_None; |
8331 | return _resultobj; | |
8332 | } | |
8333 | ||
8334 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8335 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8336 | PyObject * _resultobj; |
8337 | wxDC * _arg0; | |
8338 | long _arg1; | |
8339 | long _arg2; | |
8340 | long _arg3; | |
8341 | long _arg4; | |
1d99702e | 8342 | PyObject * _argo0 = 0; |
1afc06c2 | 8343 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
8344 | |
8345 | self = self; | |
1afc06c2 | 8346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 8347 | return NULL; |
1d99702e RD |
8348 | if (_argo0) { |
8349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
8352 | return NULL; | |
8353 | } | |
8354 | } | |
cf694132 RD |
8355 | { |
8356 | wxPy_BEGIN_ALLOW_THREADS; | |
8357 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8358 | ||
8359 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8360 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8361 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8362 | _resultobj = Py_None; |
8363 | return _resultobj; | |
8364 | } | |
8365 | ||
8366 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
1afc06c2 | 8367 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8368 | PyObject * _resultobj; |
8369 | wxDC * _arg0; | |
8370 | wxPalette * _arg1; | |
1d99702e RD |
8371 | PyObject * _argo0 = 0; |
8372 | PyObject * _argo1 = 0; | |
1afc06c2 | 8373 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
8374 | |
8375 | self = self; | |
1afc06c2 | 8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8377 | return NULL; |
1d99702e RD |
8378 | if (_argo0) { |
8379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
8382 | return NULL; | |
8383 | } | |
8384 | } | |
1d99702e RD |
8385 | if (_argo1) { |
8386 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8387 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
8388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
cf694132 RD |
8392 | { |
8393 | wxPy_BEGIN_ALLOW_THREADS; | |
8394 | wxDC_SetPalette(_arg0,*_arg1); | |
8395 | ||
8396 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8398 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8399 | _resultobj = Py_None; |
8400 | return _resultobj; | |
8401 | } | |
8402 | ||
8403 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 8404 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8405 | PyObject * _resultobj; |
8406 | wxDC * _arg0; | |
8407 | wxBrush * _arg1; | |
1d99702e RD |
8408 | PyObject * _argo0 = 0; |
8409 | PyObject * _argo1 = 0; | |
1afc06c2 | 8410 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
8411 | |
8412 | self = self; | |
1afc06c2 | 8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8414 | return NULL; |
1d99702e RD |
8415 | if (_argo0) { |
8416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
8419 | return NULL; | |
8420 | } | |
8421 | } | |
1d99702e RD |
8422 | if (_argo1) { |
8423 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8424 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
8425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
8426 | return NULL; | |
8427 | } | |
8428 | } | |
cf694132 RD |
8429 | { |
8430 | wxPy_BEGIN_ALLOW_THREADS; | |
8431 | wxDC_SetBrush(_arg0,*_arg1); | |
8432 | ||
8433 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8435 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8436 | _resultobj = Py_None; |
8437 | return _resultobj; | |
8438 | } | |
8439 | ||
8440 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 8441 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8442 | PyObject * _resultobj; |
8443 | wxDC * _arg0; | |
8444 | wxFont * _arg1; | |
1d99702e RD |
8445 | PyObject * _argo0 = 0; |
8446 | PyObject * _argo1 = 0; | |
1afc06c2 | 8447 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
8448 | |
8449 | self = self; | |
1afc06c2 | 8450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8451 | return NULL; |
1d99702e RD |
8452 | if (_argo0) { |
8453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
8456 | return NULL; | |
8457 | } | |
8458 | } | |
1d99702e RD |
8459 | if (_argo1) { |
8460 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8461 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
8462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
8463 | return NULL; | |
8464 | } | |
8465 | } | |
cf694132 RD |
8466 | { |
8467 | wxPy_BEGIN_ALLOW_THREADS; | |
8468 | wxDC_SetFont(_arg0,*_arg1); | |
8469 | ||
8470 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8471 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8472 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8473 | _resultobj = Py_None; |
8474 | return _resultobj; | |
8475 | } | |
8476 | ||
8477 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 8478 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8479 | PyObject * _resultobj; |
8480 | wxDC * _arg0; | |
8481 | int _arg1; | |
1d99702e | 8482 | PyObject * _argo0 = 0; |
1afc06c2 | 8483 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
8484 | |
8485 | self = self; | |
1afc06c2 | 8486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8487 | return NULL; |
1d99702e RD |
8488 | if (_argo0) { |
8489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
8492 | return NULL; | |
8493 | } | |
8494 | } | |
cf694132 RD |
8495 | { |
8496 | wxPy_BEGIN_ALLOW_THREADS; | |
8497 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
8498 | ||
8499 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8500 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8501 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8502 | _resultobj = Py_None; |
8503 | return _resultobj; | |
8504 | } | |
8505 | ||
eec92d76 RD |
8506 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
8507 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject * _resultobj; | |
8509 | wxDC * _arg0; | |
8510 | double _arg1; | |
8511 | double _arg2; | |
8512 | PyObject * _argo0 = 0; | |
8513 | char *_kwnames[] = { "self","x","y", NULL }; | |
8514 | ||
8515 | self = self; | |
8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8517 | return NULL; | |
8518 | if (_argo0) { | |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8522 | return NULL; | |
8523 | } | |
8524 | } | |
8525 | { | |
8526 | wxPy_BEGIN_ALLOW_THREADS; | |
8527 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
8528 | ||
8529 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8530 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8531 | } Py_INCREF(Py_None); |
8532 | _resultobj = Py_None; | |
8533 | return _resultobj; | |
8534 | } | |
8535 | ||
8ab979d7 | 8536 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 8537 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8538 | PyObject * _resultobj; |
8539 | wxDC * _arg0; | |
8540 | int _arg1; | |
1d99702e | 8541 | PyObject * _argo0 = 0; |
1afc06c2 | 8542 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
8543 | |
8544 | self = self; | |
1afc06c2 | 8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8546 | return NULL; |
1d99702e RD |
8547 | if (_argo0) { |
8548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
8551 | return NULL; | |
8552 | } | |
8553 | } | |
cf694132 RD |
8554 | { |
8555 | wxPy_BEGIN_ALLOW_THREADS; | |
8556 | wxDC_SetMapMode(_arg0,_arg1); | |
8557 | ||
8558 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8559 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8560 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8561 | _resultobj = Py_None; |
8562 | return _resultobj; | |
8563 | } | |
8564 | ||
8565 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 8566 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8567 | PyObject * _resultobj; |
8568 | wxDC * _arg0; | |
8569 | bool _arg1; | |
1d99702e | 8570 | PyObject * _argo0 = 0; |
8ab979d7 | 8571 | int tempbool1; |
1afc06c2 | 8572 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
8573 | |
8574 | self = self; | |
1afc06c2 | 8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 8576 | return NULL; |
1d99702e RD |
8577 | if (_argo0) { |
8578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
8581 | return NULL; | |
8582 | } | |
8583 | } | |
8584 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
8585 | { |
8586 | wxPy_BEGIN_ALLOW_THREADS; | |
8587 | wxDC_SetOptimization(_arg0,_arg1); | |
8588 | ||
8589 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8590 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8591 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8592 | _resultobj = Py_None; |
8593 | return _resultobj; | |
8594 | } | |
8595 | ||
8596 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 8597 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8598 | PyObject * _resultobj; |
8599 | wxDC * _arg0; | |
8600 | wxPen * _arg1; | |
1d99702e RD |
8601 | PyObject * _argo0 = 0; |
8602 | PyObject * _argo1 = 0; | |
1afc06c2 | 8603 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
8604 | |
8605 | self = self; | |
1afc06c2 | 8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8607 | return NULL; |
1d99702e RD |
8608 | if (_argo0) { |
8609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
8612 | return NULL; | |
8613 | } | |
8614 | } | |
1d99702e RD |
8615 | if (_argo1) { |
8616 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8617 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
8618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
8619 | return NULL; | |
8620 | } | |
8621 | } | |
cf694132 RD |
8622 | { |
8623 | wxPy_BEGIN_ALLOW_THREADS; | |
8624 | wxDC_SetPen(_arg0,*_arg1); | |
8625 | ||
8626 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8627 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8628 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8629 | _resultobj = Py_None; |
8630 | return _resultobj; | |
8631 | } | |
8632 | ||
8633 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 8634 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8635 | PyObject * _resultobj; |
8636 | wxDC * _arg0; | |
8637 | wxColour * _arg1; | |
1d99702e | 8638 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8639 | wxColour temp; |
8640 | PyObject * _obj1 = 0; | |
1afc06c2 | 8641 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
8642 | |
8643 | self = self; | |
f6bcfd97 | 8644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8645 | return NULL; |
1d99702e RD |
8646 | if (_argo0) { |
8647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
8650 | return NULL; | |
8651 | } | |
8652 | } | |
f6bcfd97 BP |
8653 | { |
8654 | _arg1 = &temp; | |
8655 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 8656 | return NULL; |
f6bcfd97 | 8657 | } |
cf694132 RD |
8658 | { |
8659 | wxPy_BEGIN_ALLOW_THREADS; | |
8660 | wxDC_SetTextBackground(_arg0,*_arg1); | |
8661 | ||
8662 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8663 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8664 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8665 | _resultobj = Py_None; |
8666 | return _resultobj; | |
8667 | } | |
8668 | ||
8669 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 8670 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8671 | PyObject * _resultobj; |
8672 | wxDC * _arg0; | |
8673 | wxColour * _arg1; | |
1d99702e | 8674 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8675 | wxColour temp; |
8676 | PyObject * _obj1 = 0; | |
1afc06c2 | 8677 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
8678 | |
8679 | self = self; | |
f6bcfd97 | 8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8681 | return NULL; |
1d99702e RD |
8682 | if (_argo0) { |
8683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
8686 | return NULL; | |
8687 | } | |
8688 | } | |
f6bcfd97 BP |
8689 | { |
8690 | _arg1 = &temp; | |
8691 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 8692 | return NULL; |
f6bcfd97 | 8693 | } |
cf694132 RD |
8694 | { |
8695 | wxPy_BEGIN_ALLOW_THREADS; | |
8696 | wxDC_SetTextForeground(_arg0,*_arg1); | |
8697 | ||
8698 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8699 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8700 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8701 | _resultobj = Py_None; |
8702 | return _resultobj; | |
8703 | } | |
8704 | ||
8705 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 8706 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8707 | PyObject * _resultobj; |
8708 | wxDC * _arg0; | |
8709 | double _arg1; | |
8710 | double _arg2; | |
1d99702e | 8711 | PyObject * _argo0 = 0; |
1afc06c2 | 8712 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
8713 | |
8714 | self = self; | |
1afc06c2 | 8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8716 | return NULL; |
1d99702e RD |
8717 | if (_argo0) { |
8718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
8721 | return NULL; | |
8722 | } | |
8723 | } | |
cf694132 RD |
8724 | { |
8725 | wxPy_BEGIN_ALLOW_THREADS; | |
8726 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
8727 | ||
8728 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8730 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8731 | _resultobj = Py_None; |
8732 | return _resultobj; | |
8733 | } | |
8734 | ||
8735 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 8736 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8737 | PyObject * _resultobj; |
8738 | bool _result; | |
8739 | wxDC * _arg0; | |
8740 | wxString * _arg1; | |
1d99702e | 8741 | PyObject * _argo0 = 0; |
8ab979d7 | 8742 | PyObject * _obj1 = 0; |
1afc06c2 | 8743 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
8744 | |
8745 | self = self; | |
1afc06c2 | 8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8747 | return NULL; |
1d99702e RD |
8748 | if (_argo0) { |
8749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8752 | return NULL; | |
8753 | } | |
8754 | } | |
8755 | { | |
185d7c3e RD |
8756 | #if PYTHON_API_VERSION >= 1009 |
8757 | char* tmpPtr; int tmpSize; | |
8758 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8759 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8760 | return NULL; |
8761 | } | |
8762 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8763 | return NULL; | |
8764 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8765 | #else | |
8ab979d7 RD |
8766 | if (!PyString_Check(_obj1)) { |
8767 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8768 | return NULL; | |
8769 | } | |
185d7c3e RD |
8770 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8771 | #endif | |
8ab979d7 | 8772 | } |
cf694132 RD |
8773 | { |
8774 | wxPy_BEGIN_ALLOW_THREADS; | |
8775 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
8776 | ||
8777 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8778 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8779 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8780 | { |
8781 | if (_obj1) | |
8782 | delete _arg1; | |
8783 | } | |
8784 | return _resultobj; | |
8785 | } | |
8786 | ||
8787 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 8788 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8789 | PyObject * _resultobj; |
8790 | wxDC * _arg0; | |
1d99702e | 8791 | PyObject * _argo0 = 0; |
1afc06c2 | 8792 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8793 | |
8794 | self = self; | |
1afc06c2 | 8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 8796 | return NULL; |
1d99702e RD |
8797 | if (_argo0) { |
8798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
8801 | return NULL; | |
8802 | } | |
8803 | } | |
cf694132 RD |
8804 | { |
8805 | wxPy_BEGIN_ALLOW_THREADS; | |
8806 | wxDC_StartPage(_arg0); | |
8807 | ||
8808 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8809 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8810 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8811 | _resultobj = Py_None; |
8812 | return _resultobj; | |
8813 | } | |
8814 | ||
efc5f224 | 8815 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8816 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8817 | PyObject * _resultobj; |
8818 | wxDC * _arg0; | |
8819 | wxBitmap * _arg1; | |
8820 | long _arg2; | |
8821 | long _arg3; | |
efc5f224 | 8822 | int _arg4 = (int ) FALSE; |
1d99702e RD |
8823 | PyObject * _argo0 = 0; |
8824 | PyObject * _argo1 = 0; | |
1afc06c2 | 8825 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
8826 | |
8827 | self = self; | |
1afc06c2 | 8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 8829 | return NULL; |
1d99702e RD |
8830 | if (_argo0) { |
8831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
8834 | return NULL; | |
8835 | } | |
8836 | } | |
1d99702e RD |
8837 | if (_argo1) { |
8838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
8840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
8841 | return NULL; | |
8842 | } | |
8843 | } | |
cf694132 RD |
8844 | { |
8845 | wxPy_BEGIN_ALLOW_THREADS; | |
8846 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
8847 | ||
8848 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8849 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8850 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8851 | _resultobj = Py_None; |
8852 | return _resultobj; | |
8853 | } | |
8854 | ||
eec92d76 RD |
8855 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
8856 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8857 | PyObject * _resultobj; | |
8858 | bool _result; | |
8859 | wxDC * _arg0; | |
8860 | PyObject * _argo0 = 0; | |
8861 | char *_kwnames[] = { "self", NULL }; | |
8862 | ||
8863 | self = self; | |
8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8865 | return NULL; | |
8866 | if (_argo0) { | |
8867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
8870 | return NULL; | |
8871 | } | |
8872 | } | |
8873 | { | |
8874 | wxPy_BEGIN_ALLOW_THREADS; | |
8875 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
8876 | ||
8877 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8878 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8879 | } _resultobj = Py_BuildValue("i",_result); |
8880 | return _resultobj; | |
8881 | } | |
8882 | ||
8883 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8884 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8885 | PyObject * _resultobj; | |
8886 | bool _result; | |
8887 | wxDC * _arg0; | |
8888 | PyObject * _argo0 = 0; | |
8889 | char *_kwnames[] = { "self", NULL }; | |
8890 | ||
8891 | self = self; | |
8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8893 | return NULL; | |
8894 | if (_argo0) { | |
8895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8898 | return NULL; | |
8899 | } | |
8900 | } | |
8901 | { | |
8902 | wxPy_BEGIN_ALLOW_THREADS; | |
8903 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
8904 | ||
8905 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8906 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8907 | } _resultobj = Py_BuildValue("i",_result); |
8908 | return _resultobj; | |
8909 | } | |
8910 | ||
8911 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8912 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject * _resultobj; | |
8914 | int _result; | |
8915 | wxDC * _arg0; | |
8916 | PyObject * _argo0 = 0; | |
8917 | char *_kwnames[] = { "self", NULL }; | |
8918 | ||
8919 | self = self; | |
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8921 | return NULL; | |
8922 | if (_argo0) { | |
8923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8926 | return NULL; | |
8927 | } | |
8928 | } | |
8929 | { | |
8930 | wxPy_BEGIN_ALLOW_THREADS; | |
8931 | _result = (int )wxDC_GetDepth(_arg0); | |
8932 | ||
8933 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8934 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8935 | } _resultobj = Py_BuildValue("i",_result); |
8936 | return _resultobj; | |
8937 | } | |
8938 | ||
8939 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8940 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8941 | PyObject * _resultobj; | |
8942 | wxSize * _result; | |
8943 | wxDC * _arg0; | |
8944 | PyObject * _argo0 = 0; | |
8945 | char *_kwnames[] = { "self", NULL }; | |
8946 | char _ptemp[128]; | |
8947 | ||
8948 | self = self; | |
8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8950 | return NULL; | |
8951 | if (_argo0) { | |
8952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8955 | return NULL; | |
8956 | } | |
8957 | } | |
8958 | { | |
8959 | wxPy_BEGIN_ALLOW_THREADS; | |
8960 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
8961 | ||
8962 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8963 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8964 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8965 | _resultobj = Py_BuildValue("s",_ptemp); | |
8966 | return _resultobj; | |
8967 | } | |
8968 | ||
8969 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8970 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8971 | PyObject * _resultobj; | |
8972 | wxDC * _arg0; | |
8973 | int * _arg1; | |
8974 | int temp; | |
8975 | int * _arg2; | |
8976 | int temp0; | |
8977 | PyObject * _argo0 = 0; | |
8978 | char *_kwnames[] = { "self", NULL }; | |
8979 | ||
8980 | self = self; | |
8981 | { | |
8982 | _arg1 = &temp; | |
8983 | } | |
8984 | { | |
8985 | _arg2 = &temp0; | |
8986 | } | |
8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8988 | return NULL; | |
8989 | if (_argo0) { | |
8990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8993 | return NULL; | |
8994 | } | |
8995 | } | |
8996 | { | |
8997 | wxPy_BEGIN_ALLOW_THREADS; | |
8998 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
8999 | ||
9000 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9001 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9002 | } Py_INCREF(Py_None); |
9003 | _resultobj = Py_None; | |
9004 | { | |
9005 | PyObject *o; | |
9006 | o = PyInt_FromLong((long) (*_arg1)); | |
9007 | _resultobj = t_output_helper(_resultobj, o); | |
9008 | } | |
9009 | { | |
9010 | PyObject *o; | |
9011 | o = PyInt_FromLong((long) (*_arg2)); | |
9012 | _resultobj = t_output_helper(_resultobj, o); | |
9013 | } | |
9014 | return _resultobj; | |
9015 | } | |
9016 | ||
9017 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9018 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9019 | PyObject * _resultobj; | |
9020 | wxDC * _arg0; | |
9021 | int _arg1; | |
9022 | int _arg2; | |
9023 | PyObject * _argo0 = 0; | |
9024 | char *_kwnames[] = { "self","x","y", NULL }; | |
9025 | ||
9026 | self = self; | |
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9028 | return NULL; | |
9029 | if (_argo0) { | |
9030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9033 | return NULL; | |
9034 | } | |
9035 | } | |
9036 | { | |
9037 | wxPy_BEGIN_ALLOW_THREADS; | |
9038 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
9039 | ||
9040 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9041 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9042 | } Py_INCREF(Py_None); |
9043 | _resultobj = Py_None; | |
9044 | return _resultobj; | |
9045 | } | |
9046 | ||
9047 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9048 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject * _resultobj; | |
9050 | wxDC * _arg0; | |
9051 | int * _arg1; | |
9052 | int temp; | |
9053 | int * _arg2; | |
9054 | int temp0; | |
9055 | PyObject * _argo0 = 0; | |
9056 | char *_kwnames[] = { "self", NULL }; | |
9057 | ||
9058 | self = self; | |
9059 | { | |
9060 | _arg1 = &temp; | |
9061 | } | |
9062 | { | |
9063 | _arg2 = &temp0; | |
9064 | } | |
9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9066 | return NULL; | |
9067 | if (_argo0) { | |
9068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9071 | return NULL; | |
9072 | } | |
9073 | } | |
9074 | { | |
9075 | wxPy_BEGIN_ALLOW_THREADS; | |
9076 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
9077 | ||
9078 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9079 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9080 | } Py_INCREF(Py_None); |
9081 | _resultobj = Py_None; | |
9082 | { | |
9083 | PyObject *o; | |
9084 | o = PyInt_FromLong((long) (*_arg1)); | |
9085 | _resultobj = t_output_helper(_resultobj, o); | |
9086 | } | |
9087 | { | |
9088 | PyObject *o; | |
9089 | o = PyInt_FromLong((long) (*_arg2)); | |
9090 | _resultobj = t_output_helper(_resultobj, o); | |
9091 | } | |
9092 | return _resultobj; | |
9093 | } | |
9094 | ||
9095 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9096 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9097 | PyObject * _resultobj; | |
9098 | wxDC * _arg0; | |
9099 | bool _arg1; | |
9100 | bool _arg2; | |
9101 | PyObject * _argo0 = 0; | |
9102 | int tempbool1; | |
9103 | int tempbool2; | |
9104 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9105 | ||
9106 | self = self; | |
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9108 | return NULL; | |
9109 | if (_argo0) { | |
9110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9113 | return NULL; | |
9114 | } | |
9115 | } | |
9116 | _arg1 = (bool ) tempbool1; | |
9117 | _arg2 = (bool ) tempbool2; | |
9118 | { | |
9119 | wxPy_BEGIN_ALLOW_THREADS; | |
9120 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
9121 | ||
9122 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9123 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9124 | } Py_INCREF(Py_None); |
9125 | _resultobj = Py_None; | |
9126 | return _resultobj; | |
9127 | } | |
9128 | ||
f6bcfd97 BP |
9129 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
9130 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9131 | PyObject * _resultobj; | |
9132 | wxDC * _arg0; | |
9133 | int _arg1; | |
9134 | int _arg2; | |
9135 | PyObject * _argo0 = 0; | |
9136 | char *_kwnames[] = { "self","x","y", NULL }; | |
9137 | ||
9138 | self = self; | |
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9140 | return NULL; | |
9141 | if (_argo0) { | |
9142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9145 | return NULL; | |
9146 | } | |
9147 | } | |
9148 | { | |
9149 | wxPy_BEGIN_ALLOW_THREADS; | |
9150 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
9151 | ||
9152 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9153 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9154 | } Py_INCREF(Py_None); |
9155 | _resultobj = Py_None; | |
9156 | return _resultobj; | |
9157 | } | |
9158 | ||
9159 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9160 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9161 | PyObject * _resultobj; | |
9162 | wxDC * _arg0; | |
9163 | PyObject * _argo0 = 0; | |
9164 | char *_kwnames[] = { "self", NULL }; | |
9165 | ||
9166 | self = self; | |
9167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9168 | return NULL; | |
9169 | if (_argo0) { | |
9170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9173 | return NULL; | |
9174 | } | |
9175 | } | |
9176 | { | |
9177 | wxPy_BEGIN_ALLOW_THREADS; | |
9178 | wxDC_ResetBoundingBox(_arg0); | |
9179 | ||
9180 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9181 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9182 | } Py_INCREF(Py_None); |
9183 | _resultobj = Py_None; | |
9184 | return _resultobj; | |
9185 | } | |
9186 | ||
c7e7022c RD |
9187 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
9188 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9189 | PyObject * _resultobj; | |
9190 | long _result; | |
9191 | wxDC * _arg0; | |
9192 | PyObject * _argo0 = 0; | |
9193 | char *_kwnames[] = { "self", NULL }; | |
9194 | ||
9195 | self = self; | |
9196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
9197 | return NULL; | |
9198 | if (_argo0) { | |
9199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
9202 | return NULL; | |
9203 | } | |
9204 | } | |
9205 | { | |
9206 | wxPy_BEGIN_ALLOW_THREADS; | |
9207 | _result = (long )wxDC_GetHDC(_arg0); | |
9208 | ||
9209 | wxPy_END_ALLOW_THREADS; | |
9210 | if (PyErr_Occurred()) return NULL; | |
9211 | } _resultobj = Py_BuildValue("l",_result); | |
9212 | return _resultobj; | |
9213 | } | |
9214 | ||
8ab979d7 RD |
9215 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
9216 | wxMemoryDC *src; | |
9217 | wxDC *dest; | |
9218 | src = (wxMemoryDC *) ptr; | |
9219 | dest = (wxDC *) src; | |
9220 | return (void *) dest; | |
9221 | } | |
9222 | ||
9416aa89 RD |
9223 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
9224 | wxMemoryDC *src; | |
9225 | wxObject *dest; | |
9226 | src = (wxMemoryDC *) ptr; | |
9227 | dest = (wxObject *) src; | |
9228 | return (void *) dest; | |
9229 | } | |
9230 | ||
8ab979d7 | 9231 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 9232 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9233 | PyObject * _resultobj; |
9234 | wxMemoryDC * _result; | |
1afc06c2 | 9235 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
9236 | char _ptemp[128]; |
9237 | ||
9238 | self = self; | |
1afc06c2 | 9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 9240 | return NULL; |
cf694132 RD |
9241 | { |
9242 | wxPy_BEGIN_ALLOW_THREADS; | |
9243 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
9244 | ||
9245 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9246 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9247 | } if (_result) { |
9248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9249 | _resultobj = Py_BuildValue("s",_ptemp); | |
9250 | } else { | |
9251 | Py_INCREF(Py_None); | |
9252 | _resultobj = Py_None; | |
9253 | } | |
8ab979d7 RD |
9254 | return _resultobj; |
9255 | } | |
9256 | ||
9257 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 9258 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9259 | PyObject * _resultobj; |
9260 | wxMemoryDC * _arg0; | |
9261 | wxBitmap * _arg1; | |
1d99702e RD |
9262 | PyObject * _argo0 = 0; |
9263 | PyObject * _argo1 = 0; | |
1afc06c2 | 9264 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
9265 | |
9266 | self = self; | |
1afc06c2 | 9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9268 | return NULL; |
1d99702e RD |
9269 | if (_argo0) { |
9270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
9272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
9273 | return NULL; | |
9274 | } | |
9275 | } | |
1d99702e RD |
9276 | if (_argo1) { |
9277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
9280 | return NULL; | |
9281 | } | |
9282 | } | |
cf694132 RD |
9283 | { |
9284 | wxPy_BEGIN_ALLOW_THREADS; | |
9285 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
9286 | ||
9287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9288 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9289 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9290 | _resultobj = Py_None; |
9291 | return _resultobj; | |
9292 | } | |
9293 | ||
9294 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
9295 | wxScreenDC *src; | |
9296 | wxDC *dest; | |
9297 | src = (wxScreenDC *) ptr; | |
9298 | dest = (wxDC *) src; | |
9299 | return (void *) dest; | |
9300 | } | |
9301 | ||
9416aa89 RD |
9302 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
9303 | wxScreenDC *src; | |
9304 | wxObject *dest; | |
9305 | src = (wxScreenDC *) ptr; | |
9306 | dest = (wxObject *) src; | |
9307 | return (void *) dest; | |
9308 | } | |
9309 | ||
8ab979d7 | 9310 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 9311 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9312 | PyObject * _resultobj; |
9313 | wxScreenDC * _result; | |
1afc06c2 | 9314 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
9315 | char _ptemp[128]; |
9316 | ||
9317 | self = self; | |
1afc06c2 | 9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 9319 | return NULL; |
cf694132 RD |
9320 | { |
9321 | wxPy_BEGIN_ALLOW_THREADS; | |
9322 | _result = (wxScreenDC *)new_wxScreenDC(); | |
9323 | ||
9324 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9325 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9326 | } if (_result) { |
9327 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9328 | _resultobj = Py_BuildValue("s",_ptemp); | |
9329 | } else { | |
9330 | Py_INCREF(Py_None); | |
9331 | _resultobj = Py_None; | |
9332 | } | |
8ab979d7 RD |
9333 | return _resultobj; |
9334 | } | |
9335 | ||
26b9cf27 RD |
9336 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9337 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9338 | PyObject * _resultobj; |
9339 | bool _result; | |
9340 | wxScreenDC * _arg0; | |
9341 | wxWindow * _arg1; | |
1d99702e RD |
9342 | PyObject * _argo0 = 0; |
9343 | PyObject * _argo1 = 0; | |
1afc06c2 | 9344 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
9345 | |
9346 | self = self; | |
26b9cf27 | 9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9348 | return NULL; |
1d99702e RD |
9349 | if (_argo0) { |
9350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 9352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
9353 | return NULL; |
9354 | } | |
9355 | } | |
1d99702e RD |
9356 | if (_argo1) { |
9357 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9358 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 9359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
9360 | return NULL; |
9361 | } | |
9362 | } | |
cf694132 RD |
9363 | { |
9364 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 9365 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 RD |
9366 | |
9367 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9368 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9369 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9370 | return _resultobj; |
9371 | } | |
9372 | ||
26b9cf27 RD |
9373 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9374 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9375 | PyObject * _resultobj; |
9376 | bool _result; | |
9377 | wxScreenDC * _arg0; | |
1d99702e RD |
9378 | wxRect * _arg1 = (wxRect *) NULL; |
9379 | PyObject * _argo0 = 0; | |
2f90df85 RD |
9380 | wxRect temp; |
9381 | PyObject * _obj1 = 0; | |
1afc06c2 | 9382 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
9383 | |
9384 | self = self; | |
26b9cf27 | 9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9386 | return NULL; |
1d99702e RD |
9387 | if (_argo0) { |
9388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 9390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
9391 | return NULL; |
9392 | } | |
9393 | } | |
2f90df85 RD |
9394 | if (_obj1) |
9395 | { | |
9396 | _arg1 = &temp; | |
9397 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 9398 | return NULL; |
2f90df85 | 9399 | } |
cf694132 RD |
9400 | { |
9401 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 9402 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 RD |
9403 | |
9404 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9406 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9407 | return _resultobj; |
9408 | } | |
9409 | ||
9410 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 9411 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9412 | PyObject * _resultobj; |
9413 | bool _result; | |
9414 | wxScreenDC * _arg0; | |
1d99702e | 9415 | PyObject * _argo0 = 0; |
1afc06c2 | 9416 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9417 | |
9418 | self = self; | |
1afc06c2 | 9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 9420 | return NULL; |
1d99702e RD |
9421 | if (_argo0) { |
9422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
9424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
9425 | return NULL; | |
9426 | } | |
9427 | } | |
cf694132 RD |
9428 | { |
9429 | wxPy_BEGIN_ALLOW_THREADS; | |
9430 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
9431 | ||
9432 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9434 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9435 | return _resultobj; |
9436 | } | |
9437 | ||
9438 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9439 | wxClientDC *src; | |
9440 | wxDC *dest; | |
9441 | src = (wxClientDC *) ptr; | |
9442 | dest = (wxDC *) src; | |
9443 | return (void *) dest; | |
9444 | } | |
9445 | ||
9416aa89 RD |
9446 | static void *SwigwxClientDCTowxObject(void *ptr) { |
9447 | wxClientDC *src; | |
9448 | wxObject *dest; | |
9449 | src = (wxClientDC *) ptr; | |
9450 | dest = (wxObject *) src; | |
9451 | return (void *) dest; | |
9452 | } | |
9453 | ||
8ab979d7 | 9454 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 9455 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9456 | PyObject * _resultobj; |
9457 | wxClientDC * _result; | |
9458 | wxWindow * _arg0; | |
1d99702e | 9459 | PyObject * _argo0 = 0; |
1afc06c2 | 9460 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
9461 | char _ptemp[128]; |
9462 | ||
9463 | self = self; | |
1afc06c2 | 9464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 9465 | return NULL; |
1d99702e RD |
9466 | if (_argo0) { |
9467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
9470 | return NULL; | |
9471 | } | |
9472 | } | |
cf694132 RD |
9473 | { |
9474 | wxPy_BEGIN_ALLOW_THREADS; | |
9475 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
9476 | ||
9477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9478 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9479 | } if (_result) { |
9480 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9481 | _resultobj = Py_BuildValue("s",_ptemp); | |
9482 | } else { | |
9483 | Py_INCREF(Py_None); | |
9484 | _resultobj = Py_None; | |
9485 | } | |
8ab979d7 RD |
9486 | return _resultobj; |
9487 | } | |
9488 | ||
9489 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9490 | wxPaintDC *src; | |
9491 | wxDC *dest; | |
9492 | src = (wxPaintDC *) ptr; | |
9493 | dest = (wxDC *) src; | |
9494 | return (void *) dest; | |
9495 | } | |
9496 | ||
9416aa89 RD |
9497 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
9498 | wxPaintDC *src; | |
9499 | wxObject *dest; | |
9500 | src = (wxPaintDC *) ptr; | |
9501 | dest = (wxObject *) src; | |
9502 | return (void *) dest; | |
9503 | } | |
9504 | ||
8ab979d7 | 9505 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 9506 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9507 | PyObject * _resultobj; |
9508 | wxPaintDC * _result; | |
9509 | wxWindow * _arg0; | |
1d99702e | 9510 | PyObject * _argo0 = 0; |
1afc06c2 | 9511 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
9512 | char _ptemp[128]; |
9513 | ||
9514 | self = self; | |
1afc06c2 | 9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 9516 | return NULL; |
1d99702e RD |
9517 | if (_argo0) { |
9518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
9521 | return NULL; | |
9522 | } | |
9523 | } | |
cf694132 RD |
9524 | { |
9525 | wxPy_BEGIN_ALLOW_THREADS; | |
9526 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
9527 | ||
9528 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9529 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9530 | } if (_result) { |
9531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9532 | _resultobj = Py_BuildValue("s",_ptemp); | |
9533 | } else { | |
9534 | Py_INCREF(Py_None); | |
9535 | _resultobj = Py_None; | |
9536 | } | |
8ab979d7 RD |
9537 | return _resultobj; |
9538 | } | |
9539 | ||
b639c3c5 RD |
9540 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
9541 | wxWindowDC *src; | |
9542 | wxDC *dest; | |
9543 | src = (wxWindowDC *) ptr; | |
9544 | dest = (wxDC *) src; | |
9545 | return (void *) dest; | |
9546 | } | |
9547 | ||
9416aa89 RD |
9548 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
9549 | wxWindowDC *src; | |
9550 | wxObject *dest; | |
9551 | src = (wxWindowDC *) ptr; | |
9552 | dest = (wxObject *) src; | |
9553 | return (void *) dest; | |
9554 | } | |
9555 | ||
b639c3c5 | 9556 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 9557 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9558 | PyObject * _resultobj; |
9559 | wxWindowDC * _result; | |
9560 | wxWindow * _arg0; | |
1d99702e | 9561 | PyObject * _argo0 = 0; |
1afc06c2 | 9562 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
9563 | char _ptemp[128]; |
9564 | ||
9565 | self = self; | |
1afc06c2 | 9566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 9567 | return NULL; |
1d99702e RD |
9568 | if (_argo0) { |
9569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
9571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
9572 | return NULL; | |
9573 | } | |
9574 | } | |
cf694132 RD |
9575 | { |
9576 | wxPy_BEGIN_ALLOW_THREADS; | |
9577 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
9578 | ||
9579 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9580 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9581 | } if (_result) { |
9582 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9583 | _resultobj = Py_BuildValue("s",_ptemp); | |
9584 | } else { | |
9585 | Py_INCREF(Py_None); | |
9586 | _resultobj = Py_None; | |
9587 | } | |
b639c3c5 RD |
9588 | return _resultobj; |
9589 | } | |
9590 | ||
8ab979d7 RD |
9591 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
9592 | wxMetaFileDC *src; | |
9593 | wxDC *dest; | |
9594 | src = (wxMetaFileDC *) ptr; | |
9595 | dest = (wxDC *) src; | |
9596 | return (void *) dest; | |
9597 | } | |
9598 | ||
9416aa89 RD |
9599 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
9600 | wxMetaFileDC *src; | |
9601 | wxObject *dest; | |
9602 | src = (wxMetaFileDC *) ptr; | |
9603 | dest = (wxObject *) src; | |
9604 | return (void *) dest; | |
9605 | } | |
9606 | ||
8ab979d7 | 9607 | #define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0)) |
1afc06c2 | 9608 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9609 | PyObject * _resultobj; |
9610 | wxMetaFileDC * _result; | |
1d99702e | 9611 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
8ab979d7 | 9612 | PyObject * _obj0 = 0; |
1afc06c2 | 9613 | char *_kwnames[] = { "filename", NULL }; |
8ab979d7 RD |
9614 | char _ptemp[128]; |
9615 | ||
9616 | self = self; | |
1afc06c2 | 9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFileDC",_kwnames,&_obj0)) |
8ab979d7 RD |
9618 | return NULL; |
9619 | if (_obj0) | |
9620 | { | |
185d7c3e RD |
9621 | #if PYTHON_API_VERSION >= 1009 |
9622 | char* tmpPtr; int tmpSize; | |
9623 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 9624 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9625 | return NULL; |
9626 | } | |
9627 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9628 | return NULL; | |
9629 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9630 | #else | |
8ab979d7 RD |
9631 | if (!PyString_Check(_obj0)) { |
9632 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9633 | return NULL; | |
9634 | } | |
185d7c3e RD |
9635 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
9636 | #endif | |
8ab979d7 | 9637 | } |
cf694132 RD |
9638 | { |
9639 | wxPy_BEGIN_ALLOW_THREADS; | |
9640 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0); | |
9641 | ||
9642 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9643 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9644 | } if (_result) { |
9645 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
9646 | _resultobj = Py_BuildValue("s",_ptemp); | |
9647 | } else { | |
9648 | Py_INCREF(Py_None); | |
9649 | _resultobj = Py_None; | |
9650 | } | |
8ab979d7 RD |
9651 | { |
9652 | if (_obj0) | |
9653 | delete _arg0; | |
9654 | } | |
9655 | return _resultobj; | |
9656 | } | |
9657 | ||
9658 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 9659 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9660 | PyObject * _resultobj; |
9661 | wxMetaFile * _result; | |
9662 | wxMetaFileDC * _arg0; | |
1d99702e | 9663 | PyObject * _argo0 = 0; |
1afc06c2 | 9664 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9665 | char _ptemp[128]; |
9666 | ||
9667 | self = self; | |
1afc06c2 | 9668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 9669 | return NULL; |
1d99702e RD |
9670 | if (_argo0) { |
9671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
9673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
9674 | return NULL; | |
9675 | } | |
9676 | } | |
cf694132 RD |
9677 | { |
9678 | wxPy_BEGIN_ALLOW_THREADS; | |
9679 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); | |
9680 | ||
9681 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9682 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9683 | } if (_result) { |
9684 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
9685 | _resultobj = Py_BuildValue("s",_ptemp); | |
9686 | } else { | |
9687 | Py_INCREF(Py_None); | |
9688 | _resultobj = Py_None; | |
9689 | } | |
8ab979d7 RD |
9690 | return _resultobj; |
9691 | } | |
9692 | ||
9416aa89 RD |
9693 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
9694 | wxPalette *src; | |
9695 | wxGDIObject *dest; | |
9696 | src = (wxPalette *) ptr; | |
9697 | dest = (wxGDIObject *) src; | |
9698 | return (void *) dest; | |
9699 | } | |
9700 | ||
9701 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9702 | wxPalette *src; | |
9703 | wxObject *dest; | |
9704 | src = (wxPalette *) ptr; | |
9705 | dest = (wxObject *) src; | |
9706 | return (void *) dest; | |
9707 | } | |
9708 | ||
b639c3c5 | 9709 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9710 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9711 | PyObject * _resultobj; |
9712 | wxPalette * _result; | |
9713 | int _arg0; | |
9714 | byte * _arg1; | |
9715 | byte * _arg2; | |
9716 | byte * _arg3; | |
9717 | PyObject * _obj1 = 0; | |
9718 | PyObject * _obj2 = 0; | |
9719 | PyObject * _obj3 = 0; | |
eec92d76 | 9720 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
9721 | char _ptemp[128]; |
9722 | ||
9723 | self = self; | |
1afc06c2 | 9724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
9725 | return NULL; |
9726 | { | |
9727 | _arg1 = byte_LIST_helper(_obj1); | |
9728 | if (_arg1 == NULL) { | |
9729 | return NULL; | |
9730 | } | |
9731 | } | |
9732 | { | |
9733 | _arg2 = byte_LIST_helper(_obj2); | |
9734 | if (_arg2 == NULL) { | |
9735 | return NULL; | |
9736 | } | |
9737 | } | |
9738 | if (_obj3) | |
9739 | { | |
9740 | _arg3 = byte_LIST_helper(_obj3); | |
9741 | if (_arg3 == NULL) { | |
9742 | return NULL; | |
9743 | } | |
9744 | } | |
9745 | { | |
cf694132 RD |
9746 | if (_obj1) { |
9747 | _arg0 = PyList_Size(_obj1); | |
9748 | } | |
9749 | else { | |
9750 | _arg0 = 0; | |
9751 | } | |
b639c3c5 | 9752 | } |
cf694132 RD |
9753 | { |
9754 | wxPy_BEGIN_ALLOW_THREADS; | |
9755 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
9756 | ||
9757 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9758 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9759 | } if (_result) { |
9760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9761 | _resultobj = Py_BuildValue("s",_ptemp); | |
9762 | } else { | |
9763 | Py_INCREF(Py_None); | |
9764 | _resultobj = Py_None; | |
9765 | } | |
b639c3c5 RD |
9766 | { |
9767 | delete [] _arg1; | |
9768 | } | |
9769 | { | |
9770 | delete [] _arg2; | |
9771 | } | |
9772 | { | |
9773 | delete [] _arg3; | |
9774 | } | |
9775 | return _resultobj; | |
9776 | } | |
9777 | ||
9778 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 9779 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9780 | PyObject * _resultobj; |
9781 | wxPalette * _arg0; | |
1d99702e | 9782 | PyObject * _argo0 = 0; |
1afc06c2 | 9783 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
9784 | |
9785 | self = self; | |
1afc06c2 | 9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 9787 | return NULL; |
1d99702e RD |
9788 | if (_argo0) { |
9789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
9792 | return NULL; | |
9793 | } | |
9794 | } | |
cf694132 RD |
9795 | { |
9796 | wxPy_BEGIN_ALLOW_THREADS; | |
9797 | delete_wxPalette(_arg0); | |
9798 | ||
9799 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9800 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9801 | } Py_INCREF(Py_None); |
b639c3c5 RD |
9802 | _resultobj = Py_None; |
9803 | return _resultobj; | |
9804 | } | |
9805 | ||
9806 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 9807 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9808 | PyObject * _resultobj; |
9809 | int _result; | |
9810 | wxPalette * _arg0; | |
9811 | byte _arg1; | |
9812 | byte _arg2; | |
9813 | byte _arg3; | |
1d99702e | 9814 | PyObject * _argo0 = 0; |
1afc06c2 | 9815 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
9816 | |
9817 | self = self; | |
1afc06c2 | 9818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 9819 | return NULL; |
1d99702e RD |
9820 | if (_argo0) { |
9821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
9824 | return NULL; | |
9825 | } | |
9826 | } | |
cf694132 RD |
9827 | { |
9828 | wxPy_BEGIN_ALLOW_THREADS; | |
9829 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
9830 | ||
9831 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9832 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9833 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9834 | return _resultobj; |
9835 | } | |
9836 | ||
9837 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9838 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9839 | PyObject * _resultobj; |
9840 | bool _result; | |
9841 | wxPalette * _arg0; | |
9842 | int _arg1; | |
9843 | byte * _arg2; | |
9844 | byte * _arg3; | |
9845 | byte * _arg4; | |
1d99702e RD |
9846 | PyObject * _argo0 = 0; |
9847 | PyObject * _argo2 = 0; | |
9848 | PyObject * _argo3 = 0; | |
9849 | PyObject * _argo4 = 0; | |
1afc06c2 | 9850 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
b639c3c5 RD |
9851 | |
9852 | self = self; | |
1afc06c2 | 9853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
b639c3c5 | 9854 | return NULL; |
1d99702e RD |
9855 | if (_argo0) { |
9856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
9859 | return NULL; | |
9860 | } | |
9861 | } | |
1d99702e RD |
9862 | if (_argo2) { |
9863 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9864 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
b639c3c5 RD |
9865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
9866 | return NULL; | |
9867 | } | |
9868 | } | |
1d99702e RD |
9869 | if (_argo3) { |
9870 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
9871 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
b639c3c5 RD |
9872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
9873 | return NULL; | |
9874 | } | |
9875 | } | |
1d99702e RD |
9876 | if (_argo4) { |
9877 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
9878 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
b639c3c5 RD |
9879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
9880 | return NULL; | |
9881 | } | |
9882 | } | |
cf694132 RD |
9883 | { |
9884 | wxPy_BEGIN_ALLOW_THREADS; | |
9885 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9886 | ||
9887 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9888 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9889 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9890 | return _resultobj; |
9891 | } | |
9892 | ||
9893 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9894 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9895 | PyObject * _resultobj; |
9896 | bool _result; | |
9897 | wxPalette * _arg0; | |
1d99702e | 9898 | PyObject * _argo0 = 0; |
1afc06c2 | 9899 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
9900 | |
9901 | self = self; | |
1afc06c2 | 9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 9903 | return NULL; |
1d99702e RD |
9904 | if (_argo0) { |
9905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
9908 | return NULL; | |
9909 | } | |
9910 | } | |
cf694132 RD |
9911 | { |
9912 | wxPy_BEGIN_ALLOW_THREADS; | |
9913 | _result = (bool )wxPalette_Ok(_arg0); | |
9914 | ||
9915 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9916 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9917 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9918 | return _resultobj; |
9919 | } | |
9920 | ||
9416aa89 RD |
9921 | static void *SwigwxImageListTowxObject(void *ptr) { |
9922 | wxImageList *src; | |
9923 | wxObject *dest; | |
9924 | src = (wxImageList *) ptr; | |
9925 | dest = (wxObject *) src; | |
9926 | return (void *) dest; | |
9927 | } | |
9928 | ||
af309447 | 9929 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9930 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9931 | PyObject * _resultobj; |
9932 | wxImageList * _result; | |
9933 | int _arg0; | |
9934 | int _arg1; | |
dcd38683 | 9935 | int _arg2 = (int ) TRUE; |
1d99702e | 9936 | int _arg3 = (int ) 1; |
1afc06c2 | 9937 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
9938 | char _ptemp[128]; |
9939 | ||
9940 | self = self; | |
6999b0d8 | 9941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 9942 | return NULL; |
cf694132 RD |
9943 | { |
9944 | wxPy_BEGIN_ALLOW_THREADS; | |
9945 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
9946 | ||
9947 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9948 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9949 | } if (_result) { |
9950 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
9951 | _resultobj = Py_BuildValue("s",_ptemp); | |
9952 | } else { | |
9953 | Py_INCREF(Py_None); | |
9954 | _resultobj = Py_None; | |
9955 | } | |
af309447 RD |
9956 | return _resultobj; |
9957 | } | |
9958 | ||
9959 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 9960 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9961 | PyObject * _resultobj; |
9962 | wxImageList * _arg0; | |
1d99702e | 9963 | PyObject * _argo0 = 0; |
1afc06c2 | 9964 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
9965 | |
9966 | self = self; | |
1afc06c2 | 9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 9968 | return NULL; |
1d99702e RD |
9969 | if (_argo0) { |
9970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
9972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
9973 | return NULL; | |
9974 | } | |
9975 | } | |
cf694132 RD |
9976 | { |
9977 | wxPy_BEGIN_ALLOW_THREADS; | |
9978 | delete_wxImageList(_arg0); | |
9979 | ||
9980 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9981 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9982 | } Py_INCREF(Py_None); |
af309447 RD |
9983 | _resultobj = Py_None; |
9984 | return _resultobj; | |
9985 | } | |
9986 | ||
9987 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 9988 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
9989 | PyObject * _resultobj; |
9990 | int _result; | |
9991 | wxImageList * _arg0; | |
9992 | wxBitmap * _arg1; | |
1d99702e RD |
9993 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
9994 | PyObject * _argo0 = 0; | |
9995 | PyObject * _argo1 = 0; | |
9996 | PyObject * _argo2 = 0; | |
1afc06c2 | 9997 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
9998 | |
9999 | self = self; | |
1afc06c2 | 10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 10001 | return NULL; |
1d99702e RD |
10002 | if (_argo0) { |
10003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
10006 | return NULL; | |
10007 | } | |
10008 | } | |
1d99702e RD |
10009 | if (_argo1) { |
10010 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10011 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
10012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
10013 | return NULL; | |
10014 | } | |
10015 | } | |
1d99702e RD |
10016 | if (_argo2) { |
10017 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10018 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
10019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
10020 | return NULL; | |
10021 | } | |
10022 | } | |
cf694132 RD |
10023 | { |
10024 | wxPy_BEGIN_ALLOW_THREADS; | |
10025 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
10026 | ||
10027 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10029 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10030 | return _resultobj; |
10031 | } | |
10032 | ||
10033 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 10034 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10035 | PyObject * _resultobj; |
10036 | int _result; | |
10037 | wxImageList * _arg0; | |
10038 | wxBitmap * _arg1; | |
10039 | wxColour * _arg2; | |
1d99702e RD |
10040 | PyObject * _argo0 = 0; |
10041 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
10042 | wxColour temp; |
10043 | PyObject * _obj2 = 0; | |
1afc06c2 | 10044 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
10045 | |
10046 | self = self; | |
f6bcfd97 | 10047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 10048 | return NULL; |
1d99702e RD |
10049 | if (_argo0) { |
10050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
10053 | return NULL; | |
10054 | } | |
10055 | } | |
1d99702e RD |
10056 | if (_argo1) { |
10057 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10058 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
10059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
10060 | return NULL; | |
10061 | } | |
10062 | } | |
f6bcfd97 BP |
10063 | { |
10064 | _arg2 = &temp; | |
10065 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 10066 | return NULL; |
f6bcfd97 | 10067 | } |
cf694132 RD |
10068 | { |
10069 | wxPy_BEGIN_ALLOW_THREADS; | |
10070 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
10071 | ||
10072 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10073 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10074 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10075 | return _resultobj; |
10076 | } | |
10077 | ||
10078 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 10079 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10080 | PyObject * _resultobj; |
10081 | int _result; | |
10082 | wxImageList * _arg0; | |
10083 | wxIcon * _arg1; | |
1d99702e RD |
10084 | PyObject * _argo0 = 0; |
10085 | PyObject * _argo1 = 0; | |
1afc06c2 | 10086 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
10087 | |
10088 | self = self; | |
1afc06c2 | 10089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 10090 | return NULL; |
1d99702e RD |
10091 | if (_argo0) { |
10092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
10095 | return NULL; | |
10096 | } | |
10097 | } | |
1d99702e RD |
10098 | if (_argo1) { |
10099 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10100 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
10101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
10102 | return NULL; | |
10103 | } | |
10104 | } | |
cf694132 RD |
10105 | { |
10106 | wxPy_BEGIN_ALLOW_THREADS; | |
10107 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
10108 | ||
10109 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10110 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10111 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10112 | return _resultobj; |
10113 | } | |
10114 | ||
21f8d7ea | 10115 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 10116 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10117 | PyObject * _resultobj; |
10118 | bool _result; | |
10119 | wxImageList * _arg0; | |
10120 | int _arg1; | |
21f8d7ea | 10121 | wxBitmap * _arg2; |
1d99702e RD |
10122 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
10123 | PyObject * _argo0 = 0; | |
10124 | PyObject * _argo2 = 0; | |
10125 | PyObject * _argo3 = 0; | |
1afc06c2 | 10126 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
10127 | |
10128 | self = self; | |
1afc06c2 | 10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 10130 | return NULL; |
1d99702e RD |
10131 | if (_argo0) { |
10132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
10135 | return NULL; |
10136 | } | |
10137 | } | |
1d99702e RD |
10138 | if (_argo2) { |
10139 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10140 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 10141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
10142 | return NULL; |
10143 | } | |
10144 | } | |
1d99702e RD |
10145 | if (_argo3) { |
10146 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
10147 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
10148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
10149 | return NULL; | |
10150 | } | |
10151 | } | |
cf694132 RD |
10152 | { |
10153 | wxPy_BEGIN_ALLOW_THREADS; | |
10154 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); | |
10155 | ||
10156 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10157 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10158 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10159 | return _resultobj; |
10160 | } | |
10161 | ||
21f8d7ea | 10162 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 10163 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10164 | PyObject * _resultobj; |
10165 | bool _result; | |
10166 | wxImageList * _arg0; | |
10167 | int _arg1; | |
21f8d7ea RD |
10168 | wxDC * _arg2; |
10169 | int _arg3; | |
10170 | int _arg4; | |
1d99702e RD |
10171 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
10172 | bool _arg6 = (bool ) FALSE; | |
10173 | PyObject * _argo0 = 0; | |
10174 | PyObject * _argo2 = 0; | |
10175 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 10176 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
10177 | |
10178 | self = self; | |
1afc06c2 | 10179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 10180 | return NULL; |
1d99702e RD |
10181 | if (_argo0) { |
10182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
10185 | return NULL; |
10186 | } | |
10187 | } | |
1d99702e RD |
10188 | if (_argo2) { |
10189 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10190 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
10191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
10192 | return NULL; | |
10193 | } | |
10194 | } | |
10195 | _arg6 = (bool ) tempbool6; | |
cf694132 RD |
10196 | { |
10197 | wxPy_BEGIN_ALLOW_THREADS; | |
10198 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
10199 | ||
10200 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10201 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10202 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10203 | return _resultobj; |
10204 | } | |
10205 | ||
21f8d7ea | 10206 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 10207 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 10208 | PyObject * _resultobj; |
21f8d7ea | 10209 | int _result; |
af309447 | 10210 | wxImageList * _arg0; |
1d99702e | 10211 | PyObject * _argo0 = 0; |
1afc06c2 | 10212 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
10213 | |
10214 | self = self; | |
1afc06c2 | 10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 10216 | return NULL; |
1d99702e RD |
10217 | if (_argo0) { |
10218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
10221 | return NULL; |
10222 | } | |
10223 | } | |
cf694132 RD |
10224 | { |
10225 | wxPy_BEGIN_ALLOW_THREADS; | |
10226 | _result = (int )wxImageList_GetImageCount(_arg0); | |
10227 | ||
10228 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10229 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10230 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10231 | return _resultobj; |
10232 | } | |
10233 | ||
21f8d7ea | 10234 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 10235 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10236 | PyObject * _resultobj; |
10237 | bool _result; | |
10238 | wxImageList * _arg0; | |
10239 | int _arg1; | |
1d99702e | 10240 | PyObject * _argo0 = 0; |
1afc06c2 | 10241 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
10242 | |
10243 | self = self; | |
1afc06c2 | 10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 10245 | return NULL; |
1d99702e RD |
10246 | if (_argo0) { |
10247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
10250 | return NULL; |
10251 | } | |
10252 | } | |
cf694132 RD |
10253 | { |
10254 | wxPy_BEGIN_ALLOW_THREADS; | |
10255 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
10256 | ||
10257 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10258 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10259 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10260 | return _resultobj; |
10261 | } | |
10262 | ||
21f8d7ea | 10263 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 10264 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10265 | PyObject * _resultobj; |
10266 | bool _result; | |
10267 | wxImageList * _arg0; | |
1d99702e | 10268 | PyObject * _argo0 = 0; |
1afc06c2 | 10269 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
10270 | |
10271 | self = self; | |
1afc06c2 | 10272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 10273 | return NULL; |
1d99702e RD |
10274 | if (_argo0) { |
10275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
10278 | return NULL; |
10279 | } | |
10280 | } | |
cf694132 RD |
10281 | { |
10282 | wxPy_BEGIN_ALLOW_THREADS; | |
10283 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
10284 | ||
10285 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10287 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10288 | return _resultobj; |
10289 | } | |
10290 | ||
f6bcfd97 BP |
10291 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
10292 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10293 | PyObject * _resultobj; | |
10294 | wxImageList * _arg0; | |
10295 | int _arg1; | |
10296 | int * _arg2; | |
10297 | int temp; | |
10298 | int * _arg3; | |
10299 | int temp0; | |
10300 | PyObject * _argo0 = 0; | |
10301 | char *_kwnames[] = { "self","index", NULL }; | |
10302 | ||
10303 | self = self; | |
10304 | { | |
10305 | _arg2 = &temp; | |
10306 | } | |
10307 | { | |
10308 | _arg3 = &temp0; | |
10309 | } | |
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10311 | return NULL; | |
10312 | if (_argo0) { | |
10313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10316 | return NULL; | |
10317 | } | |
10318 | } | |
10319 | { | |
10320 | wxPy_BEGIN_ALLOW_THREADS; | |
10321 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
10322 | ||
10323 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10325 | } Py_INCREF(Py_None); |
10326 | _resultobj = Py_None; | |
10327 | { | |
10328 | PyObject *o; | |
10329 | o = PyInt_FromLong((long) (*_arg2)); | |
10330 | _resultobj = t_output_helper(_resultobj, o); | |
10331 | } | |
10332 | { | |
10333 | PyObject *o; | |
10334 | o = PyInt_FromLong((long) (*_arg3)); | |
10335 | _resultobj = t_output_helper(_resultobj, o); | |
10336 | } | |
10337 | return _resultobj; | |
10338 | } | |
10339 | ||
9416aa89 RD |
10340 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
10341 | wxRegion *src; | |
10342 | wxGDIObject *dest; | |
10343 | src = (wxRegion *) ptr; | |
10344 | dest = (wxGDIObject *) src; | |
10345 | return (void *) dest; | |
10346 | } | |
10347 | ||
10348 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10349 | wxRegion *src; | |
10350 | wxObject *dest; | |
10351 | src = (wxRegion *) ptr; | |
10352 | dest = (wxObject *) src; | |
10353 | return (void *) dest; | |
10354 | } | |
10355 | ||
10356 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10357 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10358 | PyObject * _resultobj; | |
10359 | wxRegion * _result; | |
10360 | long _arg0 = (long ) 0; | |
10361 | long _arg1 = (long ) 0; | |
10362 | long _arg2 = (long ) 0; | |
10363 | long _arg3 = (long ) 0; | |
10364 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
10365 | char _ptemp[128]; | |
10366 | ||
10367 | self = self; | |
10368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10369 | return NULL; | |
10370 | { | |
10371 | wxPy_BEGIN_ALLOW_THREADS; | |
10372 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
10373 | ||
10374 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10375 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10376 | } if (_result) { |
10377 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10378 | _resultobj = Py_BuildValue("s",_ptemp); | |
10379 | } else { | |
10380 | Py_INCREF(Py_None); | |
10381 | _resultobj = Py_None; | |
10382 | } | |
10383 | return _resultobj; | |
10384 | } | |
10385 | ||
10386 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
10387 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject * _resultobj; | |
10389 | wxRegion * _arg0; | |
10390 | PyObject * _argo0 = 0; | |
10391 | char *_kwnames[] = { "self", NULL }; | |
10392 | ||
10393 | self = self; | |
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10395 | return NULL; | |
10396 | if (_argo0) { | |
10397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10400 | return NULL; | |
10401 | } | |
10402 | } | |
10403 | { | |
10404 | wxPy_BEGIN_ALLOW_THREADS; | |
10405 | delete_wxRegion(_arg0); | |
10406 | ||
10407 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10408 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10409 | } Py_INCREF(Py_None); |
10410 | _resultobj = Py_None; | |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10415 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | wxRegion * _arg0; | |
10418 | PyObject * _argo0 = 0; | |
10419 | char *_kwnames[] = { "self", NULL }; | |
10420 | ||
10421 | self = self; | |
10422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10423 | return NULL; | |
10424 | if (_argo0) { | |
10425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10428 | return NULL; | |
10429 | } | |
10430 | } | |
10431 | { | |
10432 | wxPy_BEGIN_ALLOW_THREADS; | |
10433 | wxRegion_Clear(_arg0); | |
10434 | ||
10435 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10436 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10437 | } Py_INCREF(Py_None); |
10438 | _resultobj = Py_None; | |
10439 | return _resultobj; | |
10440 | } | |
10441 | ||
10442 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
10443 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10444 | PyObject * _resultobj; | |
10445 | wxRegionContain _result; | |
10446 | wxRegion * _arg0; | |
10447 | long _arg1; | |
10448 | long _arg2; | |
10449 | PyObject * _argo0 = 0; | |
10450 | char *_kwnames[] = { "self","x","y", NULL }; | |
10451 | ||
10452 | self = self; | |
10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10454 | return NULL; | |
10455 | if (_argo0) { | |
10456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10459 | return NULL; | |
10460 | } | |
10461 | } | |
10462 | { | |
10463 | wxPy_BEGIN_ALLOW_THREADS; | |
10464 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
10465 | ||
10466 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10467 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10468 | } _resultobj = Py_BuildValue("i",_result); |
10469 | return _resultobj; | |
10470 | } | |
10471 | ||
10472 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10473 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10474 | PyObject * _resultobj; | |
10475 | wxRegionContain _result; | |
10476 | wxRegion * _arg0; | |
10477 | wxPoint * _arg1; | |
10478 | PyObject * _argo0 = 0; | |
10479 | wxPoint temp; | |
10480 | PyObject * _obj1 = 0; | |
10481 | char *_kwnames[] = { "self","pt", NULL }; | |
10482 | ||
10483 | self = self; | |
10484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10485 | return NULL; | |
10486 | if (_argo0) { | |
10487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10490 | return NULL; | |
10491 | } | |
10492 | } | |
10493 | { | |
10494 | _arg1 = &temp; | |
10495 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10496 | return NULL; | |
10497 | } | |
10498 | { | |
10499 | wxPy_BEGIN_ALLOW_THREADS; | |
10500 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
10501 | ||
10502 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10503 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10504 | } _resultobj = Py_BuildValue("i",_result); |
10505 | return _resultobj; | |
10506 | } | |
10507 | ||
10508 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10509 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10510 | PyObject * _resultobj; | |
10511 | wxRegionContain _result; | |
10512 | wxRegion * _arg0; | |
10513 | wxRect * _arg1; | |
10514 | PyObject * _argo0 = 0; | |
10515 | wxRect temp; | |
10516 | PyObject * _obj1 = 0; | |
10517 | char *_kwnames[] = { "self","rect", NULL }; | |
10518 | ||
10519 | self = self; | |
10520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10521 | return NULL; | |
10522 | if (_argo0) { | |
10523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10526 | return NULL; | |
10527 | } | |
10528 | } | |
10529 | { | |
10530 | _arg1 = &temp; | |
10531 | if (! wxRect_helper(_obj1, &_arg1)) | |
10532 | return NULL; | |
10533 | } | |
10534 | { | |
10535 | wxPy_BEGIN_ALLOW_THREADS; | |
10536 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
10537 | ||
10538 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10539 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10540 | } _resultobj = Py_BuildValue("i",_result); |
10541 | return _resultobj; | |
10542 | } | |
10543 | ||
10544 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10545 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10546 | PyObject * _resultobj; | |
10547 | wxRegionContain _result; | |
10548 | wxRegion * _arg0; | |
10549 | long _arg1; | |
10550 | long _arg2; | |
10551 | long _arg3; | |
10552 | long _arg4; | |
10553 | PyObject * _argo0 = 0; | |
10554 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10555 | ||
10556 | self = self; | |
10557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10558 | return NULL; | |
10559 | if (_argo0) { | |
10560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
10563 | return NULL; | |
10564 | } | |
10565 | } | |
10566 | { | |
10567 | wxPy_BEGIN_ALLOW_THREADS; | |
10568 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10569 | ||
10570 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10571 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10572 | } _resultobj = Py_BuildValue("i",_result); |
10573 | return _resultobj; | |
10574 | } | |
10575 | ||
10576 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10577 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject * _resultobj; | |
10579 | wxRect * _result; | |
10580 | wxRegion * _arg0; | |
10581 | PyObject * _argo0 = 0; | |
10582 | char *_kwnames[] = { "self", NULL }; | |
10583 | char _ptemp[128]; | |
10584 | ||
10585 | self = self; | |
10586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10587 | return NULL; | |
10588 | if (_argo0) { | |
10589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10592 | return NULL; | |
10593 | } | |
10594 | } | |
10595 | { | |
10596 | wxPy_BEGIN_ALLOW_THREADS; | |
10597 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
10598 | ||
10599 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10600 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10602 | _resultobj = Py_BuildValue("s",_ptemp); | |
10603 | return _resultobj; | |
10604 | } | |
10605 | ||
10606 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10607 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10608 | PyObject * _resultobj; | |
10609 | bool _result; | |
10610 | wxRegion * _arg0; | |
10611 | long _arg1; | |
10612 | long _arg2; | |
10613 | long _arg3; | |
10614 | long _arg4; | |
10615 | PyObject * _argo0 = 0; | |
10616 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10617 | ||
10618 | self = self; | |
10619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10620 | return NULL; | |
10621 | if (_argo0) { | |
10622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10625 | return NULL; | |
10626 | } | |
10627 | } | |
10628 | { | |
10629 | wxPy_BEGIN_ALLOW_THREADS; | |
10630 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10631 | ||
10632 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10633 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10634 | } _resultobj = Py_BuildValue("i",_result); |
10635 | return _resultobj; | |
10636 | } | |
10637 | ||
10638 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10639 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10640 | PyObject * _resultobj; | |
10641 | bool _result; | |
10642 | wxRegion * _arg0; | |
10643 | wxRect * _arg1; | |
10644 | PyObject * _argo0 = 0; | |
10645 | wxRect temp; | |
10646 | PyObject * _obj1 = 0; | |
10647 | char *_kwnames[] = { "self","rect", NULL }; | |
10648 | ||
10649 | self = self; | |
10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10651 | return NULL; | |
10652 | if (_argo0) { | |
10653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10656 | return NULL; | |
10657 | } | |
10658 | } | |
10659 | { | |
10660 | _arg1 = &temp; | |
10661 | if (! wxRect_helper(_obj1, &_arg1)) | |
10662 | return NULL; | |
10663 | } | |
10664 | { | |
10665 | wxPy_BEGIN_ALLOW_THREADS; | |
10666 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
10667 | ||
10668 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10669 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10670 | } _resultobj = Py_BuildValue("i",_result); |
10671 | return _resultobj; | |
10672 | } | |
10673 | ||
10674 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10675 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10676 | PyObject * _resultobj; | |
10677 | bool _result; | |
10678 | wxRegion * _arg0; | |
10679 | wxRegion * _arg1; | |
10680 | PyObject * _argo0 = 0; | |
10681 | PyObject * _argo1 = 0; | |
10682 | char *_kwnames[] = { "self","region", NULL }; | |
10683 | ||
10684 | self = self; | |
10685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10686 | return NULL; | |
10687 | if (_argo0) { | |
10688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10691 | return NULL; | |
10692 | } | |
10693 | } | |
10694 | if (_argo1) { | |
10695 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10696 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10698 | return NULL; | |
10699 | } | |
10700 | } | |
10701 | { | |
10702 | wxPy_BEGIN_ALLOW_THREADS; | |
10703 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
10704 | ||
10705 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10706 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10707 | } _resultobj = Py_BuildValue("i",_result); |
10708 | return _resultobj; | |
10709 | } | |
10710 | ||
10711 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10712 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10713 | PyObject * _resultobj; | |
10714 | bool _result; | |
10715 | wxRegion * _arg0; | |
10716 | PyObject * _argo0 = 0; | |
10717 | char *_kwnames[] = { "self", NULL }; | |
10718 | ||
10719 | self = self; | |
10720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10721 | return NULL; | |
10722 | if (_argo0) { | |
10723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10726 | return NULL; | |
10727 | } | |
10728 | } | |
10729 | { | |
10730 | wxPy_BEGIN_ALLOW_THREADS; | |
10731 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
10732 | ||
10733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10734 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10735 | } _resultobj = Py_BuildValue("i",_result); |
10736 | return _resultobj; | |
10737 | } | |
10738 | ||
10739 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10740 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10741 | PyObject * _resultobj; | |
10742 | bool _result; | |
10743 | wxRegion * _arg0; | |
10744 | long _arg1; | |
10745 | long _arg2; | |
10746 | long _arg3; | |
10747 | long _arg4; | |
10748 | PyObject * _argo0 = 0; | |
10749 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10750 | ||
10751 | self = self; | |
10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10753 | return NULL; | |
10754 | if (_argo0) { | |
10755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
10758 | return NULL; | |
10759 | } | |
10760 | } | |
10761 | { | |
10762 | wxPy_BEGIN_ALLOW_THREADS; | |
10763 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10764 | ||
10765 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10766 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10767 | } _resultobj = Py_BuildValue("i",_result); |
10768 | return _resultobj; | |
10769 | } | |
10770 | ||
10771 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10772 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10773 | PyObject * _resultobj; | |
10774 | bool _result; | |
10775 | wxRegion * _arg0; | |
10776 | wxRect * _arg1; | |
10777 | PyObject * _argo0 = 0; | |
10778 | wxRect temp; | |
10779 | PyObject * _obj1 = 0; | |
10780 | char *_kwnames[] = { "self","rect", NULL }; | |
10781 | ||
10782 | self = self; | |
10783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10784 | return NULL; | |
10785 | if (_argo0) { | |
10786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10789 | return NULL; | |
10790 | } | |
10791 | } | |
10792 | { | |
10793 | _arg1 = &temp; | |
10794 | if (! wxRect_helper(_obj1, &_arg1)) | |
10795 | return NULL; | |
10796 | } | |
10797 | { | |
10798 | wxPy_BEGIN_ALLOW_THREADS; | |
10799 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
10800 | ||
10801 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10802 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10803 | } _resultobj = Py_BuildValue("i",_result); |
10804 | return _resultobj; | |
10805 | } | |
10806 | ||
10807 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10808 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10809 | PyObject * _resultobj; | |
10810 | bool _result; | |
10811 | wxRegion * _arg0; | |
10812 | wxRegion * _arg1; | |
10813 | PyObject * _argo0 = 0; | |
10814 | PyObject * _argo1 = 0; | |
10815 | char *_kwnames[] = { "self","region", NULL }; | |
10816 | ||
10817 | self = self; | |
10818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10819 | return NULL; | |
10820 | if (_argo0) { | |
10821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10824 | return NULL; | |
10825 | } | |
10826 | } | |
10827 | if (_argo1) { | |
10828 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10829 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10831 | return NULL; | |
10832 | } | |
10833 | } | |
10834 | { | |
10835 | wxPy_BEGIN_ALLOW_THREADS; | |
10836 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
10837 | ||
10838 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10839 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10840 | } _resultobj = Py_BuildValue("i",_result); |
10841 | return _resultobj; | |
10842 | } | |
10843 | ||
10844 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10845 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10846 | PyObject * _resultobj; | |
10847 | bool _result; | |
10848 | wxRegion * _arg0; | |
10849 | long _arg1; | |
10850 | long _arg2; | |
10851 | long _arg3; | |
10852 | long _arg4; | |
10853 | PyObject * _argo0 = 0; | |
10854 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10855 | ||
10856 | self = self; | |
10857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10858 | return NULL; | |
10859 | if (_argo0) { | |
10860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
10863 | return NULL; | |
10864 | } | |
10865 | } | |
10866 | { | |
10867 | wxPy_BEGIN_ALLOW_THREADS; | |
10868 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10869 | ||
10870 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10871 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10872 | } _resultobj = Py_BuildValue("i",_result); |
10873 | return _resultobj; | |
10874 | } | |
10875 | ||
10876 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10877 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10878 | PyObject * _resultobj; | |
10879 | bool _result; | |
10880 | wxRegion * _arg0; | |
10881 | wxRect * _arg1; | |
10882 | PyObject * _argo0 = 0; | |
10883 | wxRect temp; | |
10884 | PyObject * _obj1 = 0; | |
10885 | char *_kwnames[] = { "self","rect", NULL }; | |
10886 | ||
10887 | self = self; | |
10888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
10889 | return NULL; | |
10890 | if (_argo0) { | |
10891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
10894 | return NULL; | |
10895 | } | |
10896 | } | |
10897 | { | |
10898 | _arg1 = &temp; | |
10899 | if (! wxRect_helper(_obj1, &_arg1)) | |
10900 | return NULL; | |
10901 | } | |
10902 | { | |
10903 | wxPy_BEGIN_ALLOW_THREADS; | |
10904 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
10905 | ||
10906 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10907 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10908 | } _resultobj = Py_BuildValue("i",_result); |
10909 | return _resultobj; | |
10910 | } | |
10911 | ||
10912 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
10913 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10914 | PyObject * _resultobj; | |
10915 | bool _result; | |
10916 | wxRegion * _arg0; | |
10917 | wxRegion * _arg1; | |
10918 | PyObject * _argo0 = 0; | |
10919 | PyObject * _argo1 = 0; | |
10920 | char *_kwnames[] = { "self","region", NULL }; | |
10921 | ||
10922 | self = self; | |
10923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
10924 | return NULL; | |
10925 | if (_argo0) { | |
10926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10929 | return NULL; | |
10930 | } | |
10931 | } | |
10932 | if (_argo1) { | |
10933 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10934 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
10935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
10936 | return NULL; | |
10937 | } | |
10938 | } | |
10939 | { | |
10940 | wxPy_BEGIN_ALLOW_THREADS; | |
10941 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
10942 | ||
10943 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10944 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10945 | } _resultobj = Py_BuildValue("i",_result); |
10946 | return _resultobj; | |
10947 | } | |
10948 | ||
10949 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10950 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10951 | PyObject * _resultobj; | |
10952 | bool _result; | |
10953 | wxRegion * _arg0; | |
10954 | long _arg1; | |
10955 | long _arg2; | |
10956 | long _arg3; | |
10957 | long _arg4; | |
10958 | PyObject * _argo0 = 0; | |
10959 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10960 | ||
10961 | self = self; | |
10962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
10963 | return NULL; | |
10964 | if (_argo0) { | |
10965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
10968 | return NULL; | |
10969 | } | |
10970 | } | |
10971 | { | |
10972 | wxPy_BEGIN_ALLOW_THREADS; | |
10973 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10974 | ||
10975 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10976 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10977 | } _resultobj = Py_BuildValue("i",_result); |
10978 | return _resultobj; | |
10979 | } | |
10980 | ||
10981 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
10982 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10983 | PyObject * _resultobj; | |
10984 | bool _result; | |
10985 | wxRegion * _arg0; | |
10986 | wxRect * _arg1; | |
10987 | PyObject * _argo0 = 0; | |
10988 | wxRect temp; | |
10989 | PyObject * _obj1 = 0; | |
10990 | char *_kwnames[] = { "self","rect", NULL }; | |
10991 | ||
10992 | self = self; | |
10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
10994 | return NULL; | |
10995 | if (_argo0) { | |
10996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
10999 | return NULL; | |
11000 | } | |
11001 | } | |
11002 | { | |
11003 | _arg1 = &temp; | |
11004 | if (! wxRect_helper(_obj1, &_arg1)) | |
11005 | return NULL; | |
11006 | } | |
11007 | { | |
11008 | wxPy_BEGIN_ALLOW_THREADS; | |
11009 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
11010 | ||
11011 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11012 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11013 | } _resultobj = Py_BuildValue("i",_result); |
11014 | return _resultobj; | |
11015 | } | |
11016 | ||
11017 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11018 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject * _resultobj; | |
11020 | bool _result; | |
11021 | wxRegion * _arg0; | |
11022 | wxRegion * _arg1; | |
11023 | PyObject * _argo0 = 0; | |
11024 | PyObject * _argo1 = 0; | |
11025 | char *_kwnames[] = { "self","region", NULL }; | |
11026 | ||
11027 | self = self; | |
11028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11029 | return NULL; | |
11030 | if (_argo0) { | |
11031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11034 | return NULL; | |
11035 | } | |
11036 | } | |
11037 | if (_argo1) { | |
11038 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11039 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11041 | return NULL; | |
11042 | } | |
11043 | } | |
11044 | { | |
11045 | wxPy_BEGIN_ALLOW_THREADS; | |
11046 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
11047 | ||
11048 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11049 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11050 | } _resultobj = Py_BuildValue("i",_result); |
11051 | return _resultobj; | |
11052 | } | |
11053 | ||
11054 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11055 | wxRegionIterator *src; | |
11056 | wxObject *dest; | |
11057 | src = (wxRegionIterator *) ptr; | |
11058 | dest = (wxObject *) src; | |
11059 | return (void *) dest; | |
11060 | } | |
11061 | ||
11062 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11063 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11064 | PyObject * _resultobj; | |
11065 | wxRegionIterator * _result; | |
11066 | wxRegion * _arg0; | |
11067 | PyObject * _argo0 = 0; | |
11068 | char *_kwnames[] = { "region", NULL }; | |
11069 | char _ptemp[128]; | |
11070 | ||
11071 | self = self; | |
11072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11073 | return NULL; | |
11074 | if (_argo0) { | |
11075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11078 | return NULL; | |
11079 | } | |
11080 | } | |
11081 | { | |
11082 | wxPy_BEGIN_ALLOW_THREADS; | |
11083 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
11084 | ||
11085 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11086 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11087 | } if (_result) { |
11088 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11089 | _resultobj = Py_BuildValue("s",_ptemp); | |
11090 | } else { | |
11091 | Py_INCREF(Py_None); | |
11092 | _resultobj = Py_None; | |
11093 | } | |
11094 | return _resultobj; | |
11095 | } | |
11096 | ||
11097 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11098 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11099 | PyObject * _resultobj; | |
11100 | wxRegionIterator * _arg0; | |
11101 | PyObject * _argo0 = 0; | |
11102 | char *_kwnames[] = { "self", NULL }; | |
11103 | ||
11104 | self = self; | |
11105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11106 | return NULL; | |
11107 | if (_argo0) { | |
11108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11111 | return NULL; | |
11112 | } | |
11113 | } | |
11114 | { | |
11115 | wxPy_BEGIN_ALLOW_THREADS; | |
11116 | delete_wxRegionIterator(_arg0); | |
11117 | ||
11118 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11119 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11120 | } Py_INCREF(Py_None); |
11121 | _resultobj = Py_None; | |
11122 | return _resultobj; | |
11123 | } | |
11124 | ||
11125 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11126 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11127 | PyObject * _resultobj; | |
11128 | long _result; | |
11129 | wxRegionIterator * _arg0; | |
11130 | PyObject * _argo0 = 0; | |
11131 | char *_kwnames[] = { "self", NULL }; | |
11132 | ||
11133 | self = self; | |
11134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11135 | return NULL; | |
11136 | if (_argo0) { | |
11137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11140 | return NULL; | |
11141 | } | |
11142 | } | |
11143 | { | |
11144 | wxPy_BEGIN_ALLOW_THREADS; | |
11145 | _result = (long )wxRegionIterator_GetX(_arg0); | |
11146 | ||
11147 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11148 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11149 | } _resultobj = Py_BuildValue("l",_result); |
11150 | return _resultobj; | |
11151 | } | |
11152 | ||
11153 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11154 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject * _resultobj; | |
11156 | long _result; | |
11157 | wxRegionIterator * _arg0; | |
11158 | PyObject * _argo0 = 0; | |
11159 | char *_kwnames[] = { "self", NULL }; | |
11160 | ||
11161 | self = self; | |
11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11163 | return NULL; | |
11164 | if (_argo0) { | |
11165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11168 | return NULL; | |
11169 | } | |
11170 | } | |
11171 | { | |
11172 | wxPy_BEGIN_ALLOW_THREADS; | |
11173 | _result = (long )wxRegionIterator_GetY(_arg0); | |
11174 | ||
11175 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11176 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11177 | } _resultobj = Py_BuildValue("l",_result); |
11178 | return _resultobj; | |
11179 | } | |
11180 | ||
11181 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11182 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11183 | PyObject * _resultobj; | |
11184 | long _result; | |
11185 | wxRegionIterator * _arg0; | |
11186 | PyObject * _argo0 = 0; | |
11187 | char *_kwnames[] = { "self", NULL }; | |
11188 | ||
11189 | self = self; | |
11190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11191 | return NULL; | |
11192 | if (_argo0) { | |
11193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11196 | return NULL; | |
11197 | } | |
11198 | } | |
11199 | { | |
11200 | wxPy_BEGIN_ALLOW_THREADS; | |
11201 | _result = (long )wxRegionIterator_GetW(_arg0); | |
11202 | ||
11203 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11204 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11205 | } _resultobj = Py_BuildValue("l",_result); |
11206 | return _resultobj; | |
11207 | } | |
11208 | ||
11209 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11210 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11211 | PyObject * _resultobj; | |
11212 | long _result; | |
11213 | wxRegionIterator * _arg0; | |
11214 | PyObject * _argo0 = 0; | |
11215 | char *_kwnames[] = { "self", NULL }; | |
11216 | ||
11217 | self = self; | |
11218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11219 | return NULL; | |
11220 | if (_argo0) { | |
11221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11224 | return NULL; | |
11225 | } | |
11226 | } | |
11227 | { | |
11228 | wxPy_BEGIN_ALLOW_THREADS; | |
11229 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
11230 | ||
11231 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11232 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11233 | } _resultobj = Py_BuildValue("l",_result); |
11234 | return _resultobj; | |
11235 | } | |
11236 | ||
11237 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11238 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11239 | PyObject * _resultobj; | |
11240 | long _result; | |
11241 | wxRegionIterator * _arg0; | |
11242 | PyObject * _argo0 = 0; | |
11243 | char *_kwnames[] = { "self", NULL }; | |
11244 | ||
11245 | self = self; | |
11246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11247 | return NULL; | |
11248 | if (_argo0) { | |
11249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11252 | return NULL; | |
11253 | } | |
11254 | } | |
11255 | { | |
11256 | wxPy_BEGIN_ALLOW_THREADS; | |
11257 | _result = (long )wxRegionIterator_GetH(_arg0); | |
11258 | ||
11259 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11260 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11261 | } _resultobj = Py_BuildValue("l",_result); |
11262 | return _resultobj; | |
11263 | } | |
11264 | ||
11265 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11266 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11267 | PyObject * _resultobj; | |
11268 | long _result; | |
11269 | wxRegionIterator * _arg0; | |
11270 | PyObject * _argo0 = 0; | |
11271 | char *_kwnames[] = { "self", NULL }; | |
11272 | ||
11273 | self = self; | |
11274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11275 | return NULL; | |
11276 | if (_argo0) { | |
11277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11280 | return NULL; | |
11281 | } | |
11282 | } | |
11283 | { | |
11284 | wxPy_BEGIN_ALLOW_THREADS; | |
11285 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
11286 | ||
11287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11288 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11289 | } _resultobj = Py_BuildValue("l",_result); |
11290 | return _resultobj; | |
11291 | } | |
11292 | ||
11293 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11294 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11295 | PyObject * _resultobj; | |
11296 | wxRect * _result; | |
11297 | wxRegionIterator * _arg0; | |
11298 | PyObject * _argo0 = 0; | |
11299 | char *_kwnames[] = { "self", NULL }; | |
11300 | char _ptemp[128]; | |
11301 | ||
11302 | self = self; | |
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11304 | return NULL; | |
11305 | if (_argo0) { | |
11306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11309 | return NULL; | |
11310 | } | |
11311 | } | |
11312 | { | |
11313 | wxPy_BEGIN_ALLOW_THREADS; | |
11314 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
11315 | ||
11316 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11317 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11318 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
11319 | _resultobj = Py_BuildValue("s",_ptemp); | |
11320 | return _resultobj; | |
11321 | } | |
11322 | ||
11323 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11324 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11325 | PyObject * _resultobj; | |
11326 | bool _result; | |
11327 | wxRegionIterator * _arg0; | |
11328 | PyObject * _argo0 = 0; | |
11329 | char *_kwnames[] = { "self", NULL }; | |
11330 | ||
11331 | self = self; | |
11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11333 | return NULL; | |
11334 | if (_argo0) { | |
11335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11338 | return NULL; | |
11339 | } | |
11340 | } | |
11341 | { | |
11342 | wxPy_BEGIN_ALLOW_THREADS; | |
11343 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
11344 | ||
11345 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11346 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11347 | } _resultobj = Py_BuildValue("i",_result); |
11348 | return _resultobj; | |
11349 | } | |
11350 | ||
11351 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11352 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11353 | PyObject * _resultobj; | |
11354 | wxRegionIterator * _arg0; | |
11355 | PyObject * _argo0 = 0; | |
11356 | char *_kwnames[] = { "self", NULL }; | |
11357 | ||
11358 | self = self; | |
11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11360 | return NULL; | |
11361 | if (_argo0) { | |
11362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11365 | return NULL; | |
11366 | } | |
11367 | } | |
11368 | { | |
11369 | wxPy_BEGIN_ALLOW_THREADS; | |
11370 | wxRegionIterator_Reset(_arg0); | |
11371 | ||
11372 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11373 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11374 | } Py_INCREF(Py_None); |
11375 | _resultobj = Py_None; | |
11376 | return _resultobj; | |
11377 | } | |
11378 | ||
11379 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11380 | (*self) ++; | |
11381 | } | |
11382 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11383 | PyObject * _resultobj; | |
11384 | wxRegionIterator * _arg0; | |
11385 | PyObject * _argo0 = 0; | |
11386 | char *_kwnames[] = { "self", NULL }; | |
11387 | ||
11388 | self = self; | |
11389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11390 | return NULL; | |
11391 | if (_argo0) { | |
11392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11395 | return NULL; | |
11396 | } | |
11397 | } | |
11398 | { | |
11399 | wxPy_BEGIN_ALLOW_THREADS; | |
11400 | wxRegionIterator_Next(_arg0); | |
11401 | ||
11402 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11403 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11404 | } Py_INCREF(Py_None); |
11405 | _resultobj = Py_None; | |
11406 | return _resultobj; | |
11407 | } | |
11408 | ||
8ab979d7 | 11409 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
11410 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
11411 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11424 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
11440 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11441 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11442 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11443 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11444 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
11445 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11447 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11448 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
11449 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11454 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11461 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11462 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11465 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 11466 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11467 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
11468 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 11470 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11471 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
11472 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
11473 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
11474 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11479 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11480 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11481 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
11482 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11488 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11489 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11490 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11491 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11492 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11493 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11499 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11501 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11502 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11503 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11504 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11505 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11506 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11507 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11508 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11509 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
11510 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11511 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11512 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11513 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11514 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
11515 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11516 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11517 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11518 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11519 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11520 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11521 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11522 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11524 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11525 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11527 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11528 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11532 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11533 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11534 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 11535 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11536 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
11537 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11538 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11539 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11540 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
11541 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
11542 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11543 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11544 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11545 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11553 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11554 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f RD |
11556 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
11557 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11559 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
11560 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11563 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 11566 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11567 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
11568 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
11569 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11571 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11572 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11573 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11574 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, |
11575 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11577 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11578 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11579 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11580 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11581 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11582 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11584 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11585 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 11586 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11587 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
11588 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
11589 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11590 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11591 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
11592 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11593 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11594 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11595 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11596 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11597 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11598 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f RD |
11599 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
11600 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
11601 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
11602 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
11603 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11604 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
11605 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
11606 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d | 11607 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 11608 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11609 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
11610 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
11611 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11612 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11613 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
11614 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
11615 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 | 11616 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 11617 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11618 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 11619 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11620 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11621 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 11622 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11623 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 11624 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 11625 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11626 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
11627 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
11628 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
11629 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
11630 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
11631 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
11632 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
11633 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
11634 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11635 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11636 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
11637 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11638 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
11639 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
11640 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
11641 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11642 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11643 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11644 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11645 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11646 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11647 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11650 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11651 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11652 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
11653 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 11654 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
11655 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11656 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11657 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11658 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11659 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11660 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11661 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11662 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11663 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11664 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11665 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11666 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
11667 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 11668 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11669 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11670 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
11671 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
11672 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11675 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11676 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11677 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11682 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11684 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11685 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
11686 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11687 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11688 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11689 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
11690 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11691 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
11692 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
11693 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
11694 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11695 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11696 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11697 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11698 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
11699 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
11700 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 RD |
11701 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
11702 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11703 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 11704 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
11705 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
11706 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11707 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11708 | { NULL, NULL } |
11709 | }; | |
1d99702e RD |
11710 | #ifdef __cplusplus |
11711 | } | |
11712 | #endif | |
11713 | /* | |
11714 | * This table is used by the pointer type-checker | |
11715 | */ | |
11716 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11717 | { "_signed_long","_long",0}, |
b1462dfa | 11718 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11719 | { "_wxPrintQuality","_int",0}, |
11720 | { "_wxPrintQuality","_signed_int",0}, | |
11721 | { "_wxPrintQuality","_unsigned_int",0}, | |
11722 | { "_wxPrintQuality","_wxWindowID",0}, | |
11723 | { "_wxPrintQuality","_uint",0}, | |
11724 | { "_wxPrintQuality","_EBool",0}, | |
11725 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11726 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11727 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11728 | { "_long","_unsigned_long",0}, |
11729 | { "_long","_signed_long",0}, | |
9416aa89 | 11730 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 11731 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 11732 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
9416aa89 | 11733 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 11734 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 11735 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 11736 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 11737 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 11738 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 11739 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 11740 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 11741 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 11742 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
1d99702e | 11743 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 11744 | { "_size_t","_wxCoord",0}, |
1d99702e | 11745 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11746 | { "_size_t","_time_t",0}, |
1d99702e RD |
11747 | { "_size_t","_unsigned_int",0}, |
11748 | { "_size_t","_int",0}, | |
11749 | { "_size_t","_wxWindowID",0}, | |
11750 | { "_size_t","_uint",0}, | |
b1462dfa | 11751 | { "_uint","_wxCoord",0}, |
1d99702e | 11752 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11753 | { "_uint","_time_t",0}, |
1d99702e RD |
11754 | { "_uint","_size_t",0}, |
11755 | { "_uint","_unsigned_int",0}, | |
11756 | { "_uint","_int",0}, | |
11757 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11758 | { "_wxChar","_char",0}, |
f6bcfd97 | 11759 | { "_char","_wxChar",0}, |
6d8b4f8d | 11760 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11761 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11762 | { "_EBool","_wxPrintQuality",0}, |
11763 | { "_EBool","_signed_int",0}, | |
11764 | { "_EBool","_int",0}, | |
11765 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11766 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 11767 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11768 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11769 | { "_signed_int","_wxPrintQuality",0}, |
11770 | { "_signed_int","_EBool",0}, | |
11771 | { "_signed_int","_wxWindowID",0}, | |
11772 | { "_signed_int","_int",0}, | |
1d99702e RD |
11773 | { "_WXTYPE","_short",0}, |
11774 | { "_WXTYPE","_signed_short",0}, | |
11775 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11776 | { "_unsigned_short","_WXTYPE",0}, |
11777 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11778 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 11779 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 11780 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 11781 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 11782 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
9416aa89 | 11783 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 11784 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 11785 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 11786 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9416aa89 | 11787 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 11788 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
9416aa89 | 11789 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 11790 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
9416aa89 | 11791 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 11792 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 11793 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 11794 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 11795 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 11796 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 11797 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 11798 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 11799 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 11800 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
11801 | { "_signed_short","_WXTYPE",0}, |
11802 | { "_signed_short","_short",0}, | |
1d99702e | 11803 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11804 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11805 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11806 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11807 | { "_unsigned_int","_size_t",0}, |
11808 | { "_unsigned_int","_uint",0}, | |
11809 | { "_unsigned_int","_wxWindowID",0}, | |
11810 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11811 | { "_short","_WXTYPE",0}, |
11812 | { "_short","_unsigned_short",0}, | |
11813 | { "_short","_signed_short",0}, | |
b1462dfa | 11814 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11815 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11816 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11817 | { "_wxWindowID","_size_t",0}, |
11818 | { "_wxWindowID","_EBool",0}, | |
11819 | { "_wxWindowID","_uint",0}, | |
11820 | { "_wxWindowID","_int",0}, | |
11821 | { "_wxWindowID","_signed_int",0}, | |
11822 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11823 | { "_int","_wxCoord",0}, |
1d99702e | 11824 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11825 | { "_int","_time_t",0}, |
1d99702e RD |
11826 | { "_int","_size_t",0}, |
11827 | { "_int","_EBool",0}, | |
11828 | { "_int","_uint",0}, | |
11829 | { "_int","_wxWindowID",0}, | |
11830 | { "_int","_unsigned_int",0}, | |
11831 | { "_int","_signed_int",0}, | |
c368d904 RD |
11832 | { "_time_t","_wxCoord",0}, |
11833 | { "_time_t","_wxPrintQuality",0}, | |
11834 | { "_time_t","_unsigned_int",0}, | |
11835 | { "_time_t","_int",0}, | |
11836 | { "_time_t","_wxWindowID",0}, | |
11837 | { "_time_t","_uint",0}, | |
11838 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11839 | { "_wxCoord","_int",0}, |
11840 | { "_wxCoord","_signed_int",0}, | |
11841 | { "_wxCoord","_unsigned_int",0}, | |
11842 | { "_wxCoord","_wxWindowID",0}, | |
11843 | { "_wxCoord","_uint",0}, | |
11844 | { "_wxCoord","_EBool",0}, | |
11845 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11846 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11847 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
11848 | {0,0,0}}; |
11849 | ||
8ab979d7 RD |
11850 | static PyObject *SWIG_globals; |
11851 | #ifdef __cplusplus | |
11852 | extern "C" | |
11853 | #endif | |
1d99702e | 11854 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
11855 | PyObject *m, *d; |
11856 | SWIG_globals = SWIG_newvarlink(); | |
11857 | m = Py_InitModule("gdic", gdicMethods); | |
11858 | d = PyModule_GetDict(m); | |
6d8b4f8d RD |
11859 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
11860 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
11861 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
11862 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
11863 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
11864 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
11865 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
11866 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
11867 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); | |
11868 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
11869 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
11870 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
11871 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
11872 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
11873 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
11874 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
f0261a72 RD |
11875 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
11876 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
11877 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
11878 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
11879 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
11880 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
11881 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
11882 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
11883 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
11884 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
11885 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
11886 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
11887 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
11888 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
11889 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
11890 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
11891 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
6d8b4f8d | 11892 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
f0261a72 RD |
11893 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
11894 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
11895 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
11896 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
11897 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
11898 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
11899 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
11900 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
6d8b4f8d | 11901 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
f0261a72 RD |
11902 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
11903 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
11904 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
6d8b4f8d RD |
11905 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
11906 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
11907 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
11908 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
11909 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
11910 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
11911 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
11912 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
11913 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
f0261a72 | 11914 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
8ab979d7 RD |
11915 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
11916 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
11917 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
11918 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
11919 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
11920 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
11921 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
11922 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
11923 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
11924 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
11925 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
11926 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
11927 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
11928 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
11929 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
11930 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
11931 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
11932 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
11933 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
11934 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
11935 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
11936 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
11937 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
11938 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
11939 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
11940 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
11941 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
11942 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
11943 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
11944 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
11945 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
11946 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
11947 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
11948 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
11949 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
11950 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
11951 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
11952 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
11953 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
11954 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
11955 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
11956 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
11957 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
11958 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
11959 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
11960 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
11961 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
af309447 RD |
11962 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
11963 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
11964 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
11965 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
11966 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
11967 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
11968 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
9416aa89 RD |
11969 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); |
11970 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
11971 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
1d99702e RD |
11972 | { |
11973 | int i; | |
11974 | for (i = 0; _swig_mapping[i].n1; i++) | |
11975 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11976 | } | |
8ab979d7 | 11977 | } |