]>
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" | |
af309447 | 59 | #include <wx/imaglist.h> |
6d8b4f8d RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
8ab979d7 | 64 | |
8ab979d7 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
f3d9dc1d | 70 | if (!target) { |
8ab979d7 | 71 | target = o; |
f3d9dc1d | 72 | } else if (target == Py_None) { |
8ab979d7 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
f3d9dc1d | 75 | } else { |
8ab979d7 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
f3d9dc1d RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
83 | |
84 | o2 = target; | |
f3d9dc1d RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
8ab979d7 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
794c5cb1 RD |
92 | #if PYTHON_API_VERSION >= 1009 |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
0122b7e3 | 95 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 96 | #endif |
e508a2b6 RD |
97 | |
98 | static wxString wxPyEmptyStr(""); | |
96bfd053 RD |
99 | // Implementations of some alternate "constructors" |
100 | ||
8ab979d7 RD |
101 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
102 | return new wxBitmap(width, height, depth); | |
103 | } | |
104 | ||
96bfd053 RD |
105 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
106 | char** cArray = NULL; | |
107 | int count; | |
108 | ||
109 | if (!PyList_Check(listOfStrings)) { | |
110 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
111 | return NULL; | |
112 | } | |
113 | count = PyList_Size(listOfStrings); | |
114 | cArray = new char*[count]; | |
115 | ||
116 | for(int x=0; x<count; x++) { | |
117 | // TODO: Need some validation and error checking here | |
118 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
119 | } | |
120 | return cArray; | |
121 | } | |
122 | ||
d56cebe7 | 123 | |
96bfd053 RD |
124 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
125 | char** cArray = NULL; | |
126 | wxBitmap* bmp; | |
127 | ||
128 | cArray = ConvertListOfStrings(listOfStrings); | |
129 | if (! cArray) | |
130 | return NULL; | |
131 | bmp = new wxBitmap(cArray); | |
132 | delete [] cArray; | |
133 | return bmp; | |
134 | } | |
135 | ||
136 | ||
137 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
138 | return new wxBitmap(icon); | |
139 | } | |
140 | ||
141 | ||
d56cebe7 RD |
142 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
143 | return new wxBitmap(bits, width, height, depth); | |
144 | } | |
926bb76c | 145 | |
4c9993c3 | 146 | |
d56cebe7 RD |
147 | // #ifdef __WXMSW__ |
148 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
149 | // int width, int height, int depth = 1) { | |
150 | // if (! PyString_Check(data)) { | |
151 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
152 | // return NULL; | |
153 | // } | |
154 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
155 | // } | |
156 | // #endif | |
8bf5d46e | 157 | |
8ab979d7 RD |
158 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
159 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
160 | } |
161 | // Implementations of some alternate "constructors" | |
162 | wxIcon* wxEmptyIcon() { | |
163 | return new wxIcon(); | |
164 | } | |
165 | ||
166 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
167 | char** cArray = NULL; | |
168 | wxIcon* icon; | |
169 | ||
170 | cArray = ConvertListOfStrings(listOfStrings); | |
171 | if (! cArray) | |
172 | return NULL; | |
173 | icon = new wxIcon(cArray); | |
174 | delete [] cArray; | |
175 | return icon; | |
8ab979d7 RD |
176 | } |
177 | // Alternate 'constructor' | |
9c039d08 | 178 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
179 | return new wxCursor(id); |
180 | } | |
181 | // Alternate 'constructor' | |
182 | wxColour* wxNamedColour(const wxString& colorName) { | |
183 | return new wxColour(colorName); | |
184 | } | |
ecc08ead RD |
185 | |
186 | class wxPyPen : public wxPen { | |
187 | public: | |
188 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
189 | : wxPen(colour, width, style) | |
190 | { m_dash = NULL; } | |
191 | ~wxPyPen() { | |
192 | if (m_dash) | |
181526ac | 193 | delete [] m_dash; |
ecc08ead RD |
194 | } |
195 | ||
196 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
181526ac RD |
197 | if (m_dash) |
198 | delete [] m_dash; | |
ecc08ead | 199 | m_dash = new wxDash[nb_dashes]; |
181526ac | 200 | for (int i=0; i<nb_dashes; i++) { |
ecc08ead | 201 | m_dash[i] = dash[i]; |
181526ac | 202 | } |
ecc08ead RD |
203 | wxPen::SetDashes(nb_dashes, m_dash); |
204 | } | |
205 | ||
206 | private: | |
207 | wxDash* m_dash; | |
208 | }; | |
9d37f964 RD |
209 | |
210 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
211 | *x1 = dc->MinX(); | |
212 | *y1 = dc->MinY(); | |
213 | *x2 = dc->MaxX(); | |
214 | *y2 = dc->MaxY(); | |
215 | } | |
8ab979d7 RD |
216 | // Alternate 'constructor' |
217 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
218 | return new wxMemoryDC(oldDC); | |
219 | } | |
af309447 | 220 | |
17c0e08c RD |
221 | #include <wx/metafile.h> |
222 | ||
af309447 | 223 | #if 0 |
8ab979d7 RD |
224 | extern wxFont * wxNORMAL_FONT; |
225 | extern wxFont * wxSMALL_FONT; | |
226 | extern wxFont * wxITALIC_FONT; | |
227 | extern wxFont * wxSWISS_FONT; | |
228 | extern wxPen * wxRED_PEN; | |
229 | extern wxPen * wxCYAN_PEN; | |
230 | extern wxPen * wxGREEN_PEN; | |
231 | extern wxPen * wxBLACK_PEN; | |
232 | extern wxPen * wxWHITE_PEN; | |
233 | extern wxPen * wxTRANSPARENT_PEN; | |
234 | extern wxPen * wxBLACK_DASHED_PEN; | |
235 | extern wxPen * wxGREY_PEN; | |
236 | extern wxPen * wxMEDIUM_GREY_PEN; | |
237 | extern wxPen * wxLIGHT_GREY_PEN; | |
238 | extern wxBrush * wxBLUE_BRUSH; | |
239 | extern wxBrush * wxGREEN_BRUSH; | |
240 | extern wxBrush * wxWHITE_BRUSH; | |
241 | extern wxBrush * wxBLACK_BRUSH; | |
242 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
243 | extern wxBrush * wxCYAN_BRUSH; | |
244 | extern wxBrush * wxRED_BRUSH; | |
245 | extern wxBrush * wxGREY_BRUSH; | |
246 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
247 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
248 | extern wxColour * wxBLACK; | |
249 | extern wxColour * wxWHITE; | |
250 | extern wxColour * wxRED; | |
251 | extern wxColour * wxBLUE; | |
252 | extern wxColour * wxGREEN; | |
253 | extern wxColour * wxCYAN; | |
254 | extern wxColour * wxLIGHT_GREY; | |
255 | extern wxCursor * wxSTANDARD_CURSOR; | |
256 | extern wxCursor * wxHOURGLASS_CURSOR; | |
257 | extern wxCursor * wxCROSS_CURSOR; | |
258 | extern wxBitmap wxNullBitmap; | |
259 | extern wxIcon wxNullIcon; | |
260 | extern wxCursor wxNullCursor; | |
261 | extern wxPen wxNullPen; | |
262 | extern wxBrush wxNullBrush; | |
263 | extern wxPalette wxNullPalette; | |
264 | extern wxFont wxNullFont; | |
265 | extern wxColour wxNullColour; | |
0569df0f RD |
266 | extern wxFontList * wxTheFontList; |
267 | extern wxPenList * wxThePenList; | |
6ee2116b | 268 | extern wxBrushList * wxTheBrushList; |
0569df0f | 269 | extern wxColourDatabase * wxTheColourDatabase; |
af309447 | 270 | |
1d99702e RD |
271 | #endif |
272 | #ifdef __cplusplus | |
273 | extern "C" { | |
af309447 | 274 | #endif |
1afc06c2 | 275 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
276 | PyObject * _resultobj; |
277 | wxBitmap * _result; | |
278 | int _arg0; | |
279 | int _arg1; | |
1d99702e | 280 | int _arg2 = (int ) -1; |
1afc06c2 | 281 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
282 | char _ptemp[128]; |
283 | ||
284 | self = self; | |
1afc06c2 | 285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 286 | return NULL; |
cf694132 RD |
287 | { |
288 | wxPy_BEGIN_ALLOW_THREADS; | |
289 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); | |
290 | ||
291 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 292 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
293 | } if (_result) { |
294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
295 | _resultobj = Py_BuildValue("s",_ptemp); | |
296 | } else { | |
297 | Py_INCREF(Py_None); | |
298 | _resultobj = Py_None; | |
299 | } | |
8ab979d7 RD |
300 | return _resultobj; |
301 | } | |
302 | ||
96bfd053 RD |
303 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
304 | PyObject * _resultobj; | |
305 | wxBitmap * _result; | |
306 | PyObject * _arg0; | |
307 | PyObject * _obj0 = 0; | |
308 | char *_kwnames[] = { "listOfStrings", NULL }; | |
309 | char _ptemp[128]; | |
310 | ||
311 | self = self; | |
312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
313 | return NULL; | |
314 | { | |
315 | _arg0 = _obj0; | |
316 | } | |
317 | { | |
318 | wxPy_BEGIN_ALLOW_THREADS; | |
319 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); | |
320 | ||
321 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 322 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
323 | } if (_result) { |
324 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
325 | _resultobj = Py_BuildValue("s",_ptemp); | |
326 | } else { | |
327 | Py_INCREF(Py_None); | |
328 | _resultobj = Py_None; | |
329 | } | |
330 | return _resultobj; | |
331 | } | |
332 | ||
333 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
334 | PyObject * _resultobj; | |
335 | wxBitmap * _result; | |
336 | wxIcon * _arg0; | |
337 | PyObject * _argo0 = 0; | |
338 | char *_kwnames[] = { "icon", NULL }; | |
339 | char _ptemp[128]; | |
340 | ||
341 | self = self; | |
342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
343 | return NULL; | |
344 | if (_argo0) { | |
345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
352 | wxPy_BEGIN_ALLOW_THREADS; | |
353 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); | |
354 | ||
355 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 356 | if (PyErr_Occurred()) return NULL; |
96bfd053 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 | } | |
364 | return _resultobj; | |
365 | } | |
366 | ||
d56cebe7 | 367 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
368 | PyObject * _resultobj; |
369 | wxBitmap * _result; | |
d56cebe7 RD |
370 | char * _arg0; |
371 | int _arg1; | |
8bf5d46e | 372 | int _arg2; |
d56cebe7 RD |
373 | int _arg3 = (int ) 1; |
374 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
8bf5d46e RD |
375 | char _ptemp[128]; |
376 | ||
377 | self = self; | |
d56cebe7 | 378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
379 | return NULL; |
380 | { | |
381 | wxPy_BEGIN_ALLOW_THREADS; | |
d56cebe7 | 382 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e RD |
383 | |
384 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 385 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
386 | } if (_result) { |
387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
388 | _resultobj = Py_BuildValue("s",_ptemp); | |
389 | } else { | |
390 | Py_INCREF(Py_None); | |
391 | _resultobj = Py_None; | |
392 | } | |
8bf5d46e RD |
393 | return _resultobj; |
394 | } | |
395 | ||
1afc06c2 | 396 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
397 | PyObject * _resultobj; |
398 | wxMask * _result; | |
399 | wxBitmap * _arg0; | |
400 | wxColour * _arg1; | |
1d99702e | 401 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
402 | wxColour temp; |
403 | PyObject * _obj1 = 0; | |
1afc06c2 | 404 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
405 | char _ptemp[128]; |
406 | ||
407 | self = self; | |
f6bcfd97 | 408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 409 | return NULL; |
1d99702e RD |
410 | if (_argo0) { |
411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
414 | return NULL; | |
415 | } | |
416 | } | |
f6bcfd97 BP |
417 | { |
418 | _arg1 = &temp; | |
419 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 420 | return NULL; |
f6bcfd97 | 421 | } |
cf694132 RD |
422 | { |
423 | wxPy_BEGIN_ALLOW_THREADS; | |
424 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); | |
425 | ||
426 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 427 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
428 | } if (_result) { |
429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
430 | _resultobj = Py_BuildValue("s",_ptemp); | |
431 | } else { | |
432 | Py_INCREF(Py_None); | |
433 | _resultobj = Py_None; | |
434 | } | |
8ab979d7 RD |
435 | return _resultobj; |
436 | } | |
437 | ||
96bfd053 RD |
438 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
439 | PyObject * _resultobj; | |
440 | wxIcon * _result; | |
441 | char *_kwnames[] = { NULL }; | |
442 | char _ptemp[128]; | |
443 | ||
444 | self = self; | |
445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
446 | return NULL; | |
447 | { | |
448 | wxPy_BEGIN_ALLOW_THREADS; | |
449 | _result = (wxIcon *)wxEmptyIcon(); | |
450 | ||
451 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 452 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
453 | } if (_result) { |
454 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
455 | _resultobj = Py_BuildValue("s",_ptemp); | |
456 | } else { | |
457 | Py_INCREF(Py_None); | |
458 | _resultobj = Py_None; | |
459 | } | |
460 | return _resultobj; | |
461 | } | |
462 | ||
463 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject * _resultobj; | |
465 | wxIcon * _result; | |
466 | PyObject * _arg0; | |
467 | PyObject * _obj0 = 0; | |
468 | char *_kwnames[] = { "listOfStrings", NULL }; | |
469 | char _ptemp[128]; | |
470 | ||
471 | self = self; | |
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
473 | return NULL; | |
474 | { | |
475 | _arg0 = _obj0; | |
476 | } | |
477 | { | |
478 | wxPy_BEGIN_ALLOW_THREADS; | |
479 | _result = (wxIcon *)wxIconFromXPMData(_arg0); | |
480 | ||
481 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 482 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
483 | } if (_result) { |
484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
485 | _resultobj = Py_BuildValue("s",_ptemp); | |
486 | } else { | |
487 | Py_INCREF(Py_None); | |
488 | _resultobj = Py_None; | |
489 | } | |
490 | return _resultobj; | |
491 | } | |
492 | ||
1afc06c2 | 493 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
494 | PyObject * _resultobj; |
495 | wxCursor * _result; | |
496 | int _arg0; | |
1afc06c2 | 497 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
498 | char _ptemp[128]; |
499 | ||
500 | self = self; | |
1afc06c2 | 501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 502 | return NULL; |
cf694132 RD |
503 | { |
504 | wxPy_BEGIN_ALLOW_THREADS; | |
505 | _result = (wxCursor *)wxPyStockCursor(_arg0); | |
506 | ||
507 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 508 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
509 | } if (_result) { |
510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
511 | _resultobj = Py_BuildValue("s",_ptemp); | |
512 | } else { | |
513 | Py_INCREF(Py_None); | |
514 | _resultobj = Py_None; | |
515 | } | |
8ab979d7 RD |
516 | return _resultobj; |
517 | } | |
518 | ||
1afc06c2 | 519 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
520 | PyObject * _resultobj; |
521 | wxColour * _result; | |
522 | wxString * _arg0; | |
523 | PyObject * _obj0 = 0; | |
1afc06c2 | 524 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
525 | char _ptemp[128]; |
526 | ||
527 | self = self; | |
1afc06c2 | 528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
529 | return NULL; |
530 | { | |
185d7c3e RD |
531 | #if PYTHON_API_VERSION >= 1009 |
532 | char* tmpPtr; int tmpSize; | |
533 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 534 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
535 | return NULL; |
536 | } | |
537 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
538 | return NULL; | |
539 | _arg0 = new wxString(tmpPtr, tmpSize); | |
540 | #else | |
8ab979d7 RD |
541 | if (!PyString_Check(_obj0)) { |
542 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
543 | return NULL; | |
544 | } | |
185d7c3e RD |
545 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
546 | #endif | |
8ab979d7 | 547 | } |
cf694132 RD |
548 | { |
549 | wxPy_BEGIN_ALLOW_THREADS; | |
550 | _result = (wxColour *)wxNamedColour(*_arg0); | |
551 | ||
552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 553 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
554 | } if (_result) { |
555 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
556 | _resultobj = Py_BuildValue("s",_ptemp); | |
557 | } else { | |
558 | Py_INCREF(Py_None); | |
559 | _resultobj = Py_None; | |
560 | } | |
8ab979d7 RD |
561 | { |
562 | if (_obj0) | |
563 | delete _arg0; | |
564 | } | |
565 | return _resultobj; | |
566 | } | |
567 | ||
1afc06c2 | 568 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
569 | PyObject * _resultobj; |
570 | wxMemoryDC * _result; | |
571 | wxDC * _arg0; | |
1d99702e | 572 | PyObject * _argo0 = 0; |
1afc06c2 | 573 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
574 | char _ptemp[128]; |
575 | ||
576 | self = self; | |
1afc06c2 | 577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 578 | return NULL; |
1d99702e RD |
579 | if (_argo0) { |
580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
583 | return NULL; | |
584 | } | |
585 | } | |
cf694132 RD |
586 | { |
587 | wxPy_BEGIN_ALLOW_THREADS; | |
588 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); | |
589 | ||
590 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 591 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
592 | } if (_result) { |
593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
594 | _resultobj = Py_BuildValue("s",_ptemp); | |
595 | } else { | |
596 | Py_INCREF(Py_None); | |
597 | _resultobj = Py_None; | |
598 | } | |
8ab979d7 RD |
599 | return _resultobj; |
600 | } | |
601 | ||
602 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
603 | ||
604 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
605 | return 1; | |
606 | } | |
607 | ||
608 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
609 | PyObject * pyobj; | |
610 | char ptemp[128]; | |
611 | ||
612 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
613 | pyobj = PyString_FromString(ptemp); | |
614 | return pyobj; | |
615 | } | |
616 | ||
617 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
618 | ||
619 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
620 | return 1; | |
621 | } | |
622 | ||
623 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
624 | PyObject * pyobj; | |
625 | char ptemp[128]; | |
626 | ||
627 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
628 | pyobj = PyString_FromString(ptemp); | |
629 | return pyobj; | |
630 | } | |
631 | ||
632 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
633 | ||
634 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
635 | return 1; | |
636 | } | |
637 | ||
638 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
639 | PyObject * pyobj; | |
640 | char ptemp[128]; | |
641 | ||
642 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
643 | pyobj = PyString_FromString(ptemp); | |
644 | return pyobj; | |
645 | } | |
646 | ||
647 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
648 | ||
649 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
650 | return 1; | |
651 | } | |
652 | ||
653 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
654 | PyObject * pyobj; | |
655 | char ptemp[128]; | |
656 | ||
657 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
658 | pyobj = PyString_FromString(ptemp); | |
659 | return pyobj; | |
660 | } | |
661 | ||
662 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
663 | ||
664 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
665 | return 1; | |
666 | } | |
667 | ||
668 | static PyObject *_wrap_wxRED_PEN_get() { | |
669 | PyObject * pyobj; | |
670 | char ptemp[128]; | |
671 | ||
672 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
673 | pyobj = PyString_FromString(ptemp); | |
674 | return pyobj; | |
675 | } | |
676 | ||
677 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
678 | ||
679 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
680 | return 1; | |
681 | } | |
682 | ||
683 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
684 | PyObject * pyobj; | |
685 | char ptemp[128]; | |
686 | ||
687 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
688 | pyobj = PyString_FromString(ptemp); | |
689 | return pyobj; | |
690 | } | |
691 | ||
692 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
693 | ||
694 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
695 | return 1; | |
696 | } | |
697 | ||
698 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
699 | PyObject * pyobj; | |
700 | char ptemp[128]; | |
701 | ||
702 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
703 | pyobj = PyString_FromString(ptemp); | |
704 | return pyobj; | |
705 | } | |
706 | ||
707 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
708 | ||
709 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
710 | return 1; | |
711 | } | |
712 | ||
713 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
714 | PyObject * pyobj; | |
715 | char ptemp[128]; | |
716 | ||
717 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
718 | pyobj = PyString_FromString(ptemp); | |
719 | return pyobj; | |
720 | } | |
721 | ||
722 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
723 | ||
724 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
725 | return 1; | |
726 | } | |
727 | ||
728 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
729 | PyObject * pyobj; | |
730 | char ptemp[128]; | |
731 | ||
732 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
733 | pyobj = PyString_FromString(ptemp); | |
734 | return pyobj; | |
735 | } | |
736 | ||
737 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
738 | ||
739 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
740 | return 1; | |
741 | } | |
742 | ||
743 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
744 | PyObject * pyobj; | |
745 | char ptemp[128]; | |
746 | ||
747 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
748 | pyobj = PyString_FromString(ptemp); | |
749 | return pyobj; | |
750 | } | |
751 | ||
752 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
753 | ||
754 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
755 | return 1; | |
756 | } | |
757 | ||
758 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
759 | PyObject * pyobj; | |
760 | char ptemp[128]; | |
761 | ||
762 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
763 | pyobj = PyString_FromString(ptemp); | |
764 | return pyobj; | |
765 | } | |
766 | ||
767 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
768 | ||
769 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
770 | return 1; | |
771 | } | |
772 | ||
773 | static PyObject *_wrap_wxGREY_PEN_get() { | |
774 | PyObject * pyobj; | |
775 | char ptemp[128]; | |
776 | ||
777 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
778 | pyobj = PyString_FromString(ptemp); | |
779 | return pyobj; | |
780 | } | |
781 | ||
782 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
783 | ||
784 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
785 | return 1; | |
786 | } | |
787 | ||
788 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
789 | PyObject * pyobj; | |
790 | char ptemp[128]; | |
791 | ||
792 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
793 | pyobj = PyString_FromString(ptemp); | |
794 | return pyobj; | |
795 | } | |
796 | ||
797 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
798 | ||
799 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
800 | return 1; | |
801 | } | |
802 | ||
803 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
804 | PyObject * pyobj; | |
805 | char ptemp[128]; | |
806 | ||
807 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
808 | pyobj = PyString_FromString(ptemp); | |
809 | return pyobj; | |
810 | } | |
811 | ||
812 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
813 | ||
814 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
815 | return 1; | |
816 | } | |
817 | ||
818 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
819 | PyObject * pyobj; | |
820 | char ptemp[128]; | |
821 | ||
822 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
823 | pyobj = PyString_FromString(ptemp); | |
824 | return pyobj; | |
825 | } | |
826 | ||
827 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
828 | ||
829 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
830 | return 1; | |
831 | } | |
832 | ||
833 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
834 | PyObject * pyobj; | |
835 | char ptemp[128]; | |
836 | ||
837 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
838 | pyobj = PyString_FromString(ptemp); | |
839 | return pyobj; | |
840 | } | |
841 | ||
842 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
843 | ||
844 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
845 | return 1; | |
846 | } | |
847 | ||
848 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
849 | PyObject * pyobj; | |
850 | char ptemp[128]; | |
851 | ||
852 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
853 | pyobj = PyString_FromString(ptemp); | |
854 | return pyobj; | |
855 | } | |
856 | ||
857 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
858 | ||
859 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
860 | return 1; | |
861 | } | |
862 | ||
863 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
864 | PyObject * pyobj; | |
865 | char ptemp[128]; | |
866 | ||
867 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
868 | pyobj = PyString_FromString(ptemp); | |
869 | return pyobj; | |
870 | } | |
871 | ||
872 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
873 | ||
874 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
875 | return 1; | |
876 | } | |
877 | ||
878 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
879 | PyObject * pyobj; | |
880 | char ptemp[128]; | |
881 | ||
882 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
883 | pyobj = PyString_FromString(ptemp); | |
884 | return pyobj; | |
885 | } | |
886 | ||
887 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
888 | ||
889 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
890 | return 1; | |
891 | } | |
892 | ||
893 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
894 | PyObject * pyobj; | |
895 | char ptemp[128]; | |
896 | ||
897 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
898 | pyobj = PyString_FromString(ptemp); | |
899 | return pyobj; | |
900 | } | |
901 | ||
902 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
903 | ||
904 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
905 | return 1; | |
906 | } | |
907 | ||
908 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
909 | PyObject * pyobj; | |
910 | char ptemp[128]; | |
911 | ||
912 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
913 | pyobj = PyString_FromString(ptemp); | |
914 | return pyobj; | |
915 | } | |
916 | ||
917 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
918 | ||
919 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
920 | return 1; | |
921 | } | |
922 | ||
923 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
924 | PyObject * pyobj; | |
925 | char ptemp[128]; | |
926 | ||
927 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
928 | pyobj = PyString_FromString(ptemp); | |
929 | return pyobj; | |
930 | } | |
931 | ||
932 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
933 | ||
934 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
935 | return 1; | |
936 | } | |
937 | ||
938 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
939 | PyObject * pyobj; | |
940 | char ptemp[128]; | |
941 | ||
942 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
943 | pyobj = PyString_FromString(ptemp); | |
944 | return pyobj; | |
945 | } | |
946 | ||
947 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
948 | ||
949 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
950 | return 1; | |
951 | } | |
952 | ||
953 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
954 | PyObject * pyobj; | |
955 | char ptemp[128]; | |
956 | ||
957 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
958 | pyobj = PyString_FromString(ptemp); | |
959 | return pyobj; | |
960 | } | |
961 | ||
962 | static int _wrap_wxBLACK_set(PyObject *val) { | |
963 | ||
964 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
965 | return 1; | |
966 | } | |
967 | ||
968 | static PyObject *_wrap_wxBLACK_get() { | |
969 | PyObject * pyobj; | |
970 | char ptemp[128]; | |
971 | ||
972 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
973 | pyobj = PyString_FromString(ptemp); | |
974 | return pyobj; | |
975 | } | |
976 | ||
977 | static int _wrap_wxWHITE_set(PyObject *val) { | |
978 | ||
979 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
980 | return 1; | |
981 | } | |
982 | ||
983 | static PyObject *_wrap_wxWHITE_get() { | |
984 | PyObject * pyobj; | |
985 | char ptemp[128]; | |
986 | ||
987 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
988 | pyobj = PyString_FromString(ptemp); | |
989 | return pyobj; | |
990 | } | |
991 | ||
992 | static int _wrap_wxRED_set(PyObject *val) { | |
993 | ||
994 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
995 | return 1; | |
996 | } | |
997 | ||
998 | static PyObject *_wrap_wxRED_get() { | |
999 | PyObject * pyobj; | |
1000 | char ptemp[128]; | |
1001 | ||
1002 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1003 | pyobj = PyString_FromString(ptemp); | |
1004 | return pyobj; | |
1005 | } | |
1006 | ||
1007 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1008 | ||
1009 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1010 | return 1; | |
1011 | } | |
1012 | ||
1013 | static PyObject *_wrap_wxBLUE_get() { | |
1014 | PyObject * pyobj; | |
1015 | char ptemp[128]; | |
1016 | ||
1017 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1018 | pyobj = PyString_FromString(ptemp); | |
1019 | return pyobj; | |
1020 | } | |
1021 | ||
1022 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1023 | ||
1024 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1025 | return 1; | |
1026 | } | |
1027 | ||
1028 | static PyObject *_wrap_wxGREEN_get() { | |
1029 | PyObject * pyobj; | |
1030 | char ptemp[128]; | |
1031 | ||
1032 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1033 | pyobj = PyString_FromString(ptemp); | |
1034 | return pyobj; | |
1035 | } | |
1036 | ||
1037 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1038 | ||
1039 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1040 | return 1; | |
1041 | } | |
1042 | ||
1043 | static PyObject *_wrap_wxCYAN_get() { | |
1044 | PyObject * pyobj; | |
1045 | char ptemp[128]; | |
1046 | ||
1047 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1048 | pyobj = PyString_FromString(ptemp); | |
1049 | return pyobj; | |
1050 | } | |
1051 | ||
1052 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1053 | ||
1054 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1055 | return 1; | |
1056 | } | |
1057 | ||
1058 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1059 | PyObject * pyobj; | |
1060 | char ptemp[128]; | |
1061 | ||
1062 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1063 | pyobj = PyString_FromString(ptemp); | |
1064 | return pyobj; | |
1065 | } | |
1066 | ||
1067 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1068 | ||
1069 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1070 | return 1; | |
1071 | } | |
1072 | ||
1073 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1074 | PyObject * pyobj; | |
1075 | char ptemp[128]; | |
1076 | ||
1077 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1078 | pyobj = PyString_FromString(ptemp); | |
1079 | return pyobj; | |
1080 | } | |
1081 | ||
1082 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1083 | ||
1084 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1085 | return 1; | |
1086 | } | |
1087 | ||
1088 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1089 | PyObject * pyobj; | |
1090 | char ptemp[128]; | |
1091 | ||
1092 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1093 | pyobj = PyString_FromString(ptemp); | |
1094 | return pyobj; | |
1095 | } | |
1096 | ||
1097 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1098 | ||
1099 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1100 | return 1; | |
1101 | } | |
1102 | ||
1103 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1104 | PyObject * pyobj; | |
1105 | char ptemp[128]; | |
1106 | ||
1107 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1108 | pyobj = PyString_FromString(ptemp); | |
1109 | return pyobj; | |
1110 | } | |
1111 | ||
1112 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1113 | ||
1114 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1115 | return 1; | |
1116 | } | |
1117 | ||
1118 | static PyObject *_wrap_wxNullBitmap_get() { | |
1119 | PyObject * pyobj; | |
1120 | char ptemp[128]; | |
1121 | ||
1122 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1123 | pyobj = PyString_FromString(ptemp); | |
1124 | return pyobj; | |
1125 | } | |
1126 | ||
1127 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1128 | ||
1129 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1130 | return 1; | |
1131 | } | |
1132 | ||
1133 | static PyObject *_wrap_wxNullIcon_get() { | |
1134 | PyObject * pyobj; | |
1135 | char ptemp[128]; | |
1136 | ||
1137 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1138 | pyobj = PyString_FromString(ptemp); | |
1139 | return pyobj; | |
1140 | } | |
1141 | ||
1142 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1143 | ||
1144 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1145 | return 1; | |
1146 | } | |
1147 | ||
1148 | static PyObject *_wrap_wxNullCursor_get() { | |
1149 | PyObject * pyobj; | |
1150 | char ptemp[128]; | |
1151 | ||
1152 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1153 | pyobj = PyString_FromString(ptemp); | |
1154 | return pyobj; | |
1155 | } | |
1156 | ||
1157 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1158 | ||
1159 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1160 | return 1; | |
1161 | } | |
1162 | ||
1163 | static PyObject *_wrap_wxNullPen_get() { | |
1164 | PyObject * pyobj; | |
1165 | char ptemp[128]; | |
1166 | ||
1167 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1168 | pyobj = PyString_FromString(ptemp); | |
1169 | return pyobj; | |
1170 | } | |
1171 | ||
1172 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1173 | ||
1174 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1175 | return 1; | |
1176 | } | |
1177 | ||
1178 | static PyObject *_wrap_wxNullBrush_get() { | |
1179 | PyObject * pyobj; | |
1180 | char ptemp[128]; | |
1181 | ||
1182 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1183 | pyobj = PyString_FromString(ptemp); | |
1184 | return pyobj; | |
1185 | } | |
1186 | ||
1187 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1188 | ||
1189 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1190 | return 1; | |
1191 | } | |
1192 | ||
1193 | static PyObject *_wrap_wxNullPalette_get() { | |
1194 | PyObject * pyobj; | |
1195 | char ptemp[128]; | |
1196 | ||
1197 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1198 | pyobj = PyString_FromString(ptemp); | |
1199 | return pyobj; | |
1200 | } | |
1201 | ||
1202 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1203 | ||
1204 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1205 | return 1; | |
1206 | } | |
1207 | ||
1208 | static PyObject *_wrap_wxNullFont_get() { | |
1209 | PyObject * pyobj; | |
1210 | char ptemp[128]; | |
1211 | ||
1212 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1213 | pyobj = PyString_FromString(ptemp); | |
1214 | return pyobj; | |
1215 | } | |
1216 | ||
1217 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1218 | ||
1219 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1220 | return 1; | |
1221 | } | |
1222 | ||
1223 | static PyObject *_wrap_wxNullColour_get() { | |
1224 | PyObject * pyobj; | |
1225 | char ptemp[128]; | |
1226 | ||
1227 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1228 | pyobj = PyString_FromString(ptemp); | |
1229 | return pyobj; | |
1230 | } | |
1231 | ||
0569df0f RD |
1232 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1233 | ||
1234 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1235 | return 1; | |
1236 | } | |
1237 | ||
1238 | static PyObject *_wrap_wxTheFontList_get() { | |
1239 | PyObject * pyobj; | |
1240 | char ptemp[128]; | |
1241 | ||
1242 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1243 | pyobj = PyString_FromString(ptemp); | |
1244 | return pyobj; | |
1245 | } | |
1246 | ||
1247 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1248 | ||
1249 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1250 | return 1; | |
1251 | } | |
1252 | ||
1253 | static PyObject *_wrap_wxThePenList_get() { | |
1254 | PyObject * pyobj; | |
1255 | char ptemp[128]; | |
1256 | ||
1257 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1258 | pyobj = PyString_FromString(ptemp); | |
1259 | return pyobj; | |
1260 | } | |
1261 | ||
1262 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1263 | ||
1264 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1265 | return 1; | |
1266 | } | |
1267 | ||
1268 | static PyObject *_wrap_wxTheBrushList_get() { | |
1269 | PyObject * pyobj; | |
1270 | char ptemp[128]; | |
1271 | ||
6ee2116b | 1272 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
0569df0f RD |
1273 | pyobj = PyString_FromString(ptemp); |
1274 | return pyobj; | |
1275 | } | |
1276 | ||
1277 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1278 | ||
1279 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1280 | return 1; | |
1281 | } | |
1282 | ||
1283 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1284 | PyObject * pyobj; | |
1285 | char ptemp[128]; | |
1286 | ||
1287 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1288 | pyobj = PyString_FromString(ptemp); | |
1289 | return pyobj; | |
1290 | } | |
1291 | ||
9416aa89 RD |
1292 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1293 | wxGDIObject *src; | |
1294 | wxObject *dest; | |
1295 | src = (wxGDIObject *) ptr; | |
1296 | dest = (wxObject *) src; | |
1297 | return (void *) dest; | |
1298 | } | |
1299 | ||
1300 | #define new_wxGDIObject() (new wxGDIObject()) | |
1301 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1302 | PyObject * _resultobj; | |
1303 | wxGDIObject * _result; | |
1304 | char *_kwnames[] = { NULL }; | |
1305 | char _ptemp[128]; | |
1306 | ||
1307 | self = self; | |
1308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1309 | return NULL; | |
1310 | { | |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (wxGDIObject *)new_wxGDIObject(); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1315 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1316 | } if (_result) { |
1317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1318 | _resultobj = Py_BuildValue("s",_ptemp); | |
1319 | } else { | |
1320 | Py_INCREF(Py_None); | |
1321 | _resultobj = Py_None; | |
1322 | } | |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1327 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxGDIObject * _arg0; | |
1330 | PyObject * _argo0 = 0; | |
1331 | char *_kwnames[] = { "self", NULL }; | |
1332 | ||
1333 | self = self; | |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_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 delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
1343 | { | |
1344 | wxPy_BEGIN_ALLOW_THREADS; | |
1345 | delete_wxGDIObject(_arg0); | |
1346 | ||
1347 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1348 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1349 | } Py_INCREF(Py_None); |
1350 | _resultobj = Py_None; | |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1355 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | bool _result; | |
1358 | wxGDIObject * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | ||
1362 | self = self; | |
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
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_GetVisible. Expected _wxGDIObject_p."); | |
1369 | return NULL; | |
1370 | } | |
1371 | } | |
1372 | { | |
1373 | wxPy_BEGIN_ALLOW_THREADS; | |
1374 | _result = (bool )wxGDIObject_GetVisible(_arg0); | |
1375 | ||
1376 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1377 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1378 | } _resultobj = Py_BuildValue("i",_result); |
1379 | return _resultobj; | |
1380 | } | |
1381 | ||
1382 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1383 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1384 | PyObject * _resultobj; | |
1385 | wxGDIObject * _arg0; | |
1386 | bool _arg1; | |
1387 | PyObject * _argo0 = 0; | |
1388 | int tempbool1; | |
1389 | char *_kwnames[] = { "self","visible", NULL }; | |
1390 | ||
1391 | self = self; | |
1392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1393 | return NULL; | |
1394 | if (_argo0) { | |
1395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1398 | return NULL; | |
1399 | } | |
1400 | } | |
1401 | _arg1 = (bool ) tempbool1; | |
1402 | { | |
1403 | wxPy_BEGIN_ALLOW_THREADS; | |
1404 | wxGDIObject_SetVisible(_arg0,_arg1); | |
1405 | ||
1406 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1407 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1408 | } Py_INCREF(Py_None); |
1409 | _resultobj = Py_None; | |
1410 | return _resultobj; | |
1411 | } | |
1412 | ||
1413 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1414 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1415 | PyObject * _resultobj; | |
1416 | bool _result; | |
1417 | wxGDIObject * _arg0; | |
1418 | PyObject * _argo0 = 0; | |
1419 | char *_kwnames[] = { "self", NULL }; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1423 | return NULL; | |
1424 | if (_argo0) { | |
1425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1428 | return NULL; | |
1429 | } | |
1430 | } | |
1431 | { | |
1432 | wxPy_BEGIN_ALLOW_THREADS; | |
1433 | _result = (bool )wxGDIObject_IsNull(_arg0); | |
1434 | ||
1435 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1436 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1437 | } _resultobj = Py_BuildValue("i",_result); |
1438 | return _resultobj; | |
1439 | } | |
1440 | ||
1441 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1442 | wxBitmap *src; | |
1443 | wxGDIObject *dest; | |
1444 | src = (wxBitmap *) ptr; | |
1445 | dest = (wxGDIObject *) src; | |
1446 | return (void *) dest; | |
1447 | } | |
1448 | ||
1449 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1450 | wxBitmap *src; | |
1451 | wxObject *dest; | |
1452 | src = (wxBitmap *) ptr; | |
1453 | dest = (wxObject *) src; | |
1454 | return (void *) dest; | |
1455 | } | |
1456 | ||
6999b0d8 RD |
1457 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1458 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1459 | PyObject * _resultobj; |
6999b0d8 RD |
1460 | wxBitmap * _result; |
1461 | wxString * _arg0; | |
b37c7e1d | 1462 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
6999b0d8 RD |
1463 | PyObject * _obj0 = 0; |
1464 | char *_kwnames[] = { "name","type", NULL }; | |
1465 | char _ptemp[128]; | |
8ab979d7 RD |
1466 | |
1467 | self = self; | |
b37c7e1d | 1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1469 | return NULL; |
6999b0d8 | 1470 | { |
185d7c3e RD |
1471 | #if PYTHON_API_VERSION >= 1009 |
1472 | char* tmpPtr; int tmpSize; | |
1473 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1475 | return NULL; |
1476 | } | |
1477 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1478 | return NULL; | |
1479 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1480 | #else | |
6999b0d8 RD |
1481 | if (!PyString_Check(_obj0)) { |
1482 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1483 | return NULL; |
8ab979d7 | 1484 | } |
185d7c3e RD |
1485 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1486 | #endif | |
6999b0d8 | 1487 | } |
cf694132 RD |
1488 | { |
1489 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1490 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 RD |
1491 | |
1492 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1493 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1494 | } if (_result) { |
1495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1496 | _resultobj = Py_BuildValue("s",_ptemp); | |
1497 | } else { | |
1498 | Py_INCREF(Py_None); | |
1499 | _resultobj = Py_None; | |
1500 | } | |
1501 | { | |
1502 | if (_obj0) | |
1503 | delete _arg0; | |
1504 | } | |
8ab979d7 RD |
1505 | return _resultobj; |
1506 | } | |
1507 | ||
6999b0d8 RD |
1508 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1509 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1510 | PyObject * _resultobj; |
1511 | wxBitmap * _arg0; | |
1d99702e | 1512 | PyObject * _argo0 = 0; |
6999b0d8 | 1513 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1514 | |
1515 | self = self; | |
6999b0d8 | 1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1517 | return NULL; |
1d99702e RD |
1518 | if (_argo0) { |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1522 | return NULL; |
1523 | } | |
1524 | } | |
cf694132 RD |
1525 | { |
1526 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1527 | delete_wxBitmap(_arg0); |
cf694132 RD |
1528 | |
1529 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1530 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1531 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1532 | _resultobj = Py_None; |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
6999b0d8 RD |
1536 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1537 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1538 | PyObject * _resultobj; |
6999b0d8 | 1539 | wxPalette * _result; |
8ab979d7 | 1540 | wxBitmap * _arg0; |
1d99702e | 1541 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1542 | char *_kwnames[] = { "self", NULL }; |
1543 | char _ptemp[128]; | |
8ab979d7 RD |
1544 | |
1545 | self = self; | |
6999b0d8 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1547 | return NULL; |
1d99702e RD |
1548 | if (_argo0) { |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1552 | return NULL; |
1553 | } | |
1554 | } | |
cf694132 RD |
1555 | { |
1556 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1557 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 RD |
1558 | |
1559 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1560 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1561 | } if (_result) { |
1562 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1563 | _resultobj = Py_BuildValue("s",_ptemp); | |
1564 | } else { | |
1565 | Py_INCREF(Py_None); | |
1566 | _resultobj = Py_None; | |
1567 | } | |
8ab979d7 RD |
1568 | return _resultobj; |
1569 | } | |
1570 | ||
6999b0d8 RD |
1571 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1572 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1573 | PyObject * _resultobj; |
1574 | wxMask * _result; | |
1575 | wxBitmap * _arg0; | |
1d99702e | 1576 | PyObject * _argo0 = 0; |
6999b0d8 | 1577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1578 | char _ptemp[128]; |
1579 | ||
1580 | self = self; | |
6999b0d8 | 1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1582 | return NULL; |
1d99702e RD |
1583 | if (_argo0) { |
1584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1587 | return NULL; |
1588 | } | |
1589 | } | |
cf694132 RD |
1590 | { |
1591 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1592 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 RD |
1593 | |
1594 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1595 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1596 | } if (_result) { |
1597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1598 | _resultobj = Py_BuildValue("s",_ptemp); | |
1599 | } else { | |
1600 | Py_INCREF(Py_None); | |
1601 | _resultobj = Py_None; | |
1602 | } | |
8ab979d7 RD |
1603 | return _resultobj; |
1604 | } | |
1605 | ||
6999b0d8 RD |
1606 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1607 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1608 | PyObject * _resultobj; |
6999b0d8 RD |
1609 | bool _result; |
1610 | wxBitmap * _arg0; | |
1611 | wxString * _arg1; | |
b37c7e1d | 1612 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
6999b0d8 RD |
1613 | PyObject * _argo0 = 0; |
1614 | PyObject * _obj1 = 0; | |
b37c7e1d | 1615 | char *_kwnames[] = { "self","name","type", NULL }; |
8ab979d7 RD |
1616 | |
1617 | self = self; | |
b37c7e1d | 1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6999b0d8 RD |
1619 | return NULL; |
1620 | if (_argo0) { | |
1621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1624 | return NULL; |
6999b0d8 RD |
1625 | } |
1626 | } | |
8ab979d7 | 1627 | { |
185d7c3e RD |
1628 | #if PYTHON_API_VERSION >= 1009 |
1629 | char* tmpPtr; int tmpSize; | |
1630 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1631 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1632 | return NULL; |
1633 | } | |
1634 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1635 | return NULL; | |
1636 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1637 | #else | |
6999b0d8 | 1638 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
1639 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1640 | return NULL; | |
1641 | } | |
185d7c3e RD |
1642 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1643 | #endif | |
8ab979d7 | 1644 | } |
cf694132 RD |
1645 | { |
1646 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1647 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 RD |
1648 | |
1649 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1650 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1651 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1652 | { |
6999b0d8 RD |
1653 | if (_obj1) |
1654 | delete _arg1; | |
8ab979d7 RD |
1655 | } |
1656 | return _resultobj; | |
1657 | } | |
1658 | ||
6999b0d8 RD |
1659 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1660 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1661 | PyObject * _resultobj; |
6999b0d8 RD |
1662 | bool _result; |
1663 | wxBitmap * _arg0; | |
1664 | wxString * _arg1; | |
b37c7e1d | 1665 | wxBitmapType _arg2; |
6999b0d8 | 1666 | wxPalette * _arg3 = (wxPalette *) NULL; |
1d99702e | 1667 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1668 | PyObject * _obj1 = 0; |
1669 | PyObject * _argo3 = 0; | |
1670 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1671 | |
1672 | self = self; | |
6999b0d8 | 1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1674 | return NULL; |
1d99702e RD |
1675 | if (_argo0) { |
1676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1679 | return NULL; |
1680 | } | |
1681 | } | |
cf694132 | 1682 | { |
185d7c3e RD |
1683 | #if PYTHON_API_VERSION >= 1009 |
1684 | char* tmpPtr; int tmpSize; | |
1685 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1686 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1687 | return NULL; |
1688 | } | |
1689 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1690 | return NULL; | |
1691 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1692 | #else | |
6999b0d8 RD |
1693 | if (!PyString_Check(_obj1)) { |
1694 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1695 | return NULL; |
6999b0d8 | 1696 | } |
185d7c3e RD |
1697 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1698 | #endif | |
6999b0d8 RD |
1699 | } |
1700 | if (_argo3) { | |
1701 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1702 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1704 | return NULL; |
1705 | } | |
1706 | } | |
cf694132 RD |
1707 | { |
1708 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1709 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
1710 | |
1711 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1712 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1713 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1714 | { |
1715 | if (_obj1) | |
1716 | delete _arg1; | |
1717 | } | |
8ab979d7 RD |
1718 | return _resultobj; |
1719 | } | |
1720 | ||
6999b0d8 RD |
1721 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1722 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1723 | PyObject * _resultobj; |
6999b0d8 RD |
1724 | wxBitmap * _arg0; |
1725 | wxMask * _arg1; | |
1d99702e | 1726 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1727 | PyObject * _argo1 = 0; |
1728 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1729 | |
1730 | self = self; | |
6999b0d8 | 1731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1732 | return NULL; |
1d99702e RD |
1733 | if (_argo0) { |
1734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1737 | return NULL; |
1738 | } | |
1739 | } | |
6999b0d8 RD |
1740 | if (_argo1) { |
1741 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1744 | return NULL; |
1745 | } | |
1746 | } | |
cf694132 RD |
1747 | { |
1748 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1749 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 RD |
1750 | |
1751 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1752 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1753 | } Py_INCREF(Py_None); |
1754 | _resultobj = Py_None; | |
8ab979d7 RD |
1755 | return _resultobj; |
1756 | } | |
1757 | ||
6999b0d8 RD |
1758 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1759 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1760 | PyObject * _resultobj; | |
1761 | wxBitmap * _arg0; | |
1762 | wxPalette * _arg1; | |
1d99702e | 1763 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1764 | PyObject * _argo1 = 0; |
1765 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1766 | |
1767 | self = self; | |
6999b0d8 | 1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1769 | return NULL; |
1d99702e RD |
1770 | if (_argo0) { |
1771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1774 | return NULL; |
1775 | } | |
1776 | } | |
6999b0d8 RD |
1777 | if (_argo1) { |
1778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1781 | return NULL; |
6999b0d8 | 1782 | } |
8ab979d7 | 1783 | } |
cf694132 RD |
1784 | { |
1785 | wxPy_BEGIN_ALLOW_THREADS; | |
6999b0d8 | 1786 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 RD |
1787 | |
1788 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1789 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1790 | } Py_INCREF(Py_None); |
1791 | _resultobj = Py_None; | |
8ab979d7 RD |
1792 | return _resultobj; |
1793 | } | |
1794 | ||
9b3d3bc4 RD |
1795 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1796 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1797 | PyObject * _resultobj; |
9b3d3bc4 | 1798 | long _result; |
6999b0d8 | 1799 | wxBitmap * _arg0; |
1d99702e | 1800 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1801 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1802 | |
1803 | self = self; | |
9b3d3bc4 | 1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1805 | return NULL; |
1d99702e RD |
1806 | if (_argo0) { |
1807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1810 | return NULL; |
1811 | } | |
1812 | } | |
cf694132 RD |
1813 | { |
1814 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1815 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 RD |
1816 | |
1817 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1818 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1819 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1820 | return _resultobj; |
1821 | } | |
1822 | ||
9b3d3bc4 RD |
1823 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1824 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1825 | PyObject * _resultobj; |
9b3d3bc4 | 1826 | wxBitmap * _arg0; |
6999b0d8 | 1827 | long _arg1; |
9b3d3bc4 RD |
1828 | PyObject * _argo0 = 0; |
1829 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1830 | |
1831 | self = self; | |
9b3d3bc4 | 1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1833 | return NULL; |
9b3d3bc4 RD |
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_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1838 | return NULL; |
9b3d3bc4 | 1839 | } |
8ab979d7 | 1840 | } |
9b3d3bc4 RD |
1841 | { |
1842 | wxPy_BEGIN_ALLOW_THREADS; | |
1843 | wxBitmap_SetHandle(_arg0,_arg1); | |
1844 | ||
1845 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1846 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1847 | } Py_INCREF(Py_None); |
1848 | _resultobj = Py_None; | |
1849 | return _resultobj; | |
6999b0d8 | 1850 | } |
9b3d3bc4 RD |
1851 | |
1852 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1853 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1854 | PyObject * _resultobj; | |
1855 | bool _result; | |
1856 | wxBitmap * _arg0; | |
1857 | PyObject * _argo0 = 0; | |
1858 | char *_kwnames[] = { "self", NULL }; | |
1859 | ||
1860 | self = self; | |
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1862 | return NULL; | |
1863 | if (_argo0) { | |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
cf694132 RD |
1870 | { |
1871 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 1872 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 RD |
1873 | |
1874 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1875 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1876 | } _resultobj = Py_BuildValue("i",_result); |
1877 | return _resultobj; | |
1878 | } | |
1879 | ||
1880 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1881 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1882 | PyObject * _resultobj; | |
1883 | int _result; | |
1884 | wxBitmap * _arg0; | |
1885 | PyObject * _argo0 = 0; | |
1886 | char *_kwnames[] = { "self", NULL }; | |
1887 | ||
1888 | self = self; | |
1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1890 | return NULL; | |
1891 | if (_argo0) { | |
1892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1895 | return NULL; | |
1896 | } | |
6999b0d8 RD |
1897 | } |
1898 | { | |
9b3d3bc4 RD |
1899 | wxPy_BEGIN_ALLOW_THREADS; |
1900 | _result = (int )wxBitmap_GetWidth(_arg0); | |
1901 | ||
1902 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1903 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1904 | } _resultobj = Py_BuildValue("i",_result); |
1905 | return _resultobj; | |
6999b0d8 | 1906 | } |
9b3d3bc4 RD |
1907 | |
1908 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1909 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject * _resultobj; | |
1911 | int _result; | |
1912 | wxBitmap * _arg0; | |
1913 | PyObject * _argo0 = 0; | |
1914 | char *_kwnames[] = { "self", NULL }; | |
1915 | ||
1916 | self = self; | |
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1918 | return NULL; | |
1919 | if (_argo0) { | |
1920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1923 | return NULL; | |
1924 | } | |
1925 | } | |
1926 | { | |
1927 | wxPy_BEGIN_ALLOW_THREADS; | |
1928 | _result = (int )wxBitmap_GetHeight(_arg0); | |
1929 | ||
1930 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1931 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1932 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1933 | return _resultobj; |
1934 | } | |
1935 | ||
9b3d3bc4 RD |
1936 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1937 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1938 | PyObject * _resultobj; |
9b3d3bc4 RD |
1939 | int _result; |
1940 | wxBitmap * _arg0; | |
1d99702e | 1941 | PyObject * _argo0 = 0; |
6999b0d8 | 1942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1943 | |
1944 | self = self; | |
9b3d3bc4 | 1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1946 | return NULL; |
1d99702e RD |
1947 | if (_argo0) { |
1948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1951 | return NULL; |
1952 | } | |
1953 | } | |
cf694132 RD |
1954 | { |
1955 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
1956 | _result = (int )wxBitmap_GetDepth(_arg0); |
1957 | ||
1958 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1959 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1960 | } _resultobj = Py_BuildValue("i",_result); |
1961 | return _resultobj; | |
1962 | } | |
1963 | ||
1964 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1965 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1966 | PyObject * _resultobj; | |
1967 | wxBitmap * _arg0; | |
1968 | int _arg1; | |
1969 | PyObject * _argo0 = 0; | |
1970 | char *_kwnames[] = { "self","w", NULL }; | |
1971 | ||
1972 | self = self; | |
1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1974 | return NULL; | |
1975 | if (_argo0) { | |
1976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1979 | return NULL; | |
1980 | } | |
1981 | } | |
1982 | { | |
1983 | wxPy_BEGIN_ALLOW_THREADS; | |
1984 | wxBitmap_SetWidth(_arg0,_arg1); | |
cf694132 RD |
1985 | |
1986 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1988 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1989 | _resultobj = Py_None; |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
9b3d3bc4 RD |
1993 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1994 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1995 | PyObject * _resultobj; |
9b3d3bc4 RD |
1996 | wxBitmap * _arg0; |
1997 | int _arg1; | |
1d99702e | 1998 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1999 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
2000 | |
2001 | self = self; | |
9b3d3bc4 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2003 | return NULL; |
1d99702e RD |
2004 | if (_argo0) { |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
2008 | return NULL; |
2009 | } | |
2010 | } | |
6999b0d8 | 2011 | { |
9b3d3bc4 RD |
2012 | wxPy_BEGIN_ALLOW_THREADS; |
2013 | wxBitmap_SetHeight(_arg0,_arg1); | |
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_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2023 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject * _resultobj; | |
2025 | wxBitmap * _arg0; | |
2026 | int _arg1; | |
2027 | PyObject * _argo0 = 0; | |
2028 | char *_kwnames[] = { "self","d", NULL }; | |
2029 | ||
2030 | self = self; | |
2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2032 | return NULL; | |
2033 | if (_argo0) { | |
2034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2037 | return NULL; |
9b3d3bc4 | 2038 | } |
6999b0d8 | 2039 | } |
cf694132 RD |
2040 | { |
2041 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 2042 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 RD |
2043 | |
2044 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2045 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2046 | } Py_INCREF(Py_None); |
2047 | _resultobj = Py_None; | |
2048 | return _resultobj; | |
2049 | } | |
2050 | ||
2051 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2052 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2053 | PyObject * _resultobj; | |
2054 | wxBitmap * _arg0; | |
2055 | wxSize * _arg1; | |
2056 | PyObject * _argo0 = 0; | |
2057 | wxSize temp; | |
2058 | PyObject * _obj1 = 0; | |
2059 | char *_kwnames[] = { "self","size", NULL }; | |
2060 | ||
2061 | self = self; | |
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2063 | return NULL; | |
2064 | if (_argo0) { | |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
6999b0d8 | 2071 | { |
9b3d3bc4 RD |
2072 | _arg1 = &temp; |
2073 | if (! wxSize_helper(_obj1, &_arg1)) | |
2074 | return NULL; | |
6999b0d8 | 2075 | } |
9b3d3bc4 RD |
2076 | { |
2077 | wxPy_BEGIN_ALLOW_THREADS; | |
2078 | wxBitmap_SetSize(_arg0,*_arg1); | |
2079 | ||
2080 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2081 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2082 | } Py_INCREF(Py_None); |
2083 | _resultobj = Py_None; | |
8ab979d7 RD |
2084 | return _resultobj; |
2085 | } | |
2086 | ||
f6bcfd97 BP |
2087 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2088 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2089 | PyObject * _resultobj; | |
2090 | wxBitmap * _result; | |
2091 | wxBitmap * _arg0; | |
2092 | wxRect * _arg1; | |
2093 | PyObject * _argo0 = 0; | |
2094 | wxRect temp; | |
2095 | PyObject * _obj1 = 0; | |
2096 | char *_kwnames[] = { "self","rect", NULL }; | |
2097 | char _ptemp[128]; | |
2098 | ||
2099 | self = self; | |
2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2101 | return NULL; | |
2102 | if (_argo0) { | |
2103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2106 | return NULL; | |
2107 | } | |
2108 | } | |
2109 | { | |
2110 | _arg1 = &temp; | |
2111 | if (! wxRect_helper(_obj1, &_arg1)) | |
2112 | return NULL; | |
2113 | } | |
2114 | { | |
2115 | wxPy_BEGIN_ALLOW_THREADS; | |
2116 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); | |
2117 | ||
2118 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2119 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2120 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2121 | _resultobj = Py_BuildValue("s",_ptemp); | |
2122 | return _resultobj; | |
2123 | } | |
2124 | ||
2125 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2126 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2127 | PyObject * _resultobj; | |
2128 | bool _result; | |
2129 | wxBitmap * _arg0; | |
2130 | wxIcon * _arg1; | |
2131 | PyObject * _argo0 = 0; | |
2132 | PyObject * _argo1 = 0; | |
2133 | char *_kwnames[] = { "self","icon", NULL }; | |
2134 | ||
2135 | self = self; | |
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2137 | return NULL; | |
2138 | if (_argo0) { | |
2139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2142 | return NULL; | |
2143 | } | |
2144 | } | |
2145 | if (_argo1) { | |
2146 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2147 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
2152 | { | |
2153 | wxPy_BEGIN_ALLOW_THREADS; | |
2154 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); | |
2155 | ||
2156 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2157 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2158 | } _resultobj = Py_BuildValue("i",_result); |
2159 | return _resultobj; | |
2160 | } | |
2161 | ||
2162 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2163 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject * _resultobj; | |
2165 | bool _result; | |
2166 | wxBitmap * _arg0; | |
2167 | wxCursor * _arg1; | |
2168 | PyObject * _argo0 = 0; | |
2169 | PyObject * _argo1 = 0; | |
2170 | char *_kwnames[] = { "self","cursor", NULL }; | |
2171 | ||
2172 | self = self; | |
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2174 | return NULL; | |
2175 | if (_argo0) { | |
2176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2179 | return NULL; | |
2180 | } | |
2181 | } | |
2182 | if (_argo1) { | |
2183 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
2190 | wxPy_BEGIN_ALLOW_THREADS; | |
2191 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); | |
2192 | ||
2193 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2194 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2195 | } _resultobj = Py_BuildValue("i",_result); |
2196 | return _resultobj; | |
2197 | } | |
2198 | ||
2199 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2200 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject * _resultobj; | |
2202 | int _result; | |
2203 | wxBitmap * _arg0; | |
2204 | PyObject * _argo0 = 0; | |
2205 | char *_kwnames[] = { "self", NULL }; | |
2206 | ||
2207 | self = self; | |
2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2209 | return NULL; | |
2210 | if (_argo0) { | |
2211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2214 | return NULL; | |
2215 | } | |
2216 | } | |
2217 | { | |
2218 | wxPy_BEGIN_ALLOW_THREADS; | |
2219 | _result = (int )wxBitmap_GetQuality(_arg0); | |
2220 | ||
2221 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2222 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2223 | } _resultobj = Py_BuildValue("i",_result); |
2224 | return _resultobj; | |
2225 | } | |
2226 | ||
2227 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2228 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject * _resultobj; | |
2230 | wxBitmap * _arg0; | |
2231 | int _arg1; | |
2232 | PyObject * _argo0 = 0; | |
2233 | char *_kwnames[] = { "self","q", NULL }; | |
2234 | ||
2235 | self = self; | |
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2237 | return NULL; | |
2238 | if (_argo0) { | |
2239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2242 | return NULL; | |
2243 | } | |
2244 | } | |
2245 | { | |
2246 | wxPy_BEGIN_ALLOW_THREADS; | |
2247 | wxBitmap_SetQuality(_arg0,_arg1); | |
2248 | ||
2249 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2250 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2251 | } Py_INCREF(Py_None); |
2252 | _resultobj = Py_None; | |
2253 | return _resultobj; | |
2254 | } | |
2255 | ||
9416aa89 RD |
2256 | static void *SwigwxMaskTowxObject(void *ptr) { |
2257 | wxMask *src; | |
2258 | wxObject *dest; | |
2259 | src = (wxMask *) ptr; | |
2260 | dest = (wxObject *) src; | |
2261 | return (void *) dest; | |
2262 | } | |
2263 | ||
9b3d3bc4 RD |
2264 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2265 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject * _resultobj; | |
2267 | wxMask * _result; | |
2268 | wxBitmap * _arg0; | |
2269 | PyObject * _argo0 = 0; | |
2270 | char *_kwnames[] = { "bitmap", NULL }; | |
2271 | char _ptemp[128]; | |
2272 | ||
2273 | self = self; | |
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2275 | return NULL; | |
2276 | if (_argo0) { | |
2277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
2283 | { | |
2284 | wxPy_BEGIN_ALLOW_THREADS; | |
2285 | _result = (wxMask *)new_wxMask(*_arg0); | |
2286 | ||
2287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2288 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2289 | } if (_result) { |
2290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2291 | _resultobj = Py_BuildValue("s",_ptemp); | |
2292 | } else { | |
2293 | Py_INCREF(Py_None); | |
2294 | _resultobj = Py_None; | |
2295 | } | |
2296 | return _resultobj; | |
8ab979d7 RD |
2297 | } |
2298 | ||
96bfd053 RD |
2299 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2300 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject * _resultobj; | |
2302 | wxMask * _arg0; | |
2303 | PyObject * _argo0 = 0; | |
2304 | char *_kwnames[] = { "self", NULL }; | |
2305 | ||
2306 | self = self; | |
2307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2308 | return NULL; | |
2309 | if (_argo0) { | |
2310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2313 | return NULL; | |
2314 | } | |
2315 | } | |
2316 | { | |
2317 | wxPy_BEGIN_ALLOW_THREADS; | |
2318 | wxMask_Destroy(_arg0); | |
2319 | ||
2320 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2321 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2322 | } Py_INCREF(Py_None); |
2323 | _resultobj = Py_None; | |
2324 | return _resultobj; | |
2325 | } | |
2326 | ||
9416aa89 RD |
2327 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2328 | wxIcon *src; | |
2329 | wxGDIObject *dest; | |
2330 | src = (wxIcon *) ptr; | |
2331 | dest = (wxGDIObject *) src; | |
2332 | return (void *) dest; | |
2333 | } | |
2334 | ||
2335 | static void *SwigwxIconTowxObject(void *ptr) { | |
2336 | wxIcon *src; | |
2337 | wxObject *dest; | |
2338 | src = (wxIcon *) ptr; | |
2339 | dest = (wxObject *) src; | |
2340 | return (void *) dest; | |
2341 | } | |
2342 | ||
9b3d3bc4 RD |
2343 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2344 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2345 | PyObject * _resultobj; |
9b3d3bc4 | 2346 | wxIcon * _result; |
8ab979d7 RD |
2347 | wxString * _arg0; |
2348 | long _arg1; | |
9b3d3bc4 RD |
2349 | int _arg2 = (int ) -1; |
2350 | int _arg3 = (int ) -1; | |
8ab979d7 | 2351 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2352 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2353 | char _ptemp[128]; |
2354 | ||
2355 | self = self; | |
9b3d3bc4 | 2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2357 | return NULL; |
2358 | { | |
185d7c3e RD |
2359 | #if PYTHON_API_VERSION >= 1009 |
2360 | char* tmpPtr; int tmpSize; | |
2361 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2362 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2363 | return NULL; |
2364 | } | |
2365 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2366 | return NULL; | |
2367 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2368 | #else | |
8ab979d7 RD |
2369 | if (!PyString_Check(_obj0)) { |
2370 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2371 | return NULL; | |
2372 | } | |
185d7c3e RD |
2373 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2374 | #endif | |
8ab979d7 | 2375 | } |
cf694132 RD |
2376 | { |
2377 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 | 2378 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
2379 | |
2380 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2381 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2382 | } if (_result) { |
9b3d3bc4 | 2383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2384 | _resultobj = Py_BuildValue("s",_ptemp); |
2385 | } else { | |
2386 | Py_INCREF(Py_None); | |
2387 | _resultobj = Py_None; | |
2388 | } | |
8ab979d7 RD |
2389 | { |
2390 | if (_obj0) | |
2391 | delete _arg0; | |
2392 | } | |
2393 | return _resultobj; | |
2394 | } | |
2395 | ||
9b3d3bc4 RD |
2396 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2397 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2398 | PyObject * _resultobj; |
9b3d3bc4 | 2399 | wxIcon * _arg0; |
1d99702e | 2400 | PyObject * _argo0 = 0; |
1afc06c2 | 2401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2402 | |
2403 | self = self; | |
9b3d3bc4 | 2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2405 | return NULL; |
1d99702e RD |
2406 | if (_argo0) { |
2407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2410 | return NULL; |
2411 | } | |
2412 | } | |
cf694132 RD |
2413 | { |
2414 | wxPy_BEGIN_ALLOW_THREADS; | |
9b3d3bc4 RD |
2415 | delete_wxIcon(_arg0); |
2416 | ||
2417 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2418 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2419 | } Py_INCREF(Py_None); |
2420 | _resultobj = Py_None; | |
2421 | return _resultobj; | |
2422 | } | |
2423 | ||
2424 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2425 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2426 | PyObject * _resultobj; | |
2427 | bool _result; | |
2428 | wxIcon * _arg0; | |
2429 | wxString * _arg1; | |
2430 | long _arg2; | |
2431 | PyObject * _argo0 = 0; | |
2432 | PyObject * _obj1 = 0; | |
2433 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2434 | ||
2435 | self = self; | |
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2437 | return NULL; | |
2438 | if (_argo0) { | |
2439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2442 | return NULL; | |
2443 | } | |
2444 | } | |
2445 | { | |
185d7c3e RD |
2446 | #if PYTHON_API_VERSION >= 1009 |
2447 | char* tmpPtr; int tmpSize; | |
2448 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2449 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2450 | return NULL; |
2451 | } | |
2452 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2453 | return NULL; | |
2454 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2455 | #else | |
9b3d3bc4 RD |
2456 | if (!PyString_Check(_obj1)) { |
2457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2458 | return NULL; | |
2459 | } | |
185d7c3e RD |
2460 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2461 | #endif | |
9b3d3bc4 RD |
2462 | } |
2463 | { | |
2464 | wxPy_BEGIN_ALLOW_THREADS; | |
2465 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); | |
2466 | ||
2467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2468 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2469 | } _resultobj = Py_BuildValue("i",_result); |
2470 | { | |
2471 | if (_obj1) | |
2472 | delete _arg1; | |
2473 | } | |
2474 | return _resultobj; | |
2475 | } | |
2476 | ||
2477 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2478 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2479 | PyObject * _resultobj; | |
2480 | long _result; | |
2481 | wxIcon * _arg0; | |
2482 | PyObject * _argo0 = 0; | |
2483 | char *_kwnames[] = { "self", NULL }; | |
2484 | ||
2485 | self = self; | |
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2487 | return NULL; | |
2488 | if (_argo0) { | |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | { | |
2496 | wxPy_BEGIN_ALLOW_THREADS; | |
2497 | _result = (long )wxIcon_GetHandle(_arg0); | |
2498 | ||
2499 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2500 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2501 | } _resultobj = Py_BuildValue("l",_result); |
2502 | return _resultobj; | |
2503 | } | |
2504 | ||
2505 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2506 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject * _resultobj; | |
2508 | wxIcon * _arg0; | |
2509 | long _arg1; | |
2510 | PyObject * _argo0 = 0; | |
2511 | char *_kwnames[] = { "self","handle", NULL }; | |
2512 | ||
2513 | self = self; | |
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
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_SetHandle. Expected _wxIcon_p."); | |
2520 | return NULL; | |
2521 | } | |
2522 | } | |
2523 | { | |
2524 | wxPy_BEGIN_ALLOW_THREADS; | |
2525 | wxIcon_SetHandle(_arg0,_arg1); | |
2526 | ||
2527 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2528 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2529 | } Py_INCREF(Py_None); |
2530 | _resultobj = Py_None; | |
2531 | return _resultobj; | |
2532 | } | |
2533 | ||
2534 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2535 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2536 | PyObject * _resultobj; | |
2537 | bool _result; | |
2538 | wxIcon * _arg0; | |
2539 | PyObject * _argo0 = 0; | |
2540 | char *_kwnames[] = { "self", NULL }; | |
2541 | ||
2542 | self = self; | |
2543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2544 | return NULL; | |
2545 | if (_argo0) { | |
2546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2549 | return NULL; | |
2550 | } | |
2551 | } | |
2552 | { | |
2553 | wxPy_BEGIN_ALLOW_THREADS; | |
2554 | _result = (bool )wxIcon_Ok(_arg0); | |
2555 | ||
2556 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2557 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2558 | } _resultobj = Py_BuildValue("i",_result); |
2559 | return _resultobj; | |
2560 | } | |
2561 | ||
2562 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2563 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2564 | PyObject * _resultobj; | |
2565 | int _result; | |
2566 | wxIcon * _arg0; | |
2567 | PyObject * _argo0 = 0; | |
2568 | char *_kwnames[] = { "self", NULL }; | |
2569 | ||
2570 | self = self; | |
2571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2572 | return NULL; | |
2573 | if (_argo0) { | |
2574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2577 | return NULL; | |
2578 | } | |
2579 | } | |
2580 | { | |
2581 | wxPy_BEGIN_ALLOW_THREADS; | |
2582 | _result = (int )wxIcon_GetWidth(_arg0); | |
2583 | ||
2584 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2585 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2586 | } _resultobj = Py_BuildValue("i",_result); |
2587 | return _resultobj; | |
2588 | } | |
2589 | ||
2590 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2591 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2592 | PyObject * _resultobj; | |
2593 | int _result; | |
2594 | wxIcon * _arg0; | |
2595 | PyObject * _argo0 = 0; | |
2596 | char *_kwnames[] = { "self", NULL }; | |
2597 | ||
2598 | self = self; | |
2599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2600 | return NULL; | |
2601 | if (_argo0) { | |
2602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2605 | return NULL; | |
2606 | } | |
2607 | } | |
2608 | { | |
2609 | wxPy_BEGIN_ALLOW_THREADS; | |
2610 | _result = (int )wxIcon_GetHeight(_arg0); | |
2611 | ||
2612 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2613 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2614 | } _resultobj = Py_BuildValue("i",_result); |
2615 | return _resultobj; | |
2616 | } | |
2617 | ||
2618 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2619 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject * _resultobj; | |
2621 | int _result; | |
2622 | wxIcon * _arg0; | |
2623 | PyObject * _argo0 = 0; | |
2624 | char *_kwnames[] = { "self", NULL }; | |
2625 | ||
2626 | self = self; | |
2627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2628 | return NULL; | |
2629 | if (_argo0) { | |
2630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2633 | return NULL; | |
2634 | } | |
2635 | } | |
2636 | { | |
2637 | wxPy_BEGIN_ALLOW_THREADS; | |
2638 | _result = (int )wxIcon_GetDepth(_arg0); | |
2639 | ||
2640 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2641 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2642 | } _resultobj = Py_BuildValue("i",_result); |
2643 | return _resultobj; | |
2644 | } | |
2645 | ||
2646 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2647 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject * _resultobj; | |
2649 | wxIcon * _arg0; | |
2650 | int _arg1; | |
2651 | PyObject * _argo0 = 0; | |
2652 | char *_kwnames[] = { "self","w", NULL }; | |
2653 | ||
2654 | self = self; | |
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_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_SetWidth. Expected _wxIcon_p."); | |
2661 | return NULL; | |
2662 | } | |
2663 | } | |
2664 | { | |
2665 | wxPy_BEGIN_ALLOW_THREADS; | |
2666 | wxIcon_SetWidth(_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_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2676 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject * _resultobj; | |
2678 | wxIcon * _arg0; | |
2679 | int _arg1; | |
2680 | PyObject * _argo0 = 0; | |
2681 | char *_kwnames[] = { "self","h", NULL }; | |
2682 | ||
2683 | self = self; | |
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_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_SetHeight. Expected _wxIcon_p."); | |
2690 | return NULL; | |
2691 | } | |
2692 | } | |
2693 | { | |
2694 | wxPy_BEGIN_ALLOW_THREADS; | |
2695 | wxIcon_SetHeight(_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_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2705 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2706 | PyObject * _resultobj; | |
2707 | wxIcon * _arg0; | |
2708 | int _arg1; | |
2709 | PyObject * _argo0 = 0; | |
2710 | char *_kwnames[] = { "self","d", NULL }; | |
2711 | ||
2712 | self = self; | |
2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2714 | return NULL; | |
2715 | if (_argo0) { | |
2716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2719 | return NULL; | |
2720 | } | |
2721 | } | |
2722 | { | |
2723 | wxPy_BEGIN_ALLOW_THREADS; | |
2724 | wxIcon_SetDepth(_arg0,_arg1); | |
2725 | ||
2726 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2727 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2728 | } Py_INCREF(Py_None); |
2729 | _resultobj = Py_None; | |
2730 | return _resultobj; | |
2731 | } | |
2732 | ||
2733 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2734 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject * _resultobj; | |
2736 | wxIcon * _arg0; | |
2737 | wxSize * _arg1; | |
2738 | PyObject * _argo0 = 0; | |
2739 | wxSize temp; | |
2740 | PyObject * _obj1 = 0; | |
2741 | char *_kwnames[] = { "self","size", NULL }; | |
2742 | ||
2743 | self = self; | |
2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2745 | return NULL; | |
2746 | if (_argo0) { | |
2747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2750 | return NULL; | |
2751 | } | |
2752 | } | |
2753 | { | |
2754 | _arg1 = &temp; | |
2755 | if (! wxSize_helper(_obj1, &_arg1)) | |
2756 | return NULL; | |
2757 | } | |
2758 | { | |
2759 | wxPy_BEGIN_ALLOW_THREADS; | |
2760 | wxIcon_SetSize(_arg0,*_arg1); | |
2761 | ||
2762 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2763 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2764 | } Py_INCREF(Py_None); |
2765 | _resultobj = Py_None; | |
2766 | return _resultobj; | |
2767 | } | |
2768 | ||
96bfd053 RD |
2769 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2770 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2771 | PyObject * _resultobj; | |
2772 | wxIcon * _arg0; | |
2773 | wxBitmap * _arg1; | |
2774 | PyObject * _argo0 = 0; | |
2775 | PyObject * _argo1 = 0; | |
2776 | char *_kwnames[] = { "self","bmp", NULL }; | |
2777 | ||
2778 | self = self; | |
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2780 | return NULL; | |
2781 | if (_argo0) { | |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2785 | return NULL; | |
2786 | } | |
2787 | } | |
2788 | if (_argo1) { | |
2789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2792 | return NULL; | |
2793 | } | |
2794 | } | |
2795 | { | |
2796 | wxPy_BEGIN_ALLOW_THREADS; | |
2797 | wxIcon_CopyFromBitmap(_arg0,*_arg1); | |
2798 | ||
2799 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2800 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2801 | } Py_INCREF(Py_None); |
2802 | _resultobj = Py_None; | |
2803 | return _resultobj; | |
2804 | } | |
2805 | ||
9416aa89 RD |
2806 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2807 | wxCursor *src; | |
2808 | wxGDIObject *dest; | |
2809 | src = (wxCursor *) ptr; | |
2810 | dest = (wxGDIObject *) src; | |
2811 | return (void *) dest; | |
2812 | } | |
2813 | ||
2814 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2815 | wxCursor *src; | |
2816 | wxObject *dest; | |
2817 | src = (wxCursor *) ptr; | |
2818 | dest = (wxObject *) src; | |
2819 | return (void *) dest; | |
2820 | } | |
2821 | ||
9b3d3bc4 RD |
2822 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2823 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2824 | PyObject * _resultobj; | |
2825 | wxCursor * _result; | |
2826 | wxString * _arg0; | |
2827 | long _arg1; | |
2828 | int _arg2 = (int ) 0; | |
2829 | int _arg3 = (int ) 0; | |
2830 | PyObject * _obj0 = 0; | |
2831 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2832 | char _ptemp[128]; | |
2833 | ||
2834 | self = self; | |
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2836 | return NULL; | |
2837 | { | |
185d7c3e RD |
2838 | #if PYTHON_API_VERSION >= 1009 |
2839 | char* tmpPtr; int tmpSize; | |
2840 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2842 | return NULL; |
2843 | } | |
2844 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2845 | return NULL; | |
2846 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2847 | #else | |
9b3d3bc4 RD |
2848 | if (!PyString_Check(_obj0)) { |
2849 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2850 | return NULL; | |
2851 | } | |
185d7c3e RD |
2852 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2853 | #endif | |
9b3d3bc4 RD |
2854 | } |
2855 | { | |
2856 | wxPy_BEGIN_ALLOW_THREADS; | |
2857 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); | |
2858 | ||
2859 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2860 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2861 | } if (_result) { |
2862 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2863 | _resultobj = Py_BuildValue("s",_ptemp); | |
2864 | } else { | |
2865 | Py_INCREF(Py_None); | |
2866 | _resultobj = Py_None; | |
2867 | } | |
2868 | { | |
2869 | if (_obj0) | |
2870 | delete _arg0; | |
2871 | } | |
2872 | return _resultobj; | |
2873 | } | |
2874 | ||
2875 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2876 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2877 | PyObject * _resultobj; | |
2878 | wxCursor * _arg0; | |
2879 | PyObject * _argo0 = 0; | |
2880 | char *_kwnames[] = { "self", NULL }; | |
2881 | ||
2882 | self = self; | |
2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_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 delete_wxCursor. Expected _wxCursor_p."); | |
2889 | return NULL; | |
2890 | } | |
2891 | } | |
2892 | { | |
2893 | wxPy_BEGIN_ALLOW_THREADS; | |
2894 | delete_wxCursor(_arg0); | |
2895 | ||
2896 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2897 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2898 | } Py_INCREF(Py_None); |
2899 | _resultobj = Py_None; | |
2900 | return _resultobj; | |
2901 | } | |
2902 | ||
2903 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2904 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2905 | PyObject * _resultobj; | |
2906 | long _result; | |
2907 | wxCursor * _arg0; | |
2908 | PyObject * _argo0 = 0; | |
2909 | char *_kwnames[] = { "self", NULL }; | |
2910 | ||
2911 | self = self; | |
2912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2913 | return NULL; | |
2914 | if (_argo0) { | |
2915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2918 | return NULL; | |
2919 | } | |
2920 | } | |
2921 | { | |
2922 | wxPy_BEGIN_ALLOW_THREADS; | |
2923 | _result = (long )wxCursor_GetHandle(_arg0); | |
2924 | ||
2925 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2926 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2927 | } _resultobj = Py_BuildValue("l",_result); |
2928 | return _resultobj; | |
2929 | } | |
2930 | ||
2931 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2932 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2933 | PyObject * _resultobj; | |
2934 | wxCursor * _arg0; | |
2935 | long _arg1; | |
2936 | PyObject * _argo0 = 0; | |
2937 | char *_kwnames[] = { "self","handle", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
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_SetHandle. Expected _wxCursor_p."); | |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
2949 | { | |
2950 | wxPy_BEGIN_ALLOW_THREADS; | |
2951 | wxCursor_SetHandle(_arg0,_arg1); | |
2952 | ||
2953 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2954 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2955 | } Py_INCREF(Py_None); |
2956 | _resultobj = Py_None; | |
2957 | return _resultobj; | |
2958 | } | |
2959 | ||
2960 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2961 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2962 | PyObject * _resultobj; | |
2963 | bool _result; | |
2964 | wxCursor * _arg0; | |
2965 | PyObject * _argo0 = 0; | |
2966 | char *_kwnames[] = { "self", NULL }; | |
2967 | ||
2968 | self = self; | |
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2970 | return NULL; | |
2971 | if (_argo0) { | |
2972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2975 | return NULL; | |
2976 | } | |
2977 | } | |
2978 | { | |
2979 | wxPy_BEGIN_ALLOW_THREADS; | |
2980 | _result = (bool )wxCursor_Ok(_arg0); | |
2981 | ||
2982 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2983 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2984 | } _resultobj = Py_BuildValue("i",_result); |
2985 | return _resultobj; | |
2986 | } | |
2987 | ||
2988 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2989 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject * _resultobj; | |
2991 | int _result; | |
2992 | wxCursor * _arg0; | |
2993 | PyObject * _argo0 = 0; | |
2994 | char *_kwnames[] = { "self", NULL }; | |
2995 | ||
2996 | self = self; | |
2997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2998 | return NULL; | |
2999 | if (_argo0) { | |
3000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
3003 | return NULL; | |
3004 | } | |
3005 | } | |
3006 | { | |
3007 | wxPy_BEGIN_ALLOW_THREADS; | |
3008 | _result = (int )wxCursor_GetWidth(_arg0); | |
3009 | ||
3010 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3011 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3012 | } _resultobj = Py_BuildValue("i",_result); |
3013 | return _resultobj; | |
3014 | } | |
3015 | ||
3016 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
3017 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3018 | PyObject * _resultobj; | |
3019 | int _result; | |
3020 | wxCursor * _arg0; | |
3021 | PyObject * _argo0 = 0; | |
3022 | char *_kwnames[] = { "self", NULL }; | |
3023 | ||
3024 | self = self; | |
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
3026 | return NULL; | |
3027 | if (_argo0) { | |
3028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
3034 | { | |
3035 | wxPy_BEGIN_ALLOW_THREADS; | |
3036 | _result = (int )wxCursor_GetHeight(_arg0); | |
3037 | ||
3038 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3039 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3040 | } _resultobj = Py_BuildValue("i",_result); |
3041 | return _resultobj; | |
3042 | } | |
3043 | ||
3044 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
3045 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject * _resultobj; | |
3047 | int _result; | |
3048 | wxCursor * _arg0; | |
3049 | PyObject * _argo0 = 0; | |
3050 | char *_kwnames[] = { "self", NULL }; | |
3051 | ||
3052 | self = self; | |
3053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
3054 | return NULL; | |
3055 | if (_argo0) { | |
3056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3059 | return NULL; | |
3060 | } | |
3061 | } | |
3062 | { | |
3063 | wxPy_BEGIN_ALLOW_THREADS; | |
3064 | _result = (int )wxCursor_GetDepth(_arg0); | |
3065 | ||
3066 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3067 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3068 | } _resultobj = Py_BuildValue("i",_result); |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3073 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject * _resultobj; | |
3075 | wxCursor * _arg0; | |
3076 | int _arg1; | |
3077 | PyObject * _argo0 = 0; | |
3078 | char *_kwnames[] = { "self","w", NULL }; | |
3079 | ||
3080 | self = self; | |
3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_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_SetWidth. Expected _wxCursor_p."); | |
3087 | return NULL; | |
3088 | } | |
3089 | } | |
3090 | { | |
3091 | wxPy_BEGIN_ALLOW_THREADS; | |
3092 | wxCursor_SetWidth(_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_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3102 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject * _resultobj; | |
3104 | wxCursor * _arg0; | |
3105 | int _arg1; | |
3106 | PyObject * _argo0 = 0; | |
3107 | char *_kwnames[] = { "self","h", NULL }; | |
3108 | ||
3109 | self = self; | |
3110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_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_SetHeight. Expected _wxCursor_p."); | |
3116 | return NULL; | |
3117 | } | |
3118 | } | |
3119 | { | |
3120 | wxPy_BEGIN_ALLOW_THREADS; | |
3121 | wxCursor_SetHeight(_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_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3131 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3132 | PyObject * _resultobj; | |
3133 | wxCursor * _arg0; | |
3134 | int _arg1; | |
3135 | PyObject * _argo0 = 0; | |
3136 | char *_kwnames[] = { "self","d", NULL }; | |
3137 | ||
3138 | self = self; | |
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3140 | return NULL; | |
3141 | if (_argo0) { | |
3142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3145 | return NULL; | |
3146 | } | |
3147 | } | |
3148 | { | |
3149 | wxPy_BEGIN_ALLOW_THREADS; | |
3150 | wxCursor_SetDepth(_arg0,_arg1); | |
3151 | ||
3152 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3153 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3154 | } Py_INCREF(Py_None); |
3155 | _resultobj = Py_None; | |
3156 | return _resultobj; | |
3157 | } | |
3158 | ||
3159 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3160 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject * _resultobj; | |
3162 | wxCursor * _arg0; | |
3163 | wxSize * _arg1; | |
3164 | PyObject * _argo0 = 0; | |
3165 | wxSize temp; | |
3166 | PyObject * _obj1 = 0; | |
3167 | char *_kwnames[] = { "self","size", NULL }; | |
3168 | ||
3169 | self = self; | |
3170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3171 | return NULL; | |
3172 | if (_argo0) { | |
3173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3176 | return NULL; | |
3177 | } | |
3178 | } | |
3179 | { | |
3180 | _arg1 = &temp; | |
3181 | if (! wxSize_helper(_obj1, &_arg1)) | |
3182 | return NULL; | |
3183 | } | |
3184 | { | |
3185 | wxPy_BEGIN_ALLOW_THREADS; | |
3186 | wxCursor_SetSize(_arg0,*_arg1); | |
cf694132 RD |
3187 | |
3188 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3191 | _resultobj = Py_None; |
3192 | return _resultobj; | |
3193 | } | |
3194 | ||
6d8b4f8d RD |
3195 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
3196 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject * _resultobj; | |
3198 | bool _result; | |
3199 | wxNativeFontInfo * _arg0; | |
3200 | wxString * _arg1; | |
3201 | PyObject * _argo0 = 0; | |
3202 | PyObject * _obj1 = 0; | |
3203 | char *_kwnames[] = { "self","s", NULL }; | |
3204 | ||
3205 | self = self; | |
3206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
3207 | return NULL; | |
3208 | if (_argo0) { | |
3209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3212 | return NULL; | |
3213 | } | |
3214 | } | |
3215 | { | |
3216 | #if PYTHON_API_VERSION >= 1009 | |
3217 | char* tmpPtr; int tmpSize; | |
3218 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3219 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3220 | return NULL; | |
3221 | } | |
3222 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3223 | return NULL; | |
3224 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3225 | #else | |
3226 | if (!PyString_Check(_obj1)) { | |
3227 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3228 | return NULL; | |
3229 | } | |
3230 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3231 | #endif | |
9416aa89 | 3232 | } |
6d8b4f8d RD |
3233 | { |
3234 | wxPy_BEGIN_ALLOW_THREADS; | |
3235 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); | |
9416aa89 | 3236 | |
6d8b4f8d RD |
3237 | wxPy_END_ALLOW_THREADS; |
3238 | if (PyErr_Occurred()) return NULL; | |
3239 | } _resultobj = Py_BuildValue("i",_result); | |
3240 | { | |
3241 | if (_obj1) | |
3242 | delete _arg1; | |
3243 | } | |
3244 | return _resultobj; | |
9416aa89 RD |
3245 | } |
3246 | ||
6d8b4f8d RD |
3247 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
3248 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3249 | PyObject * _resultobj; |
6d8b4f8d RD |
3250 | wxString * _result; |
3251 | wxNativeFontInfo * _arg0; | |
3252 | PyObject * _argo0 = 0; | |
3253 | char *_kwnames[] = { "self", NULL }; | |
3254 | ||
3255 | self = self; | |
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3257 | return NULL; | |
3258 | if (_argo0) { | |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
3266 | wxPy_BEGIN_ALLOW_THREADS; | |
3267 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); | |
3268 | ||
3269 | wxPy_END_ALLOW_THREADS; | |
3270 | if (PyErr_Occurred()) return NULL; | |
3271 | }{ | |
3272 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3273 | } | |
3274 | { | |
3275 | delete _result; | |
3276 | } | |
3277 | return _resultobj; | |
3278 | } | |
3279 | ||
3280 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3281 | return self->ToString(); | |
3282 | } | |
3283 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject * _resultobj; | |
3285 | wxString * _result; | |
3286 | wxNativeFontInfo * _arg0; | |
3287 | PyObject * _argo0 = 0; | |
3288 | char *_kwnames[] = { "self", NULL }; | |
3289 | ||
3290 | self = self; | |
3291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3292 | return NULL; | |
3293 | if (_argo0) { | |
3294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3297 | return NULL; | |
3298 | } | |
3299 | } | |
3300 | { | |
3301 | wxPy_BEGIN_ALLOW_THREADS; | |
3302 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); | |
3303 | ||
3304 | wxPy_END_ALLOW_THREADS; | |
3305 | if (PyErr_Occurred()) return NULL; | |
3306 | }{ | |
3307 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3308 | } | |
3309 | { | |
3310 | delete _result; | |
3311 | } | |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
3315 | #define new_wxFontMapper() (new wxFontMapper()) | |
3316 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject * _resultobj; | |
3318 | wxFontMapper * _result; | |
3319 | char *_kwnames[] = { NULL }; | |
8ab979d7 RD |
3320 | char _ptemp[128]; |
3321 | ||
3322 | self = self; | |
6d8b4f8d | 3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) |
8ab979d7 | 3324 | return NULL; |
cf694132 RD |
3325 | { |
3326 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3327 | _result = (wxFontMapper *)new_wxFontMapper(); |
cf694132 RD |
3328 | |
3329 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3330 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3331 | } if (_result) { |
6d8b4f8d | 3332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); |
1d99702e RD |
3333 | _resultobj = Py_BuildValue("s",_ptemp); |
3334 | } else { | |
3335 | Py_INCREF(Py_None); | |
3336 | _resultobj = Py_None; | |
3337 | } | |
8ab979d7 RD |
3338 | return _resultobj; |
3339 | } | |
3340 | ||
6d8b4f8d RD |
3341 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) |
3342 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0569df0f | 3343 | PyObject * _resultobj; |
6d8b4f8d | 3344 | wxFontMapper * _arg0; |
0569df0f RD |
3345 | PyObject * _argo0 = 0; |
3346 | char *_kwnames[] = { "self", NULL }; | |
3347 | ||
3348 | self = self; | |
6d8b4f8d | 3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
0569df0f RD |
3350 | return NULL; |
3351 | if (_argo0) { | |
3352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
0569df0f RD |
3355 | return NULL; |
3356 | } | |
3357 | } | |
3358 | { | |
3359 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3360 | delete_wxFontMapper(_arg0); |
0569df0f RD |
3361 | |
3362 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3363 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3364 | } Py_INCREF(Py_None); |
3365 | _resultobj = Py_None; | |
3366 | return _resultobj; | |
3367 | } | |
3368 | ||
6d8b4f8d RD |
3369 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3370 | wxFontEncoding alt_enc; | |
3371 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3372 | return PyInt_FromLong(alt_enc); | |
3373 | else { | |
3374 | Py_INCREF(Py_None); | |
3375 | return Py_None; | |
3376 | } | |
3377 | } | |
3378 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
694759cf | 3379 | PyObject * _resultobj; |
6d8b4f8d RD |
3380 | PyObject * _result; |
3381 | wxFontMapper * _arg0; | |
3382 | wxFontEncoding _arg1; | |
3383 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3384 | bool _arg3 = (bool ) TRUE; | |
694759cf | 3385 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3386 | PyObject * _obj2 = 0; |
3387 | int tempbool3 = (int) TRUE; | |
3388 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
694759cf RD |
3389 | |
3390 | self = self; | |
6d8b4f8d | 3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
694759cf RD |
3392 | return NULL; |
3393 | if (_argo0) { | |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
694759cf RD |
3397 | return NULL; |
3398 | } | |
3399 | } | |
6d8b4f8d RD |
3400 | if (_obj2) |
3401 | { | |
3402 | #if PYTHON_API_VERSION >= 1009 | |
3403 | char* tmpPtr; int tmpSize; | |
3404 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3405 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3406 | return NULL; | |
3407 | } | |
3408 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3409 | return NULL; | |
3410 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3411 | #else | |
3412 | if (!PyString_Check(_obj2)) { | |
3413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3414 | return NULL; | |
3415 | } | |
3416 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3417 | #endif | |
3418 | } | |
3419 | _arg3 = (bool ) tempbool3; | |
694759cf RD |
3420 | { |
3421 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3422 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
694759cf RD |
3423 | |
3424 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3425 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
3426 | }{ |
3427 | _resultobj = _result; | |
3428 | } | |
3429 | { | |
3430 | if (_obj2) | |
3431 | delete _arg2; | |
3432 | } | |
694759cf RD |
3433 | return _resultobj; |
3434 | } | |
3435 | ||
6d8b4f8d RD |
3436 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
3437 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3438 | PyObject * _resultobj; |
6d8b4f8d RD |
3439 | bool _result; |
3440 | wxFontMapper * _arg0; | |
3441 | wxFontEncoding _arg1; | |
3442 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1d99702e | 3443 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3444 | PyObject * _obj2 = 0; |
3445 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
8ab979d7 RD |
3446 | |
3447 | self = self; | |
6d8b4f8d | 3448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3449 | return NULL; |
1d99702e RD |
3450 | if (_argo0) { |
3451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
8ab979d7 RD |
3454 | return NULL; |
3455 | } | |
3456 | } | |
6d8b4f8d RD |
3457 | if (_obj2) |
3458 | { | |
3459 | #if PYTHON_API_VERSION >= 1009 | |
3460 | char* tmpPtr; int tmpSize; | |
3461 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3462 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3463 | return NULL; | |
3464 | } | |
3465 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3466 | return NULL; | |
3467 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3468 | #else | |
3469 | if (!PyString_Check(_obj2)) { | |
3470 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3471 | return NULL; | |
3472 | } | |
3473 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3474 | #endif | |
3475 | } | |
8ab979d7 | 3476 | { |
cf694132 | 3477 | wxPy_BEGIN_ALLOW_THREADS; |
6d8b4f8d | 3478 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
cf694132 RD |
3479 | |
3480 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3481 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 3482 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 3483 | { |
6d8b4f8d RD |
3484 | if (_obj2) |
3485 | delete _arg2; | |
8ab979d7 RD |
3486 | } |
3487 | return _resultobj; | |
3488 | } | |
3489 | ||
6d8b4f8d RD |
3490 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
3491 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3492 | PyObject * _resultobj; |
6d8b4f8d RD |
3493 | wxFontEncoding _result; |
3494 | wxFontMapper * _arg0; | |
3495 | wxString * _arg1; | |
3496 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3497 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3498 | PyObject * _obj1 = 0; |
3499 | int tempbool2 = (int) TRUE; | |
3500 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
8ab979d7 RD |
3501 | |
3502 | self = self; | |
6d8b4f8d | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 3504 | return NULL; |
1d99702e RD |
3505 | if (_argo0) { |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3509 | return NULL; | |
3510 | } | |
3511 | } | |
3512 | { | |
3513 | #if PYTHON_API_VERSION >= 1009 | |
3514 | char* tmpPtr; int tmpSize; | |
3515 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3516 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3517 | return NULL; | |
3518 | } | |
3519 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3520 | return NULL; | |
3521 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3522 | #else | |
3523 | if (!PyString_Check(_obj1)) { | |
3524 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3525 | return NULL; | |
3526 | } | |
3527 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3528 | #endif | |
3529 | } | |
3530 | _arg2 = (bool ) tempbool2; | |
3531 | { | |
3532 | wxPy_BEGIN_ALLOW_THREADS; | |
3533 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); | |
3534 | ||
3535 | wxPy_END_ALLOW_THREADS; | |
3536 | if (PyErr_Occurred()) return NULL; | |
3537 | } _resultobj = Py_BuildValue("i",_result); | |
3538 | { | |
3539 | if (_obj1) | |
3540 | delete _arg1; | |
3541 | } | |
3542 | return _resultobj; | |
3543 | } | |
3544 | ||
3545 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3546 | PyObject * _resultobj; | |
3547 | wxString * _result; | |
3548 | wxFontEncoding _arg0; | |
3549 | char *_kwnames[] = { "encoding", NULL }; | |
3550 | ||
3551 | self = self; | |
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3553 | return NULL; | |
3554 | { | |
3555 | wxPy_BEGIN_ALLOW_THREADS; | |
3556 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); | |
3557 | ||
3558 | wxPy_END_ALLOW_THREADS; | |
3559 | if (PyErr_Occurred()) return NULL; | |
3560 | }{ | |
3561 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3562 | } | |
3563 | { | |
3564 | delete _result; | |
3565 | } | |
3566 | return _resultobj; | |
3567 | } | |
3568 | ||
3569 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3570 | PyObject * _resultobj; | |
3571 | wxString * _result; | |
3572 | wxFontEncoding _arg0; | |
3573 | char *_kwnames[] = { "encoding", NULL }; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3577 | return NULL; | |
3578 | { | |
3579 | wxPy_BEGIN_ALLOW_THREADS; | |
3580 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); | |
3581 | ||
3582 | wxPy_END_ALLOW_THREADS; | |
3583 | if (PyErr_Occurred()) return NULL; | |
3584 | }{ | |
3585 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3586 | } | |
3587 | { | |
3588 | delete _result; | |
3589 | } | |
3590 | return _resultobj; | |
3591 | } | |
3592 | ||
3593 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3594 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3595 | PyObject * _resultobj; | |
3596 | wxFontMapper * _arg0; | |
3597 | wxWindow * _arg1; | |
3598 | PyObject * _argo0 = 0; | |
3599 | PyObject * _argo1 = 0; | |
3600 | char *_kwnames[] = { "self","parent", NULL }; | |
3601 | ||
3602 | self = self; | |
3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3604 | return NULL; | |
3605 | if (_argo0) { | |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
3612 | if (_argo1) { | |
3613 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3614 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3616 | return NULL; | |
3617 | } | |
3618 | } | |
3619 | { | |
3620 | wxPy_BEGIN_ALLOW_THREADS; | |
3621 | wxFontMapper_SetDialogParent(_arg0,_arg1); | |
3622 | ||
3623 | wxPy_END_ALLOW_THREADS; | |
3624 | if (PyErr_Occurred()) return NULL; | |
3625 | } Py_INCREF(Py_None); | |
3626 | _resultobj = Py_None; | |
3627 | return _resultobj; | |
3628 | } | |
3629 | ||
3630 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3631 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3632 | PyObject * _resultobj; | |
3633 | wxFontMapper * _arg0; | |
3634 | wxString * _arg1; | |
3635 | PyObject * _argo0 = 0; | |
3636 | PyObject * _obj1 = 0; | |
3637 | char *_kwnames[] = { "self","title", NULL }; | |
3638 | ||
3639 | self = self; | |
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3641 | return NULL; | |
3642 | if (_argo0) { | |
3643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3646 | return NULL; | |
3647 | } | |
3648 | } | |
3649 | { | |
3650 | #if PYTHON_API_VERSION >= 1009 | |
3651 | char* tmpPtr; int tmpSize; | |
3652 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3653 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3654 | return NULL; | |
3655 | } | |
3656 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3657 | return NULL; | |
3658 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3659 | #else | |
3660 | if (!PyString_Check(_obj1)) { | |
3661 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3662 | return NULL; | |
3663 | } | |
3664 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3665 | #endif | |
3666 | } | |
3667 | { | |
3668 | wxPy_BEGIN_ALLOW_THREADS; | |
3669 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); | |
3670 | ||
3671 | wxPy_END_ALLOW_THREADS; | |
3672 | if (PyErr_Occurred()) return NULL; | |
3673 | } Py_INCREF(Py_None); | |
3674 | _resultobj = Py_None; | |
3675 | { | |
3676 | if (_obj1) | |
3677 | delete _arg1; | |
3678 | } | |
3679 | return _resultobj; | |
3680 | } | |
3681 | ||
3682 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3683 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject * _resultobj; | |
3685 | wxFontMapper * _arg0; | |
3686 | wxConfigBase * _arg1; | |
3687 | PyObject * _argo0 = 0; | |
3688 | PyObject * _argo1 = 0; | |
3689 | char *_kwnames[] = { "self","config", NULL }; | |
3690 | ||
3691 | self = self; | |
3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3693 | return NULL; | |
3694 | if (_argo0) { | |
3695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3698 | return NULL; | |
3699 | } | |
3700 | } | |
3701 | if (_argo1) { | |
3702 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3703 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3705 | return NULL; | |
3706 | } | |
3707 | } | |
3708 | { | |
3709 | wxPy_BEGIN_ALLOW_THREADS; | |
3710 | wxFontMapper_SetConfig(_arg0,_arg1); | |
3711 | ||
3712 | wxPy_END_ALLOW_THREADS; | |
3713 | if (PyErr_Occurred()) return NULL; | |
3714 | } Py_INCREF(Py_None); | |
3715 | _resultobj = Py_None; | |
3716 | return _resultobj; | |
3717 | } | |
3718 | ||
3719 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3720 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject * _resultobj; | |
3722 | wxFontMapper * _arg0; | |
3723 | wxString * _arg1; | |
3724 | PyObject * _argo0 = 0; | |
3725 | PyObject * _obj1 = 0; | |
3726 | char *_kwnames[] = { "self","prefix", NULL }; | |
3727 | ||
3728 | self = self; | |
3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3730 | return NULL; | |
3731 | if (_argo0) { | |
3732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3735 | return NULL; | |
3736 | } | |
3737 | } | |
3738 | { | |
3739 | #if PYTHON_API_VERSION >= 1009 | |
3740 | char* tmpPtr; int tmpSize; | |
3741 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3742 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3743 | return NULL; | |
3744 | } | |
3745 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3746 | return NULL; | |
3747 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3748 | #else | |
3749 | if (!PyString_Check(_obj1)) { | |
3750 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3751 | return NULL; | |
3752 | } | |
3753 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3754 | #endif | |
3755 | } | |
3756 | { | |
3757 | wxPy_BEGIN_ALLOW_THREADS; | |
3758 | wxFontMapper_SetConfigPath(_arg0,*_arg1); | |
3759 | ||
3760 | wxPy_END_ALLOW_THREADS; | |
3761 | if (PyErr_Occurred()) return NULL; | |
3762 | } Py_INCREF(Py_None); | |
3763 | _resultobj = Py_None; | |
3764 | { | |
3765 | if (_obj1) | |
3766 | delete _arg1; | |
3767 | } | |
3768 | return _resultobj; | |
3769 | } | |
3770 | ||
3771 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject * _resultobj; | |
3773 | wxChar * _result; | |
3774 | char *_kwnames[] = { NULL }; | |
3775 | ||
3776 | self = self; | |
3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3778 | return NULL; | |
3779 | { | |
3780 | wxPy_BEGIN_ALLOW_THREADS; | |
3781 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); | |
3782 | ||
3783 | wxPy_END_ALLOW_THREADS; | |
3784 | if (PyErr_Occurred()) return NULL; | |
3785 | } _resultobj = Py_BuildValue("s", _result); | |
3786 | return _resultobj; | |
3787 | } | |
3788 | ||
3789 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3790 | wxFont *src; | |
3791 | wxGDIObject *dest; | |
3792 | src = (wxFont *) ptr; | |
3793 | dest = (wxGDIObject *) src; | |
3794 | return (void *) dest; | |
3795 | } | |
3796 | ||
3797 | static void *SwigwxFontTowxObject(void *ptr) { | |
3798 | wxFont *src; | |
3799 | wxObject *dest; | |
3800 | src = (wxFont *) ptr; | |
3801 | dest = (wxObject *) src; | |
3802 | return (void *) dest; | |
3803 | } | |
3804 | ||
3805 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3806 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3807 | PyObject * _resultobj; | |
3808 | wxFont * _result; | |
3809 | int _arg0; | |
3810 | int _arg1; | |
3811 | int _arg2; | |
3812 | int _arg3; | |
3813 | int _arg4 = (int ) FALSE; | |
3814 | char * _arg5 = (char *) ""; | |
3815 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
3816 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
3817 | char _ptemp[128]; | |
3818 | ||
3819 | self = self; | |
3820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3821 | return NULL; | |
3822 | { | |
3823 | wxPy_BEGIN_ALLOW_THREADS; | |
3824 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3825 | ||
3826 | wxPy_END_ALLOW_THREADS; | |
3827 | if (PyErr_Occurred()) return NULL; | |
3828 | } if (_result) { | |
3829 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3830 | _resultobj = Py_BuildValue("s",_ptemp); | |
3831 | } else { | |
3832 | Py_INCREF(Py_None); | |
3833 | _resultobj = Py_None; | |
3834 | } | |
3835 | return _resultobj; | |
3836 | } | |
3837 | ||
3838 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3839 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3840 | PyObject * _resultobj; | |
3841 | wxFont * _result; | |
3842 | wxNativeFontInfo * _arg0; | |
3843 | PyObject * _argo0 = 0; | |
3844 | char *_kwnames[] = { "info", NULL }; | |
3845 | char _ptemp[128]; | |
3846 | ||
3847 | self = self; | |
3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3849 | return NULL; | |
3850 | if (_argo0) { | |
3851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3854 | return NULL; | |
3855 | } | |
3856 | } | |
3857 | { | |
3858 | wxPy_BEGIN_ALLOW_THREADS; | |
3859 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); | |
3860 | ||
3861 | wxPy_END_ALLOW_THREADS; | |
3862 | if (PyErr_Occurred()) return NULL; | |
3863 | } if (_result) { | |
3864 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3865 | _resultobj = Py_BuildValue("s",_ptemp); | |
3866 | } else { | |
3867 | Py_INCREF(Py_None); | |
3868 | _resultobj = Py_None; | |
3869 | } | |
3870 | return _resultobj; | |
3871 | } | |
3872 | ||
3873 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3874 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3875 | PyObject * _resultobj; | |
3876 | wxFont * _arg0; | |
3877 | PyObject * _argo0 = 0; | |
3878 | char *_kwnames[] = { "self", NULL }; | |
3879 | ||
3880 | self = self; | |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_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 delete_wxFont. Expected _wxFont_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | { | |
3891 | wxPy_BEGIN_ALLOW_THREADS; | |
3892 | delete_wxFont(_arg0); | |
3893 | ||
3894 | wxPy_END_ALLOW_THREADS; | |
3895 | if (PyErr_Occurred()) return NULL; | |
3896 | } Py_INCREF(Py_None); | |
3897 | _resultobj = Py_None; | |
3898 | return _resultobj; | |
3899 | } | |
3900 | ||
3901 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3902 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3903 | PyObject * _resultobj; | |
3904 | bool _result; | |
3905 | wxFont * _arg0; | |
3906 | PyObject * _argo0 = 0; | |
3907 | char *_kwnames[] = { "self", NULL }; | |
3908 | ||
3909 | self = self; | |
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3911 | return NULL; | |
3912 | if (_argo0) { | |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3916 | return NULL; | |
3917 | } | |
3918 | } | |
3919 | { | |
3920 | wxPy_BEGIN_ALLOW_THREADS; | |
3921 | _result = (bool )wxFont_Ok(_arg0); | |
3922 | ||
3923 | wxPy_END_ALLOW_THREADS; | |
3924 | if (PyErr_Occurred()) return NULL; | |
3925 | } _resultobj = Py_BuildValue("i",_result); | |
3926 | return _resultobj; | |
3927 | } | |
3928 | ||
3929 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3930 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject * _resultobj; | |
3932 | int _result; | |
3933 | wxFont * _arg0; | |
3934 | PyObject * _argo0 = 0; | |
3935 | char *_kwnames[] = { "self", NULL }; | |
3936 | ||
3937 | self = self; | |
3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3939 | return NULL; | |
3940 | if (_argo0) { | |
3941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
8ab979d7 RD |
3944 | return NULL; |
3945 | } | |
3946 | } | |
cf694132 RD |
3947 | { |
3948 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3949 | _result = (int )wxFont_GetPointSize(_arg0); |
cf694132 RD |
3950 | |
3951 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3952 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3953 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3954 | return _resultobj; |
3955 | } | |
3956 | ||
6d8b4f8d RD |
3957 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) |
3958 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3959 | PyObject * _resultobj; |
3960 | int _result; | |
3961 | wxFont * _arg0; | |
1d99702e | 3962 | PyObject * _argo0 = 0; |
1afc06c2 | 3963 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3964 | |
3965 | self = self; | |
6d8b4f8d | 3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 3967 | return NULL; |
1d99702e RD |
3968 | if (_argo0) { |
3969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 3971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
8ab979d7 RD |
3972 | return NULL; |
3973 | } | |
3974 | } | |
cf694132 RD |
3975 | { |
3976 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 3977 | _result = (int )wxFont_GetFamily(_arg0); |
cf694132 RD |
3978 | |
3979 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3980 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3981 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3982 | return _resultobj; |
3983 | } | |
3984 | ||
6d8b4f8d RD |
3985 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) |
3986 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3987 | PyObject * _resultobj; |
3988 | int _result; | |
3989 | wxFont * _arg0; | |
1d99702e | 3990 | PyObject * _argo0 = 0; |
1afc06c2 | 3991 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3992 | |
3993 | self = self; | |
6d8b4f8d | 3994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 3995 | return NULL; |
1d99702e RD |
3996 | if (_argo0) { |
3997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 3999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4000 | return NULL; |
4001 | } | |
4002 | } | |
cf694132 RD |
4003 | { |
4004 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4005 | _result = (int )wxFont_GetStyle(_arg0); |
cf694132 RD |
4006 | |
4007 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4008 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4009 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4010 | return _resultobj; |
4011 | } | |
4012 | ||
6d8b4f8d RD |
4013 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) |
4014 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4015 | PyObject * _resultobj; |
4016 | int _result; | |
4017 | wxFont * _arg0; | |
1d99702e | 4018 | PyObject * _argo0 = 0; |
1afc06c2 | 4019 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4020 | |
4021 | self = self; | |
6d8b4f8d | 4022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 4023 | return NULL; |
1d99702e RD |
4024 | if (_argo0) { |
4025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4028 | return NULL; |
4029 | } | |
4030 | } | |
cf694132 RD |
4031 | { |
4032 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4033 | _result = (int )wxFont_GetWeight(_arg0); |
cf694132 RD |
4034 | |
4035 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4036 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4037 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4038 | return _resultobj; |
4039 | } | |
4040 | ||
4041 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 4042 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4043 | PyObject * _resultobj; |
4044 | bool _result; | |
4045 | wxFont * _arg0; | |
1d99702e | 4046 | PyObject * _argo0 = 0; |
1afc06c2 | 4047 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4048 | |
4049 | self = self; | |
1afc06c2 | 4050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 4051 | return NULL; |
1d99702e RD |
4052 | if (_argo0) { |
4053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
4056 | return NULL; | |
4057 | } | |
4058 | } | |
cf694132 RD |
4059 | { |
4060 | wxPy_BEGIN_ALLOW_THREADS; | |
4061 | _result = (bool )wxFont_GetUnderlined(_arg0); | |
4062 | ||
4063 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4065 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4066 | return _resultobj; |
4067 | } | |
4068 | ||
6d8b4f8d RD |
4069 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
4070 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4071 | PyObject * _resultobj; |
6d8b4f8d | 4072 | wxString * _result; |
8ab979d7 | 4073 | wxFont * _arg0; |
1d99702e | 4074 | PyObject * _argo0 = 0; |
1afc06c2 | 4075 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4076 | |
4077 | self = self; | |
6d8b4f8d | 4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 4079 | return NULL; |
1d99702e RD |
4080 | if (_argo0) { |
4081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
8ab979d7 RD |
4084 | return NULL; |
4085 | } | |
4086 | } | |
cf694132 RD |
4087 | { |
4088 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4089 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
cf694132 RD |
4090 | |
4091 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4092 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
4093 | }{ |
4094 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4095 | } | |
4096 | { | |
4097 | delete _result; | |
4098 | } | |
8ab979d7 RD |
4099 | return _resultobj; |
4100 | } | |
4101 | ||
f0261a72 RD |
4102 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
4103 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4104 | PyObject * _resultobj; | |
4105 | wxFontEncoding _result; | |
4106 | wxFont * _arg0; | |
4107 | PyObject * _argo0 = 0; | |
4108 | char *_kwnames[] = { "self", NULL }; | |
4109 | ||
4110 | self = self; | |
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
4112 | return NULL; | |
4113 | if (_argo0) { | |
4114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
4117 | return NULL; | |
4118 | } | |
4119 | } | |
4120 | { | |
4121 | wxPy_BEGIN_ALLOW_THREADS; | |
4122 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); | |
4123 | ||
4124 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4125 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4126 | } _resultobj = Py_BuildValue("i",_result); |
4127 | return _resultobj; | |
4128 | } | |
4129 | ||
6d8b4f8d RD |
4130 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4131 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4132 | PyObject * _resultobj; |
6d8b4f8d | 4133 | wxNativeFontInfo * _result; |
8ab979d7 | 4134 | wxFont * _arg0; |
1d99702e | 4135 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4136 | char *_kwnames[] = { "self", NULL }; |
4137 | char _ptemp[128]; | |
8ab979d7 RD |
4138 | |
4139 | self = self; | |
6d8b4f8d | 4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
8ab979d7 | 4141 | return NULL; |
1d99702e RD |
4142 | if (_argo0) { |
4143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
8ab979d7 RD |
4146 | return NULL; |
4147 | } | |
4148 | } | |
4149 | { | |
6d8b4f8d RD |
4150 | wxPy_BEGIN_ALLOW_THREADS; |
4151 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); | |
4152 | ||
4153 | wxPy_END_ALLOW_THREADS; | |
4154 | if (PyErr_Occurred()) return NULL; | |
4155 | } if (_result) { | |
4156 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4157 | _resultobj = Py_BuildValue("s",_ptemp); | |
4158 | } else { | |
4159 | Py_INCREF(Py_None); | |
4160 | _resultobj = Py_None; | |
185d7c3e | 4161 | } |
6d8b4f8d RD |
4162 | return _resultobj; |
4163 | } | |
4164 | ||
4165 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
4166 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject * _resultobj; | |
4168 | wxFont * _arg0; | |
4169 | int _arg1; | |
4170 | PyObject * _argo0 = 0; | |
4171 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4172 | ||
4173 | self = self; | |
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4175 | return NULL; |
6d8b4f8d RD |
4176 | if (_argo0) { |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
8ab979d7 | 4180 | return NULL; |
6d8b4f8d | 4181 | } |
8ab979d7 | 4182 | } |
cf694132 RD |
4183 | { |
4184 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4185 | wxFont_SetPointSize(_arg0,_arg1); |
cf694132 RD |
4186 | |
4187 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4188 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4189 | } Py_INCREF(Py_None); |
8ab979d7 | 4190 | _resultobj = Py_None; |
8ab979d7 RD |
4191 | return _resultobj; |
4192 | } | |
4193 | ||
4194 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 4195 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4196 | PyObject * _resultobj; |
4197 | wxFont * _arg0; | |
4198 | int _arg1; | |
1d99702e | 4199 | PyObject * _argo0 = 0; |
1afc06c2 | 4200 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
4201 | |
4202 | self = self; | |
1afc06c2 | 4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_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")) { | |
8ab979d7 RD |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
cf694132 RD |
4212 | { |
4213 | wxPy_BEGIN_ALLOW_THREADS; | |
4214 | wxFont_SetFamily(_arg0,_arg1); | |
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_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
4224 | static PyObject *_wrap_wxFont_SetStyle(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","style", NULL }; |
8ab979d7 RD |
4230 | |
4231 | self = self; | |
6d8b4f8d | 4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_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_SetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4238 | return NULL; |
4239 | } | |
4240 | } | |
cf694132 RD |
4241 | { |
4242 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4243 | wxFont_SetStyle(_arg0,_arg1); |
cf694132 RD |
4244 | |
4245 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4246 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4247 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4248 | _resultobj = Py_None; |
4249 | return _resultobj; | |
4250 | } | |
4251 | ||
6d8b4f8d RD |
4252 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4253 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4254 | PyObject * _resultobj; |
4255 | wxFont * _arg0; | |
4256 | int _arg1; | |
1d99702e | 4257 | PyObject * _argo0 = 0; |
6d8b4f8d | 4258 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
4259 | |
4260 | self = self; | |
6d8b4f8d | 4261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4262 | return NULL; |
1d99702e RD |
4263 | if (_argo0) { |
4264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4267 | return NULL; |
4268 | } | |
4269 | } | |
cf694132 RD |
4270 | { |
4271 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d RD |
4272 | wxFont_SetWeight(_arg0,_arg1); |
4273 | ||
4274 | wxPy_END_ALLOW_THREADS; | |
4275 | if (PyErr_Occurred()) return NULL; | |
4276 | } Py_INCREF(Py_None); | |
4277 | _resultobj = Py_None; | |
4278 | return _resultobj; | |
4279 | } | |
4280 | ||
4281 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4282 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4283 | PyObject * _resultobj; | |
4284 | wxFont * _arg0; | |
4285 | wxString * _arg1; | |
4286 | PyObject * _argo0 = 0; | |
4287 | PyObject * _obj1 = 0; | |
4288 | char *_kwnames[] = { "self","faceName", NULL }; | |
4289 | ||
4290 | self = self; | |
4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4292 | return NULL; | |
4293 | if (_argo0) { | |
4294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4297 | return NULL; | |
4298 | } | |
4299 | } | |
4300 | { | |
4301 | #if PYTHON_API_VERSION >= 1009 | |
4302 | char* tmpPtr; int tmpSize; | |
4303 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4304 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4305 | return NULL; | |
4306 | } | |
4307 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4308 | return NULL; | |
4309 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4310 | #else | |
4311 | if (!PyString_Check(_obj1)) { | |
4312 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4313 | return NULL; | |
4314 | } | |
4315 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4316 | #endif | |
4317 | } | |
4318 | { | |
4319 | wxPy_BEGIN_ALLOW_THREADS; | |
4320 | wxFont_SetFaceName(_arg0,*_arg1); | |
cf694132 RD |
4321 | |
4322 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4324 | } Py_INCREF(Py_None); |
8ab979d7 | 4325 | _resultobj = Py_None; |
6d8b4f8d RD |
4326 | { |
4327 | if (_obj1) | |
4328 | delete _arg1; | |
4329 | } | |
8ab979d7 RD |
4330 | return _resultobj; |
4331 | } | |
4332 | ||
4333 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 4334 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4335 | PyObject * _resultobj; |
4336 | wxFont * _arg0; | |
4337 | bool _arg1; | |
1d99702e | 4338 | PyObject * _argo0 = 0; |
8ab979d7 | 4339 | int tempbool1; |
1afc06c2 | 4340 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
4341 | |
4342 | self = self; | |
1afc06c2 | 4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4344 | return NULL; |
1d99702e RD |
4345 | if (_argo0) { |
4346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
4349 | return NULL; | |
4350 | } | |
4351 | } | |
4352 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4353 | { |
4354 | wxPy_BEGIN_ALLOW_THREADS; | |
4355 | wxFont_SetUnderlined(_arg0,_arg1); | |
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_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
4365 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4366 | PyObject * _resultobj; |
4367 | wxFont * _arg0; | |
6d8b4f8d | 4368 | wxFontEncoding _arg1; |
1d99702e | 4369 | PyObject * _argo0 = 0; |
6d8b4f8d | 4370 | char *_kwnames[] = { "self","encoding", NULL }; |
8ab979d7 RD |
4371 | |
4372 | self = self; | |
6d8b4f8d | 4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4374 | return NULL; |
1d99702e RD |
4375 | if (_argo0) { |
4376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
8ab979d7 RD |
4379 | return NULL; |
4380 | } | |
4381 | } | |
cf694132 RD |
4382 | { |
4383 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4384 | wxFont_SetEncoding(_arg0,_arg1); |
cf694132 RD |
4385 | |
4386 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4387 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4388 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4389 | _resultobj = Py_None; |
4390 | return _resultobj; | |
4391 | } | |
4392 | ||
6d8b4f8d RD |
4393 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
4394 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 RD |
4395 | PyObject * _resultobj; |
4396 | wxFont * _arg0; | |
6d8b4f8d | 4397 | wxNativeFontInfo * _arg1; |
f0261a72 | 4398 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4399 | PyObject * _argo1 = 0; |
4400 | char *_kwnames[] = { "self","info", NULL }; | |
f0261a72 RD |
4401 | |
4402 | self = self; | |
6d8b4f8d | 4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
f0261a72 RD |
4404 | return NULL; |
4405 | if (_argo0) { | |
4406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d RD |
4408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
4409 | return NULL; | |
4410 | } | |
4411 | } | |
4412 | if (_argo1) { | |
4413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
f0261a72 RD |
4416 | return NULL; |
4417 | } | |
4418 | } | |
4419 | { | |
4420 | wxPy_BEGIN_ALLOW_THREADS; | |
6d8b4f8d | 4421 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
f0261a72 RD |
4422 | |
4423 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4424 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4425 | } Py_INCREF(Py_None); |
4426 | _resultobj = Py_None; | |
4427 | return _resultobj; | |
4428 | } | |
4429 | ||
4430 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) | |
4431 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject * _resultobj; | |
4433 | wxString * _result; | |
4434 | wxFont * _arg0; | |
4435 | PyObject * _argo0 = 0; | |
4436 | char *_kwnames[] = { "self", NULL }; | |
4437 | ||
4438 | self = self; | |
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4440 | return NULL; | |
4441 | if (_argo0) { | |
4442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4445 | return NULL; | |
4446 | } | |
4447 | } | |
4448 | { | |
4449 | wxPy_BEGIN_ALLOW_THREADS; | |
4450 | _result = new wxString (wxFont_GetFamilyString(_arg0)); | |
4451 | ||
4452 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4453 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 4454 | }{ |
eec92d76 | 4455 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
4456 | } |
4457 | { | |
4458 | delete _result; | |
4459 | } | |
4460 | return _resultobj; | |
4461 | } | |
4462 | ||
4463 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4464 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4465 | PyObject * _resultobj; | |
4466 | wxString * _result; | |
4467 | wxFont * _arg0; | |
4468 | PyObject * _argo0 = 0; | |
4469 | char *_kwnames[] = { "self", NULL }; | |
4470 | ||
4471 | self = self; | |
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4473 | return NULL; | |
4474 | if (_argo0) { | |
4475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4478 | return NULL; | |
4479 | } | |
4480 | } | |
4481 | { | |
4482 | wxPy_BEGIN_ALLOW_THREADS; | |
4483 | _result = new wxString (wxFont_GetStyleString(_arg0)); | |
4484 | ||
4485 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4486 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 4487 | }{ |
eec92d76 | 4488 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
4489 | } |
4490 | { | |
4491 | delete _result; | |
4492 | } | |
4493 | return _resultobj; | |
4494 | } | |
4495 | ||
4496 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4497 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4498 | PyObject * _resultobj; | |
4499 | wxString * _result; | |
4500 | wxFont * _arg0; | |
4501 | PyObject * _argo0 = 0; | |
4502 | char *_kwnames[] = { "self", NULL }; | |
4503 | ||
4504 | self = self; | |
4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4506 | return NULL; | |
4507 | if (_argo0) { | |
4508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4511 | return NULL; | |
4512 | } | |
4513 | } | |
4514 | { | |
4515 | wxPy_BEGIN_ALLOW_THREADS; | |
4516 | _result = new wxString (wxFont_GetWeightString(_arg0)); | |
4517 | ||
4518 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4519 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 4520 | }{ |
eec92d76 | 4521 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
4522 | } |
4523 | { | |
4524 | delete _result; | |
4525 | } | |
4526 | return _resultobj; | |
4527 | } | |
4528 | ||
6d8b4f8d RD |
4529 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
4530 | PyObject * _resultobj; | |
4531 | wxFontEncoding _result; | |
4532 | char *_kwnames[] = { NULL }; | |
4533 | ||
4534 | self = self; | |
4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4536 | return NULL; | |
4537 | { | |
4538 | wxPy_BEGIN_ALLOW_THREADS; | |
4539 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); | |
4540 | ||
4541 | wxPy_END_ALLOW_THREADS; | |
4542 | if (PyErr_Occurred()) return NULL; | |
4543 | } _resultobj = Py_BuildValue("i",_result); | |
4544 | return _resultobj; | |
4545 | } | |
4546 | ||
4547 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4548 | PyObject * _resultobj; | |
4549 | wxFontEncoding _arg0; | |
4550 | char *_kwnames[] = { "encoding", NULL }; | |
4551 | ||
4552 | self = self; | |
4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4554 | return NULL; | |
4555 | { | |
4556 | wxPy_BEGIN_ALLOW_THREADS; | |
4557 | wxFont::SetDefaultEncoding(_arg0); | |
4558 | ||
4559 | wxPy_END_ALLOW_THREADS; | |
4560 | if (PyErr_Occurred()) return NULL; | |
4561 | } Py_INCREF(Py_None); | |
4562 | _resultobj = Py_None; | |
4563 | return _resultobj; | |
4564 | } | |
4565 | ||
9416aa89 RD |
4566 | static void *SwigwxFontListTowxObject(void *ptr) { |
4567 | wxFontList *src; | |
4568 | wxObject *dest; | |
4569 | src = (wxFontList *) ptr; | |
4570 | dest = (wxObject *) src; | |
4571 | return (void *) dest; | |
4572 | } | |
4573 | ||
0569df0f RD |
4574 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
4575 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4576 | PyObject * _resultobj; | |
4577 | wxFontList * _arg0; | |
4578 | wxFont * _arg1; | |
4579 | PyObject * _argo0 = 0; | |
4580 | PyObject * _argo1 = 0; | |
4581 | char *_kwnames[] = { "self","font", NULL }; | |
4582 | ||
4583 | self = self; | |
4584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4585 | return NULL; | |
4586 | if (_argo0) { | |
4587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4590 | return NULL; | |
4591 | } | |
4592 | } | |
4593 | if (_argo1) { | |
4594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4597 | return NULL; | |
4598 | } | |
4599 | } | |
4600 | { | |
4601 | wxPy_BEGIN_ALLOW_THREADS; | |
4602 | wxFontList_AddFont(_arg0,_arg1); | |
4603 | ||
4604 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4605 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4606 | } Py_INCREF(Py_None); |
4607 | _resultobj = Py_None; | |
4608 | return _resultobj; | |
4609 | } | |
4610 | ||
4611 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4612 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4613 | PyObject * _resultobj; | |
4614 | wxFont * _result; | |
4615 | wxFontList * _arg0; | |
4616 | int _arg1; | |
4617 | int _arg2; | |
4618 | int _arg3; | |
4619 | int _arg4; | |
4620 | bool _arg5 = (bool ) FALSE; | |
4621 | char * _arg6 = (char *) NULL; | |
4622 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4623 | PyObject * _argo0 = 0; | |
4624 | int tempbool5 = (int) FALSE; | |
4625 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
4626 | char _ptemp[128]; | |
4627 | ||
4628 | self = self; | |
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
4630 | return NULL; | |
4631 | if (_argo0) { | |
4632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4635 | return NULL; | |
4636 | } | |
4637 | } | |
4638 | _arg5 = (bool ) tempbool5; | |
4639 | { | |
4640 | wxPy_BEGIN_ALLOW_THREADS; | |
4641 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
4642 | ||
4643 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4644 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4645 | } if (_result) { |
4646 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4647 | _resultobj = Py_BuildValue("s",_ptemp); | |
4648 | } else { | |
4649 | Py_INCREF(Py_None); | |
4650 | _resultobj = Py_None; | |
4651 | } | |
4652 | return _resultobj; | |
4653 | } | |
4654 | ||
4655 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4656 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4657 | PyObject * _resultobj; | |
4658 | wxFontList * _arg0; | |
4659 | wxFont * _arg1; | |
4660 | PyObject * _argo0 = 0; | |
4661 | PyObject * _argo1 = 0; | |
4662 | char *_kwnames[] = { "self","font", NULL }; | |
4663 | ||
4664 | self = self; | |
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4666 | return NULL; | |
4667 | if (_argo0) { | |
4668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4671 | return NULL; | |
4672 | } | |
4673 | } | |
4674 | if (_argo1) { | |
4675 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4678 | return NULL; | |
4679 | } | |
4680 | } | |
4681 | { | |
4682 | wxPy_BEGIN_ALLOW_THREADS; | |
4683 | wxFontList_RemoveFont(_arg0,_arg1); | |
4684 | ||
4685 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4686 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4687 | } Py_INCREF(Py_None); |
4688 | _resultobj = Py_None; | |
4689 | return _resultobj; | |
4690 | } | |
4691 | ||
2f4e9287 RD |
4692 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
4693 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject * _resultobj; | |
4695 | int _result; | |
4696 | wxFontList * _arg0; | |
4697 | PyObject * _argo0 = 0; | |
4698 | char *_kwnames[] = { "self", NULL }; | |
4699 | ||
4700 | self = self; | |
4701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
4702 | return NULL; | |
4703 | if (_argo0) { | |
4704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
4707 | return NULL; | |
4708 | } | |
4709 | } | |
4710 | { | |
4711 | wxPy_BEGIN_ALLOW_THREADS; | |
4712 | _result = (int )wxFontList_GetCount(_arg0); | |
4713 | ||
4714 | wxPy_END_ALLOW_THREADS; | |
4715 | if (PyErr_Occurred()) return NULL; | |
4716 | } _resultobj = Py_BuildValue("i",_result); | |
4717 | return _resultobj; | |
4718 | } | |
4719 | ||
9416aa89 RD |
4720 | static void *SwigwxColourTowxObject(void *ptr) { |
4721 | wxColour *src; | |
4722 | wxObject *dest; | |
4723 | src = (wxColour *) ptr; | |
4724 | dest = (wxObject *) src; | |
4725 | return (void *) dest; | |
4726 | } | |
4727 | ||
8ab979d7 | 4728 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 4729 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4730 | PyObject * _resultobj; |
4731 | wxColour * _result; | |
1d99702e RD |
4732 | unsigned char _arg0 = (unsigned char ) 0; |
4733 | unsigned char _arg1 = (unsigned char ) 0; | |
4734 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 4735 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
4736 | char _ptemp[128]; |
4737 | ||
4738 | self = self; | |
1afc06c2 | 4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 4740 | return NULL; |
cf694132 RD |
4741 | { |
4742 | wxPy_BEGIN_ALLOW_THREADS; | |
4743 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); | |
4744 | ||
4745 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4746 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4747 | } if (_result) { |
4748 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4749 | _resultobj = Py_BuildValue("s",_ptemp); | |
4750 | } else { | |
4751 | Py_INCREF(Py_None); | |
4752 | _resultobj = Py_None; | |
4753 | } | |
8ab979d7 RD |
4754 | return _resultobj; |
4755 | } | |
4756 | ||
4757 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 4758 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4759 | PyObject * _resultobj; |
4760 | wxColour * _arg0; | |
f6bcfd97 BP |
4761 | wxColour temp; |
4762 | PyObject * _obj0 = 0; | |
1afc06c2 | 4763 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4764 | |
4765 | self = self; | |
f6bcfd97 | 4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 4767 | return NULL; |
f6bcfd97 BP |
4768 | { |
4769 | _arg0 = &temp; | |
4770 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4771 | return NULL; |
f6bcfd97 | 4772 | } |
cf694132 RD |
4773 | { |
4774 | wxPy_BEGIN_ALLOW_THREADS; | |
4775 | delete_wxColour(_arg0); | |
4776 | ||
4777 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4778 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4779 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4780 | _resultobj = Py_None; |
4781 | return _resultobj; | |
4782 | } | |
4783 | ||
4784 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 4785 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4786 | PyObject * _resultobj; |
4787 | unsigned char _result; | |
4788 | wxColour * _arg0; | |
f6bcfd97 BP |
4789 | wxColour temp; |
4790 | PyObject * _obj0 = 0; | |
1afc06c2 | 4791 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4792 | |
4793 | self = self; | |
f6bcfd97 | 4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 4795 | return NULL; |
f6bcfd97 BP |
4796 | { |
4797 | _arg0 = &temp; | |
4798 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4799 | return NULL; |
f6bcfd97 | 4800 | } |
cf694132 RD |
4801 | { |
4802 | wxPy_BEGIN_ALLOW_THREADS; | |
4803 | _result = (unsigned char )wxColour_Red(_arg0); | |
4804 | ||
4805 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4807 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4808 | return _resultobj; |
4809 | } | |
4810 | ||
4811 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 4812 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4813 | PyObject * _resultobj; |
4814 | unsigned char _result; | |
4815 | wxColour * _arg0; | |
f6bcfd97 BP |
4816 | wxColour temp; |
4817 | PyObject * _obj0 = 0; | |
1afc06c2 | 4818 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4819 | |
4820 | self = self; | |
f6bcfd97 | 4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 4822 | return NULL; |
f6bcfd97 BP |
4823 | { |
4824 | _arg0 = &temp; | |
4825 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4826 | return NULL; |
f6bcfd97 | 4827 | } |
cf694132 RD |
4828 | { |
4829 | wxPy_BEGIN_ALLOW_THREADS; | |
4830 | _result = (unsigned char )wxColour_Green(_arg0); | |
4831 | ||
4832 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4833 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4834 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4835 | return _resultobj; |
4836 | } | |
4837 | ||
4838 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 4839 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4840 | PyObject * _resultobj; |
4841 | unsigned char _result; | |
4842 | wxColour * _arg0; | |
f6bcfd97 BP |
4843 | wxColour temp; |
4844 | PyObject * _obj0 = 0; | |
1afc06c2 | 4845 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4846 | |
4847 | self = self; | |
f6bcfd97 | 4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 4849 | return NULL; |
f6bcfd97 BP |
4850 | { |
4851 | _arg0 = &temp; | |
4852 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4853 | return NULL; |
f6bcfd97 | 4854 | } |
cf694132 RD |
4855 | { |
4856 | wxPy_BEGIN_ALLOW_THREADS; | |
4857 | _result = (unsigned char )wxColour_Blue(_arg0); | |
4858 | ||
4859 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4860 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4861 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
4862 | return _resultobj; |
4863 | } | |
4864 | ||
4865 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4866 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4867 | PyObject * _resultobj; |
4868 | bool _result; | |
4869 | wxColour * _arg0; | |
f6bcfd97 BP |
4870 | wxColour temp; |
4871 | PyObject * _obj0 = 0; | |
1afc06c2 | 4872 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4873 | |
4874 | self = self; | |
f6bcfd97 | 4875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 4876 | return NULL; |
f6bcfd97 BP |
4877 | { |
4878 | _arg0 = &temp; | |
4879 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4880 | return NULL; |
f6bcfd97 | 4881 | } |
cf694132 RD |
4882 | { |
4883 | wxPy_BEGIN_ALLOW_THREADS; | |
4884 | _result = (bool )wxColour_Ok(_arg0); | |
4885 | ||
4886 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4887 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4888 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4889 | return _resultobj; |
4890 | } | |
4891 | ||
4892 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 4893 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4894 | PyObject * _resultobj; |
4895 | wxColour * _arg0; | |
4896 | unsigned char _arg1; | |
4897 | unsigned char _arg2; | |
4898 | unsigned char _arg3; | |
f6bcfd97 BP |
4899 | wxColour temp; |
4900 | PyObject * _obj0 = 0; | |
1afc06c2 | 4901 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
4902 | |
4903 | self = self; | |
f6bcfd97 | 4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4905 | return NULL; |
f6bcfd97 BP |
4906 | { |
4907 | _arg0 = &temp; | |
4908 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4909 | return NULL; |
f6bcfd97 | 4910 | } |
cf694132 RD |
4911 | { |
4912 | wxPy_BEGIN_ALLOW_THREADS; | |
4913 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); | |
4914 | ||
4915 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4916 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4917 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4918 | _resultobj = Py_None; |
4919 | return _resultobj; | |
4920 | } | |
4921 | ||
4922 | static PyObject * wxColour_Get(wxColour *self) { | |
4923 | PyObject* rv = PyTuple_New(3); | |
4924 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4925 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4926 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4927 | return rv; | |
4928 | } | |
1afc06c2 | 4929 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4930 | PyObject * _resultobj; |
4931 | PyObject * _result; | |
4932 | wxColour * _arg0; | |
f6bcfd97 BP |
4933 | wxColour temp; |
4934 | PyObject * _obj0 = 0; | |
1afc06c2 | 4935 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4936 | |
4937 | self = self; | |
f6bcfd97 | 4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 4939 | return NULL; |
f6bcfd97 BP |
4940 | { |
4941 | _arg0 = &temp; | |
4942 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4943 | return NULL; |
f6bcfd97 | 4944 | } |
8ab979d7 | 4945 | { |
cf694132 RD |
4946 | wxPy_BEGIN_ALLOW_THREADS; |
4947 | _result = (PyObject *)wxColour_Get(_arg0); | |
4948 | ||
4949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4951 | }{ |
8ab979d7 RD |
4952 | _resultobj = _result; |
4953 | } | |
4954 | return _resultobj; | |
4955 | } | |
4956 | ||
9416aa89 RD |
4957 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
4958 | wxColourDatabase *src; | |
4959 | wxObject *dest; | |
4960 | src = (wxColourDatabase *) ptr; | |
4961 | dest = (wxObject *) src; | |
4962 | return (void *) dest; | |
4963 | } | |
4964 | ||
0569df0f RD |
4965 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
4966 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject * _resultobj; | |
4968 | wxColour * _result; | |
4969 | wxColourDatabase * _arg0; | |
4970 | wxString * _arg1; | |
4971 | PyObject * _argo0 = 0; | |
4972 | PyObject * _obj1 = 0; | |
4973 | char *_kwnames[] = { "self","colour", NULL }; | |
4974 | char _ptemp[128]; | |
4975 | ||
4976 | self = self; | |
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
4978 | return NULL; | |
4979 | if (_argo0) { | |
4980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
4983 | return NULL; | |
8ab979d7 | 4984 | } |
0569df0f RD |
4985 | } |
4986 | { | |
4987 | #if PYTHON_API_VERSION >= 1009 | |
4988 | char* tmpPtr; int tmpSize; | |
4989 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 4990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
4991 | return NULL; |
4992 | } | |
4993 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4994 | return NULL; | |
4995 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4996 | #else | |
4997 | if (!PyString_Check(_obj1)) { | |
4998 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4999 | return NULL; | |
5000 | } | |
5001 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5002 | #endif | |
5003 | } | |
5004 | { | |
5005 | wxPy_BEGIN_ALLOW_THREADS; | |
5006 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); | |
8ab979d7 | 5007 | |
0569df0f | 5008 | wxPy_END_ALLOW_THREADS; |
493f1553 | 5009 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5010 | } if (_result) { |
5011 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5012 | _resultobj = Py_BuildValue("s",_ptemp); | |
5013 | } else { | |
5014 | Py_INCREF(Py_None); | |
5015 | _resultobj = Py_None; | |
5016 | } | |
5017 | { | |
5018 | if (_obj1) | |
5019 | delete _arg1; | |
5020 | } | |
5021 | return _resultobj; | |
5022 | } | |
5023 | ||
5024 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
5025 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject * _resultobj; | |
5027 | wxString * _result; | |
5028 | wxColourDatabase * _arg0; | |
5029 | wxColour * _arg1; | |
5030 | PyObject * _argo0 = 0; | |
5031 | wxColour temp; | |
5032 | PyObject * _obj1 = 0; | |
5033 | char *_kwnames[] = { "self","colour", NULL }; | |
5034 | ||
5035 | self = self; | |
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
5037 | return NULL; | |
5038 | if (_argo0) { | |
5039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
5042 | return NULL; | |
5043 | } | |
5044 | } | |
5045 | { | |
5046 | _arg1 = &temp; | |
5047 | if (! wxColour_helper(_obj1, &_arg1)) | |
5048 | return NULL; | |
5049 | } | |
5050 | { | |
5051 | wxPy_BEGIN_ALLOW_THREADS; | |
5052 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); | |
5053 | ||
5054 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5055 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5056 | }{ |
5057 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5058 | } | |
5059 | { | |
5060 | delete _result; | |
5061 | } | |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
5065 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
5066 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
5067 | } | |
5068 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject * _resultobj; | |
5070 | wxColourDatabase * _arg0; | |
5071 | wxString * _arg1; | |
5072 | int _arg2; | |
5073 | int _arg3; | |
5074 | int _arg4; | |
5075 | PyObject * _argo0 = 0; | |
5076 | PyObject * _obj1 = 0; | |
5077 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5078 | ||
5079 | self = self; | |
5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5081 | return NULL; | |
5082 | if (_argo0) { | |
5083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5086 | return NULL; | |
5087 | } | |
5088 | } | |
5089 | { | |
5090 | #if PYTHON_API_VERSION >= 1009 | |
5091 | char* tmpPtr; int tmpSize; | |
5092 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5093 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
5094 | return NULL; |
5095 | } | |
5096 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5097 | return NULL; | |
5098 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5099 | #else | |
5100 | if (!PyString_Check(_obj1)) { | |
5101 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5102 | return NULL; | |
5103 | } | |
5104 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5105 | #endif | |
5106 | } | |
5107 | { | |
5108 | wxPy_BEGIN_ALLOW_THREADS; | |
5109 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
5110 | ||
5111 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5112 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5113 | } Py_INCREF(Py_None); |
5114 | _resultobj = Py_None; | |
5115 | { | |
5116 | if (_obj1) | |
5117 | delete _arg1; | |
5118 | } | |
5119 | return _resultobj; | |
5120 | } | |
5121 | ||
9416aa89 RD |
5122 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
5123 | wxPen *src; | |
5124 | wxGDIObject *dest; | |
5125 | src = (wxPen *) ptr; | |
5126 | dest = (wxGDIObject *) src; | |
5127 | return (void *) dest; | |
5128 | } | |
5129 | ||
5130 | static void *SwigwxPenTowxObject(void *ptr) { | |
5131 | wxPen *src; | |
5132 | wxObject *dest; | |
5133 | src = (wxPen *) ptr; | |
5134 | dest = (wxObject *) src; | |
5135 | return (void *) dest; | |
5136 | } | |
5137 | ||
0569df0f | 5138 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5139 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5140 | PyObject * _resultobj; |
5141 | wxPen * _result; | |
5142 | wxColour * _arg0; | |
1d99702e RD |
5143 | int _arg1 = (int ) 1; |
5144 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
5145 | wxColour temp; |
5146 | PyObject * _obj0 = 0; | |
1afc06c2 | 5147 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
5148 | char _ptemp[128]; |
5149 | ||
5150 | self = self; | |
f6bcfd97 | 5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 5152 | return NULL; |
f6bcfd97 BP |
5153 | { |
5154 | _arg0 = &temp; | |
5155 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5156 | return NULL; |
f6bcfd97 | 5157 | } |
cf694132 RD |
5158 | { |
5159 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 5160 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 RD |
5161 | |
5162 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5163 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5164 | } if (_result) { |
5165 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5166 | _resultobj = Py_BuildValue("s",_ptemp); | |
5167 | } else { | |
5168 | Py_INCREF(Py_None); | |
5169 | _resultobj = Py_None; | |
5170 | } | |
8ab979d7 RD |
5171 | return _resultobj; |
5172 | } | |
5173 | ||
0569df0f RD |
5174 | #define delete_wxPen(_swigobj) (delete _swigobj) |
5175 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject * _resultobj; | |
5177 | wxPen * _arg0; | |
5178 | PyObject * _argo0 = 0; | |
5179 | char *_kwnames[] = { "self", NULL }; | |
5180 | ||
5181 | self = self; | |
5182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5183 | return NULL; | |
5184 | if (_argo0) { | |
5185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5188 | return NULL; | |
5189 | } | |
5190 | } | |
5191 | { | |
5192 | wxPy_BEGIN_ALLOW_THREADS; | |
5193 | delete_wxPen(_arg0); | |
5194 | ||
5195 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5196 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5197 | } Py_INCREF(Py_None); |
5198 | _resultobj = Py_None; | |
5199 | return _resultobj; | |
5200 | } | |
5201 | ||
8ab979d7 | 5202 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 5203 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5204 | PyObject * _resultobj; |
5205 | int _result; | |
5206 | wxPen * _arg0; | |
1d99702e | 5207 | PyObject * _argo0 = 0; |
1afc06c2 | 5208 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5209 | |
5210 | self = self; | |
1afc06c2 | 5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 5212 | return NULL; |
1d99702e RD |
5213 | if (_argo0) { |
5214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
5217 | return NULL; | |
5218 | } | |
5219 | } | |
cf694132 RD |
5220 | { |
5221 | wxPy_BEGIN_ALLOW_THREADS; | |
5222 | _result = (int )wxPen_GetCap(_arg0); | |
5223 | ||
5224 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5226 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5227 | return _resultobj; |
5228 | } | |
5229 | ||
5230 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 5231 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5232 | PyObject * _resultobj; |
5233 | wxColour * _result; | |
5234 | wxPen * _arg0; | |
1d99702e | 5235 | PyObject * _argo0 = 0; |
1afc06c2 | 5236 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5237 | char _ptemp[128]; |
5238 | ||
5239 | self = self; | |
1afc06c2 | 5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_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_GetColour. Expected _wxPen_p."); |
5246 | return NULL; | |
5247 | } | |
5248 | } | |
cf694132 RD |
5249 | { |
5250 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 5251 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 RD |
5252 | |
5253 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5254 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5255 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5256 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5257 | return _resultobj; |
5258 | } | |
5259 | ||
8ab979d7 | 5260 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 5261 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5262 | PyObject * _resultobj; |
5263 | int _result; | |
5264 | wxPen * _arg0; | |
1d99702e | 5265 | PyObject * _argo0 = 0; |
1afc06c2 | 5266 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5267 | |
5268 | self = self; | |
1afc06c2 | 5269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 5270 | return NULL; |
1d99702e RD |
5271 | if (_argo0) { |
5272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5275 | return NULL; | |
5276 | } | |
5277 | } | |
cf694132 RD |
5278 | { |
5279 | wxPy_BEGIN_ALLOW_THREADS; | |
5280 | _result = (int )wxPen_GetJoin(_arg0); | |
5281 | ||
5282 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5283 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5284 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5285 | return _resultobj; |
5286 | } | |
5287 | ||
5288 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5289 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5290 | PyObject * _resultobj; |
5291 | int _result; | |
5292 | wxPen * _arg0; | |
1d99702e | 5293 | PyObject * _argo0 = 0; |
1afc06c2 | 5294 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5295 | |
5296 | self = self; | |
1afc06c2 | 5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5298 | return NULL; |
1d99702e RD |
5299 | if (_argo0) { |
5300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
5303 | return NULL; | |
5304 | } | |
5305 | } | |
cf694132 RD |
5306 | { |
5307 | wxPy_BEGIN_ALLOW_THREADS; | |
5308 | _result = (int )wxPen_GetStyle(_arg0); | |
5309 | ||
5310 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5311 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5312 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5313 | return _resultobj; |
5314 | } | |
5315 | ||
5316 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 5317 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5318 | PyObject * _resultobj; |
5319 | int _result; | |
5320 | wxPen * _arg0; | |
1d99702e | 5321 | PyObject * _argo0 = 0; |
1afc06c2 | 5322 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5323 | |
5324 | self = self; | |
1afc06c2 | 5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 5326 | return NULL; |
1d99702e RD |
5327 | if (_argo0) { |
5328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
cf694132 RD |
5334 | { |
5335 | wxPy_BEGIN_ALLOW_THREADS; | |
5336 | _result = (int )wxPen_GetWidth(_arg0); | |
5337 | ||
5338 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5339 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5340 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5341 | return _resultobj; |
5342 | } | |
5343 | ||
5344 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5345 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5346 | PyObject * _resultobj; |
5347 | bool _result; | |
5348 | wxPen * _arg0; | |
1d99702e | 5349 | PyObject * _argo0 = 0; |
1afc06c2 | 5350 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5351 | |
5352 | self = self; | |
1afc06c2 | 5353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 5354 | return NULL; |
1d99702e RD |
5355 | if (_argo0) { |
5356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
5359 | return NULL; | |
5360 | } | |
5361 | } | |
cf694132 RD |
5362 | { |
5363 | wxPy_BEGIN_ALLOW_THREADS; | |
5364 | _result = (bool )wxPen_Ok(_arg0); | |
5365 | ||
5366 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5367 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5368 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5369 | return _resultobj; |
5370 | } | |
5371 | ||
5372 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 5373 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5374 | PyObject * _resultobj; |
5375 | wxPen * _arg0; | |
5376 | int _arg1; | |
1d99702e | 5377 | PyObject * _argo0 = 0; |
1afc06c2 | 5378 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
5379 | |
5380 | self = self; | |
1afc06c2 | 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5382 | return NULL; |
1d99702e RD |
5383 | if (_argo0) { |
5384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
5387 | return NULL; | |
5388 | } | |
5389 | } | |
cf694132 RD |
5390 | { |
5391 | wxPy_BEGIN_ALLOW_THREADS; | |
5392 | wxPen_SetCap(_arg0,_arg1); | |
5393 | ||
5394 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5396 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5397 | _resultobj = Py_None; |
5398 | return _resultobj; | |
5399 | } | |
5400 | ||
5401 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 5402 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5403 | PyObject * _resultobj; |
5404 | wxPen * _arg0; | |
5405 | wxColour * _arg1; | |
1d99702e | 5406 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5407 | wxColour temp; |
5408 | PyObject * _obj1 = 0; | |
1afc06c2 | 5409 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
5410 | |
5411 | self = self; | |
f6bcfd97 | 5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5413 | return NULL; |
1d99702e RD |
5414 | if (_argo0) { |
5415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
5418 | return NULL; | |
5419 | } | |
5420 | } | |
f6bcfd97 BP |
5421 | { |
5422 | _arg1 = &temp; | |
5423 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 5424 | return NULL; |
f6bcfd97 | 5425 | } |
cf694132 RD |
5426 | { |
5427 | wxPy_BEGIN_ALLOW_THREADS; | |
5428 | wxPen_SetColour(_arg0,*_arg1); | |
5429 | ||
5430 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5431 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5432 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5433 | _resultobj = Py_None; |
5434 | return _resultobj; | |
5435 | } | |
5436 | ||
2ea09579 | 5437 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 5438 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5439 | PyObject * _resultobj; |
5440 | wxPen * _arg0; | |
5441 | int _arg1; | |
1d99702e | 5442 | PyObject * _argo0 = 0; |
1afc06c2 | 5443 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
5444 | |
5445 | self = self; | |
1afc06c2 | 5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5447 | return NULL; |
1d99702e RD |
5448 | if (_argo0) { |
5449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
5452 | return NULL; |
5453 | } | |
5454 | } | |
cf694132 RD |
5455 | { |
5456 | wxPy_BEGIN_ALLOW_THREADS; | |
5457 | wxPen_SetJoin(_arg0,_arg1); | |
5458 | ||
5459 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5460 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5461 | } Py_INCREF(Py_None); |
2ea09579 RD |
5462 | _resultobj = Py_None; |
5463 | return _resultobj; | |
5464 | } | |
5465 | ||
5466 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 5467 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
5468 | PyObject * _resultobj; |
5469 | wxPen * _arg0; | |
5470 | int _arg1; | |
1d99702e | 5471 | PyObject * _argo0 = 0; |
1afc06c2 | 5472 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
5473 | |
5474 | self = self; | |
1afc06c2 | 5475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5476 | return NULL; |
1d99702e RD |
5477 | if (_argo0) { |
5478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
5480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
5481 | return NULL; | |
5482 | } | |
8ab979d7 | 5483 | } |
cf694132 RD |
5484 | { |
5485 | wxPy_BEGIN_ALLOW_THREADS; | |
5486 | wxPen_SetStyle(_arg0,_arg1); | |
5487 | ||
5488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5490 | } Py_INCREF(Py_None); |
8ab979d7 | 5491 | _resultobj = Py_None; |
2ea09579 | 5492 | return _resultobj; |
8ab979d7 | 5493 | } |
2ea09579 RD |
5494 | |
5495 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 5496 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
5497 | PyObject * _resultobj; |
5498 | wxPen * _arg0; | |
5499 | int _arg1; | |
1d99702e | 5500 | PyObject * _argo0 = 0; |
1afc06c2 | 5501 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
5502 | |
5503 | self = self; | |
1afc06c2 | 5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 5505 | return NULL; |
1d99702e RD |
5506 | if (_argo0) { |
5507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
5509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
5510 | return NULL; | |
5511 | } | |
5512 | } | |
cf694132 RD |
5513 | { |
5514 | wxPy_BEGIN_ALLOW_THREADS; | |
5515 | wxPen_SetWidth(_arg0,_arg1); | |
5516 | ||
5517 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5518 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5519 | } Py_INCREF(Py_None); |
2ea09579 | 5520 | _resultobj = Py_None; |
8ab979d7 RD |
5521 | return _resultobj; |
5522 | } | |
5523 | ||
2ea09579 | 5524 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 5525 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5526 | PyObject * _resultobj; |
5527 | wxPen * _arg0; | |
5528 | int _arg1; | |
2ea09579 | 5529 | wxDash * _arg2; |
1d99702e | 5530 | PyObject * _argo0 = 0; |
2ea09579 | 5531 | PyObject * _obj2 = 0; |
eec92d76 | 5532 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
5533 | |
5534 | self = self; | |
1afc06c2 | 5535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 5536 | return NULL; |
1d99702e RD |
5537 | if (_argo0) { |
5538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
5541 | return NULL; |
5542 | } | |
5543 | } | |
2ea09579 RD |
5544 | if (_obj2) |
5545 | { | |
f6bcfd97 | 5546 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
5547 | if (_arg2 == NULL) { |
5548 | return NULL; | |
5549 | } | |
5550 | } | |
5551 | { | |
cf694132 RD |
5552 | if (_obj2) { |
5553 | _arg1 = PyList_Size(_obj2); | |
5554 | } | |
5555 | else { | |
5556 | _arg1 = 0; | |
5557 | } | |
2ea09579 | 5558 | } |
cf694132 RD |
5559 | { |
5560 | wxPy_BEGIN_ALLOW_THREADS; | |
5561 | wxPen_SetDashes(_arg0,_arg1,_arg2); | |
5562 | ||
5563 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5564 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5565 | } Py_INCREF(Py_None); |
8ab979d7 | 5566 | _resultobj = Py_None; |
2ea09579 RD |
5567 | { |
5568 | delete [] _arg2; | |
5569 | } | |
8ab979d7 RD |
5570 | return _resultobj; |
5571 | } | |
5572 | ||
6999b0d8 RD |
5573 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
5574 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5575 | PyObject * _resultobj; | |
5576 | wxBitmap * _result; | |
5577 | wxPen * _arg0; | |
5578 | PyObject * _argo0 = 0; | |
5579 | char *_kwnames[] = { "self", NULL }; | |
5580 | char _ptemp[128]; | |
5581 | ||
5582 | self = self; | |
5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
5584 | return NULL; | |
5585 | if (_argo0) { | |
5586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
5589 | return NULL; | |
5590 | } | |
5591 | } | |
5592 | { | |
5593 | wxPy_BEGIN_ALLOW_THREADS; | |
5594 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); | |
5595 | ||
5596 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5597 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
5598 | } if (_result) { |
5599 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5600 | _resultobj = Py_BuildValue("s",_ptemp); | |
5601 | } else { | |
5602 | Py_INCREF(Py_None); | |
5603 | _resultobj = Py_None; | |
5604 | } | |
5605 | return _resultobj; | |
5606 | } | |
5607 | ||
2ea09579 | 5608 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 5609 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5610 | PyObject * _resultobj; |
5611 | wxPen * _arg0; | |
2ea09579 | 5612 | wxBitmap * _arg1; |
1d99702e RD |
5613 | PyObject * _argo0 = 0; |
5614 | PyObject * _argo1 = 0; | |
1afc06c2 | 5615 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
5616 | |
5617 | self = self; | |
1afc06c2 | 5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5619 | return NULL; |
1d99702e RD |
5620 | if (_argo0) { |
5621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 5623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
5624 | return NULL; |
5625 | } | |
5626 | } | |
1d99702e RD |
5627 | if (_argo1) { |
5628 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5629 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
5631 | return NULL; | |
5632 | } | |
5633 | } | |
cf694132 RD |
5634 | { |
5635 | wxPy_BEGIN_ALLOW_THREADS; | |
5636 | wxPen_SetStipple(_arg0,*_arg1); | |
5637 | ||
5638 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5640 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5641 | _resultobj = Py_None; |
5642 | return _resultobj; | |
5643 | } | |
5644 | ||
ecc08ead RD |
5645 | static void *SwigwxPyPenTowxPen(void *ptr) { |
5646 | wxPyPen *src; | |
5647 | wxPen *dest; | |
5648 | src = (wxPyPen *) ptr; | |
5649 | dest = (wxPen *) src; | |
5650 | return (void *) dest; | |
5651 | } | |
5652 | ||
5653 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
5654 | wxPyPen *src; | |
5655 | wxGDIObject *dest; | |
5656 | src = (wxPyPen *) ptr; | |
5657 | dest = (wxGDIObject *) src; | |
5658 | return (void *) dest; | |
5659 | } | |
5660 | ||
5661 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
5662 | wxPyPen *src; | |
5663 | wxObject *dest; | |
5664 | src = (wxPyPen *) ptr; | |
5665 | dest = (wxObject *) src; | |
5666 | return (void *) dest; | |
5667 | } | |
5668 | ||
5669 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
5670 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject * _resultobj; | |
5672 | wxPyPen * _result; | |
5673 | wxColour * _arg0; | |
5674 | int _arg1 = (int ) 1; | |
5675 | int _arg2 = (int ) wxSOLID; | |
5676 | wxColour temp; | |
5677 | PyObject * _obj0 = 0; | |
5678 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5679 | char _ptemp[128]; | |
5680 | ||
5681 | self = self; | |
5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5683 | return NULL; | |
5684 | { | |
5685 | _arg0 = &temp; | |
5686 | if (! wxColour_helper(_obj0, &_arg0)) | |
5687 | return NULL; | |
5688 | } | |
5689 | { | |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
5691 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); | |
5692 | ||
5693 | wxPy_END_ALLOW_THREADS; | |
5694 | if (PyErr_Occurred()) return NULL; | |
5695 | } if (_result) { | |
5696 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
5697 | _resultobj = Py_BuildValue("s",_ptemp); | |
5698 | } else { | |
5699 | Py_INCREF(Py_None); | |
5700 | _resultobj = Py_None; | |
5701 | } | |
5702 | return _resultobj; | |
5703 | } | |
5704 | ||
5705 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
5706 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5707 | PyObject * _resultobj; | |
5708 | wxPyPen * _arg0; | |
5709 | PyObject * _argo0 = 0; | |
5710 | char *_kwnames[] = { "self", NULL }; | |
5711 | ||
5712 | self = self; | |
5713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
5714 | return NULL; | |
5715 | if (_argo0) { | |
5716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
5719 | return NULL; | |
5720 | } | |
5721 | } | |
5722 | { | |
5723 | wxPy_BEGIN_ALLOW_THREADS; | |
5724 | delete_wxPyPen(_arg0); | |
5725 | ||
5726 | wxPy_END_ALLOW_THREADS; | |
5727 | if (PyErr_Occurred()) return NULL; | |
5728 | } Py_INCREF(Py_None); | |
5729 | _resultobj = Py_None; | |
5730 | return _resultobj; | |
5731 | } | |
5732 | ||
5733 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5734 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5735 | PyObject * _resultobj; | |
5736 | wxPyPen * _arg0; | |
5737 | int _arg1; | |
5738 | wxDash * _arg2; | |
5739 | PyObject * _argo0 = 0; | |
5740 | PyObject * _obj2 = 0; | |
5741 | char *_kwnames[] = { "self","choices", NULL }; | |
5742 | ||
5743 | self = self; | |
5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5745 | return NULL; | |
5746 | if (_argo0) { | |
5747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
5750 | return NULL; | |
5751 | } | |
5752 | } | |
5753 | if (_obj2) | |
5754 | { | |
5755 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5756 | if (_arg2 == NULL) { | |
5757 | return NULL; | |
5758 | } | |
5759 | } | |
5760 | { | |
5761 | if (_obj2) { | |
5762 | _arg1 = PyList_Size(_obj2); | |
5763 | } | |
5764 | else { | |
5765 | _arg1 = 0; | |
5766 | } | |
5767 | } | |
5768 | { | |
5769 | wxPy_BEGIN_ALLOW_THREADS; | |
5770 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); | |
5771 | ||
5772 | wxPy_END_ALLOW_THREADS; | |
5773 | if (PyErr_Occurred()) return NULL; | |
5774 | } Py_INCREF(Py_None); | |
5775 | _resultobj = Py_None; | |
5776 | { | |
5777 | delete [] _arg2; | |
5778 | } | |
5779 | return _resultobj; | |
5780 | } | |
5781 | ||
9416aa89 RD |
5782 | static void *SwigwxPenListTowxObject(void *ptr) { |
5783 | wxPenList *src; | |
5784 | wxObject *dest; | |
5785 | src = (wxPenList *) ptr; | |
5786 | dest = (wxObject *) src; | |
5787 | return (void *) dest; | |
5788 | } | |
5789 | ||
0569df0f RD |
5790 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
5791 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject * _resultobj; | |
5793 | wxPenList * _arg0; | |
5794 | wxPen * _arg1; | |
5795 | PyObject * _argo0 = 0; | |
5796 | PyObject * _argo1 = 0; | |
5797 | char *_kwnames[] = { "self","pen", NULL }; | |
5798 | ||
5799 | self = self; | |
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5801 | return NULL; | |
5802 | if (_argo0) { | |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5806 | return NULL; | |
5807 | } | |
5808 | } | |
5809 | if (_argo1) { | |
5810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5813 | return NULL; | |
5814 | } | |
5815 | } | |
5816 | { | |
5817 | wxPy_BEGIN_ALLOW_THREADS; | |
5818 | wxPenList_AddPen(_arg0,_arg1); | |
5819 | ||
5820 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5821 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5822 | } Py_INCREF(Py_None); |
5823 | _resultobj = Py_None; | |
5824 | return _resultobj; | |
5825 | } | |
5826 | ||
5827 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5828 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject * _resultobj; | |
5830 | wxPen * _result; | |
5831 | wxPenList * _arg0; | |
5832 | wxColour * _arg1; | |
5833 | int _arg2; | |
5834 | int _arg3; | |
5835 | PyObject * _argo0 = 0; | |
5836 | wxColour temp; | |
5837 | PyObject * _obj1 = 0; | |
5838 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5839 | char _ptemp[128]; | |
5840 | ||
5841 | self = self; | |
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5843 | return NULL; | |
5844 | if (_argo0) { | |
5845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5848 | return NULL; | |
5849 | } | |
5850 | } | |
5851 | { | |
5852 | _arg1 = &temp; | |
5853 | if (! wxColour_helper(_obj1, &_arg1)) | |
5854 | return NULL; | |
5855 | } | |
5856 | { | |
5857 | wxPy_BEGIN_ALLOW_THREADS; | |
5858 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); | |
5859 | ||
5860 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5861 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5862 | } if (_result) { |
5863 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5864 | _resultobj = Py_BuildValue("s",_ptemp); | |
5865 | } else { | |
5866 | Py_INCREF(Py_None); | |
5867 | _resultobj = Py_None; | |
5868 | } | |
5869 | return _resultobj; | |
5870 | } | |
5871 | ||
5872 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5873 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject * _resultobj; | |
5875 | wxPenList * _arg0; | |
5876 | wxPen * _arg1; | |
5877 | PyObject * _argo0 = 0; | |
5878 | PyObject * _argo1 = 0; | |
5879 | char *_kwnames[] = { "self","pen", NULL }; | |
5880 | ||
5881 | self = self; | |
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5883 | return NULL; | |
5884 | if (_argo0) { | |
5885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5888 | return NULL; | |
5889 | } | |
5890 | } | |
5891 | if (_argo1) { | |
5892 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5893 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5895 | return NULL; | |
8ab979d7 | 5896 | } |
0569df0f RD |
5897 | } |
5898 | { | |
5899 | wxPy_BEGIN_ALLOW_THREADS; | |
5900 | wxPenList_RemovePen(_arg0,_arg1); | |
8ab979d7 | 5901 | |
0569df0f | 5902 | wxPy_END_ALLOW_THREADS; |
493f1553 | 5903 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5904 | } Py_INCREF(Py_None); |
5905 | _resultobj = Py_None; | |
5906 | return _resultobj; | |
5907 | } | |
5908 | ||
2f4e9287 RD |
5909 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
5910 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5911 | PyObject * _resultobj; | |
5912 | int _result; | |
5913 | wxPenList * _arg0; | |
5914 | PyObject * _argo0 = 0; | |
5915 | char *_kwnames[] = { "self", NULL }; | |
5916 | ||
5917 | self = self; | |
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
5919 | return NULL; | |
5920 | if (_argo0) { | |
5921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
5924 | return NULL; | |
5925 | } | |
5926 | } | |
5927 | { | |
5928 | wxPy_BEGIN_ALLOW_THREADS; | |
5929 | _result = (int )wxPenList_GetCount(_arg0); | |
5930 | ||
5931 | wxPy_END_ALLOW_THREADS; | |
5932 | if (PyErr_Occurred()) return NULL; | |
5933 | } _resultobj = Py_BuildValue("i",_result); | |
5934 | return _resultobj; | |
5935 | } | |
5936 | ||
9416aa89 RD |
5937 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5938 | wxBrush *src; | |
5939 | wxGDIObject *dest; | |
5940 | src = (wxBrush *) ptr; | |
5941 | dest = (wxGDIObject *) src; | |
5942 | return (void *) dest; | |
5943 | } | |
5944 | ||
5945 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5946 | wxBrush *src; | |
5947 | wxObject *dest; | |
5948 | src = (wxBrush *) ptr; | |
5949 | dest = (wxObject *) src; | |
5950 | return (void *) dest; | |
5951 | } | |
5952 | ||
0569df0f | 5953 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 5954 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5955 | PyObject * _resultobj; |
5956 | wxBrush * _result; | |
5957 | wxColour * _arg0; | |
1d99702e | 5958 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
5959 | wxColour temp; |
5960 | PyObject * _obj0 = 0; | |
1afc06c2 | 5961 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
5962 | char _ptemp[128]; |
5963 | ||
5964 | self = self; | |
f6bcfd97 | 5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 5966 | return NULL; |
f6bcfd97 BP |
5967 | { |
5968 | _arg0 = &temp; | |
5969 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5970 | return NULL; |
f6bcfd97 | 5971 | } |
cf694132 RD |
5972 | { |
5973 | wxPy_BEGIN_ALLOW_THREADS; | |
0569df0f | 5974 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 RD |
5975 | |
5976 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5977 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5978 | } if (_result) { |
5979 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5980 | _resultobj = Py_BuildValue("s",_ptemp); | |
5981 | } else { | |
5982 | Py_INCREF(Py_None); | |
5983 | _resultobj = Py_None; | |
5984 | } | |
8ab979d7 RD |
5985 | return _resultobj; |
5986 | } | |
5987 | ||
0569df0f RD |
5988 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
5989 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject * _resultobj; | |
5991 | wxBrush * _arg0; | |
5992 | PyObject * _argo0 = 0; | |
5993 | char *_kwnames[] = { "self", NULL }; | |
5994 | ||
5995 | self = self; | |
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5997 | return NULL; | |
5998 | if (_argo0) { | |
5999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
6002 | return NULL; | |
6003 | } | |
6004 | } | |
6005 | { | |
6006 | wxPy_BEGIN_ALLOW_THREADS; | |
6007 | delete_wxBrush(_arg0); | |
6008 | ||
6009 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6010 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6011 | } Py_INCREF(Py_None); |
6012 | _resultobj = Py_None; | |
6013 | return _resultobj; | |
6014 | } | |
6015 | ||
8ab979d7 | 6016 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 6017 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6018 | PyObject * _resultobj; |
6019 | wxColour * _result; | |
6020 | wxBrush * _arg0; | |
1d99702e | 6021 | PyObject * _argo0 = 0; |
1afc06c2 | 6022 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6023 | char _ptemp[128]; |
6024 | ||
6025 | self = self; | |
1afc06c2 | 6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 6027 | return NULL; |
1d99702e RD |
6028 | if (_argo0) { |
6029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
6032 | return NULL; | |
6033 | } | |
6034 | } | |
cf694132 RD |
6035 | { |
6036 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 6037 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 RD |
6038 | |
6039 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6040 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
6041 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6042 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6043 | return _resultobj; |
6044 | } | |
6045 | ||
6046 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 6047 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6048 | PyObject * _resultobj; |
6049 | wxBitmap * _result; | |
6050 | wxBrush * _arg0; | |
1d99702e | 6051 | PyObject * _argo0 = 0; |
1afc06c2 | 6052 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6053 | char _ptemp[128]; |
6054 | ||
6055 | self = self; | |
1afc06c2 | 6056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 6057 | return NULL; |
1d99702e RD |
6058 | if (_argo0) { |
6059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
6062 | return NULL; | |
6063 | } | |
6064 | } | |
cf694132 RD |
6065 | { |
6066 | wxPy_BEGIN_ALLOW_THREADS; | |
6067 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); | |
6068 | ||
6069 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6070 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6071 | } if (_result) { |
6072 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6073 | _resultobj = Py_BuildValue("s",_ptemp); | |
6074 | } else { | |
6075 | Py_INCREF(Py_None); | |
6076 | _resultobj = Py_None; | |
6077 | } | |
8ab979d7 RD |
6078 | return _resultobj; |
6079 | } | |
6080 | ||
6081 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 6082 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6083 | PyObject * _resultobj; |
6084 | int _result; | |
6085 | wxBrush * _arg0; | |
1d99702e | 6086 | PyObject * _argo0 = 0; |
1afc06c2 | 6087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6088 | |
6089 | self = self; | |
1afc06c2 | 6090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6091 | return NULL; |
1d99702e RD |
6092 | if (_argo0) { |
6093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
6096 | return NULL; | |
6097 | } | |
6098 | } | |
cf694132 RD |
6099 | { |
6100 | wxPy_BEGIN_ALLOW_THREADS; | |
6101 | _result = (int )wxBrush_GetStyle(_arg0); | |
6102 | ||
6103 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6105 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6106 | return _resultobj; |
6107 | } | |
6108 | ||
6109 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6110 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6111 | PyObject * _resultobj; |
6112 | bool _result; | |
6113 | wxBrush * _arg0; | |
1d99702e | 6114 | PyObject * _argo0 = 0; |
1afc06c2 | 6115 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6116 | |
6117 | self = self; | |
1afc06c2 | 6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6119 | return NULL; |
1d99702e RD |
6120 | if (_argo0) { |
6121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
6124 | return NULL; | |
6125 | } | |
6126 | } | |
cf694132 RD |
6127 | { |
6128 | wxPy_BEGIN_ALLOW_THREADS; | |
6129 | _result = (bool )wxBrush_Ok(_arg0); | |
6130 | ||
6131 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6132 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6133 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6134 | return _resultobj; |
6135 | } | |
6136 | ||
6137 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6138 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6139 | PyObject * _resultobj; |
6140 | wxBrush * _arg0; | |
6141 | wxColour * _arg1; | |
1d99702e | 6142 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6143 | wxColour temp; |
6144 | PyObject * _obj1 = 0; | |
1afc06c2 | 6145 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6146 | |
6147 | self = self; | |
f6bcfd97 | 6148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6149 | return NULL; |
1d99702e RD |
6150 | if (_argo0) { |
6151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
6154 | return NULL; | |
6155 | } | |
6156 | } | |
f6bcfd97 BP |
6157 | { |
6158 | _arg1 = &temp; | |
6159 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6160 | return NULL; |
f6bcfd97 | 6161 | } |
cf694132 RD |
6162 | { |
6163 | wxPy_BEGIN_ALLOW_THREADS; | |
6164 | wxBrush_SetColour(_arg0,*_arg1); | |
6165 | ||
6166 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6167 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6168 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6169 | _resultobj = Py_None; |
6170 | return _resultobj; | |
6171 | } | |
6172 | ||
6173 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 6174 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6175 | PyObject * _resultobj; |
6176 | wxBrush * _arg0; | |
6177 | wxBitmap * _arg1; | |
1d99702e RD |
6178 | PyObject * _argo0 = 0; |
6179 | PyObject * _argo1 = 0; | |
1afc06c2 | 6180 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6181 | |
6182 | self = self; | |
1afc06c2 | 6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6184 | return NULL; |
1d99702e RD |
6185 | if (_argo0) { |
6186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
6189 | return NULL; | |
6190 | } | |
6191 | } | |
1d99702e RD |
6192 | if (_argo1) { |
6193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
6196 | return NULL; | |
6197 | } | |
6198 | } | |
cf694132 RD |
6199 | { |
6200 | wxPy_BEGIN_ALLOW_THREADS; | |
6201 | wxBrush_SetStipple(_arg0,*_arg1); | |
6202 | ||
6203 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6205 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6206 | _resultobj = Py_None; |
6207 | return _resultobj; | |
6208 | } | |
6209 | ||
6210 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6211 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6212 | PyObject * _resultobj; |
6213 | wxBrush * _arg0; | |
6214 | int _arg1; | |
1d99702e | 6215 | PyObject * _argo0 = 0; |
1afc06c2 | 6216 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
6217 | |
6218 | self = self; | |
1afc06c2 | 6219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6220 | return NULL; |
1d99702e RD |
6221 | if (_argo0) { |
6222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
6225 | return NULL; | |
6226 | } | |
6227 | } | |
cf694132 RD |
6228 | { |
6229 | wxPy_BEGIN_ALLOW_THREADS; | |
6230 | wxBrush_SetStyle(_arg0,_arg1); | |
6231 | ||
6232 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6234 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6235 | _resultobj = Py_None; |
6236 | return _resultobj; | |
6237 | } | |
6238 | ||
6ee2116b RD |
6239 | static void *SwigwxBrushListTowxObject(void *ptr) { |
6240 | wxBrushList *src; | |
6241 | wxObject *dest; | |
6242 | src = (wxBrushList *) ptr; | |
6243 | dest = (wxObject *) src; | |
6244 | return (void *) dest; | |
6245 | } | |
6246 | ||
0569df0f RD |
6247 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6248 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6249 | PyObject * _resultobj; | |
6250 | wxBrushList * _arg0; | |
6251 | wxBrush * _arg1; | |
6252 | PyObject * _argo0 = 0; | |
6253 | PyObject * _argo1 = 0; | |
6254 | char *_kwnames[] = { "self","brush", NULL }; | |
6255 | ||
6256 | self = self; | |
6257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6258 | return NULL; | |
6259 | if (_argo0) { | |
6260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6263 | return NULL; | |
6264 | } | |
6265 | } | |
6266 | if (_argo1) { | |
6267 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6268 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6270 | return NULL; | |
6271 | } | |
6272 | } | |
6273 | { | |
6274 | wxPy_BEGIN_ALLOW_THREADS; | |
6275 | wxBrushList_AddBrush(_arg0,_arg1); | |
6276 | ||
6277 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6278 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6279 | } Py_INCREF(Py_None); |
6280 | _resultobj = Py_None; | |
6281 | return _resultobj; | |
6282 | } | |
6283 | ||
6284 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6285 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject * _resultobj; | |
6287 | wxBrush * _result; | |
6288 | wxBrushList * _arg0; | |
6289 | wxColour * _arg1; | |
6290 | int _arg2; | |
6291 | PyObject * _argo0 = 0; | |
6292 | wxColour temp; | |
6293 | PyObject * _obj1 = 0; | |
6294 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6295 | char _ptemp[128]; | |
6296 | ||
6297 | self = self; | |
6298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6299 | return NULL; | |
6300 | if (_argo0) { | |
6301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6304 | return NULL; | |
6305 | } | |
6306 | } | |
6307 | { | |
6308 | _arg1 = &temp; | |
6309 | if (! wxColour_helper(_obj1, &_arg1)) | |
6310 | return NULL; | |
6311 | } | |
6312 | { | |
6313 | wxPy_BEGIN_ALLOW_THREADS; | |
6314 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); | |
6315 | ||
6316 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6317 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6318 | } if (_result) { |
6319 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6320 | _resultobj = Py_BuildValue("s",_ptemp); | |
6321 | } else { | |
6322 | Py_INCREF(Py_None); | |
6323 | _resultobj = Py_None; | |
6324 | } | |
6325 | return _resultobj; | |
6326 | } | |
6327 | ||
6328 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6329 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject * _resultobj; | |
6331 | wxBrushList * _arg0; | |
6332 | wxBrush * _arg1; | |
6333 | PyObject * _argo0 = 0; | |
6334 | PyObject * _argo1 = 0; | |
6335 | char *_kwnames[] = { "self","brush", NULL }; | |
6336 | ||
6337 | self = self; | |
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6339 | return NULL; | |
6340 | if (_argo0) { | |
6341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6344 | return NULL; | |
6345 | } | |
6346 | } | |
6347 | if (_argo1) { | |
6348 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6349 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6351 | return NULL; | |
6352 | } | |
6353 | } | |
6354 | { | |
6355 | wxPy_BEGIN_ALLOW_THREADS; | |
6356 | wxBrushList_RemoveBrush(_arg0,_arg1); | |
6357 | ||
6358 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6359 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6360 | } Py_INCREF(Py_None); |
6361 | _resultobj = Py_None; | |
6362 | return _resultobj; | |
6363 | } | |
6364 | ||
2f4e9287 RD |
6365 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
6366 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject * _resultobj; | |
6368 | int _result; | |
6369 | wxBrushList * _arg0; | |
6370 | PyObject * _argo0 = 0; | |
6371 | char *_kwnames[] = { "self", NULL }; | |
6372 | ||
6373 | self = self; | |
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
6375 | return NULL; | |
6376 | if (_argo0) { | |
6377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
6380 | return NULL; | |
6381 | } | |
6382 | } | |
6383 | { | |
6384 | wxPy_BEGIN_ALLOW_THREADS; | |
6385 | _result = (int )wxBrushList_GetCount(_arg0); | |
6386 | ||
6387 | wxPy_END_ALLOW_THREADS; | |
6388 | if (PyErr_Occurred()) return NULL; | |
6389 | } _resultobj = Py_BuildValue("i",_result); | |
6390 | return _resultobj; | |
6391 | } | |
6392 | ||
9416aa89 RD |
6393 | static void *SwigwxDCTowxObject(void *ptr) { |
6394 | wxDC *src; | |
6395 | wxObject *dest; | |
6396 | src = (wxDC *) ptr; | |
6397 | dest = (wxObject *) src; | |
6398 | return (void *) dest; | |
6399 | } | |
6400 | ||
8ab979d7 | 6401 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 6402 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6403 | PyObject * _resultobj; |
6404 | wxDC * _arg0; | |
1d99702e | 6405 | PyObject * _argo0 = 0; |
1afc06c2 | 6406 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6407 | |
6408 | self = self; | |
1afc06c2 | 6409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 6410 | return NULL; |
1d99702e RD |
6411 | if (_argo0) { |
6412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
6415 | return NULL; | |
6416 | } | |
6417 | } | |
cf694132 RD |
6418 | { |
6419 | wxPy_BEGIN_ALLOW_THREADS; | |
6420 | delete_wxDC(_arg0); | |
6421 | ||
6422 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6423 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6424 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6425 | _resultobj = Py_None; |
6426 | return _resultobj; | |
6427 | } | |
6428 | ||
6429 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 6430 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6431 | PyObject * _resultobj; |
6432 | wxDC * _arg0; | |
1d99702e | 6433 | PyObject * _argo0 = 0; |
1afc06c2 | 6434 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6435 | |
6436 | self = self; | |
1afc06c2 | 6437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 6438 | return NULL; |
1d99702e RD |
6439 | if (_argo0) { |
6440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
6443 | return NULL; | |
6444 | } | |
6445 | } | |
cf694132 RD |
6446 | { |
6447 | wxPy_BEGIN_ALLOW_THREADS; | |
6448 | wxDC_BeginDrawing(_arg0); | |
6449 | ||
6450 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6451 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6452 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6453 | _resultobj = Py_None; |
6454 | return _resultobj; | |
6455 | } | |
6456 | ||
efc5f224 | 6457 | #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 | 6458 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6459 | PyObject * _resultobj; |
6460 | bool _result; | |
6461 | wxDC * _arg0; | |
6462 | long _arg1; | |
6463 | long _arg2; | |
6464 | long _arg3; | |
6465 | long _arg4; | |
6466 | wxDC * _arg5; | |
6467 | long _arg6; | |
6468 | long _arg7; | |
efc5f224 RD |
6469 | int _arg8 = (int ) wxCOPY; |
6470 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
6471 | PyObject * _argo0 = 0; |
6472 | PyObject * _argo5 = 0; | |
1afc06c2 | 6473 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
6474 | |
6475 | self = self; | |
1afc06c2 | 6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 6477 | return NULL; |
1d99702e RD |
6478 | if (_argo0) { |
6479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
6482 | return NULL; | |
6483 | } | |
6484 | } | |
1d99702e RD |
6485 | if (_argo5) { |
6486 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6487 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
6488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
6489 | return NULL; | |
6490 | } | |
6491 | } | |
cf694132 RD |
6492 | { |
6493 | wxPy_BEGIN_ALLOW_THREADS; | |
efc5f224 | 6494 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 RD |
6495 | |
6496 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6497 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6498 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6499 | return _resultobj; |
6500 | } | |
6501 | ||
6502 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 6503 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6504 | PyObject * _resultobj; |
6505 | wxDC * _arg0; | |
1d99702e | 6506 | PyObject * _argo0 = 0; |
1afc06c2 | 6507 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6508 | |
6509 | self = self; | |
1afc06c2 | 6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 6511 | return NULL; |
1d99702e RD |
6512 | if (_argo0) { |
6513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
6516 | return NULL; | |
6517 | } | |
6518 | } | |
cf694132 RD |
6519 | { |
6520 | wxPy_BEGIN_ALLOW_THREADS; | |
6521 | wxDC_Clear(_arg0); | |
6522 | ||
6523 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6524 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6525 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6526 | _resultobj = Py_None; |
6527 | return _resultobj; | |
6528 | } | |
6529 | ||
6530 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 6531 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6532 | PyObject * _resultobj; |
6533 | wxDC * _arg0; | |
6534 | long _arg1; | |
6535 | long _arg2; | |
1d99702e | 6536 | PyObject * _argo0 = 0; |
1afc06c2 | 6537 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6538 | |
6539 | self = self; | |
1afc06c2 | 6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6541 | return NULL; |
1d99702e RD |
6542 | if (_argo0) { |
6543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
6546 | return NULL; | |
6547 | } | |
6548 | } | |
cf694132 RD |
6549 | { |
6550 | wxPy_BEGIN_ALLOW_THREADS; | |
6551 | wxDC_CrossHair(_arg0,_arg1,_arg2); | |
6552 | ||
6553 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6555 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6556 | _resultobj = Py_None; |
6557 | return _resultobj; | |
6558 | } | |
6559 | ||
6560 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 6561 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6562 | PyObject * _resultobj; |
6563 | wxDC * _arg0; | |
1d99702e | 6564 | PyObject * _argo0 = 0; |
1afc06c2 | 6565 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6566 | |
6567 | self = self; | |
1afc06c2 | 6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 6569 | return NULL; |
1d99702e RD |
6570 | if (_argo0) { |
6571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
6574 | return NULL; | |
6575 | } | |
6576 | } | |
cf694132 RD |
6577 | { |
6578 | wxPy_BEGIN_ALLOW_THREADS; | |
6579 | wxDC_DestroyClippingRegion(_arg0); | |
6580 | ||
6581 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6582 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6583 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6584 | _resultobj = Py_None; |
6585 | return _resultobj; | |
6586 | } | |
6587 | ||
6588 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 6589 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6590 | PyObject * _resultobj; |
6591 | long _result; | |
6592 | wxDC * _arg0; | |
6593 | long _arg1; | |
1d99702e | 6594 | PyObject * _argo0 = 0; |
1afc06c2 | 6595 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
6596 | |
6597 | self = self; | |
1afc06c2 | 6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6599 | return NULL; |
1d99702e RD |
6600 | if (_argo0) { |
6601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
6604 | return NULL; | |
6605 | } | |
6606 | } | |
cf694132 RD |
6607 | { |
6608 | wxPy_BEGIN_ALLOW_THREADS; | |
6609 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); | |
6610 | ||
6611 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6613 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6614 | return _resultobj; |
6615 | } | |
6616 | ||
6617 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 6618 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6619 | PyObject * _resultobj; |
6620 | long _result; | |
6621 | wxDC * _arg0; | |
6622 | long _arg1; | |
1d99702e | 6623 | PyObject * _argo0 = 0; |
1afc06c2 | 6624 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
6625 | |
6626 | self = self; | |
1afc06c2 | 6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6628 | return NULL; |
1d99702e RD |
6629 | if (_argo0) { |
6630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
6633 | return NULL; | |
6634 | } | |
6635 | } | |
cf694132 RD |
6636 | { |
6637 | wxPy_BEGIN_ALLOW_THREADS; | |
6638 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); | |
6639 | ||
6640 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6641 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6642 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6643 | return _resultobj; |
6644 | } | |
6645 | ||
6646 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 6647 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6648 | PyObject * _resultobj; |
6649 | long _result; | |
6650 | wxDC * _arg0; | |
6651 | long _arg1; | |
1d99702e | 6652 | PyObject * _argo0 = 0; |
1afc06c2 | 6653 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
6654 | |
6655 | self = self; | |
1afc06c2 | 6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6657 | return NULL; |
1d99702e RD |
6658 | if (_argo0) { |
6659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
6662 | return NULL; | |
6663 | } | |
6664 | } | |
cf694132 RD |
6665 | { |
6666 | wxPy_BEGIN_ALLOW_THREADS; | |
6667 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); | |
6668 | ||
6669 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6670 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6671 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6672 | return _resultobj; |
6673 | } | |
6674 | ||
6675 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 6676 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6677 | PyObject * _resultobj; |
6678 | long _result; | |
6679 | wxDC * _arg0; | |
6680 | long _arg1; | |
1d99702e | 6681 | PyObject * _argo0 = 0; |
1afc06c2 | 6682 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
6683 | |
6684 | self = self; | |
1afc06c2 | 6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6686 | return NULL; |
1d99702e RD |
6687 | if (_argo0) { |
6688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
cf694132 RD |
6694 | { |
6695 | wxPy_BEGIN_ALLOW_THREADS; | |
6696 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); | |
6697 | ||
6698 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6699 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6700 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
6701 | return _resultobj; |
6702 | } | |
6703 | ||
6704 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 6705 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6706 | PyObject * _resultobj; |
6707 | wxDC * _arg0; | |
6708 | long _arg1; | |
6709 | long _arg2; | |
6710 | long _arg3; | |
6711 | long _arg4; | |
6712 | long _arg5; | |
6713 | long _arg6; | |
1d99702e | 6714 | PyObject * _argo0 = 0; |
1afc06c2 | 6715 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
6716 | |
6717 | self = self; | |
1afc06c2 | 6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 6719 | return NULL; |
1d99702e RD |
6720 | if (_argo0) { |
6721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
6724 | return NULL; | |
6725 | } | |
6726 | } | |
cf694132 RD |
6727 | { |
6728 | wxPy_BEGIN_ALLOW_THREADS; | |
6729 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6730 | ||
6731 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6733 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6734 | _resultobj = Py_None; |
6735 | return _resultobj; | |
6736 | } | |
6737 | ||
bb0054cd | 6738 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 6739 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6740 | PyObject * _resultobj; |
6741 | wxDC * _arg0; | |
6742 | long _arg1; | |
6743 | long _arg2; | |
6744 | long _arg3; | |
1d99702e | 6745 | PyObject * _argo0 = 0; |
1afc06c2 | 6746 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
6747 | |
6748 | self = self; | |
1afc06c2 | 6749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 6750 | return NULL; |
1d99702e RD |
6751 | if (_argo0) { |
6752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
6754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
6755 | return NULL; | |
6756 | } | |
6757 | } | |
6758 | { | |
6759 | wxPy_BEGIN_ALLOW_THREADS; | |
6760 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); | |
6761 | ||
6762 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6763 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6764 | } Py_INCREF(Py_None); |
6765 | _resultobj = Py_None; | |
6766 | return _resultobj; | |
6767 | } | |
6768 | ||
8ab979d7 | 6769 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 6770 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6771 | PyObject * _resultobj; |
6772 | wxDC * _arg0; | |
6773 | long _arg1; | |
6774 | long _arg2; | |
6775 | long _arg3; | |
6776 | long _arg4; | |
1d99702e | 6777 | PyObject * _argo0 = 0; |
1afc06c2 | 6778 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
6779 | |
6780 | self = self; | |
1afc06c2 | 6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 6782 | return NULL; |
1d99702e RD |
6783 | if (_argo0) { |
6784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
6787 | return NULL; | |
6788 | } | |
6789 | } | |
cf694132 RD |
6790 | { |
6791 | wxPy_BEGIN_ALLOW_THREADS; | |
6792 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6793 | ||
6794 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6795 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6796 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6797 | _resultobj = Py_None; |
6798 | return _resultobj; | |
6799 | } | |
6800 | ||
6801 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 6802 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6803 | PyObject * _resultobj; |
6804 | wxDC * _arg0; | |
6805 | long _arg1; | |
6806 | long _arg2; | |
6807 | long _arg3; | |
6808 | long _arg4; | |
6809 | long _arg5; | |
6810 | long _arg6; | |
1d99702e | 6811 | PyObject * _argo0 = 0; |
1afc06c2 | 6812 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
6813 | |
6814 | self = self; | |
1afc06c2 | 6815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 6816 | return NULL; |
1d99702e RD |
6817 | if (_argo0) { |
6818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
6821 | return NULL; | |
6822 | } | |
6823 | } | |
cf694132 RD |
6824 | { |
6825 | wxPy_BEGIN_ALLOW_THREADS; | |
6826 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
6827 | ||
6828 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6829 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6830 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6831 | _resultobj = Py_None; |
6832 | return _resultobj; | |
6833 | } | |
6834 | ||
6835 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 6836 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6837 | PyObject * _resultobj; |
6838 | wxDC * _arg0; | |
6839 | wxIcon * _arg1; | |
6840 | long _arg2; | |
6841 | long _arg3; | |
1d99702e RD |
6842 | PyObject * _argo0 = 0; |
6843 | PyObject * _argo1 = 0; | |
1afc06c2 | 6844 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
6845 | |
6846 | self = self; | |
1afc06c2 | 6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 6848 | return NULL; |
1d99702e RD |
6849 | if (_argo0) { |
6850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
1d99702e RD |
6856 | if (_argo1) { |
6857 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
cf694132 RD |
6863 | { |
6864 | wxPy_BEGIN_ALLOW_THREADS; | |
6865 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); | |
6866 | ||
6867 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6868 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6869 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6870 | _resultobj = Py_None; |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6875 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6876 | PyObject * _resultobj; |
6877 | wxDC * _arg0; | |
6878 | long _arg1; | |
6879 | long _arg2; | |
6880 | long _arg3; | |
6881 | long _arg4; | |
1d99702e | 6882 | PyObject * _argo0 = 0; |
1afc06c2 | 6883 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
6884 | |
6885 | self = self; | |
1afc06c2 | 6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 6887 | return NULL; |
1d99702e RD |
6888 | if (_argo0) { |
6889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
6892 | return NULL; | |
6893 | } | |
6894 | } | |
cf694132 RD |
6895 | { |
6896 | wxPy_BEGIN_ALLOW_THREADS; | |
6897 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6898 | ||
6899 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6900 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6901 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6902 | _resultobj = Py_None; |
6903 | return _resultobj; | |
6904 | } | |
6905 | ||
6906 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6907 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6908 | PyObject * _resultobj; |
6909 | wxDC * _arg0; | |
6910 | int _arg1; | |
6911 | wxPoint * _arg2; | |
1d99702e RD |
6912 | long _arg3 = (long ) 0; |
6913 | long _arg4 = (long ) 0; | |
6914 | PyObject * _argo0 = 0; | |
e0672e2f | 6915 | int NPOINTS; |
8ab979d7 | 6916 | PyObject * _obj2 = 0; |
eec92d76 | 6917 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
6918 | |
6919 | self = self; | |
1afc06c2 | 6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 6921 | return NULL; |
1d99702e RD |
6922 | if (_argo0) { |
6923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
6926 | return NULL; | |
6927 | } | |
6928 | } | |
6929 | if (_obj2) | |
6930 | { | |
e0672e2f RD |
6931 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6932 | if (_arg2 == NULL) { | |
6933 | return NULL; | |
6934 | } | |
8ab979d7 RD |
6935 | } |
6936 | { | |
e0672e2f | 6937 | _arg1 = NPOINTS; |
8ab979d7 | 6938 | } |
cf694132 RD |
6939 | { |
6940 | wxPy_BEGIN_ALLOW_THREADS; | |
6941 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6942 | ||
6943 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6944 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6945 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6946 | _resultobj = Py_None; |
6947 | { | |
6948 | delete [] _arg2; | |
6949 | } | |
6950 | return _resultobj; | |
6951 | } | |
6952 | ||
6953 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 6954 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6955 | PyObject * _resultobj; |
6956 | wxDC * _arg0; | |
6957 | int _arg1; | |
6958 | wxPoint * _arg2; | |
1d99702e RD |
6959 | long _arg3 = (long ) 0; |
6960 | long _arg4 = (long ) 0; | |
6961 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6962 | PyObject * _argo0 = 0; | |
e0672e2f | 6963 | int NPOINTS; |
8ab979d7 | 6964 | PyObject * _obj2 = 0; |
eec92d76 | 6965 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
6966 | |
6967 | self = self; | |
1afc06c2 | 6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 6969 | return NULL; |
1d99702e RD |
6970 | if (_argo0) { |
6971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
6974 | return NULL; | |
6975 | } | |
6976 | } | |
6977 | if (_obj2) | |
6978 | { | |
e0672e2f RD |
6979 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6980 | if (_arg2 == NULL) { | |
6981 | return NULL; | |
6982 | } | |
8ab979d7 RD |
6983 | } |
6984 | { | |
e0672e2f | 6985 | _arg1 = NPOINTS; |
8ab979d7 | 6986 | } |
cf694132 RD |
6987 | { |
6988 | wxPy_BEGIN_ALLOW_THREADS; | |
6989 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
6990 | ||
6991 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6993 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6994 | _resultobj = Py_None; |
6995 | { | |
6996 | delete [] _arg2; | |
6997 | } | |
6998 | return _resultobj; | |
6999 | } | |
7000 | ||
7001 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 7002 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7003 | PyObject * _resultobj; |
7004 | wxDC * _arg0; | |
7005 | long _arg1; | |
7006 | long _arg2; | |
1d99702e | 7007 | PyObject * _argo0 = 0; |
1afc06c2 | 7008 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7009 | |
7010 | self = self; | |
1afc06c2 | 7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7012 | return NULL; |
1d99702e RD |
7013 | if (_argo0) { |
7014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
7017 | return NULL; | |
7018 | } | |
7019 | } | |
cf694132 RD |
7020 | { |
7021 | wxPy_BEGIN_ALLOW_THREADS; | |
7022 | wxDC_DrawPoint(_arg0,_arg1,_arg2); | |
7023 | ||
7024 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7026 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7027 | _resultobj = Py_None; |
7028 | return _resultobj; | |
7029 | } | |
7030 | ||
7031 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7032 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7033 | PyObject * _resultobj; |
7034 | wxDC * _arg0; | |
7035 | long _arg1; | |
7036 | long _arg2; | |
7037 | long _arg3; | |
7038 | long _arg4; | |
1d99702e | 7039 | PyObject * _argo0 = 0; |
1afc06c2 | 7040 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7041 | |
7042 | self = self; | |
1afc06c2 | 7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7044 | return NULL; |
1d99702e RD |
7045 | if (_argo0) { |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
cf694132 RD |
7052 | { |
7053 | wxPy_BEGIN_ALLOW_THREADS; | |
7054 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7055 | ||
7056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7058 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7059 | _resultobj = Py_None; |
7060 | return _resultobj; | |
7061 | } | |
7062 | ||
6999b0d8 RD |
7063 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7064 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject * _resultobj; | |
7066 | wxDC * _arg0; | |
7067 | wxString * _arg1; | |
7068 | wxCoord _arg2; | |
7069 | wxCoord _arg3; | |
7070 | double _arg4; | |
7071 | PyObject * _argo0 = 0; | |
7072 | PyObject * _obj1 = 0; | |
7073 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7074 | ||
7075 | self = self; | |
7076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7077 | return NULL; | |
7078 | if (_argo0) { | |
7079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7082 | return NULL; | |
7083 | } | |
7084 | } | |
7085 | { | |
185d7c3e RD |
7086 | #if PYTHON_API_VERSION >= 1009 |
7087 | char* tmpPtr; int tmpSize; | |
7088 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7090 | return NULL; |
7091 | } | |
7092 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7093 | return NULL; | |
7094 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7095 | #else | |
6999b0d8 RD |
7096 | if (!PyString_Check(_obj1)) { |
7097 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7098 | return NULL; | |
7099 | } | |
185d7c3e RD |
7100 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7101 | #endif | |
6999b0d8 RD |
7102 | } |
7103 | { | |
7104 | wxPy_BEGIN_ALLOW_THREADS; | |
7105 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
7106 | ||
7107 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7108 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
7109 | } Py_INCREF(Py_None); |
7110 | _resultobj = Py_None; | |
7111 | { | |
7112 | if (_obj1) | |
7113 | delete _arg1; | |
7114 | } | |
7115 | return _resultobj; | |
7116 | } | |
7117 | ||
8ab979d7 | 7118 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 7119 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7120 | PyObject * _resultobj; |
7121 | wxDC * _arg0; | |
7122 | long _arg1; | |
7123 | long _arg2; | |
7124 | long _arg3; | |
7125 | long _arg4; | |
1d99702e RD |
7126 | long _arg5 = (long ) 20; |
7127 | PyObject * _argo0 = 0; | |
1afc06c2 | 7128 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
7129 | |
7130 | self = self; | |
1afc06c2 | 7131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7132 | return NULL; |
1d99702e RD |
7133 | if (_argo0) { |
7134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
7137 | return NULL; | |
7138 | } | |
7139 | } | |
cf694132 RD |
7140 | { |
7141 | wxPy_BEGIN_ALLOW_THREADS; | |
7142 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
7143 | ||
7144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7146 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7147 | _resultobj = Py_None; |
7148 | return _resultobj; | |
7149 | } | |
7150 | ||
7151 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 7152 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7153 | PyObject * _resultobj; |
7154 | wxDC * _arg0; | |
7155 | int _arg1; | |
7156 | wxPoint * _arg2; | |
1d99702e | 7157 | PyObject * _argo0 = 0; |
e0672e2f | 7158 | int NPOINTS; |
8ab979d7 | 7159 | PyObject * _obj2 = 0; |
eec92d76 | 7160 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
7161 | |
7162 | self = self; | |
1afc06c2 | 7163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 7164 | return NULL; |
1d99702e RD |
7165 | if (_argo0) { |
7166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
7169 | return NULL; | |
7170 | } | |
7171 | } | |
7172 | if (_obj2) | |
7173 | { | |
e0672e2f RD |
7174 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7175 | if (_arg2 == NULL) { | |
7176 | return NULL; | |
7177 | } | |
8ab979d7 RD |
7178 | } |
7179 | { | |
e0672e2f | 7180 | _arg1 = NPOINTS; |
8ab979d7 | 7181 | } |
cf694132 RD |
7182 | { |
7183 | wxPy_BEGIN_ALLOW_THREADS; | |
7184 | wxDC_DrawSpline(_arg0,_arg1,_arg2); | |
7185 | ||
7186 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7187 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7188 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7189 | _resultobj = Py_None; |
7190 | { | |
7191 | delete [] _arg2; | |
7192 | } | |
7193 | return _resultobj; | |
7194 | } | |
7195 | ||
7196 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7197 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7198 | PyObject * _resultobj; |
7199 | wxDC * _arg0; | |
7200 | wxString * _arg1; | |
7201 | long _arg2; | |
7202 | long _arg3; | |
1d99702e | 7203 | PyObject * _argo0 = 0; |
8ab979d7 | 7204 | PyObject * _obj1 = 0; |
1afc06c2 | 7205 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
7206 | |
7207 | self = self; | |
1afc06c2 | 7208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 7209 | return NULL; |
1d99702e RD |
7210 | if (_argo0) { |
7211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
7214 | return NULL; | |
7215 | } | |
7216 | } | |
7217 | { | |
185d7c3e RD |
7218 | #if PYTHON_API_VERSION >= 1009 |
7219 | char* tmpPtr; int tmpSize; | |
7220 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7221 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7222 | return NULL; |
7223 | } | |
7224 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7225 | return NULL; | |
7226 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7227 | #else | |
8ab979d7 RD |
7228 | if (!PyString_Check(_obj1)) { |
7229 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7230 | return NULL; | |
7231 | } | |
185d7c3e RD |
7232 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7233 | #endif | |
8ab979d7 | 7234 | } |
cf694132 RD |
7235 | { |
7236 | wxPy_BEGIN_ALLOW_THREADS; | |
7237 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); | |
7238 | ||
7239 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7240 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7241 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7242 | _resultobj = Py_None; |
7243 | { | |
7244 | if (_obj1) | |
7245 | delete _arg1; | |
7246 | } | |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
7250 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 7251 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7252 | PyObject * _resultobj; |
7253 | wxDC * _arg0; | |
1d99702e | 7254 | PyObject * _argo0 = 0; |
1afc06c2 | 7255 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7256 | |
7257 | self = self; | |
1afc06c2 | 7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 7259 | return NULL; |
1d99702e RD |
7260 | if (_argo0) { |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
7264 | return NULL; | |
7265 | } | |
7266 | } | |
cf694132 RD |
7267 | { |
7268 | wxPy_BEGIN_ALLOW_THREADS; | |
7269 | wxDC_EndDoc(_arg0); | |
7270 | ||
7271 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7273 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7274 | _resultobj = Py_None; |
7275 | return _resultobj; | |
7276 | } | |
7277 | ||
7278 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 7279 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7280 | PyObject * _resultobj; |
7281 | wxDC * _arg0; | |
1d99702e | 7282 | PyObject * _argo0 = 0; |
1afc06c2 | 7283 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7284 | |
7285 | self = self; | |
1afc06c2 | 7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7287 | return NULL; |
1d99702e RD |
7288 | if (_argo0) { |
7289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
7292 | return NULL; | |
7293 | } | |
7294 | } | |
cf694132 RD |
7295 | { |
7296 | wxPy_BEGIN_ALLOW_THREADS; | |
7297 | wxDC_EndDrawing(_arg0); | |
7298 | ||
7299 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7302 | _resultobj = Py_None; |
7303 | return _resultobj; | |
7304 | } | |
7305 | ||
7306 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 7307 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7308 | PyObject * _resultobj; |
7309 | wxDC * _arg0; | |
1d99702e | 7310 | PyObject * _argo0 = 0; |
1afc06c2 | 7311 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7312 | |
7313 | self = self; | |
1afc06c2 | 7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 7315 | return NULL; |
1d99702e RD |
7316 | if (_argo0) { |
7317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
7320 | return NULL; | |
7321 | } | |
7322 | } | |
cf694132 RD |
7323 | { |
7324 | wxPy_BEGIN_ALLOW_THREADS; | |
7325 | wxDC_EndPage(_arg0); | |
7326 | ||
7327 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7329 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7330 | _resultobj = Py_None; |
7331 | return _resultobj; | |
7332 | } | |
7333 | ||
be4d9c1f | 7334 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7335 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
7336 | PyObject * _resultobj; |
7337 | wxDC * _arg0; | |
7338 | long _arg1; | |
7339 | long _arg2; | |
7340 | wxColour * _arg3; | |
1d99702e RD |
7341 | int _arg4 = (int ) wxFLOOD_SURFACE; |
7342 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
7343 | wxColour temp; |
7344 | PyObject * _obj3 = 0; | |
1afc06c2 | 7345 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
7346 | |
7347 | self = self; | |
f6bcfd97 | 7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 7349 | return NULL; |
1d99702e RD |
7350 | if (_argo0) { |
7351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
7353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
7354 | return NULL; | |
7355 | } | |
7356 | } | |
f6bcfd97 BP |
7357 | { |
7358 | _arg3 = &temp; | |
7359 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 7360 | return NULL; |
f6bcfd97 | 7361 | } |
cf694132 RD |
7362 | { |
7363 | wxPy_BEGIN_ALLOW_THREADS; | |
7364 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
7365 | ||
7366 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7367 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7368 | } Py_INCREF(Py_None); |
be4d9c1f RD |
7369 | _resultobj = Py_None; |
7370 | return _resultobj; | |
7371 | } | |
7372 | ||
8ab979d7 | 7373 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 7374 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7375 | PyObject * _resultobj; |
7376 | wxBrush * _result; | |
7377 | wxDC * _arg0; | |
1d99702e | 7378 | PyObject * _argo0 = 0; |
1afc06c2 | 7379 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7380 | char _ptemp[128]; |
7381 | ||
7382 | self = self; | |
1afc06c2 | 7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 7384 | return NULL; |
1d99702e RD |
7385 | if (_argo0) { |
7386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
7389 | return NULL; | |
7390 | } | |
7391 | } | |
cf694132 RD |
7392 | { |
7393 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 7394 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
cf694132 RD |
7395 | |
7396 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7397 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
7398 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7399 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7400 | return _resultobj; |
7401 | } | |
7402 | ||
7403 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 7404 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7405 | PyObject * _resultobj; |
7406 | wxBrush * _result; | |
7407 | wxDC * _arg0; | |
1d99702e | 7408 | PyObject * _argo0 = 0; |
1afc06c2 | 7409 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7410 | char _ptemp[128]; |
7411 | ||
7412 | self = self; | |
1afc06c2 | 7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 7414 | return NULL; |
1d99702e RD |
7415 | if (_argo0) { |
7416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
7419 | return NULL; | |
7420 | } | |
7421 | } | |
cf694132 RD |
7422 | { |
7423 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 7424 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
cf694132 RD |
7425 | |
7426 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7427 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
7428 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7429 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7430 | return _resultobj; |
7431 | } | |
7432 | ||
7433 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 7434 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7435 | PyObject * _resultobj; |
7436 | long _result; | |
7437 | wxDC * _arg0; | |
1d99702e | 7438 | PyObject * _argo0 = 0; |
1afc06c2 | 7439 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7440 | |
7441 | self = self; | |
1afc06c2 | 7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 7443 | return NULL; |
1d99702e RD |
7444 | if (_argo0) { |
7445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
7448 | return NULL; | |
7449 | } | |
7450 | } | |
cf694132 RD |
7451 | { |
7452 | wxPy_BEGIN_ALLOW_THREADS; | |
7453 | _result = (long )wxDC_GetCharHeight(_arg0); | |
7454 | ||
7455 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7457 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7458 | return _resultobj; |
7459 | } | |
7460 | ||
7461 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 7462 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7463 | PyObject * _resultobj; |
7464 | long _result; | |
7465 | wxDC * _arg0; | |
1d99702e | 7466 | PyObject * _argo0 = 0; |
1afc06c2 | 7467 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7468 | |
7469 | self = self; | |
1afc06c2 | 7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 7471 | return NULL; |
1d99702e RD |
7472 | if (_argo0) { |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
cf694132 RD |
7479 | { |
7480 | wxPy_BEGIN_ALLOW_THREADS; | |
7481 | _result = (long )wxDC_GetCharWidth(_arg0); | |
7482 | ||
7483 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7485 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7486 | return _resultobj; |
7487 | } | |
7488 | ||
7489 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7490 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7491 | PyObject * _resultobj; |
7492 | wxDC * _arg0; | |
7493 | long * _arg1; | |
7494 | long temp; | |
7495 | long * _arg2; | |
7496 | long temp0; | |
7497 | long * _arg3; | |
7498 | long temp1; | |
7499 | long * _arg4; | |
7500 | long temp2; | |
1d99702e | 7501 | PyObject * _argo0 = 0; |
1afc06c2 | 7502 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7503 | |
7504 | self = self; | |
7505 | { | |
7506 | _arg1 = &temp; | |
7507 | } | |
7508 | { | |
7509 | _arg2 = &temp0; | |
7510 | } | |
7511 | { | |
7512 | _arg3 = &temp1; | |
7513 | } | |
7514 | { | |
7515 | _arg4 = &temp2; | |
7516 | } | |
1afc06c2 | 7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 7518 | return NULL; |
1d99702e RD |
7519 | if (_argo0) { |
7520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
7523 | return NULL; | |
7524 | } | |
7525 | } | |
cf694132 RD |
7526 | { |
7527 | wxPy_BEGIN_ALLOW_THREADS; | |
7528 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7529 | ||
7530 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7531 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7532 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7533 | _resultobj = Py_None; |
7534 | { | |
7535 | PyObject *o; | |
7536 | o = PyInt_FromLong((long) (*_arg1)); | |
7537 | _resultobj = t_output_helper(_resultobj, o); | |
7538 | } | |
7539 | { | |
7540 | PyObject *o; | |
7541 | o = PyInt_FromLong((long) (*_arg2)); | |
7542 | _resultobj = t_output_helper(_resultobj, o); | |
7543 | } | |
7544 | { | |
7545 | PyObject *o; | |
7546 | o = PyInt_FromLong((long) (*_arg3)); | |
7547 | _resultobj = t_output_helper(_resultobj, o); | |
7548 | } | |
7549 | { | |
7550 | PyObject *o; | |
7551 | o = PyInt_FromLong((long) (*_arg4)); | |
7552 | _resultobj = t_output_helper(_resultobj, o); | |
7553 | } | |
7554 | return _resultobj; | |
7555 | } | |
7556 | ||
7557 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 7558 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7559 | PyObject * _resultobj; |
7560 | wxFont * _result; | |
7561 | wxDC * _arg0; | |
1d99702e | 7562 | PyObject * _argo0 = 0; |
1afc06c2 | 7563 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7564 | char _ptemp[128]; |
7565 | ||
7566 | self = self; | |
1afc06c2 | 7567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 7568 | return NULL; |
1d99702e RD |
7569 | if (_argo0) { |
7570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
7573 | return NULL; | |
7574 | } | |
7575 | } | |
cf694132 RD |
7576 | { |
7577 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 7578 | _result = new wxFont (wxDC_GetFont(_arg0)); |
cf694132 RD |
7579 | |
7580 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7581 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
7582 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
7583 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7584 | return _resultobj; |
7585 | } | |
7586 | ||
7587 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 7588 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7589 | PyObject * _resultobj; |
7590 | int _result; | |
7591 | wxDC * _arg0; | |
1d99702e | 7592 | PyObject * _argo0 = 0; |
1afc06c2 | 7593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7594 | |
7595 | self = self; | |
1afc06c2 | 7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 7597 | return NULL; |
1d99702e RD |
7598 | if (_argo0) { |
7599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
7602 | return NULL; | |
7603 | } | |
7604 | } | |
cf694132 RD |
7605 | { |
7606 | wxPy_BEGIN_ALLOW_THREADS; | |
7607 | _result = (int )wxDC_GetLogicalFunction(_arg0); | |
7608 | ||
7609 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7611 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7612 | return _resultobj; |
7613 | } | |
7614 | ||
eec92d76 RD |
7615 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
7616 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7617 | PyObject * _resultobj; | |
7618 | wxDC * _arg0; | |
7619 | double * _arg1; | |
7620 | double temp; | |
7621 | double * _arg2; | |
7622 | double temp0; | |
7623 | PyObject * _argo0 = 0; | |
7624 | char *_kwnames[] = { "self", NULL }; | |
7625 | ||
7626 | self = self; | |
7627 | { | |
7628 | _arg1 = &temp; | |
7629 | } | |
7630 | { | |
7631 | _arg2 = &temp0; | |
7632 | } | |
7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7634 | return NULL; | |
7635 | if (_argo0) { | |
7636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7639 | return NULL; | |
7640 | } | |
7641 | } | |
7642 | { | |
7643 | wxPy_BEGIN_ALLOW_THREADS; | |
7644 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); | |
7645 | ||
7646 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7647 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7648 | } Py_INCREF(Py_None); |
7649 | _resultobj = Py_None; | |
7650 | { | |
7651 | PyObject *o; | |
7652 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7653 | _resultobj = t_output_helper(_resultobj, o); | |
7654 | } | |
7655 | { | |
7656 | PyObject *o; | |
7657 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7658 | _resultobj = t_output_helper(_resultobj, o); | |
7659 | } | |
7660 | return _resultobj; | |
7661 | } | |
7662 | ||
8ab979d7 | 7663 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 7664 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7665 | PyObject * _resultobj; |
7666 | int _result; | |
7667 | wxDC * _arg0; | |
1d99702e | 7668 | PyObject * _argo0 = 0; |
1afc06c2 | 7669 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7670 | |
7671 | self = self; | |
1afc06c2 | 7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 7673 | return NULL; |
1d99702e RD |
7674 | if (_argo0) { |
7675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
7678 | return NULL; | |
7679 | } | |
7680 | } | |
cf694132 RD |
7681 | { |
7682 | wxPy_BEGIN_ALLOW_THREADS; | |
7683 | _result = (int )wxDC_GetMapMode(_arg0); | |
7684 | ||
7685 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7686 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7687 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7688 | return _resultobj; |
7689 | } | |
7690 | ||
7691 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 7692 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7693 | PyObject * _resultobj; |
7694 | bool _result; | |
7695 | wxDC * _arg0; | |
1d99702e | 7696 | PyObject * _argo0 = 0; |
1afc06c2 | 7697 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7698 | |
7699 | self = self; | |
1afc06c2 | 7700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 7701 | return NULL; |
1d99702e RD |
7702 | if (_argo0) { |
7703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
7706 | return NULL; | |
7707 | } | |
7708 | } | |
cf694132 RD |
7709 | { |
7710 | wxPy_BEGIN_ALLOW_THREADS; | |
7711 | _result = (bool )wxDC_GetOptimization(_arg0); | |
7712 | ||
7713 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7714 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7715 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7716 | return _resultobj; |
7717 | } | |
7718 | ||
7719 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 7720 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7721 | PyObject * _resultobj; |
7722 | wxPen * _result; | |
7723 | wxDC * _arg0; | |
1d99702e | 7724 | PyObject * _argo0 = 0; |
1afc06c2 | 7725 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7726 | char _ptemp[128]; |
7727 | ||
7728 | self = self; | |
1afc06c2 | 7729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 7730 | return NULL; |
1d99702e RD |
7731 | if (_argo0) { |
7732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
7735 | return NULL; | |
7736 | } | |
7737 | } | |
cf694132 RD |
7738 | { |
7739 | wxPy_BEGIN_ALLOW_THREADS; | |
c5943253 | 7740 | _result = new wxPen (wxDC_GetPen(_arg0)); |
cf694132 RD |
7741 | |
7742 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7743 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
7744 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
7745 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7746 | return _resultobj; |
7747 | } | |
7748 | ||
7749 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7750 | wxColour* wc = new wxColour(); | |
7751 | self->GetPixel(x, y, wc); | |
7752 | return wc; | |
7753 | } | |
1afc06c2 | 7754 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7755 | PyObject * _resultobj; |
7756 | wxColour * _result; | |
7757 | wxDC * _arg0; | |
7758 | long _arg1; | |
7759 | long _arg2; | |
1d99702e | 7760 | PyObject * _argo0 = 0; |
1afc06c2 | 7761 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7762 | char _ptemp[128]; |
7763 | ||
7764 | self = self; | |
1afc06c2 | 7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7766 | return NULL; |
1d99702e RD |
7767 | if (_argo0) { |
7768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
7771 | return NULL; | |
7772 | } | |
7773 | } | |
cf694132 RD |
7774 | { |
7775 | wxPy_BEGIN_ALLOW_THREADS; | |
7776 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); | |
7777 | ||
7778 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7779 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7780 | } if (_result) { |
7781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7782 | _resultobj = Py_BuildValue("s",_ptemp); | |
7783 | } else { | |
7784 | Py_INCREF(Py_None); | |
7785 | _resultobj = Py_None; | |
7786 | } | |
8ab979d7 RD |
7787 | return _resultobj; |
7788 | } | |
7789 | ||
bb0054cd | 7790 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 7791 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7792 | PyObject * _resultobj; |
7793 | wxDC * _arg0; | |
7794 | int * _arg1; | |
7795 | int temp; | |
7796 | int * _arg2; | |
7797 | int temp0; | |
1d99702e | 7798 | PyObject * _argo0 = 0; |
1afc06c2 | 7799 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7800 | |
7801 | self = self; | |
7802 | { | |
7803 | _arg1 = &temp; | |
7804 | } | |
7805 | { | |
7806 | _arg2 = &temp0; | |
7807 | } | |
1afc06c2 | 7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 7809 | return NULL; |
1d99702e RD |
7810 | if (_argo0) { |
7811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 7813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
7814 | return NULL; |
7815 | } | |
7816 | } | |
cf694132 RD |
7817 | { |
7818 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 7819 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 RD |
7820 | |
7821 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7822 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7823 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7824 | _resultobj = Py_None; |
7825 | { | |
7826 | PyObject *o; | |
7827 | o = PyInt_FromLong((long) (*_arg1)); | |
7828 | _resultobj = t_output_helper(_resultobj, o); | |
7829 | } | |
7830 | { | |
7831 | PyObject *o; | |
7832 | o = PyInt_FromLong((long) (*_arg2)); | |
7833 | _resultobj = t_output_helper(_resultobj, o); | |
7834 | } | |
7835 | return _resultobj; | |
7836 | } | |
7837 | ||
bb0054cd | 7838 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 7839 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7840 | PyObject * _resultobj; |
7841 | wxSize * _result; | |
7842 | wxDC * _arg0; | |
1d99702e | 7843 | PyObject * _argo0 = 0; |
1afc06c2 | 7844 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
7845 | char _ptemp[128]; |
7846 | ||
7847 | self = self; | |
1afc06c2 | 7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 7849 | return NULL; |
1d99702e RD |
7850 | if (_argo0) { |
7851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
7854 | return NULL; | |
7855 | } | |
7856 | } | |
7857 | { | |
7858 | wxPy_BEGIN_ALLOW_THREADS; | |
7859 | _result = new wxSize (wxDC_GetSize(_arg0)); | |
7860 | ||
7861 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7862 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7863 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7864 | _resultobj = Py_BuildValue("s",_ptemp); | |
7865 | return _resultobj; | |
7866 | } | |
7867 | ||
eec92d76 RD |
7868 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
7869 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject * _resultobj; | |
7871 | wxSize * _result; | |
7872 | wxDC * _arg0; | |
7873 | PyObject * _argo0 = 0; | |
7874 | char *_kwnames[] = { "self", NULL }; | |
7875 | char _ptemp[128]; | |
7876 | ||
7877 | self = self; | |
7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7879 | return NULL; | |
7880 | if (_argo0) { | |
7881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7884 | return NULL; | |
7885 | } | |
7886 | } | |
7887 | { | |
7888 | wxPy_BEGIN_ALLOW_THREADS; | |
7889 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); | |
7890 | ||
7891 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7892 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7893 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
7894 | _resultobj = Py_BuildValue("s",_ptemp); | |
7895 | return _resultobj; | |
7896 | } | |
7897 | ||
8ab979d7 | 7898 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 7899 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7900 | PyObject * _resultobj; |
7901 | wxColour * _result; | |
7902 | wxDC * _arg0; | |
1d99702e | 7903 | PyObject * _argo0 = 0; |
1afc06c2 | 7904 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7905 | char _ptemp[128]; |
7906 | ||
7907 | self = self; | |
1afc06c2 | 7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 7909 | return NULL; |
1d99702e RD |
7910 | if (_argo0) { |
7911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
7914 | return NULL; | |
7915 | } | |
7916 | } | |
cf694132 RD |
7917 | { |
7918 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 7919 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 RD |
7920 | |
7921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7922 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
7923 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
7924 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
7925 | return _resultobj; |
7926 | } | |
7927 | ||
af309447 | 7928 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7929 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7930 | PyObject * _resultobj; |
7931 | wxDC * _arg0; | |
7932 | wxString * _arg1; | |
7933 | long * _arg2; | |
7934 | long temp; | |
7935 | long * _arg3; | |
7936 | long temp0; | |
1d99702e | 7937 | PyObject * _argo0 = 0; |
af309447 | 7938 | PyObject * _obj1 = 0; |
1afc06c2 | 7939 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
7940 | |
7941 | self = self; | |
7942 | { | |
7943 | _arg2 = &temp; | |
7944 | } | |
7945 | { | |
7946 | _arg3 = &temp0; | |
7947 | } | |
1afc06c2 | 7948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 7949 | return NULL; |
1d99702e RD |
7950 | if (_argo0) { |
7951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
7953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
7954 | return NULL; | |
7955 | } | |
7956 | } | |
7957 | { | |
185d7c3e RD |
7958 | #if PYTHON_API_VERSION >= 1009 |
7959 | char* tmpPtr; int tmpSize; | |
7960 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7962 | return NULL; |
7963 | } | |
7964 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7965 | return NULL; | |
7966 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7967 | #else | |
af309447 RD |
7968 | if (!PyString_Check(_obj1)) { |
7969 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7970 | return NULL; | |
7971 | } | |
185d7c3e RD |
7972 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7973 | #endif | |
af309447 | 7974 | } |
cf694132 RD |
7975 | { |
7976 | wxPy_BEGIN_ALLOW_THREADS; | |
7977 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
7978 | ||
7979 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7980 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7981 | } Py_INCREF(Py_None); |
af309447 RD |
7982 | _resultobj = Py_None; |
7983 | { | |
7984 | PyObject *o; | |
7985 | o = PyInt_FromLong((long) (*_arg2)); | |
7986 | _resultobj = t_output_helper(_resultobj, o); | |
7987 | } | |
7988 | { | |
7989 | PyObject *o; | |
7990 | o = PyInt_FromLong((long) (*_arg3)); | |
7991 | _resultobj = t_output_helper(_resultobj, o); | |
7992 | } | |
7993 | { | |
7994 | if (_obj1) | |
7995 | delete _arg1; | |
7996 | } | |
7997 | return _resultobj; | |
7998 | } | |
7999 | ||
8000 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 8001 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8002 | PyObject * _resultobj; |
8003 | wxDC * _arg0; | |
8004 | wxString * _arg1; | |
8005 | long * _arg2; | |
8006 | long temp; | |
8007 | long * _arg3; | |
8008 | long temp0; | |
8009 | long * _arg4; | |
8010 | long temp1; | |
8011 | long * _arg5; | |
8012 | long temp2; | |
1d99702e RD |
8013 | wxFont * _arg6 = (wxFont *) NULL; |
8014 | PyObject * _argo0 = 0; | |
8ab979d7 | 8015 | PyObject * _obj1 = 0; |
1d99702e | 8016 | PyObject * _argo6 = 0; |
1afc06c2 | 8017 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
8018 | |
8019 | self = self; | |
8020 | { | |
8021 | _arg2 = &temp; | |
8022 | } | |
8023 | { | |
8024 | _arg3 = &temp0; | |
8025 | } | |
8026 | { | |
8027 | _arg4 = &temp1; | |
8028 | } | |
8029 | { | |
8030 | _arg5 = &temp2; | |
8031 | } | |
1afc06c2 | 8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 8033 | return NULL; |
1d99702e RD |
8034 | if (_argo0) { |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
8038 | return NULL; |
8039 | } | |
8040 | } | |
8041 | { | |
185d7c3e RD |
8042 | #if PYTHON_API_VERSION >= 1009 |
8043 | char* tmpPtr; int tmpSize; | |
8044 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8045 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8046 | return NULL; |
8047 | } | |
8048 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8049 | return NULL; | |
8050 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8051 | #else | |
8ab979d7 RD |
8052 | if (!PyString_Check(_obj1)) { |
8053 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8054 | return NULL; | |
8055 | } | |
185d7c3e RD |
8056 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8057 | #endif | |
8ab979d7 | 8058 | } |
1d99702e RD |
8059 | if (_argo6) { |
8060 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8061 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
8062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
8063 | return NULL; | |
8064 | } | |
8065 | } | |
cf694132 RD |
8066 | { |
8067 | wxPy_BEGIN_ALLOW_THREADS; | |
8068 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
8069 | ||
8070 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8071 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8072 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8073 | _resultobj = Py_None; |
8074 | { | |
8075 | PyObject *o; | |
8076 | o = PyInt_FromLong((long) (*_arg2)); | |
8077 | _resultobj = t_output_helper(_resultobj, o); | |
8078 | } | |
8079 | { | |
8080 | PyObject *o; | |
8081 | o = PyInt_FromLong((long) (*_arg3)); | |
8082 | _resultobj = t_output_helper(_resultobj, o); | |
8083 | } | |
8084 | { | |
8085 | PyObject *o; | |
8086 | o = PyInt_FromLong((long) (*_arg4)); | |
8087 | _resultobj = t_output_helper(_resultobj, o); | |
8088 | } | |
8089 | { | |
8090 | PyObject *o; | |
8091 | o = PyInt_FromLong((long) (*_arg5)); | |
8092 | _resultobj = t_output_helper(_resultobj, o); | |
8093 | } | |
8094 | { | |
8095 | if (_obj1) | |
8096 | delete _arg1; | |
8097 | } | |
8098 | return _resultobj; | |
8099 | } | |
8100 | ||
8101 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 8102 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8103 | PyObject * _resultobj; |
8104 | wxColour * _result; | |
8105 | wxDC * _arg0; | |
1d99702e | 8106 | PyObject * _argo0 = 0; |
1afc06c2 | 8107 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8108 | char _ptemp[128]; |
8109 | ||
8110 | self = self; | |
1afc06c2 | 8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 8112 | return NULL; |
1d99702e RD |
8113 | if (_argo0) { |
8114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
8117 | return NULL; | |
8118 | } | |
8119 | } | |
cf694132 RD |
8120 | { |
8121 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 8122 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 RD |
8123 | |
8124 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8125 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8126 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8127 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8128 | return _resultobj; |
8129 | } | |
8130 | ||
eec92d76 RD |
8131 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
8132 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8133 | PyObject * _resultobj; | |
8134 | wxDC * _arg0; | |
8135 | double * _arg1; | |
8136 | double temp; | |
8137 | double * _arg2; | |
8138 | double temp0; | |
8139 | PyObject * _argo0 = 0; | |
8140 | char *_kwnames[] = { "self", NULL }; | |
8141 | ||
8142 | self = self; | |
8143 | { | |
8144 | _arg1 = &temp; | |
8145 | } | |
8146 | { | |
8147 | _arg2 = &temp0; | |
8148 | } | |
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8150 | return NULL; | |
8151 | if (_argo0) { | |
8152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8155 | return NULL; | |
8156 | } | |
8157 | } | |
8158 | { | |
8159 | wxPy_BEGIN_ALLOW_THREADS; | |
8160 | wxDC_GetUserScale(_arg0,_arg1,_arg2); | |
8161 | ||
8162 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8163 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8164 | } Py_INCREF(Py_None); |
8165 | _resultobj = Py_None; | |
8166 | { | |
8167 | PyObject *o; | |
8168 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8169 | _resultobj = t_output_helper(_resultobj, o); | |
8170 | } | |
8171 | { | |
8172 | PyObject *o; | |
8173 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8174 | _resultobj = t_output_helper(_resultobj, o); | |
8175 | } | |
8176 | return _resultobj; | |
8177 | } | |
8178 | ||
8ab979d7 | 8179 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 8180 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8181 | PyObject * _resultobj; |
8182 | long _result; | |
8183 | wxDC * _arg0; | |
8184 | long _arg1; | |
1d99702e | 8185 | PyObject * _argo0 = 0; |
1afc06c2 | 8186 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8187 | |
8188 | self = self; | |
1afc06c2 | 8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8190 | return NULL; |
1d99702e RD |
8191 | if (_argo0) { |
8192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
8195 | return NULL; | |
8196 | } | |
8197 | } | |
cf694132 RD |
8198 | { |
8199 | wxPy_BEGIN_ALLOW_THREADS; | |
8200 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); | |
8201 | ||
8202 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8203 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8204 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8205 | return _resultobj; |
8206 | } | |
8207 | ||
8208 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 8209 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8210 | PyObject * _resultobj; |
8211 | long _result; | |
8212 | wxDC * _arg0; | |
8213 | long _arg1; | |
1d99702e | 8214 | PyObject * _argo0 = 0; |
1afc06c2 | 8215 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8216 | |
8217 | self = self; | |
1afc06c2 | 8218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8219 | return NULL; |
1d99702e RD |
8220 | if (_argo0) { |
8221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
8224 | return NULL; | |
8225 | } | |
8226 | } | |
cf694132 RD |
8227 | { |
8228 | wxPy_BEGIN_ALLOW_THREADS; | |
8229 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); | |
8230 | ||
8231 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8233 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8234 | return _resultobj; |
8235 | } | |
8236 | ||
8237 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 8238 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8239 | PyObject * _resultobj; |
8240 | long _result; | |
8241 | wxDC * _arg0; | |
8242 | long _arg1; | |
1d99702e | 8243 | PyObject * _argo0 = 0; |
1afc06c2 | 8244 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8245 | |
8246 | self = self; | |
1afc06c2 | 8247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8248 | return NULL; |
1d99702e RD |
8249 | if (_argo0) { |
8250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
8253 | return NULL; | |
8254 | } | |
8255 | } | |
cf694132 RD |
8256 | { |
8257 | wxPy_BEGIN_ALLOW_THREADS; | |
8258 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); | |
8259 | ||
8260 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8261 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8262 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8263 | return _resultobj; |
8264 | } | |
8265 | ||
8266 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 8267 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8268 | PyObject * _resultobj; |
8269 | long _result; | |
8270 | wxDC * _arg0; | |
8271 | long _arg1; | |
1d99702e | 8272 | PyObject * _argo0 = 0; |
1afc06c2 | 8273 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8274 | |
8275 | self = self; | |
1afc06c2 | 8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8277 | return NULL; |
1d99702e RD |
8278 | if (_argo0) { |
8279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
cf694132 RD |
8285 | { |
8286 | wxPy_BEGIN_ALLOW_THREADS; | |
8287 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); | |
8288 | ||
8289 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8290 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8291 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8292 | return _resultobj; |
8293 | } | |
8294 | ||
8295 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 8296 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8297 | PyObject * _resultobj; |
8298 | long _result; | |
8299 | wxDC * _arg0; | |
1d99702e | 8300 | PyObject * _argo0 = 0; |
1afc06c2 | 8301 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8302 | |
8303 | self = self; | |
1afc06c2 | 8304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 8305 | return NULL; |
1d99702e RD |
8306 | if (_argo0) { |
8307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
8310 | return NULL; | |
8311 | } | |
8312 | } | |
cf694132 RD |
8313 | { |
8314 | wxPy_BEGIN_ALLOW_THREADS; | |
8315 | _result = (long )wxDC_MaxX(_arg0); | |
8316 | ||
8317 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8318 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8319 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8320 | return _resultobj; |
8321 | } | |
8322 | ||
8323 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 8324 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8325 | PyObject * _resultobj; |
8326 | long _result; | |
8327 | wxDC * _arg0; | |
1d99702e | 8328 | PyObject * _argo0 = 0; |
1afc06c2 | 8329 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8330 | |
8331 | self = self; | |
1afc06c2 | 8332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 8333 | return NULL; |
1d99702e RD |
8334 | if (_argo0) { |
8335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
8338 | return NULL; | |
8339 | } | |
8340 | } | |
cf694132 RD |
8341 | { |
8342 | wxPy_BEGIN_ALLOW_THREADS; | |
8343 | _result = (long )wxDC_MaxY(_arg0); | |
8344 | ||
8345 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8346 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8347 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8348 | return _resultobj; |
8349 | } | |
8350 | ||
8351 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 8352 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8353 | PyObject * _resultobj; |
8354 | long _result; | |
8355 | wxDC * _arg0; | |
1d99702e | 8356 | PyObject * _argo0 = 0; |
1afc06c2 | 8357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8358 | |
8359 | self = self; | |
1afc06c2 | 8360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 8361 | return NULL; |
1d99702e RD |
8362 | if (_argo0) { |
8363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
8366 | return NULL; | |
8367 | } | |
8368 | } | |
cf694132 RD |
8369 | { |
8370 | wxPy_BEGIN_ALLOW_THREADS; | |
8371 | _result = (long )wxDC_MinX(_arg0); | |
8372 | ||
8373 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8375 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8376 | return _resultobj; |
8377 | } | |
8378 | ||
8379 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 8380 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8381 | PyObject * _resultobj; |
8382 | long _result; | |
8383 | wxDC * _arg0; | |
1d99702e | 8384 | PyObject * _argo0 = 0; |
1afc06c2 | 8385 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8386 | |
8387 | self = self; | |
1afc06c2 | 8388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 8389 | return NULL; |
1d99702e RD |
8390 | if (_argo0) { |
8391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
8394 | return NULL; | |
8395 | } | |
8396 | } | |
cf694132 RD |
8397 | { |
8398 | wxPy_BEGIN_ALLOW_THREADS; | |
8399 | _result = (long )wxDC_MinY(_arg0); | |
8400 | ||
8401 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8402 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8403 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8404 | return _resultobj; |
8405 | } | |
8406 | ||
8407 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 8408 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8409 | PyObject * _resultobj; |
8410 | bool _result; | |
8411 | wxDC * _arg0; | |
1d99702e | 8412 | PyObject * _argo0 = 0; |
1afc06c2 | 8413 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8414 | |
8415 | self = self; | |
1afc06c2 | 8416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 8417 | return NULL; |
1d99702e RD |
8418 | if (_argo0) { |
8419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
8422 | return NULL; | |
8423 | } | |
8424 | } | |
cf694132 RD |
8425 | { |
8426 | wxPy_BEGIN_ALLOW_THREADS; | |
8427 | _result = (bool )wxDC_Ok(_arg0); | |
8428 | ||
8429 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8431 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8432 | return _resultobj; |
8433 | } | |
8434 | ||
8435 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 8436 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8437 | PyObject * _resultobj; |
8438 | wxDC * _arg0; | |
8439 | long _arg1; | |
8440 | long _arg2; | |
1d99702e | 8441 | PyObject * _argo0 = 0; |
1afc06c2 | 8442 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
8443 | |
8444 | self = self; | |
1afc06c2 | 8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8446 | return NULL; |
1d99702e RD |
8447 | if (_argo0) { |
8448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
8451 | return NULL; | |
8452 | } | |
8453 | } | |
cf694132 RD |
8454 | { |
8455 | wxPy_BEGIN_ALLOW_THREADS; | |
8456 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); | |
8457 | ||
8458 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8459 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8460 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8461 | _resultobj = Py_None; |
8462 | return _resultobj; | |
8463 | } | |
8464 | ||
8465 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 8466 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8467 | PyObject * _resultobj; |
8468 | wxDC * _arg0; | |
8469 | wxBrush * _arg1; | |
1d99702e RD |
8470 | PyObject * _argo0 = 0; |
8471 | PyObject * _argo1 = 0; | |
1afc06c2 | 8472 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
8473 | |
8474 | self = self; | |
1afc06c2 | 8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8476 | return NULL; |
1d99702e RD |
8477 | if (_argo0) { |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
1d99702e RD |
8484 | if (_argo1) { |
8485 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8486 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
8487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
8488 | return NULL; | |
8489 | } | |
8490 | } | |
cf694132 RD |
8491 | { |
8492 | wxPy_BEGIN_ALLOW_THREADS; | |
8493 | wxDC_SetBackground(_arg0,*_arg1); | |
8494 | ||
8495 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8496 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8497 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8498 | _resultobj = Py_None; |
8499 | return _resultobj; | |
8500 | } | |
8501 | ||
8502 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 8503 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8504 | PyObject * _resultobj; |
8505 | wxDC * _arg0; | |
8506 | int _arg1; | |
1d99702e | 8507 | PyObject * _argo0 = 0; |
1afc06c2 | 8508 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
8509 | |
8510 | self = self; | |
1afc06c2 | 8511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8512 | return NULL; |
1d99702e RD |
8513 | if (_argo0) { |
8514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
8517 | return NULL; | |
8518 | } | |
8519 | } | |
cf694132 RD |
8520 | { |
8521 | wxPy_BEGIN_ALLOW_THREADS; | |
8522 | wxDC_SetBackgroundMode(_arg0,_arg1); | |
8523 | ||
8524 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8526 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8527 | _resultobj = Py_None; |
8528 | return _resultobj; | |
8529 | } | |
8530 | ||
8531 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8532 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8533 | PyObject * _resultobj; |
8534 | wxDC * _arg0; | |
8535 | long _arg1; | |
8536 | long _arg2; | |
8537 | long _arg3; | |
8538 | long _arg4; | |
1d99702e | 8539 | PyObject * _argo0 = 0; |
1afc06c2 | 8540 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
8541 | |
8542 | self = self; | |
1afc06c2 | 8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 8544 | return NULL; |
1d99702e RD |
8545 | if (_argo0) { |
8546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
8549 | return NULL; | |
8550 | } | |
8551 | } | |
cf694132 RD |
8552 | { |
8553 | wxPy_BEGIN_ALLOW_THREADS; | |
8554 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); | |
8555 | ||
8556 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8557 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8558 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8559 | _resultobj = Py_None; |
8560 | return _resultobj; | |
8561 | } | |
8562 | ||
19a97bd6 RD |
8563 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
8564 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8565 | PyObject * _resultobj; | |
8566 | wxDC * _arg0; | |
8567 | wxRegion * _arg1; | |
8568 | PyObject * _argo0 = 0; | |
8569 | PyObject * _argo1 = 0; | |
8570 | char *_kwnames[] = { "self","region", NULL }; | |
8571 | ||
8572 | self = self; | |
8573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
8574 | return NULL; | |
8575 | if (_argo0) { | |
8576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
8579 | return NULL; | |
8580 | } | |
8581 | } | |
8582 | if (_argo1) { | |
8583 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8584 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
8585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
8586 | return NULL; | |
8587 | } | |
8588 | } | |
8589 | { | |
8590 | wxPy_BEGIN_ALLOW_THREADS; | |
8591 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); | |
8592 | ||
8593 | wxPy_END_ALLOW_THREADS; | |
8594 | if (PyErr_Occurred()) return NULL; | |
8595 | } Py_INCREF(Py_None); | |
8596 | _resultobj = Py_None; | |
8597 | return _resultobj; | |
8598 | } | |
8599 | ||
8ab979d7 | 8600 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1afc06c2 | 8601 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8602 | PyObject * _resultobj; |
8603 | wxDC * _arg0; | |
8604 | wxPalette * _arg1; | |
1d99702e RD |
8605 | PyObject * _argo0 = 0; |
8606 | PyObject * _argo1 = 0; | |
1afc06c2 | 8607 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
8608 | |
8609 | self = self; | |
1afc06c2 | 8610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8611 | return NULL; |
1d99702e RD |
8612 | if (_argo0) { |
8613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
8616 | return NULL; | |
8617 | } | |
8618 | } | |
1d99702e RD |
8619 | if (_argo1) { |
8620 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8621 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
8622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
8623 | return NULL; | |
8624 | } | |
8625 | } | |
cf694132 RD |
8626 | { |
8627 | wxPy_BEGIN_ALLOW_THREADS; | |
8628 | wxDC_SetPalette(_arg0,*_arg1); | |
8629 | ||
8630 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8631 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8632 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8633 | _resultobj = Py_None; |
8634 | return _resultobj; | |
8635 | } | |
8636 | ||
8637 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 8638 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8639 | PyObject * _resultobj; |
8640 | wxDC * _arg0; | |
8641 | wxBrush * _arg1; | |
1d99702e RD |
8642 | PyObject * _argo0 = 0; |
8643 | PyObject * _argo1 = 0; | |
1afc06c2 | 8644 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
8645 | |
8646 | self = self; | |
1afc06c2 | 8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8648 | return NULL; |
1d99702e RD |
8649 | if (_argo0) { |
8650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
8653 | return NULL; | |
8654 | } | |
8655 | } | |
1d99702e RD |
8656 | if (_argo1) { |
8657 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8658 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
8659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
8660 | return NULL; | |
8661 | } | |
8662 | } | |
cf694132 RD |
8663 | { |
8664 | wxPy_BEGIN_ALLOW_THREADS; | |
8665 | wxDC_SetBrush(_arg0,*_arg1); | |
8666 | ||
8667 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8668 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8669 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8670 | _resultobj = Py_None; |
8671 | return _resultobj; | |
8672 | } | |
8673 | ||
8674 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 8675 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8676 | PyObject * _resultobj; |
8677 | wxDC * _arg0; | |
8678 | wxFont * _arg1; | |
1d99702e RD |
8679 | PyObject * _argo0 = 0; |
8680 | PyObject * _argo1 = 0; | |
1afc06c2 | 8681 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
8682 | |
8683 | self = self; | |
1afc06c2 | 8684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8685 | return NULL; |
1d99702e RD |
8686 | if (_argo0) { |
8687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
8690 | return NULL; | |
8691 | } | |
8692 | } | |
1d99702e RD |
8693 | if (_argo1) { |
8694 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8695 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
8696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
8697 | return NULL; | |
8698 | } | |
8699 | } | |
cf694132 RD |
8700 | { |
8701 | wxPy_BEGIN_ALLOW_THREADS; | |
8702 | wxDC_SetFont(_arg0,*_arg1); | |
8703 | ||
8704 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8705 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8706 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8707 | _resultobj = Py_None; |
8708 | return _resultobj; | |
8709 | } | |
8710 | ||
8711 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 8712 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8713 | PyObject * _resultobj; |
8714 | wxDC * _arg0; | |
8715 | int _arg1; | |
1d99702e | 8716 | PyObject * _argo0 = 0; |
1afc06c2 | 8717 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
8718 | |
8719 | self = self; | |
1afc06c2 | 8720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8721 | return NULL; |
1d99702e RD |
8722 | if (_argo0) { |
8723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
8726 | return NULL; | |
8727 | } | |
8728 | } | |
cf694132 RD |
8729 | { |
8730 | wxPy_BEGIN_ALLOW_THREADS; | |
8731 | wxDC_SetLogicalFunction(_arg0,_arg1); | |
8732 | ||
8733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8735 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8736 | _resultobj = Py_None; |
8737 | return _resultobj; | |
8738 | } | |
8739 | ||
eec92d76 RD |
8740 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
8741 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8742 | PyObject * _resultobj; | |
8743 | wxDC * _arg0; | |
8744 | double _arg1; | |
8745 | double _arg2; | |
8746 | PyObject * _argo0 = 0; | |
8747 | char *_kwnames[] = { "self","x","y", NULL }; | |
8748 | ||
8749 | self = self; | |
8750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8751 | return NULL; | |
8752 | if (_argo0) { | |
8753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8756 | return NULL; | |
8757 | } | |
8758 | } | |
8759 | { | |
8760 | wxPy_BEGIN_ALLOW_THREADS; | |
8761 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); | |
8762 | ||
8763 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8764 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8765 | } Py_INCREF(Py_None); |
8766 | _resultobj = Py_None; | |
8767 | return _resultobj; | |
8768 | } | |
8769 | ||
8ab979d7 | 8770 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 8771 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8772 | PyObject * _resultobj; |
8773 | wxDC * _arg0; | |
8774 | int _arg1; | |
1d99702e | 8775 | PyObject * _argo0 = 0; |
1afc06c2 | 8776 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
8777 | |
8778 | self = self; | |
1afc06c2 | 8779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8780 | return NULL; |
1d99702e RD |
8781 | if (_argo0) { |
8782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
8785 | return NULL; | |
8786 | } | |
8787 | } | |
cf694132 RD |
8788 | { |
8789 | wxPy_BEGIN_ALLOW_THREADS; | |
8790 | wxDC_SetMapMode(_arg0,_arg1); | |
8791 | ||
8792 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8793 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8794 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8795 | _resultobj = Py_None; |
8796 | return _resultobj; | |
8797 | } | |
8798 | ||
8799 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 8800 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8801 | PyObject * _resultobj; |
8802 | wxDC * _arg0; | |
8803 | bool _arg1; | |
1d99702e | 8804 | PyObject * _argo0 = 0; |
8ab979d7 | 8805 | int tempbool1; |
1afc06c2 | 8806 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
8807 | |
8808 | self = self; | |
1afc06c2 | 8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 8810 | return NULL; |
1d99702e RD |
8811 | if (_argo0) { |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
8819 | { |
8820 | wxPy_BEGIN_ALLOW_THREADS; | |
8821 | wxDC_SetOptimization(_arg0,_arg1); | |
8822 | ||
8823 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8824 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8825 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8826 | _resultobj = Py_None; |
8827 | return _resultobj; | |
8828 | } | |
8829 | ||
8830 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 8831 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8832 | PyObject * _resultobj; |
8833 | wxDC * _arg0; | |
8834 | wxPen * _arg1; | |
1d99702e RD |
8835 | PyObject * _argo0 = 0; |
8836 | PyObject * _argo1 = 0; | |
1afc06c2 | 8837 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
8838 | |
8839 | self = self; | |
1afc06c2 | 8840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8841 | return NULL; |
1d99702e RD |
8842 | if (_argo0) { |
8843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
8846 | return NULL; | |
8847 | } | |
8848 | } | |
1d99702e RD |
8849 | if (_argo1) { |
8850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
8852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
8853 | return NULL; | |
8854 | } | |
8855 | } | |
cf694132 RD |
8856 | { |
8857 | wxPy_BEGIN_ALLOW_THREADS; | |
8858 | wxDC_SetPen(_arg0,*_arg1); | |
8859 | ||
8860 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8861 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8862 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8863 | _resultobj = Py_None; |
8864 | return _resultobj; | |
8865 | } | |
8866 | ||
8867 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 8868 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8869 | PyObject * _resultobj; |
8870 | wxDC * _arg0; | |
8871 | wxColour * _arg1; | |
1d99702e | 8872 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8873 | wxColour temp; |
8874 | PyObject * _obj1 = 0; | |
1afc06c2 | 8875 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
8876 | |
8877 | self = self; | |
f6bcfd97 | 8878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8879 | return NULL; |
1d99702e RD |
8880 | if (_argo0) { |
8881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
8884 | return NULL; | |
8885 | } | |
8886 | } | |
f6bcfd97 BP |
8887 | { |
8888 | _arg1 = &temp; | |
8889 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 8890 | return NULL; |
f6bcfd97 | 8891 | } |
cf694132 RD |
8892 | { |
8893 | wxPy_BEGIN_ALLOW_THREADS; | |
8894 | wxDC_SetTextBackground(_arg0,*_arg1); | |
8895 | ||
8896 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8897 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8898 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8899 | _resultobj = Py_None; |
8900 | return _resultobj; | |
8901 | } | |
8902 | ||
8903 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 8904 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8905 | PyObject * _resultobj; |
8906 | wxDC * _arg0; | |
8907 | wxColour * _arg1; | |
1d99702e | 8908 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
8909 | wxColour temp; |
8910 | PyObject * _obj1 = 0; | |
1afc06c2 | 8911 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
8912 | |
8913 | self = self; | |
f6bcfd97 | 8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8915 | return NULL; |
1d99702e RD |
8916 | if (_argo0) { |
8917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
8920 | return NULL; | |
8921 | } | |
8922 | } | |
f6bcfd97 BP |
8923 | { |
8924 | _arg1 = &temp; | |
8925 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 8926 | return NULL; |
f6bcfd97 | 8927 | } |
cf694132 RD |
8928 | { |
8929 | wxPy_BEGIN_ALLOW_THREADS; | |
8930 | wxDC_SetTextForeground(_arg0,*_arg1); | |
8931 | ||
8932 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8933 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8934 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8935 | _resultobj = Py_None; |
8936 | return _resultobj; | |
8937 | } | |
8938 | ||
8939 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 8940 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8941 | PyObject * _resultobj; |
8942 | wxDC * _arg0; | |
8943 | double _arg1; | |
8944 | double _arg2; | |
1d99702e | 8945 | PyObject * _argo0 = 0; |
1afc06c2 | 8946 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
8947 | |
8948 | self = self; | |
1afc06c2 | 8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8950 | return NULL; |
1d99702e RD |
8951 | if (_argo0) { |
8952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
8955 | return NULL; | |
8956 | } | |
8957 | } | |
cf694132 RD |
8958 | { |
8959 | wxPy_BEGIN_ALLOW_THREADS; | |
8960 | wxDC_SetUserScale(_arg0,_arg1,_arg2); | |
8961 | ||
8962 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8964 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8965 | _resultobj = Py_None; |
8966 | return _resultobj; | |
8967 | } | |
8968 | ||
8969 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 8970 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8971 | PyObject * _resultobj; |
8972 | bool _result; | |
8973 | wxDC * _arg0; | |
8974 | wxString * _arg1; | |
1d99702e | 8975 | PyObject * _argo0 = 0; |
8ab979d7 | 8976 | PyObject * _obj1 = 0; |
1afc06c2 | 8977 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
8978 | |
8979 | self = self; | |
1afc06c2 | 8980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8981 | return NULL; |
1d99702e RD |
8982 | if (_argo0) { |
8983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8986 | return NULL; | |
8987 | } | |
8988 | } | |
8989 | { | |
185d7c3e RD |
8990 | #if PYTHON_API_VERSION >= 1009 |
8991 | char* tmpPtr; int tmpSize; | |
8992 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8993 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8994 | return NULL; |
8995 | } | |
8996 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8997 | return NULL; | |
8998 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8999 | #else | |
8ab979d7 RD |
9000 | if (!PyString_Check(_obj1)) { |
9001 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9002 | return NULL; | |
9003 | } | |
185d7c3e RD |
9004 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9005 | #endif | |
8ab979d7 | 9006 | } |
cf694132 RD |
9007 | { |
9008 | wxPy_BEGIN_ALLOW_THREADS; | |
9009 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); | |
9010 | ||
9011 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9012 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9013 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9014 | { |
9015 | if (_obj1) | |
9016 | delete _arg1; | |
9017 | } | |
9018 | return _resultobj; | |
9019 | } | |
9020 | ||
9021 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 9022 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9023 | PyObject * _resultobj; |
9024 | wxDC * _arg0; | |
1d99702e | 9025 | PyObject * _argo0 = 0; |
1afc06c2 | 9026 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9027 | |
9028 | self = self; | |
1afc06c2 | 9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 9030 | return NULL; |
1d99702e RD |
9031 | if (_argo0) { |
9032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
9035 | return NULL; | |
9036 | } | |
9037 | } | |
cf694132 RD |
9038 | { |
9039 | wxPy_BEGIN_ALLOW_THREADS; | |
9040 | wxDC_StartPage(_arg0); | |
9041 | ||
9042 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9043 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9044 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9045 | _resultobj = Py_None; |
9046 | return _resultobj; | |
9047 | } | |
9048 | ||
efc5f224 | 9049 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9050 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9051 | PyObject * _resultobj; |
9052 | wxDC * _arg0; | |
9053 | wxBitmap * _arg1; | |
9054 | long _arg2; | |
9055 | long _arg3; | |
efc5f224 | 9056 | int _arg4 = (int ) FALSE; |
1d99702e RD |
9057 | PyObject * _argo0 = 0; |
9058 | PyObject * _argo1 = 0; | |
1afc06c2 | 9059 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
9060 | |
9061 | self = self; | |
1afc06c2 | 9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9063 | return NULL; |
1d99702e RD |
9064 | if (_argo0) { |
9065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
9068 | return NULL; | |
9069 | } | |
9070 | } | |
1d99702e RD |
9071 | if (_argo1) { |
9072 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9073 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
9075 | return NULL; | |
9076 | } | |
9077 | } | |
cf694132 RD |
9078 | { |
9079 | wxPy_BEGIN_ALLOW_THREADS; | |
9080 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
9081 | ||
9082 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9083 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9084 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9085 | _resultobj = Py_None; |
9086 | return _resultobj; | |
9087 | } | |
9088 | ||
eec92d76 RD |
9089 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
9090 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9091 | PyObject * _resultobj; | |
9092 | bool _result; | |
9093 | wxDC * _arg0; | |
9094 | PyObject * _argo0 = 0; | |
9095 | char *_kwnames[] = { "self", NULL }; | |
9096 | ||
9097 | self = self; | |
9098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9099 | return NULL; | |
9100 | if (_argo0) { | |
9101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9104 | return NULL; | |
9105 | } | |
9106 | } | |
9107 | { | |
9108 | wxPy_BEGIN_ALLOW_THREADS; | |
9109 | _result = (bool )wxDC_CanDrawBitmap(_arg0); | |
9110 | ||
9111 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9112 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9113 | } _resultobj = Py_BuildValue("i",_result); |
9114 | return _resultobj; | |
9115 | } | |
9116 | ||
9117 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9118 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9119 | PyObject * _resultobj; | |
9120 | bool _result; | |
9121 | wxDC * _arg0; | |
9122 | PyObject * _argo0 = 0; | |
9123 | char *_kwnames[] = { "self", NULL }; | |
9124 | ||
9125 | self = self; | |
9126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9127 | return NULL; | |
9128 | if (_argo0) { | |
9129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9132 | return NULL; | |
9133 | } | |
9134 | } | |
9135 | { | |
9136 | wxPy_BEGIN_ALLOW_THREADS; | |
9137 | _result = (bool )wxDC_CanGetTextExtent(_arg0); | |
9138 | ||
9139 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9140 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9141 | } _resultobj = Py_BuildValue("i",_result); |
9142 | return _resultobj; | |
9143 | } | |
9144 | ||
9145 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9146 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9147 | PyObject * _resultobj; | |
9148 | int _result; | |
9149 | wxDC * _arg0; | |
9150 | PyObject * _argo0 = 0; | |
9151 | char *_kwnames[] = { "self", NULL }; | |
9152 | ||
9153 | self = self; | |
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9155 | return NULL; | |
9156 | if (_argo0) { | |
9157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9160 | return NULL; | |
9161 | } | |
9162 | } | |
9163 | { | |
9164 | wxPy_BEGIN_ALLOW_THREADS; | |
9165 | _result = (int )wxDC_GetDepth(_arg0); | |
9166 | ||
9167 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9168 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9169 | } _resultobj = Py_BuildValue("i",_result); |
9170 | return _resultobj; | |
9171 | } | |
9172 | ||
9173 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9174 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject * _resultobj; | |
9176 | wxSize * _result; | |
9177 | wxDC * _arg0; | |
9178 | PyObject * _argo0 = 0; | |
9179 | char *_kwnames[] = { "self", NULL }; | |
9180 | char _ptemp[128]; | |
9181 | ||
9182 | self = self; | |
9183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9184 | return NULL; | |
9185 | if (_argo0) { | |
9186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9189 | return NULL; | |
9190 | } | |
9191 | } | |
9192 | { | |
9193 | wxPy_BEGIN_ALLOW_THREADS; | |
9194 | _result = new wxSize (wxDC_GetPPI(_arg0)); | |
9195 | ||
9196 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9197 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9198 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
9199 | _resultobj = Py_BuildValue("s",_ptemp); | |
9200 | return _resultobj; | |
9201 | } | |
9202 | ||
9203 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9204 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9205 | PyObject * _resultobj; | |
9206 | wxDC * _arg0; | |
9207 | int * _arg1; | |
9208 | int temp; | |
9209 | int * _arg2; | |
9210 | int temp0; | |
9211 | PyObject * _argo0 = 0; | |
9212 | char *_kwnames[] = { "self", NULL }; | |
9213 | ||
9214 | self = self; | |
9215 | { | |
9216 | _arg1 = &temp; | |
9217 | } | |
9218 | { | |
9219 | _arg2 = &temp0; | |
9220 | } | |
9221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
9222 | return NULL; | |
9223 | if (_argo0) { | |
9224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
9227 | return NULL; | |
9228 | } | |
9229 | } | |
9230 | { | |
9231 | wxPy_BEGIN_ALLOW_THREADS; | |
9232 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); | |
9233 | ||
9234 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9235 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9236 | } Py_INCREF(Py_None); |
9237 | _resultobj = Py_None; | |
9238 | { | |
9239 | PyObject *o; | |
9240 | o = PyInt_FromLong((long) (*_arg1)); | |
9241 | _resultobj = t_output_helper(_resultobj, o); | |
9242 | } | |
9243 | { | |
9244 | PyObject *o; | |
9245 | o = PyInt_FromLong((long) (*_arg2)); | |
9246 | _resultobj = t_output_helper(_resultobj, o); | |
9247 | } | |
9248 | return _resultobj; | |
9249 | } | |
9250 | ||
9251 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9252 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9253 | PyObject * _resultobj; | |
9254 | wxDC * _arg0; | |
9255 | int _arg1; | |
9256 | int _arg2; | |
9257 | PyObject * _argo0 = 0; | |
9258 | char *_kwnames[] = { "self","x","y", NULL }; | |
9259 | ||
9260 | self = self; | |
9261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9262 | return NULL; | |
9263 | if (_argo0) { | |
9264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9267 | return NULL; | |
9268 | } | |
9269 | } | |
9270 | { | |
9271 | wxPy_BEGIN_ALLOW_THREADS; | |
9272 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); | |
9273 | ||
9274 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9275 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9276 | } Py_INCREF(Py_None); |
9277 | _resultobj = Py_None; | |
9278 | return _resultobj; | |
9279 | } | |
9280 | ||
9281 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9282 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9283 | PyObject * _resultobj; | |
9284 | wxDC * _arg0; | |
9285 | int * _arg1; | |
9286 | int temp; | |
9287 | int * _arg2; | |
9288 | int temp0; | |
9289 | PyObject * _argo0 = 0; | |
9290 | char *_kwnames[] = { "self", NULL }; | |
9291 | ||
9292 | self = self; | |
9293 | { | |
9294 | _arg1 = &temp; | |
9295 | } | |
9296 | { | |
9297 | _arg2 = &temp0; | |
9298 | } | |
9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9300 | return NULL; | |
9301 | if (_argo0) { | |
9302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9305 | return NULL; | |
9306 | } | |
9307 | } | |
9308 | { | |
9309 | wxPy_BEGIN_ALLOW_THREADS; | |
9310 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); | |
9311 | ||
9312 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9313 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9314 | } Py_INCREF(Py_None); |
9315 | _resultobj = Py_None; | |
9316 | { | |
9317 | PyObject *o; | |
9318 | o = PyInt_FromLong((long) (*_arg1)); | |
9319 | _resultobj = t_output_helper(_resultobj, o); | |
9320 | } | |
9321 | { | |
9322 | PyObject *o; | |
9323 | o = PyInt_FromLong((long) (*_arg2)); | |
9324 | _resultobj = t_output_helper(_resultobj, o); | |
9325 | } | |
9326 | return _resultobj; | |
9327 | } | |
9328 | ||
9329 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9330 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9331 | PyObject * _resultobj; | |
9332 | wxDC * _arg0; | |
9333 | bool _arg1; | |
9334 | bool _arg2; | |
9335 | PyObject * _argo0 = 0; | |
9336 | int tempbool1; | |
9337 | int tempbool2; | |
9338 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9339 | ||
9340 | self = self; | |
9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9342 | return NULL; | |
9343 | if (_argo0) { | |
9344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9347 | return NULL; | |
9348 | } | |
9349 | } | |
9350 | _arg1 = (bool ) tempbool1; | |
9351 | _arg2 = (bool ) tempbool2; | |
9352 | { | |
9353 | wxPy_BEGIN_ALLOW_THREADS; | |
9354 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); | |
9355 | ||
9356 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9357 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9358 | } Py_INCREF(Py_None); |
9359 | _resultobj = Py_None; | |
9360 | return _resultobj; | |
9361 | } | |
9362 | ||
f6bcfd97 BP |
9363 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
9364 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9365 | PyObject * _resultobj; | |
9366 | wxDC * _arg0; | |
9367 | int _arg1; | |
9368 | int _arg2; | |
9369 | PyObject * _argo0 = 0; | |
9370 | char *_kwnames[] = { "self","x","y", NULL }; | |
9371 | ||
9372 | self = self; | |
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9374 | return NULL; | |
9375 | if (_argo0) { | |
9376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9379 | return NULL; | |
9380 | } | |
9381 | } | |
9382 | { | |
9383 | wxPy_BEGIN_ALLOW_THREADS; | |
9384 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); | |
9385 | ||
9386 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9387 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9388 | } Py_INCREF(Py_None); |
9389 | _resultobj = Py_None; | |
9390 | return _resultobj; | |
9391 | } | |
9392 | ||
9393 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9394 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject * _resultobj; | |
9396 | wxDC * _arg0; | |
9397 | PyObject * _argo0 = 0; | |
9398 | char *_kwnames[] = { "self", NULL }; | |
9399 | ||
9400 | self = self; | |
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9402 | return NULL; | |
9403 | if (_argo0) { | |
9404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9407 | return NULL; | |
9408 | } | |
9409 | } | |
9410 | { | |
9411 | wxPy_BEGIN_ALLOW_THREADS; | |
9412 | wxDC_ResetBoundingBox(_arg0); | |
9413 | ||
9414 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9415 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
9416 | } Py_INCREF(Py_None); |
9417 | _resultobj = Py_None; | |
9418 | return _resultobj; | |
9419 | } | |
9420 | ||
9d37f964 RD |
9421 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9422 | PyObject * _resultobj; | |
9423 | wxDC * _arg0; | |
9424 | int * _arg1; | |
9425 | int temp; | |
9426 | int * _arg2; | |
9427 | int temp0; | |
9428 | int * _arg3; | |
9429 | int temp1; | |
9430 | int * _arg4; | |
9431 | int temp2; | |
9432 | PyObject * _argo0 = 0; | |
9433 | char *_kwnames[] = { "self", NULL }; | |
9434 | ||
9435 | self = self; | |
9436 | { | |
9437 | _arg1 = &temp; | |
9438 | } | |
9439 | { | |
9440 | _arg2 = &temp0; | |
9441 | } | |
9442 | { | |
9443 | _arg3 = &temp1; | |
9444 | } | |
9445 | { | |
9446 | _arg4 = &temp2; | |
9447 | } | |
9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
9449 | return NULL; | |
9450 | if (_argo0) { | |
9451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
9454 | return NULL; | |
9455 | } | |
9456 | } | |
9457 | { | |
9458 | wxPy_BEGIN_ALLOW_THREADS; | |
9459 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); | |
9460 | ||
9461 | wxPy_END_ALLOW_THREADS; | |
9462 | if (PyErr_Occurred()) return NULL; | |
9463 | } Py_INCREF(Py_None); | |
9464 | _resultobj = Py_None; | |
9465 | { | |
9466 | PyObject *o; | |
9467 | o = PyInt_FromLong((long) (*_arg1)); | |
9468 | _resultobj = t_output_helper(_resultobj, o); | |
9469 | } | |
9470 | { | |
9471 | PyObject *o; | |
9472 | o = PyInt_FromLong((long) (*_arg2)); | |
9473 | _resultobj = t_output_helper(_resultobj, o); | |
9474 | } | |
9475 | { | |
9476 | PyObject *o; | |
9477 | o = PyInt_FromLong((long) (*_arg3)); | |
9478 | _resultobj = t_output_helper(_resultobj, o); | |
9479 | } | |
9480 | { | |
9481 | PyObject *o; | |
9482 | o = PyInt_FromLong((long) (*_arg4)); | |
9483 | _resultobj = t_output_helper(_resultobj, o); | |
9484 | } | |
9485 | return _resultobj; | |
9486 | } | |
9487 | ||
c7e7022c RD |
9488 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
9489 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9490 | PyObject * _resultobj; | |
9491 | long _result; | |
9492 | wxDC * _arg0; | |
9493 | PyObject * _argo0 = 0; | |
9494 | char *_kwnames[] = { "self", NULL }; | |
9495 | ||
9496 | self = self; | |
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
9498 | return NULL; | |
9499 | if (_argo0) { | |
9500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
9503 | return NULL; | |
9504 | } | |
9505 | } | |
9506 | { | |
9507 | wxPy_BEGIN_ALLOW_THREADS; | |
9508 | _result = (long )wxDC_GetHDC(_arg0); | |
9509 | ||
9510 | wxPy_END_ALLOW_THREADS; | |
9511 | if (PyErr_Occurred()) return NULL; | |
9512 | } _resultobj = Py_BuildValue("l",_result); | |
9513 | return _resultobj; | |
9514 | } | |
9515 | ||
9d37f964 RD |
9516 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { |
9517 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
9518 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9519 | int numObjs = 0; | |
9520 | int numPens = 0; | |
9521 | wxPen* pen; | |
9522 | PyObject* obj; | |
9523 | int x1, y1; | |
9524 | int i = 0; | |
9525 | ||
9526 | if (!PySequence_Check(pyPoints)) { | |
9527 | goto err0; | |
9528 | } | |
9529 | if (!PySequence_Check(pyPens)) { | |
9530 | goto err1; | |
9531 | } | |
9532 | numObjs = PySequence_Length(pyPoints); | |
9533 | numPens = PySequence_Length(pyPens); | |
9534 | ||
9535 | for (i = 0; i < numObjs; i++) { | |
9536 | // Use a new pen? | |
9537 | if (i < numPens) { | |
9538 | if (isFastPens) { | |
9539 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9540 | } | |
9541 | else { | |
9542 | obj = PySequence_GetItem(pyPens, i); | |
9543 | } | |
9544 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
9545 | if (!isFastPens) |
9546 | Py_DECREF(obj); | |
9d37f964 RD |
9547 | goto err1; |
9548 | } | |
9549 | ||
9550 | self->SetPen(*pen); | |
9551 | if (!isFastPens) | |
9552 | Py_DECREF(obj); | |
9553 | } | |
9554 | ||
9555 | // Get the point coordinants | |
9556 | if (isFastSeq) { | |
9557 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
9558 | } | |
9559 | else { | |
9560 | obj = PySequence_GetItem(pyPoints, i); | |
9561 | } | |
9562 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
76e280e7 RD |
9563 | if (!isFastPens) |
9564 | Py_DECREF(obj); | |
9d37f964 RD |
9565 | goto err0; |
9566 | } | |
9567 | ||
9568 | // Now draw the point | |
9569 | self->DrawPoint(x1, y1); | |
9570 | ||
9571 | if (!isFastSeq) | |
9572 | Py_DECREF(obj); | |
9573 | } | |
9574 | ||
9575 | Py_INCREF(Py_None); | |
9576 | return Py_None; | |
9577 | ||
9578 | err1: | |
9579 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9580 | return NULL; | |
9581 | err0: | |
9582 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
9583 | return NULL; | |
9584 | } | |
9585 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9586 | PyObject * _resultobj; | |
9587 | PyObject * _result; | |
9588 | wxDC * _arg0; | |
9589 | PyObject * _arg1; | |
9590 | PyObject * _arg2; | |
9591 | PyObject * _argo0 = 0; | |
9592 | PyObject * _obj1 = 0; | |
9593 | PyObject * _obj2 = 0; | |
9594 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
9595 | ||
9596 | self = self; | |
9597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9598 | return NULL; | |
9599 | if (_argo0) { | |
9600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
9603 | return NULL; | |
9604 | } | |
9605 | } | |
9606 | { | |
9607 | _arg1 = _obj1; | |
9608 | } | |
9609 | { | |
9610 | _arg2 = _obj2; | |
9611 | } | |
9612 | { | |
9613 | wxPy_BEGIN_ALLOW_THREADS; | |
9614 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); | |
9615 | ||
9616 | wxPy_END_ALLOW_THREADS; | |
9617 | if (PyErr_Occurred()) return NULL; | |
9618 | }{ | |
9619 | _resultobj = _result; | |
9620 | } | |
9621 | return _resultobj; | |
9622 | } | |
9623 | ||
9624 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
9625 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
9626 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9627 | int numObjs = 0; | |
9628 | int numPens = 0; | |
9629 | wxPen* pen; | |
9630 | PyObject* obj; | |
9631 | int x1, y1, x2, y2; | |
9632 | int i = 0; | |
9633 | ||
9634 | if (!PySequence_Check(pyLines)) { | |
9635 | goto err0; | |
9636 | } | |
9637 | if (!PySequence_Check(pyPens)) { | |
9638 | goto err1; | |
9639 | } | |
9640 | numObjs = PySequence_Length(pyLines); | |
9641 | numPens = PySequence_Length(pyPens); | |
9642 | ||
9643 | for (i = 0; i < numObjs; i++) { | |
9644 | // Use a new pen? | |
9645 | if (i < numPens) { | |
9646 | if (isFastPens) { | |
9647 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9648 | } | |
9649 | else { | |
9650 | obj = PySequence_GetItem(pyPens, i); | |
9651 | } | |
9652 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
9653 | if (!isFastPens) |
9654 | Py_DECREF(obj); | |
9d37f964 RD |
9655 | goto err1; |
9656 | } | |
9657 | ||
9658 | self->SetPen(*pen); | |
9659 | if (!isFastPens) | |
9660 | Py_DECREF(obj); | |
9661 | } | |
9662 | ||
9663 | // Get the line coordinants | |
9664 | if (isFastSeq) { | |
9665 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
9666 | } | |
9667 | else { | |
9668 | obj = PySequence_GetItem(pyLines, i); | |
9669 | } | |
9670 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
76e280e7 RD |
9671 | if (!isFastPens) |
9672 | Py_DECREF(obj); | |
9d37f964 RD |
9673 | goto err0; |
9674 | } | |
9675 | ||
9676 | // Now draw the line | |
9677 | self->DrawLine(x1, y1, x2, y2); | |
9678 | ||
9679 | if (!isFastSeq) | |
9680 | Py_DECREF(obj); | |
9681 | } | |
9682 | ||
9683 | Py_INCREF(Py_None); | |
9684 | return Py_None; | |
9685 | ||
9686 | err1: | |
9687 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9688 | return NULL; | |
9689 | err0: | |
9690 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
9691 | return NULL; | |
9692 | } | |
9693 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject * _resultobj; | |
9695 | PyObject * _result; | |
9696 | wxDC * _arg0; | |
9697 | PyObject * _arg1; | |
9698 | PyObject * _arg2; | |
9699 | PyObject * _argo0 = 0; | |
9700 | PyObject * _obj1 = 0; | |
9701 | PyObject * _obj2 = 0; | |
9702 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
9703 | ||
9704 | self = self; | |
9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9706 | return NULL; | |
9707 | if (_argo0) { | |
9708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
9711 | return NULL; | |
9712 | } | |
9713 | } | |
9714 | { | |
9715 | _arg1 = _obj1; | |
9716 | } | |
9717 | { | |
9718 | _arg2 = _obj2; | |
9719 | } | |
9720 | { | |
9721 | wxPy_BEGIN_ALLOW_THREADS; | |
9722 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); | |
9723 | ||
9724 | wxPy_END_ALLOW_THREADS; | |
9725 | if (PyErr_Occurred()) return NULL; | |
9726 | }{ | |
9727 | _resultobj = _result; | |
9728 | } | |
9729 | return _resultobj; | |
9730 | } | |
9731 | ||
8ab979d7 RD |
9732 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
9733 | wxMemoryDC *src; | |
9734 | wxDC *dest; | |
9735 | src = (wxMemoryDC *) ptr; | |
9736 | dest = (wxDC *) src; | |
9737 | return (void *) dest; | |
9738 | } | |
9739 | ||
9416aa89 RD |
9740 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
9741 | wxMemoryDC *src; | |
9742 | wxObject *dest; | |
9743 | src = (wxMemoryDC *) ptr; | |
9744 | dest = (wxObject *) src; | |
9745 | return (void *) dest; | |
9746 | } | |
9747 | ||
8ab979d7 | 9748 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 9749 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9750 | PyObject * _resultobj; |
9751 | wxMemoryDC * _result; | |
1afc06c2 | 9752 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
9753 | char _ptemp[128]; |
9754 | ||
9755 | self = self; | |
1afc06c2 | 9756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 9757 | return NULL; |
cf694132 RD |
9758 | { |
9759 | wxPy_BEGIN_ALLOW_THREADS; | |
9760 | _result = (wxMemoryDC *)new_wxMemoryDC(); | |
9761 | ||
9762 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9763 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9764 | } if (_result) { |
9765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9766 | _resultobj = Py_BuildValue("s",_ptemp); | |
9767 | } else { | |
9768 | Py_INCREF(Py_None); | |
9769 | _resultobj = Py_None; | |
9770 | } | |
8ab979d7 RD |
9771 | return _resultobj; |
9772 | } | |
9773 | ||
9774 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 9775 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9776 | PyObject * _resultobj; |
9777 | wxMemoryDC * _arg0; | |
9778 | wxBitmap * _arg1; | |
1d99702e RD |
9779 | PyObject * _argo0 = 0; |
9780 | PyObject * _argo1 = 0; | |
1afc06c2 | 9781 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
9782 | |
9783 | self = self; | |
1afc06c2 | 9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9785 | return NULL; |
1d99702e RD |
9786 | if (_argo0) { |
9787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
9789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
9790 | return NULL; | |
9791 | } | |
9792 | } | |
1d99702e RD |
9793 | if (_argo1) { |
9794 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9795 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
9797 | return NULL; | |
9798 | } | |
9799 | } | |
cf694132 RD |
9800 | { |
9801 | wxPy_BEGIN_ALLOW_THREADS; | |
9802 | wxMemoryDC_SelectObject(_arg0,*_arg1); | |
9803 | ||
9804 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9805 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9806 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9807 | _resultobj = Py_None; |
9808 | return _resultobj; | |
9809 | } | |
9810 | ||
9811 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
9812 | wxScreenDC *src; | |
9813 | wxDC *dest; | |
9814 | src = (wxScreenDC *) ptr; | |
9815 | dest = (wxDC *) src; | |
9816 | return (void *) dest; | |
9817 | } | |
9818 | ||
9416aa89 RD |
9819 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
9820 | wxScreenDC *src; | |
9821 | wxObject *dest; | |
9822 | src = (wxScreenDC *) ptr; | |
9823 | dest = (wxObject *) src; | |
9824 | return (void *) dest; | |
9825 | } | |
9826 | ||
8ab979d7 | 9827 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 9828 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9829 | PyObject * _resultobj; |
9830 | wxScreenDC * _result; | |
1afc06c2 | 9831 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
9832 | char _ptemp[128]; |
9833 | ||
9834 | self = self; | |
1afc06c2 | 9835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 9836 | return NULL; |
cf694132 RD |
9837 | { |
9838 | wxPy_BEGIN_ALLOW_THREADS; | |
9839 | _result = (wxScreenDC *)new_wxScreenDC(); | |
9840 | ||
9841 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9842 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9843 | } if (_result) { |
9844 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9845 | _resultobj = Py_BuildValue("s",_ptemp); | |
9846 | } else { | |
9847 | Py_INCREF(Py_None); | |
9848 | _resultobj = Py_None; | |
9849 | } | |
8ab979d7 RD |
9850 | return _resultobj; |
9851 | } | |
9852 | ||
26b9cf27 RD |
9853 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9854 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9855 | PyObject * _resultobj; |
9856 | bool _result; | |
9857 | wxScreenDC * _arg0; | |
9858 | wxWindow * _arg1; | |
1d99702e RD |
9859 | PyObject * _argo0 = 0; |
9860 | PyObject * _argo1 = 0; | |
1afc06c2 | 9861 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
9862 | |
9863 | self = self; | |
26b9cf27 | 9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9865 | return NULL; |
1d99702e RD |
9866 | if (_argo0) { |
9867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 9869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
9870 | return NULL; |
9871 | } | |
9872 | } | |
1d99702e RD |
9873 | if (_argo1) { |
9874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 9876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
9877 | return NULL; |
9878 | } | |
9879 | } | |
cf694132 RD |
9880 | { |
9881 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 9882 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 RD |
9883 | |
9884 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9885 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9886 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9887 | return _resultobj; |
9888 | } | |
9889 | ||
26b9cf27 RD |
9890 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9891 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9892 | PyObject * _resultobj; |
9893 | bool _result; | |
9894 | wxScreenDC * _arg0; | |
1d99702e RD |
9895 | wxRect * _arg1 = (wxRect *) NULL; |
9896 | PyObject * _argo0 = 0; | |
2f90df85 RD |
9897 | wxRect temp; |
9898 | PyObject * _obj1 = 0; | |
1afc06c2 | 9899 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
9900 | |
9901 | self = self; | |
26b9cf27 | 9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9903 | return NULL; |
1d99702e RD |
9904 | if (_argo0) { |
9905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 9907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
9908 | return NULL; |
9909 | } | |
9910 | } | |
2f90df85 RD |
9911 | if (_obj1) |
9912 | { | |
9913 | _arg1 = &temp; | |
9914 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 9915 | return NULL; |
2f90df85 | 9916 | } |
cf694132 RD |
9917 | { |
9918 | wxPy_BEGIN_ALLOW_THREADS; | |
26b9cf27 | 9919 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 RD |
9920 | |
9921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9923 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9924 | return _resultobj; |
9925 | } | |
9926 | ||
9927 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 9928 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9929 | PyObject * _resultobj; |
9930 | bool _result; | |
9931 | wxScreenDC * _arg0; | |
1d99702e | 9932 | PyObject * _argo0 = 0; |
1afc06c2 | 9933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9934 | |
9935 | self = self; | |
1afc06c2 | 9936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 9937 | return NULL; |
1d99702e RD |
9938 | if (_argo0) { |
9939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
9941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
9942 | return NULL; | |
9943 | } | |
9944 | } | |
cf694132 RD |
9945 | { |
9946 | wxPy_BEGIN_ALLOW_THREADS; | |
9947 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); | |
9948 | ||
9949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9952 | return _resultobj; |
9953 | } | |
9954 | ||
9955 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9956 | wxClientDC *src; | |
9957 | wxDC *dest; | |
9958 | src = (wxClientDC *) ptr; | |
9959 | dest = (wxDC *) src; | |
9960 | return (void *) dest; | |
9961 | } | |
9962 | ||
9416aa89 RD |
9963 | static void *SwigwxClientDCTowxObject(void *ptr) { |
9964 | wxClientDC *src; | |
9965 | wxObject *dest; | |
9966 | src = (wxClientDC *) ptr; | |
9967 | dest = (wxObject *) src; | |
9968 | return (void *) dest; | |
9969 | } | |
9970 | ||
8ab979d7 | 9971 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 9972 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9973 | PyObject * _resultobj; |
9974 | wxClientDC * _result; | |
9975 | wxWindow * _arg0; | |
1d99702e | 9976 | PyObject * _argo0 = 0; |
1afc06c2 | 9977 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
9978 | char _ptemp[128]; |
9979 | ||
9980 | self = self; | |
1afc06c2 | 9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 9982 | return NULL; |
1d99702e RD |
9983 | if (_argo0) { |
9984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
9987 | return NULL; | |
9988 | } | |
9989 | } | |
cf694132 RD |
9990 | { |
9991 | wxPy_BEGIN_ALLOW_THREADS; | |
9992 | _result = (wxClientDC *)new_wxClientDC(_arg0); | |
9993 | ||
9994 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9995 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9996 | } if (_result) { |
9997 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9998 | _resultobj = Py_BuildValue("s",_ptemp); | |
9999 | } else { | |
10000 | Py_INCREF(Py_None); | |
10001 | _resultobj = Py_None; | |
10002 | } | |
8ab979d7 RD |
10003 | return _resultobj; |
10004 | } | |
10005 | ||
10006 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10007 | wxPaintDC *src; | |
10008 | wxDC *dest; | |
10009 | src = (wxPaintDC *) ptr; | |
10010 | dest = (wxDC *) src; | |
10011 | return (void *) dest; | |
10012 | } | |
10013 | ||
9416aa89 RD |
10014 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
10015 | wxPaintDC *src; | |
10016 | wxObject *dest; | |
10017 | src = (wxPaintDC *) ptr; | |
10018 | dest = (wxObject *) src; | |
10019 | return (void *) dest; | |
10020 | } | |
10021 | ||
8ab979d7 | 10022 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 10023 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10024 | PyObject * _resultobj; |
10025 | wxPaintDC * _result; | |
10026 | wxWindow * _arg0; | |
1d99702e | 10027 | PyObject * _argo0 = 0; |
1afc06c2 | 10028 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10029 | char _ptemp[128]; |
10030 | ||
10031 | self = self; | |
1afc06c2 | 10032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 10033 | return NULL; |
1d99702e RD |
10034 | if (_argo0) { |
10035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
10038 | return NULL; | |
10039 | } | |
10040 | } | |
cf694132 RD |
10041 | { |
10042 | wxPy_BEGIN_ALLOW_THREADS; | |
10043 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); | |
10044 | ||
10045 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10046 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10047 | } if (_result) { |
10048 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10049 | _resultobj = Py_BuildValue("s",_ptemp); | |
10050 | } else { | |
10051 | Py_INCREF(Py_None); | |
10052 | _resultobj = Py_None; | |
10053 | } | |
8ab979d7 RD |
10054 | return _resultobj; |
10055 | } | |
10056 | ||
b639c3c5 RD |
10057 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
10058 | wxWindowDC *src; | |
10059 | wxDC *dest; | |
10060 | src = (wxWindowDC *) ptr; | |
10061 | dest = (wxDC *) src; | |
10062 | return (void *) dest; | |
10063 | } | |
10064 | ||
9416aa89 RD |
10065 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
10066 | wxWindowDC *src; | |
10067 | wxObject *dest; | |
10068 | src = (wxWindowDC *) ptr; | |
10069 | dest = (wxObject *) src; | |
10070 | return (void *) dest; | |
10071 | } | |
10072 | ||
b639c3c5 | 10073 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 10074 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10075 | PyObject * _resultobj; |
10076 | wxWindowDC * _result; | |
10077 | wxWindow * _arg0; | |
1d99702e | 10078 | PyObject * _argo0 = 0; |
1afc06c2 | 10079 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
10080 | char _ptemp[128]; |
10081 | ||
10082 | self = self; | |
1afc06c2 | 10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 10084 | return NULL; |
1d99702e RD |
10085 | if (_argo0) { |
10086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
10088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
10089 | return NULL; | |
10090 | } | |
10091 | } | |
cf694132 RD |
10092 | { |
10093 | wxPy_BEGIN_ALLOW_THREADS; | |
10094 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); | |
10095 | ||
10096 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10097 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10098 | } if (_result) { |
10099 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10100 | _resultobj = Py_BuildValue("s",_ptemp); | |
10101 | } else { | |
10102 | Py_INCREF(Py_None); | |
10103 | _resultobj = Py_None; | |
10104 | } | |
b639c3c5 RD |
10105 | return _resultobj; |
10106 | } | |
10107 | ||
17c0e08c RD |
10108 | static void *SwigwxMetaFileTowxObject(void *ptr) { |
10109 | wxMetaFile *src; | |
10110 | wxObject *dest; | |
10111 | src = (wxMetaFile *) ptr; | |
10112 | dest = (wxObject *) src; | |
10113 | return (void *) dest; | |
10114 | } | |
10115 | ||
10116 | #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0)) | |
10117 | static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10118 | PyObject * _resultobj; | |
10119 | wxMetaFile * _result; | |
10120 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
10121 | PyObject * _obj0 = 0; | |
10122 | char *_kwnames[] = { "filename", NULL }; | |
10123 | char _ptemp[128]; | |
10124 | ||
10125 | self = self; | |
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0)) | |
10127 | return NULL; | |
10128 | if (_obj0) | |
10129 | { | |
10130 | #if PYTHON_API_VERSION >= 1009 | |
10131 | char* tmpPtr; int tmpSize; | |
10132 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
10133 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10134 | return NULL; | |
10135 | } | |
10136 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10137 | return NULL; | |
10138 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10139 | #else | |
10140 | if (!PyString_Check(_obj0)) { | |
10141 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10142 | return NULL; | |
10143 | } | |
10144 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10145 | #endif | |
10146 | } | |
10147 | { | |
10148 | wxPy_BEGIN_ALLOW_THREADS; | |
10149 | _result = (wxMetaFile *)new_wxMetaFile(*_arg0); | |
10150 | ||
10151 | wxPy_END_ALLOW_THREADS; | |
10152 | if (PyErr_Occurred()) return NULL; | |
10153 | } if (_result) { | |
10154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
10155 | _resultobj = Py_BuildValue("s",_ptemp); | |
10156 | } else { | |
10157 | Py_INCREF(Py_None); | |
10158 | _resultobj = Py_None; | |
10159 | } | |
10160 | { | |
10161 | if (_obj0) | |
10162 | delete _arg0; | |
10163 | } | |
10164 | return _resultobj; | |
10165 | } | |
10166 | ||
10167 | #define delete_wxMetaFile(_swigobj) (delete _swigobj) | |
10168 | static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10169 | PyObject * _resultobj; | |
10170 | wxMetaFile * _arg0; | |
10171 | PyObject * _argo0 = 0; | |
10172 | char *_kwnames[] = { "self", NULL }; | |
10173 | ||
10174 | self = self; | |
10175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0)) | |
10176 | return NULL; | |
10177 | if (_argo0) { | |
10178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p."); | |
10181 | return NULL; | |
10182 | } | |
10183 | } | |
10184 | { | |
10185 | wxPy_BEGIN_ALLOW_THREADS; | |
10186 | delete_wxMetaFile(_arg0); | |
10187 | ||
10188 | wxPy_END_ALLOW_THREADS; | |
10189 | if (PyErr_Occurred()) return NULL; | |
10190 | } Py_INCREF(Py_None); | |
10191 | _resultobj = Py_None; | |
10192 | return _resultobj; | |
10193 | } | |
10194 | ||
10195 | #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok()) | |
10196 | static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10197 | PyObject * _resultobj; | |
10198 | bool _result; | |
10199 | wxMetaFile * _arg0; | |
10200 | PyObject * _argo0 = 0; | |
10201 | char *_kwnames[] = { "self", NULL }; | |
10202 | ||
10203 | self = self; | |
10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0)) | |
10205 | return NULL; | |
10206 | if (_argo0) { | |
10207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p."); | |
10210 | return NULL; | |
10211 | } | |
10212 | } | |
10213 | { | |
10214 | wxPy_BEGIN_ALLOW_THREADS; | |
10215 | _result = (bool )wxMetaFile_Ok(_arg0); | |
10216 | ||
10217 | wxPy_END_ALLOW_THREADS; | |
10218 | if (PyErr_Occurred()) return NULL; | |
10219 | } _resultobj = Py_BuildValue("i",_result); | |
10220 | return _resultobj; | |
10221 | } | |
10222 | ||
10223 | #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1)) | |
10224 | static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10225 | PyObject * _resultobj; | |
10226 | bool _result; | |
10227 | wxMetaFile * _arg0; | |
10228 | int _arg1 = (int ) 0; | |
10229 | int _arg2 = (int ) 0; | |
10230 | PyObject * _argo0 = 0; | |
10231 | char *_kwnames[] = { "self","width","height", NULL }; | |
10232 | ||
10233 | self = self; | |
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10235 | return NULL; | |
10236 | if (_argo0) { | |
10237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p."); | |
10240 | return NULL; | |
10241 | } | |
10242 | } | |
10243 | { | |
10244 | wxPy_BEGIN_ALLOW_THREADS; | |
10245 | _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2); | |
10246 | ||
10247 | wxPy_END_ALLOW_THREADS; | |
10248 | if (PyErr_Occurred()) return NULL; | |
10249 | } _resultobj = Py_BuildValue("i",_result); | |
10250 | return _resultobj; | |
10251 | } | |
10252 | ||
10253 | #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize()) | |
10254 | static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10255 | PyObject * _resultobj; | |
10256 | wxSize * _result; | |
10257 | wxMetaFile * _arg0; | |
10258 | PyObject * _argo0 = 0; | |
10259 | char *_kwnames[] = { "self", NULL }; | |
10260 | char _ptemp[128]; | |
10261 | ||
10262 | self = self; | |
10263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0)) | |
10264 | return NULL; | |
10265 | if (_argo0) { | |
10266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p."); | |
10269 | return NULL; | |
10270 | } | |
10271 | } | |
10272 | { | |
10273 | wxPy_BEGIN_ALLOW_THREADS; | |
10274 | _result = new wxSize (wxMetaFile_GetSize(_arg0)); | |
10275 | ||
10276 | wxPy_END_ALLOW_THREADS; | |
10277 | if (PyErr_Occurred()) return NULL; | |
10278 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
10279 | _resultobj = Py_BuildValue("s",_ptemp); | |
10280 | return _resultobj; | |
10281 | } | |
10282 | ||
10283 | #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10284 | static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject * _resultobj; | |
10286 | int _result; | |
10287 | wxMetaFile * _arg0; | |
10288 | PyObject * _argo0 = 0; | |
10289 | char *_kwnames[] = { "self", NULL }; | |
10290 | ||
10291 | self = self; | |
10292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0)) | |
10293 | return NULL; | |
10294 | if (_argo0) { | |
10295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p."); | |
10298 | return NULL; | |
10299 | } | |
10300 | } | |
10301 | { | |
10302 | wxPy_BEGIN_ALLOW_THREADS; | |
10303 | _result = (int )wxMetaFile_GetWidth(_arg0); | |
10304 | ||
10305 | wxPy_END_ALLOW_THREADS; | |
10306 | if (PyErr_Occurred()) return NULL; | |
10307 | } _resultobj = Py_BuildValue("i",_result); | |
10308 | return _resultobj; | |
10309 | } | |
10310 | ||
10311 | #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10312 | static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10313 | PyObject * _resultobj; | |
10314 | int _result; | |
10315 | wxMetaFile * _arg0; | |
10316 | PyObject * _argo0 = 0; | |
10317 | char *_kwnames[] = { "self", NULL }; | |
10318 | ||
10319 | self = self; | |
10320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0)) | |
10321 | return NULL; | |
10322 | if (_argo0) { | |
10323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p."); | |
10326 | return NULL; | |
10327 | } | |
10328 | } | |
10329 | { | |
10330 | wxPy_BEGIN_ALLOW_THREADS; | |
10331 | _result = (int )wxMetaFile_GetHeight(_arg0); | |
10332 | ||
10333 | wxPy_END_ALLOW_THREADS; | |
10334 | if (PyErr_Occurred()) return NULL; | |
10335 | } _resultobj = Py_BuildValue("i",_result); | |
10336 | return _resultobj; | |
10337 | } | |
10338 | ||
10339 | #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
10340 | static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject * _resultobj; | |
10342 | wxString * _result; | |
10343 | wxMetaFile * _arg0; | |
10344 | PyObject * _argo0 = 0; | |
10345 | char *_kwnames[] = { "self", NULL }; | |
10346 | ||
10347 | self = self; | |
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0)) | |
10349 | return NULL; | |
10350 | if (_argo0) { | |
10351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p."); | |
10354 | return NULL; | |
10355 | } | |
10356 | } | |
10357 | { | |
10358 | wxPy_BEGIN_ALLOW_THREADS; | |
10359 | const wxString & _result_ref = wxMetaFile_GetFileName(_arg0); | |
10360 | _result = (wxString *) &_result_ref; | |
10361 | ||
10362 | wxPy_END_ALLOW_THREADS; | |
10363 | if (PyErr_Occurred()) return NULL; | |
10364 | }{ | |
10365 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10366 | } | |
10367 | return _resultobj; | |
10368 | } | |
10369 | ||
8ab979d7 RD |
10370 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
10371 | wxMetaFileDC *src; | |
10372 | wxDC *dest; | |
10373 | src = (wxMetaFileDC *) ptr; | |
10374 | dest = (wxDC *) src; | |
10375 | return (void *) dest; | |
10376 | } | |
10377 | ||
9416aa89 RD |
10378 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
10379 | wxMetaFileDC *src; | |
10380 | wxObject *dest; | |
10381 | src = (wxMetaFileDC *) ptr; | |
10382 | dest = (wxObject *) src; | |
10383 | return (void *) dest; | |
10384 | } | |
10385 | ||
17c0e08c | 10386 | #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 10387 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10388 | PyObject * _resultobj; |
10389 | wxMetaFileDC * _result; | |
1d99702e | 10390 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
17c0e08c RD |
10391 | int _arg1 = (int ) 0; |
10392 | int _arg2 = (int ) 0; | |
10393 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8ab979d7 | 10394 | PyObject * _obj0 = 0; |
17c0e08c RD |
10395 | PyObject * _obj3 = 0; |
10396 | char *_kwnames[] = { "filename","width","height","description", NULL }; | |
8ab979d7 RD |
10397 | char _ptemp[128]; |
10398 | ||
10399 | self = self; | |
17c0e08c | 10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 RD |
10401 | return NULL; |
10402 | if (_obj0) | |
10403 | { | |
185d7c3e RD |
10404 | #if PYTHON_API_VERSION >= 1009 |
10405 | char* tmpPtr; int tmpSize; | |
10406 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 10407 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
10408 | return NULL; |
10409 | } | |
10410 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10411 | return NULL; | |
10412 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10413 | #else | |
8ab979d7 RD |
10414 | if (!PyString_Check(_obj0)) { |
10415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10416 | return NULL; | |
10417 | } | |
185d7c3e RD |
10418 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
10419 | #endif | |
17c0e08c RD |
10420 | } |
10421 | if (_obj3) | |
10422 | { | |
10423 | #if PYTHON_API_VERSION >= 1009 | |
10424 | char* tmpPtr; int tmpSize; | |
10425 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
10426 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10427 | return NULL; | |
10428 | } | |
10429 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
10430 | return NULL; | |
10431 | _arg3 = new wxString(tmpPtr, tmpSize); | |
10432 | #else | |
10433 | if (!PyString_Check(_obj3)) { | |
10434 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10435 | return NULL; | |
10436 | } | |
10437 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
10438 | #endif | |
8ab979d7 | 10439 | } |
cf694132 RD |
10440 | { |
10441 | wxPy_BEGIN_ALLOW_THREADS; | |
17c0e08c | 10442 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3); |
cf694132 RD |
10443 | |
10444 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10445 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10446 | } if (_result) { |
10447 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
10448 | _resultobj = Py_BuildValue("s",_ptemp); | |
10449 | } else { | |
10450 | Py_INCREF(Py_None); | |
10451 | _resultobj = Py_None; | |
10452 | } | |
8ab979d7 RD |
10453 | { |
10454 | if (_obj0) | |
10455 | delete _arg0; | |
17c0e08c RD |
10456 | } |
10457 | { | |
10458 | if (_obj3) | |
10459 | delete _arg3; | |
8ab979d7 RD |
10460 | } |
10461 | return _resultobj; | |
10462 | } | |
10463 | ||
10464 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 10465 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10466 | PyObject * _resultobj; |
10467 | wxMetaFile * _result; | |
10468 | wxMetaFileDC * _arg0; | |
1d99702e | 10469 | PyObject * _argo0 = 0; |
1afc06c2 | 10470 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10471 | char _ptemp[128]; |
10472 | ||
10473 | self = self; | |
1afc06c2 | 10474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 10475 | return NULL; |
1d99702e RD |
10476 | if (_argo0) { |
10477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
10479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
10480 | return NULL; | |
10481 | } | |
10482 | } | |
cf694132 RD |
10483 | { |
10484 | wxPy_BEGIN_ALLOW_THREADS; | |
10485 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); | |
10486 | ||
10487 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10488 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10489 | } if (_result) { |
10490 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
10491 | _resultobj = Py_BuildValue("s",_ptemp); | |
10492 | } else { | |
10493 | Py_INCREF(Py_None); | |
10494 | _resultobj = Py_None; | |
10495 | } | |
8ab979d7 RD |
10496 | return _resultobj; |
10497 | } | |
10498 | ||
9416aa89 RD |
10499 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
10500 | wxPalette *src; | |
10501 | wxGDIObject *dest; | |
10502 | src = (wxPalette *) ptr; | |
10503 | dest = (wxGDIObject *) src; | |
10504 | return (void *) dest; | |
10505 | } | |
10506 | ||
10507 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
10508 | wxPalette *src; | |
10509 | wxObject *dest; | |
10510 | src = (wxPalette *) ptr; | |
10511 | dest = (wxObject *) src; | |
10512 | return (void *) dest; | |
10513 | } | |
10514 | ||
b639c3c5 | 10515 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 10516 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10517 | PyObject * _resultobj; |
10518 | wxPalette * _result; | |
10519 | int _arg0; | |
10520 | byte * _arg1; | |
10521 | byte * _arg2; | |
10522 | byte * _arg3; | |
10523 | PyObject * _obj1 = 0; | |
10524 | PyObject * _obj2 = 0; | |
10525 | PyObject * _obj3 = 0; | |
eec92d76 | 10526 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
10527 | char _ptemp[128]; |
10528 | ||
10529 | self = self; | |
1afc06c2 | 10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
10531 | return NULL; |
10532 | { | |
10533 | _arg1 = byte_LIST_helper(_obj1); | |
10534 | if (_arg1 == NULL) { | |
10535 | return NULL; | |
10536 | } | |
10537 | } | |
10538 | { | |
10539 | _arg2 = byte_LIST_helper(_obj2); | |
10540 | if (_arg2 == NULL) { | |
10541 | return NULL; | |
10542 | } | |
10543 | } | |
10544 | if (_obj3) | |
10545 | { | |
10546 | _arg3 = byte_LIST_helper(_obj3); | |
10547 | if (_arg3 == NULL) { | |
10548 | return NULL; | |
10549 | } | |
10550 | } | |
10551 | { | |
cf694132 RD |
10552 | if (_obj1) { |
10553 | _arg0 = PyList_Size(_obj1); | |
10554 | } | |
10555 | else { | |
10556 | _arg0 = 0; | |
10557 | } | |
b639c3c5 | 10558 | } |
cf694132 RD |
10559 | { |
10560 | wxPy_BEGIN_ALLOW_THREADS; | |
10561 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); | |
10562 | ||
10563 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10564 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10565 | } if (_result) { |
10566 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
10567 | _resultobj = Py_BuildValue("s",_ptemp); | |
10568 | } else { | |
10569 | Py_INCREF(Py_None); | |
10570 | _resultobj = Py_None; | |
10571 | } | |
b639c3c5 RD |
10572 | { |
10573 | delete [] _arg1; | |
10574 | } | |
10575 | { | |
10576 | delete [] _arg2; | |
10577 | } | |
10578 | { | |
10579 | delete [] _arg3; | |
10580 | } | |
10581 | return _resultobj; | |
10582 | } | |
10583 | ||
10584 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 10585 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10586 | PyObject * _resultobj; |
10587 | wxPalette * _arg0; | |
1d99702e | 10588 | PyObject * _argo0 = 0; |
1afc06c2 | 10589 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
10590 | |
10591 | self = self; | |
1afc06c2 | 10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 10593 | return NULL; |
1d99702e RD |
10594 | if (_argo0) { |
10595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
10597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
10598 | return NULL; | |
10599 | } | |
10600 | } | |
cf694132 RD |
10601 | { |
10602 | wxPy_BEGIN_ALLOW_THREADS; | |
10603 | delete_wxPalette(_arg0); | |
10604 | ||
10605 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10606 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10607 | } Py_INCREF(Py_None); |
b639c3c5 RD |
10608 | _resultobj = Py_None; |
10609 | return _resultobj; | |
10610 | } | |
10611 | ||
10612 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 10613 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10614 | PyObject * _resultobj; |
10615 | int _result; | |
10616 | wxPalette * _arg0; | |
10617 | byte _arg1; | |
10618 | byte _arg2; | |
10619 | byte _arg3; | |
1d99702e | 10620 | PyObject * _argo0 = 0; |
1afc06c2 | 10621 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
10622 | |
10623 | self = self; | |
1afc06c2 | 10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 10625 | return NULL; |
1d99702e RD |
10626 | if (_argo0) { |
10627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
10629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
10630 | return NULL; | |
10631 | } | |
10632 | } | |
cf694132 RD |
10633 | { |
10634 | wxPy_BEGIN_ALLOW_THREADS; | |
10635 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); | |
10636 | ||
10637 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10639 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
10640 | return _resultobj; |
10641 | } | |
10642 | ||
10643 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 10644 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10645 | PyObject * _resultobj; |
10646 | bool _result; | |
10647 | wxPalette * _arg0; | |
10648 | int _arg1; | |
10649 | byte * _arg2; | |
10650 | byte * _arg3; | |
10651 | byte * _arg4; | |
1d99702e RD |
10652 | PyObject * _argo0 = 0; |
10653 | PyObject * _argo2 = 0; | |
10654 | PyObject * _argo3 = 0; | |
10655 | PyObject * _argo4 = 0; | |
1afc06c2 | 10656 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
b639c3c5 RD |
10657 | |
10658 | self = self; | |
1afc06c2 | 10659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
b639c3c5 | 10660 | return NULL; |
1d99702e RD |
10661 | if (_argo0) { |
10662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
10664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
10665 | return NULL; | |
10666 | } | |
10667 | } | |
1d99702e RD |
10668 | if (_argo2) { |
10669 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10670 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
b639c3c5 RD |
10671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
10672 | return NULL; | |
10673 | } | |
10674 | } | |
1d99702e RD |
10675 | if (_argo3) { |
10676 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
10677 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
b639c3c5 RD |
10678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
10679 | return NULL; | |
10680 | } | |
10681 | } | |
1d99702e RD |
10682 | if (_argo4) { |
10683 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
10684 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
b639c3c5 RD |
10685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
10686 | return NULL; | |
10687 | } | |
10688 | } | |
cf694132 RD |
10689 | { |
10690 | wxPy_BEGIN_ALLOW_THREADS; | |
10691 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); | |
10692 | ||
10693 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10695 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
10696 | return _resultobj; |
10697 | } | |
10698 | ||
10699 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 10700 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10701 | PyObject * _resultobj; |
10702 | bool _result; | |
10703 | wxPalette * _arg0; | |
1d99702e | 10704 | PyObject * _argo0 = 0; |
1afc06c2 | 10705 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
10706 | |
10707 | self = self; | |
1afc06c2 | 10708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 10709 | return NULL; |
1d99702e RD |
10710 | if (_argo0) { |
10711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
10713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
10714 | return NULL; | |
10715 | } | |
10716 | } | |
cf694132 RD |
10717 | { |
10718 | wxPy_BEGIN_ALLOW_THREADS; | |
10719 | _result = (bool )wxPalette_Ok(_arg0); | |
10720 | ||
10721 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10722 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10723 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
10724 | return _resultobj; |
10725 | } | |
10726 | ||
9416aa89 RD |
10727 | static void *SwigwxImageListTowxObject(void *ptr) { |
10728 | wxImageList *src; | |
10729 | wxObject *dest; | |
10730 | src = (wxImageList *) ptr; | |
10731 | dest = (wxObject *) src; | |
10732 | return (void *) dest; | |
10733 | } | |
10734 | ||
af309447 | 10735 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 10736 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10737 | PyObject * _resultobj; |
10738 | wxImageList * _result; | |
10739 | int _arg0; | |
10740 | int _arg1; | |
dcd38683 | 10741 | int _arg2 = (int ) TRUE; |
1d99702e | 10742 | int _arg3 = (int ) 1; |
1afc06c2 | 10743 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
10744 | char _ptemp[128]; |
10745 | ||
10746 | self = self; | |
6999b0d8 | 10747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 10748 | return NULL; |
cf694132 RD |
10749 | { |
10750 | wxPy_BEGIN_ALLOW_THREADS; | |
10751 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); | |
10752 | ||
10753 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10754 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10755 | } if (_result) { |
10756 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
10757 | _resultobj = Py_BuildValue("s",_ptemp); | |
10758 | } else { | |
10759 | Py_INCREF(Py_None); | |
10760 | _resultobj = Py_None; | |
10761 | } | |
af309447 RD |
10762 | return _resultobj; |
10763 | } | |
10764 | ||
10765 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 10766 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10767 | PyObject * _resultobj; |
10768 | wxImageList * _arg0; | |
1d99702e | 10769 | PyObject * _argo0 = 0; |
1afc06c2 | 10770 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
10771 | |
10772 | self = self; | |
1afc06c2 | 10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 10774 | return NULL; |
1d99702e RD |
10775 | if (_argo0) { |
10776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
10779 | return NULL; | |
10780 | } | |
10781 | } | |
cf694132 RD |
10782 | { |
10783 | wxPy_BEGIN_ALLOW_THREADS; | |
10784 | delete_wxImageList(_arg0); | |
10785 | ||
10786 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10788 | } Py_INCREF(Py_None); |
af309447 RD |
10789 | _resultobj = Py_None; |
10790 | return _resultobj; | |
10791 | } | |
10792 | ||
10793 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 10794 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10795 | PyObject * _resultobj; |
10796 | int _result; | |
10797 | wxImageList * _arg0; | |
10798 | wxBitmap * _arg1; | |
1d99702e RD |
10799 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
10800 | PyObject * _argo0 = 0; | |
10801 | PyObject * _argo1 = 0; | |
10802 | PyObject * _argo2 = 0; | |
1afc06c2 | 10803 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
10804 | |
10805 | self = self; | |
1afc06c2 | 10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 10807 | return NULL; |
1d99702e RD |
10808 | if (_argo0) { |
10809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
10812 | return NULL; | |
10813 | } | |
10814 | } | |
1d99702e RD |
10815 | if (_argo1) { |
10816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
10818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
10819 | return NULL; | |
10820 | } | |
10821 | } | |
1d99702e RD |
10822 | if (_argo2) { |
10823 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10824 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
10825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
10826 | return NULL; | |
10827 | } | |
10828 | } | |
cf694132 RD |
10829 | { |
10830 | wxPy_BEGIN_ALLOW_THREADS; | |
10831 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); | |
10832 | ||
10833 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10835 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10836 | return _resultobj; |
10837 | } | |
10838 | ||
10839 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 10840 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10841 | PyObject * _resultobj; |
10842 | int _result; | |
10843 | wxImageList * _arg0; | |
10844 | wxBitmap * _arg1; | |
10845 | wxColour * _arg2; | |
1d99702e RD |
10846 | PyObject * _argo0 = 0; |
10847 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
10848 | wxColour temp; |
10849 | PyObject * _obj2 = 0; | |
1afc06c2 | 10850 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
10851 | |
10852 | self = self; | |
f6bcfd97 | 10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 10854 | return NULL; |
1d99702e RD |
10855 | if (_argo0) { |
10856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
10859 | return NULL; | |
10860 | } | |
10861 | } | |
1d99702e RD |
10862 | if (_argo1) { |
10863 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10864 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
10865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
10866 | return NULL; | |
10867 | } | |
10868 | } | |
f6bcfd97 BP |
10869 | { |
10870 | _arg2 = &temp; | |
10871 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 10872 | return NULL; |
f6bcfd97 | 10873 | } |
cf694132 RD |
10874 | { |
10875 | wxPy_BEGIN_ALLOW_THREADS; | |
10876 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); | |
10877 | ||
10878 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10879 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10880 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10881 | return _resultobj; |
10882 | } | |
10883 | ||
10884 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 10885 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10886 | PyObject * _resultobj; |
10887 | int _result; | |
10888 | wxImageList * _arg0; | |
10889 | wxIcon * _arg1; | |
1d99702e RD |
10890 | PyObject * _argo0 = 0; |
10891 | PyObject * _argo1 = 0; | |
1afc06c2 | 10892 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
10893 | |
10894 | self = self; | |
1afc06c2 | 10895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 10896 | return NULL; |
1d99702e RD |
10897 | if (_argo0) { |
10898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
10901 | return NULL; | |
10902 | } | |
10903 | } | |
1d99702e RD |
10904 | if (_argo1) { |
10905 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10906 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
10907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
10908 | return NULL; | |
10909 | } | |
10910 | } | |
cf694132 RD |
10911 | { |
10912 | wxPy_BEGIN_ALLOW_THREADS; | |
10913 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); | |
10914 | ||
10915 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10916 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10917 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10918 | return _resultobj; |
10919 | } | |
10920 | ||
21f8d7ea | 10921 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 10922 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10923 | PyObject * _resultobj; |
10924 | bool _result; | |
10925 | wxImageList * _arg0; | |
10926 | int _arg1; | |
21f8d7ea | 10927 | wxBitmap * _arg2; |
1d99702e RD |
10928 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
10929 | PyObject * _argo0 = 0; | |
10930 | PyObject * _argo2 = 0; | |
10931 | PyObject * _argo3 = 0; | |
1afc06c2 | 10932 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
10933 | |
10934 | self = self; | |
1afc06c2 | 10935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 10936 | return NULL; |
1d99702e RD |
10937 | if (_argo0) { |
10938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
10941 | return NULL; |
10942 | } | |
10943 | } | |
1d99702e RD |
10944 | if (_argo2) { |
10945 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10946 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 10947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
10948 | return NULL; |
10949 | } | |
10950 | } | |
1d99702e RD |
10951 | if (_argo3) { |
10952 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
10953 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
10954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
10955 | return NULL; | |
10956 | } | |
10957 | } | |
cf694132 RD |
10958 | { |
10959 | wxPy_BEGIN_ALLOW_THREADS; | |
10960 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); | |
10961 | ||
10962 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 10963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10964 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10965 | return _resultobj; |
10966 | } | |
10967 | ||
21f8d7ea | 10968 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 10969 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10970 | PyObject * _resultobj; |
10971 | bool _result; | |
10972 | wxImageList * _arg0; | |
10973 | int _arg1; | |
21f8d7ea RD |
10974 | wxDC * _arg2; |
10975 | int _arg3; | |
10976 | int _arg4; | |
1d99702e RD |
10977 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
10978 | bool _arg6 = (bool ) FALSE; | |
10979 | PyObject * _argo0 = 0; | |
10980 | PyObject * _argo2 = 0; | |
10981 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 10982 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
10983 | |
10984 | self = self; | |
1afc06c2 | 10985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 10986 | return NULL; |
1d99702e RD |
10987 | if (_argo0) { |
10988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
10991 | return NULL; |
10992 | } | |
10993 | } | |
1d99702e RD |
10994 | if (_argo2) { |
10995 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10996 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
10997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
10998 | return NULL; | |
10999 | } | |
11000 | } | |
11001 | _arg6 = (bool ) tempbool6; | |
cf694132 RD |
11002 | { |
11003 | wxPy_BEGIN_ALLOW_THREADS; | |
11004 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); | |
11005 | ||
11006 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11007 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11008 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11009 | return _resultobj; |
11010 | } | |
11011 | ||
21f8d7ea | 11012 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 11013 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 11014 | PyObject * _resultobj; |
21f8d7ea | 11015 | int _result; |
af309447 | 11016 | wxImageList * _arg0; |
1d99702e | 11017 | PyObject * _argo0 = 0; |
1afc06c2 | 11018 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11019 | |
11020 | self = self; | |
1afc06c2 | 11021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 11022 | return NULL; |
1d99702e RD |
11023 | if (_argo0) { |
11024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
11027 | return NULL; |
11028 | } | |
11029 | } | |
cf694132 RD |
11030 | { |
11031 | wxPy_BEGIN_ALLOW_THREADS; | |
11032 | _result = (int )wxImageList_GetImageCount(_arg0); | |
11033 | ||
11034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11036 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11037 | return _resultobj; |
11038 | } | |
11039 | ||
21f8d7ea | 11040 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 11041 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11042 | PyObject * _resultobj; |
11043 | bool _result; | |
11044 | wxImageList * _arg0; | |
11045 | int _arg1; | |
1d99702e | 11046 | PyObject * _argo0 = 0; |
1afc06c2 | 11047 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
11048 | |
11049 | self = self; | |
1afc06c2 | 11050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 11051 | return NULL; |
1d99702e RD |
11052 | if (_argo0) { |
11053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
11056 | return NULL; |
11057 | } | |
11058 | } | |
cf694132 RD |
11059 | { |
11060 | wxPy_BEGIN_ALLOW_THREADS; | |
11061 | _result = (bool )wxImageList_Remove(_arg0,_arg1); | |
11062 | ||
11063 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11065 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11066 | return _resultobj; |
11067 | } | |
11068 | ||
21f8d7ea | 11069 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 11070 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11071 | PyObject * _resultobj; |
11072 | bool _result; | |
11073 | wxImageList * _arg0; | |
1d99702e | 11074 | PyObject * _argo0 = 0; |
1afc06c2 | 11075 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11076 | |
11077 | self = self; | |
1afc06c2 | 11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 11079 | return NULL; |
1d99702e RD |
11080 | if (_argo0) { |
11081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
11084 | return NULL; |
11085 | } | |
11086 | } | |
cf694132 RD |
11087 | { |
11088 | wxPy_BEGIN_ALLOW_THREADS; | |
11089 | _result = (bool )wxImageList_RemoveAll(_arg0); | |
11090 | ||
11091 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11092 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11093 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11094 | return _resultobj; |
11095 | } | |
11096 | ||
f6bcfd97 BP |
11097 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
11098 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11099 | PyObject * _resultobj; | |
11100 | wxImageList * _arg0; | |
11101 | int _arg1; | |
11102 | int * _arg2; | |
11103 | int temp; | |
11104 | int * _arg3; | |
11105 | int temp0; | |
11106 | PyObject * _argo0 = 0; | |
11107 | char *_kwnames[] = { "self","index", NULL }; | |
11108 | ||
11109 | self = self; | |
11110 | { | |
11111 | _arg2 = &temp; | |
11112 | } | |
11113 | { | |
11114 | _arg3 = &temp0; | |
11115 | } | |
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
11117 | return NULL; | |
11118 | if (_argo0) { | |
11119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
11121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
11122 | return NULL; | |
11123 | } | |
11124 | } | |
11125 | { | |
11126 | wxPy_BEGIN_ALLOW_THREADS; | |
11127 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); | |
11128 | ||
11129 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11130 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11131 | } Py_INCREF(Py_None); |
11132 | _resultobj = Py_None; | |
11133 | { | |
11134 | PyObject *o; | |
11135 | o = PyInt_FromLong((long) (*_arg2)); | |
11136 | _resultobj = t_output_helper(_resultobj, o); | |
11137 | } | |
11138 | { | |
11139 | PyObject *o; | |
11140 | o = PyInt_FromLong((long) (*_arg3)); | |
11141 | _resultobj = t_output_helper(_resultobj, o); | |
11142 | } | |
11143 | return _resultobj; | |
11144 | } | |
11145 | ||
9416aa89 RD |
11146 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
11147 | wxRegion *src; | |
11148 | wxGDIObject *dest; | |
11149 | src = (wxRegion *) ptr; | |
11150 | dest = (wxGDIObject *) src; | |
11151 | return (void *) dest; | |
11152 | } | |
11153 | ||
11154 | static void *SwigwxRegionTowxObject(void *ptr) { | |
11155 | wxRegion *src; | |
11156 | wxObject *dest; | |
11157 | src = (wxRegion *) ptr; | |
11158 | dest = (wxObject *) src; | |
11159 | return (void *) dest; | |
11160 | } | |
11161 | ||
11162 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11163 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11164 | PyObject * _resultobj; | |
11165 | wxRegion * _result; | |
11166 | long _arg0 = (long ) 0; | |
11167 | long _arg1 = (long ) 0; | |
11168 | long _arg2 = (long ) 0; | |
11169 | long _arg3 = (long ) 0; | |
11170 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
11171 | char _ptemp[128]; | |
11172 | ||
11173 | self = self; | |
11174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
11175 | return NULL; | |
11176 | { | |
11177 | wxPy_BEGIN_ALLOW_THREADS; | |
11178 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); | |
11179 | ||
11180 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11181 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11182 | } if (_result) { |
11183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
11184 | _resultobj = Py_BuildValue("s",_ptemp); | |
11185 | } else { | |
11186 | Py_INCREF(Py_None); | |
11187 | _resultobj = Py_None; | |
11188 | } | |
11189 | return _resultobj; | |
11190 | } | |
11191 | ||
11192 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
11193 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11194 | PyObject * _resultobj; | |
11195 | wxRegion * _arg0; | |
11196 | PyObject * _argo0 = 0; | |
11197 | char *_kwnames[] = { "self", NULL }; | |
11198 | ||
11199 | self = self; | |
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
11201 | return NULL; | |
11202 | if (_argo0) { | |
11203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
11206 | return NULL; | |
11207 | } | |
11208 | } | |
11209 | { | |
11210 | wxPy_BEGIN_ALLOW_THREADS; | |
11211 | delete_wxRegion(_arg0); | |
11212 | ||
11213 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11214 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11215 | } Py_INCREF(Py_None); |
11216 | _resultobj = Py_None; | |
11217 | return _resultobj; | |
11218 | } | |
11219 | ||
11220 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
11221 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11222 | PyObject * _resultobj; | |
11223 | wxRegion * _arg0; | |
11224 | PyObject * _argo0 = 0; | |
11225 | char *_kwnames[] = { "self", NULL }; | |
11226 | ||
11227 | self = self; | |
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
11229 | return NULL; | |
11230 | if (_argo0) { | |
11231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
11234 | return NULL; | |
11235 | } | |
11236 | } | |
11237 | { | |
11238 | wxPy_BEGIN_ALLOW_THREADS; | |
11239 | wxRegion_Clear(_arg0); | |
11240 | ||
11241 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11242 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11243 | } Py_INCREF(Py_None); |
11244 | _resultobj = Py_None; | |
11245 | return _resultobj; | |
11246 | } | |
11247 | ||
11248 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
11249 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11250 | PyObject * _resultobj; | |
11251 | wxRegionContain _result; | |
11252 | wxRegion * _arg0; | |
11253 | long _arg1; | |
11254 | long _arg2; | |
11255 | PyObject * _argo0 = 0; | |
11256 | char *_kwnames[] = { "self","x","y", NULL }; | |
11257 | ||
11258 | self = self; | |
11259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11260 | return NULL; | |
11261 | if (_argo0) { | |
11262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
11265 | return NULL; | |
11266 | } | |
11267 | } | |
11268 | { | |
11269 | wxPy_BEGIN_ALLOW_THREADS; | |
11270 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); | |
11271 | ||
11272 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11273 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11274 | } _resultobj = Py_BuildValue("i",_result); |
11275 | return _resultobj; | |
11276 | } | |
11277 | ||
11278 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
11279 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11280 | PyObject * _resultobj; | |
11281 | wxRegionContain _result; | |
11282 | wxRegion * _arg0; | |
11283 | wxPoint * _arg1; | |
11284 | PyObject * _argo0 = 0; | |
11285 | wxPoint temp; | |
11286 | PyObject * _obj1 = 0; | |
11287 | char *_kwnames[] = { "self","pt", NULL }; | |
11288 | ||
11289 | self = self; | |
11290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
11291 | return NULL; | |
11292 | if (_argo0) { | |
11293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
11296 | return NULL; | |
11297 | } | |
11298 | } | |
11299 | { | |
11300 | _arg1 = &temp; | |
11301 | if (! wxPoint_helper(_obj1, &_arg1)) | |
11302 | return NULL; | |
11303 | } | |
11304 | { | |
11305 | wxPy_BEGIN_ALLOW_THREADS; | |
11306 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); | |
11307 | ||
11308 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11309 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11310 | } _resultobj = Py_BuildValue("i",_result); |
11311 | return _resultobj; | |
11312 | } | |
11313 | ||
11314 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
11315 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11316 | PyObject * _resultobj; | |
11317 | wxRegionContain _result; | |
11318 | wxRegion * _arg0; | |
11319 | wxRect * _arg1; | |
11320 | PyObject * _argo0 = 0; | |
11321 | wxRect temp; | |
11322 | PyObject * _obj1 = 0; | |
11323 | char *_kwnames[] = { "self","rect", NULL }; | |
11324 | ||
11325 | self = self; | |
11326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
11327 | return NULL; | |
11328 | if (_argo0) { | |
11329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
11332 | return NULL; | |
11333 | } | |
11334 | } | |
11335 | { | |
11336 | _arg1 = &temp; | |
11337 | if (! wxRect_helper(_obj1, &_arg1)) | |
11338 | return NULL; | |
11339 | } | |
11340 | { | |
11341 | wxPy_BEGIN_ALLOW_THREADS; | |
11342 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); | |
11343 | ||
11344 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11345 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11346 | } _resultobj = Py_BuildValue("i",_result); |
11347 | return _resultobj; | |
11348 | } | |
11349 | ||
11350 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11351 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11352 | PyObject * _resultobj; | |
11353 | wxRegionContain _result; | |
11354 | wxRegion * _arg0; | |
11355 | long _arg1; | |
11356 | long _arg2; | |
11357 | long _arg3; | |
11358 | long _arg4; | |
11359 | PyObject * _argo0 = 0; | |
11360 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
11361 | ||
11362 | self = self; | |
11363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11364 | return NULL; | |
11365 | if (_argo0) { | |
11366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
11369 | return NULL; | |
11370 | } | |
11371 | } | |
11372 | { | |
11373 | wxPy_BEGIN_ALLOW_THREADS; | |
11374 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); | |
11375 | ||
11376 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11377 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11378 | } _resultobj = Py_BuildValue("i",_result); |
11379 | return _resultobj; | |
11380 | } | |
11381 | ||
11382 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
11383 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11384 | PyObject * _resultobj; | |
11385 | wxRect * _result; | |
11386 | wxRegion * _arg0; | |
11387 | PyObject * _argo0 = 0; | |
11388 | char *_kwnames[] = { "self", NULL }; | |
11389 | char _ptemp[128]; | |
11390 | ||
11391 | self = self; | |
11392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
11393 | return NULL; | |
11394 | if (_argo0) { | |
11395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
11398 | return NULL; | |
11399 | } | |
11400 | } | |
11401 | { | |
11402 | wxPy_BEGIN_ALLOW_THREADS; | |
11403 | _result = new wxRect (wxRegion_GetBox(_arg0)); | |
11404 | ||
11405 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11406 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11407 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
11408 | _resultobj = Py_BuildValue("s",_ptemp); | |
11409 | return _resultobj; | |
11410 | } | |
11411 | ||
11412 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11413 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11414 | PyObject * _resultobj; | |
11415 | bool _result; | |
11416 | wxRegion * _arg0; | |
11417 | long _arg1; | |
11418 | long _arg2; | |
11419 | long _arg3; | |
11420 | long _arg4; | |
11421 | PyObject * _argo0 = 0; | |
11422 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11423 | ||
11424 | self = self; | |
11425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11426 | return NULL; | |
11427 | if (_argo0) { | |
11428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
11431 | return NULL; | |
11432 | } | |
11433 | } | |
11434 | { | |
11435 | wxPy_BEGIN_ALLOW_THREADS; | |
11436 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
11437 | ||
11438 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11439 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11440 | } _resultobj = Py_BuildValue("i",_result); |
11441 | return _resultobj; | |
11442 | } | |
11443 | ||
11444 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
11445 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11446 | PyObject * _resultobj; | |
11447 | bool _result; | |
11448 | wxRegion * _arg0; | |
11449 | wxRect * _arg1; | |
11450 | PyObject * _argo0 = 0; | |
11451 | wxRect temp; | |
11452 | PyObject * _obj1 = 0; | |
11453 | char *_kwnames[] = { "self","rect", NULL }; | |
11454 | ||
11455 | self = self; | |
11456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
11457 | return NULL; | |
11458 | if (_argo0) { | |
11459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
11462 | return NULL; | |
11463 | } | |
11464 | } | |
11465 | { | |
11466 | _arg1 = &temp; | |
11467 | if (! wxRect_helper(_obj1, &_arg1)) | |
11468 | return NULL; | |
11469 | } | |
11470 | { | |
11471 | wxPy_BEGIN_ALLOW_THREADS; | |
11472 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); | |
11473 | ||
11474 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11475 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11476 | } _resultobj = Py_BuildValue("i",_result); |
11477 | return _resultobj; | |
11478 | } | |
11479 | ||
11480 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
11481 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11482 | PyObject * _resultobj; | |
11483 | bool _result; | |
11484 | wxRegion * _arg0; | |
11485 | wxRegion * _arg1; | |
11486 | PyObject * _argo0 = 0; | |
11487 | PyObject * _argo1 = 0; | |
11488 | char *_kwnames[] = { "self","region", NULL }; | |
11489 | ||
11490 | self = self; | |
11491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
11492 | return NULL; | |
11493 | if (_argo0) { | |
11494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11497 | return NULL; | |
11498 | } | |
11499 | } | |
11500 | if (_argo1) { | |
11501 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11502 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11504 | return NULL; | |
11505 | } | |
11506 | } | |
11507 | { | |
11508 | wxPy_BEGIN_ALLOW_THREADS; | |
11509 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); | |
11510 | ||
11511 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11512 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11513 | } _resultobj = Py_BuildValue("i",_result); |
11514 | return _resultobj; | |
11515 | } | |
11516 | ||
11517 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
11518 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11519 | PyObject * _resultobj; | |
11520 | bool _result; | |
11521 | wxRegion * _arg0; | |
11522 | PyObject * _argo0 = 0; | |
11523 | char *_kwnames[] = { "self", NULL }; | |
11524 | ||
11525 | self = self; | |
11526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
11527 | return NULL; | |
11528 | if (_argo0) { | |
11529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
11532 | return NULL; | |
11533 | } | |
11534 | } | |
11535 | { | |
11536 | wxPy_BEGIN_ALLOW_THREADS; | |
11537 | _result = (bool )wxRegion_IsEmpty(_arg0); | |
11538 | ||
11539 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11540 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11541 | } _resultobj = Py_BuildValue("i",_result); |
11542 | return _resultobj; | |
11543 | } | |
11544 | ||
11545 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11546 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11547 | PyObject * _resultobj; | |
11548 | bool _result; | |
11549 | wxRegion * _arg0; | |
11550 | long _arg1; | |
11551 | long _arg2; | |
11552 | long _arg3; | |
11553 | long _arg4; | |
11554 | PyObject * _argo0 = 0; | |
11555 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11556 | ||
11557 | self = self; | |
11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11559 | return NULL; | |
11560 | if (_argo0) { | |
11561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
11564 | return NULL; | |
11565 | } | |
11566 | } | |
11567 | { | |
11568 | wxPy_BEGIN_ALLOW_THREADS; | |
11569 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); | |
11570 | ||
11571 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11572 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11573 | } _resultobj = Py_BuildValue("i",_result); |
11574 | return _resultobj; | |
11575 | } | |
11576 | ||
11577 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11578 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11579 | PyObject * _resultobj; | |
11580 | bool _result; | |
11581 | wxRegion * _arg0; | |
11582 | wxRect * _arg1; | |
11583 | PyObject * _argo0 = 0; | |
11584 | wxRect temp; | |
11585 | PyObject * _obj1 = 0; | |
11586 | char *_kwnames[] = { "self","rect", NULL }; | |
11587 | ||
11588 | self = self; | |
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
11590 | return NULL; | |
11591 | if (_argo0) { | |
11592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
11595 | return NULL; | |
11596 | } | |
11597 | } | |
11598 | { | |
11599 | _arg1 = &temp; | |
11600 | if (! wxRect_helper(_obj1, &_arg1)) | |
11601 | return NULL; | |
11602 | } | |
11603 | { | |
11604 | wxPy_BEGIN_ALLOW_THREADS; | |
11605 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); | |
11606 | ||
11607 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11608 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11609 | } _resultobj = Py_BuildValue("i",_result); |
11610 | return _resultobj; | |
11611 | } | |
11612 | ||
11613 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11614 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11615 | PyObject * _resultobj; | |
11616 | bool _result; | |
11617 | wxRegion * _arg0; | |
11618 | wxRegion * _arg1; | |
11619 | PyObject * _argo0 = 0; | |
11620 | PyObject * _argo1 = 0; | |
11621 | char *_kwnames[] = { "self","region", NULL }; | |
11622 | ||
11623 | self = self; | |
11624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
11625 | return NULL; | |
11626 | if (_argo0) { | |
11627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11630 | return NULL; | |
11631 | } | |
11632 | } | |
11633 | if (_argo1) { | |
11634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11637 | return NULL; | |
11638 | } | |
11639 | } | |
11640 | { | |
11641 | wxPy_BEGIN_ALLOW_THREADS; | |
11642 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); | |
11643 | ||
11644 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11645 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11646 | } _resultobj = Py_BuildValue("i",_result); |
11647 | return _resultobj; | |
11648 | } | |
11649 | ||
11650 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11651 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11652 | PyObject * _resultobj; | |
11653 | bool _result; | |
11654 | wxRegion * _arg0; | |
11655 | long _arg1; | |
11656 | long _arg2; | |
11657 | long _arg3; | |
11658 | long _arg4; | |
11659 | PyObject * _argo0 = 0; | |
11660 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11661 | ||
11662 | self = self; | |
11663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11664 | return NULL; | |
11665 | if (_argo0) { | |
11666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
11669 | return NULL; | |
11670 | } | |
11671 | } | |
11672 | { | |
11673 | wxPy_BEGIN_ALLOW_THREADS; | |
11674 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); | |
11675 | ||
11676 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11677 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11678 | } _resultobj = Py_BuildValue("i",_result); |
11679 | return _resultobj; | |
11680 | } | |
11681 | ||
11682 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11683 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11684 | PyObject * _resultobj; | |
11685 | bool _result; | |
11686 | wxRegion * _arg0; | |
11687 | wxRect * _arg1; | |
11688 | PyObject * _argo0 = 0; | |
11689 | wxRect temp; | |
11690 | PyObject * _obj1 = 0; | |
11691 | char *_kwnames[] = { "self","rect", NULL }; | |
11692 | ||
11693 | self = self; | |
11694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
11695 | return NULL; | |
11696 | if (_argo0) { | |
11697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
11700 | return NULL; | |
11701 | } | |
11702 | } | |
11703 | { | |
11704 | _arg1 = &temp; | |
11705 | if (! wxRect_helper(_obj1, &_arg1)) | |
11706 | return NULL; | |
11707 | } | |
11708 | { | |
11709 | wxPy_BEGIN_ALLOW_THREADS; | |
11710 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); | |
11711 | ||
11712 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11713 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11714 | } _resultobj = Py_BuildValue("i",_result); |
11715 | return _resultobj; | |
11716 | } | |
11717 | ||
11718 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11719 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11720 | PyObject * _resultobj; | |
11721 | bool _result; | |
11722 | wxRegion * _arg0; | |
11723 | wxRegion * _arg1; | |
11724 | PyObject * _argo0 = 0; | |
11725 | PyObject * _argo1 = 0; | |
11726 | char *_kwnames[] = { "self","region", NULL }; | |
11727 | ||
11728 | self = self; | |
11729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
11730 | return NULL; | |
11731 | if (_argo0) { | |
11732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11735 | return NULL; | |
11736 | } | |
11737 | } | |
11738 | if (_argo1) { | |
11739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11742 | return NULL; | |
11743 | } | |
11744 | } | |
11745 | { | |
11746 | wxPy_BEGIN_ALLOW_THREADS; | |
11747 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); | |
11748 | ||
11749 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11750 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11751 | } _resultobj = Py_BuildValue("i",_result); |
11752 | return _resultobj; | |
11753 | } | |
11754 | ||
11755 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11756 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11757 | PyObject * _resultobj; | |
11758 | bool _result; | |
11759 | wxRegion * _arg0; | |
11760 | long _arg1; | |
11761 | long _arg2; | |
11762 | long _arg3; | |
11763 | long _arg4; | |
11764 | PyObject * _argo0 = 0; | |
11765 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11766 | ||
11767 | self = self; | |
11768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11769 | return NULL; | |
11770 | if (_argo0) { | |
11771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11774 | return NULL; | |
11775 | } | |
11776 | } | |
11777 | { | |
11778 | wxPy_BEGIN_ALLOW_THREADS; | |
11779 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); | |
11780 | ||
11781 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11782 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11783 | } _resultobj = Py_BuildValue("i",_result); |
11784 | return _resultobj; | |
11785 | } | |
11786 | ||
11787 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11788 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11789 | PyObject * _resultobj; | |
11790 | bool _result; | |
11791 | wxRegion * _arg0; | |
11792 | wxRect * _arg1; | |
11793 | PyObject * _argo0 = 0; | |
11794 | wxRect temp; | |
11795 | PyObject * _obj1 = 0; | |
11796 | char *_kwnames[] = { "self","rect", NULL }; | |
11797 | ||
11798 | self = self; | |
11799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11800 | return NULL; | |
11801 | if (_argo0) { | |
11802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11805 | return NULL; | |
11806 | } | |
11807 | } | |
11808 | { | |
11809 | _arg1 = &temp; | |
11810 | if (! wxRect_helper(_obj1, &_arg1)) | |
11811 | return NULL; | |
11812 | } | |
11813 | { | |
11814 | wxPy_BEGIN_ALLOW_THREADS; | |
11815 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); | |
11816 | ||
11817 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11818 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11819 | } _resultobj = Py_BuildValue("i",_result); |
11820 | return _resultobj; | |
11821 | } | |
11822 | ||
11823 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11824 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11825 | PyObject * _resultobj; | |
11826 | bool _result; | |
11827 | wxRegion * _arg0; | |
11828 | wxRegion * _arg1; | |
11829 | PyObject * _argo0 = 0; | |
11830 | PyObject * _argo1 = 0; | |
11831 | char *_kwnames[] = { "self","region", NULL }; | |
11832 | ||
11833 | self = self; | |
11834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11835 | return NULL; | |
11836 | if (_argo0) { | |
11837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11840 | return NULL; | |
11841 | } | |
11842 | } | |
11843 | if (_argo1) { | |
11844 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11845 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11847 | return NULL; | |
11848 | } | |
11849 | } | |
11850 | { | |
11851 | wxPy_BEGIN_ALLOW_THREADS; | |
11852 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); | |
11853 | ||
11854 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11855 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11856 | } _resultobj = Py_BuildValue("i",_result); |
11857 | return _resultobj; | |
11858 | } | |
11859 | ||
11860 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11861 | wxRegionIterator *src; | |
11862 | wxObject *dest; | |
11863 | src = (wxRegionIterator *) ptr; | |
11864 | dest = (wxObject *) src; | |
11865 | return (void *) dest; | |
11866 | } | |
11867 | ||
11868 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11869 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11870 | PyObject * _resultobj; | |
11871 | wxRegionIterator * _result; | |
11872 | wxRegion * _arg0; | |
11873 | PyObject * _argo0 = 0; | |
11874 | char *_kwnames[] = { "region", NULL }; | |
11875 | char _ptemp[128]; | |
11876 | ||
11877 | self = self; | |
11878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11879 | return NULL; | |
11880 | if (_argo0) { | |
11881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11884 | return NULL; | |
11885 | } | |
11886 | } | |
11887 | { | |
11888 | wxPy_BEGIN_ALLOW_THREADS; | |
11889 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); | |
11890 | ||
11891 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11892 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11893 | } if (_result) { |
11894 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11895 | _resultobj = Py_BuildValue("s",_ptemp); | |
11896 | } else { | |
11897 | Py_INCREF(Py_None); | |
11898 | _resultobj = Py_None; | |
11899 | } | |
11900 | return _resultobj; | |
11901 | } | |
11902 | ||
11903 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11904 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11905 | PyObject * _resultobj; | |
11906 | wxRegionIterator * _arg0; | |
11907 | PyObject * _argo0 = 0; | |
11908 | char *_kwnames[] = { "self", NULL }; | |
11909 | ||
11910 | self = self; | |
11911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11912 | return NULL; | |
11913 | if (_argo0) { | |
11914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11917 | return NULL; | |
11918 | } | |
11919 | } | |
11920 | { | |
11921 | wxPy_BEGIN_ALLOW_THREADS; | |
11922 | delete_wxRegionIterator(_arg0); | |
11923 | ||
11924 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11925 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11926 | } Py_INCREF(Py_None); |
11927 | _resultobj = Py_None; | |
11928 | return _resultobj; | |
11929 | } | |
11930 | ||
11931 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11932 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11933 | PyObject * _resultobj; | |
11934 | long _result; | |
11935 | wxRegionIterator * _arg0; | |
11936 | PyObject * _argo0 = 0; | |
11937 | char *_kwnames[] = { "self", NULL }; | |
11938 | ||
11939 | self = self; | |
11940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11941 | return NULL; | |
11942 | if (_argo0) { | |
11943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11946 | return NULL; | |
11947 | } | |
11948 | } | |
11949 | { | |
11950 | wxPy_BEGIN_ALLOW_THREADS; | |
11951 | _result = (long )wxRegionIterator_GetX(_arg0); | |
11952 | ||
11953 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11954 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11955 | } _resultobj = Py_BuildValue("l",_result); |
11956 | return _resultobj; | |
11957 | } | |
11958 | ||
11959 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11960 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11961 | PyObject * _resultobj; | |
11962 | long _result; | |
11963 | wxRegionIterator * _arg0; | |
11964 | PyObject * _argo0 = 0; | |
11965 | char *_kwnames[] = { "self", NULL }; | |
11966 | ||
11967 | self = self; | |
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11969 | return NULL; | |
11970 | if (_argo0) { | |
11971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11974 | return NULL; | |
11975 | } | |
11976 | } | |
11977 | { | |
11978 | wxPy_BEGIN_ALLOW_THREADS; | |
11979 | _result = (long )wxRegionIterator_GetY(_arg0); | |
11980 | ||
11981 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 11982 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11983 | } _resultobj = Py_BuildValue("l",_result); |
11984 | return _resultobj; | |
11985 | } | |
11986 | ||
11987 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11988 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11989 | PyObject * _resultobj; | |
11990 | long _result; | |
11991 | wxRegionIterator * _arg0; | |
11992 | PyObject * _argo0 = 0; | |
11993 | char *_kwnames[] = { "self", NULL }; | |
11994 | ||
11995 | self = self; | |
11996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11997 | return NULL; | |
11998 | if (_argo0) { | |
11999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
12002 | return NULL; | |
12003 | } | |
12004 | } | |
12005 | { | |
12006 | wxPy_BEGIN_ALLOW_THREADS; | |
12007 | _result = (long )wxRegionIterator_GetW(_arg0); | |
12008 | ||
12009 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12010 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12011 | } _resultobj = Py_BuildValue("l",_result); |
12012 | return _resultobj; | |
12013 | } | |
12014 | ||
12015 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
12016 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12017 | PyObject * _resultobj; | |
12018 | long _result; | |
12019 | wxRegionIterator * _arg0; | |
12020 | PyObject * _argo0 = 0; | |
12021 | char *_kwnames[] = { "self", NULL }; | |
12022 | ||
12023 | self = self; | |
12024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
12025 | return NULL; | |
12026 | if (_argo0) { | |
12027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
12030 | return NULL; | |
12031 | } | |
12032 | } | |
12033 | { | |
12034 | wxPy_BEGIN_ALLOW_THREADS; | |
12035 | _result = (long )wxRegionIterator_GetWidth(_arg0); | |
12036 | ||
12037 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12038 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12039 | } _resultobj = Py_BuildValue("l",_result); |
12040 | return _resultobj; | |
12041 | } | |
12042 | ||
12043 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
12044 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12045 | PyObject * _resultobj; | |
12046 | long _result; | |
12047 | wxRegionIterator * _arg0; | |
12048 | PyObject * _argo0 = 0; | |
12049 | char *_kwnames[] = { "self", NULL }; | |
12050 | ||
12051 | self = self; | |
12052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
12053 | return NULL; | |
12054 | if (_argo0) { | |
12055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
12058 | return NULL; | |
12059 | } | |
12060 | } | |
12061 | { | |
12062 | wxPy_BEGIN_ALLOW_THREADS; | |
12063 | _result = (long )wxRegionIterator_GetH(_arg0); | |
12064 | ||
12065 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12066 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12067 | } _resultobj = Py_BuildValue("l",_result); |
12068 | return _resultobj; | |
12069 | } | |
12070 | ||
12071 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
12072 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12073 | PyObject * _resultobj; | |
12074 | long _result; | |
12075 | wxRegionIterator * _arg0; | |
12076 | PyObject * _argo0 = 0; | |
12077 | char *_kwnames[] = { "self", NULL }; | |
12078 | ||
12079 | self = self; | |
12080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
12081 | return NULL; | |
12082 | if (_argo0) { | |
12083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
12086 | return NULL; | |
12087 | } | |
12088 | } | |
12089 | { | |
12090 | wxPy_BEGIN_ALLOW_THREADS; | |
12091 | _result = (long )wxRegionIterator_GetHeight(_arg0); | |
12092 | ||
12093 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12094 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12095 | } _resultobj = Py_BuildValue("l",_result); |
12096 | return _resultobj; | |
12097 | } | |
12098 | ||
12099 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
12100 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12101 | PyObject * _resultobj; | |
12102 | wxRect * _result; | |
12103 | wxRegionIterator * _arg0; | |
12104 | PyObject * _argo0 = 0; | |
12105 | char *_kwnames[] = { "self", NULL }; | |
12106 | char _ptemp[128]; | |
12107 | ||
12108 | self = self; | |
12109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
12110 | return NULL; | |
12111 | if (_argo0) { | |
12112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
12115 | return NULL; | |
12116 | } | |
12117 | } | |
12118 | { | |
12119 | wxPy_BEGIN_ALLOW_THREADS; | |
12120 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); | |
12121 | ||
12122 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12123 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12124 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12125 | _resultobj = Py_BuildValue("s",_ptemp); | |
12126 | return _resultobj; | |
12127 | } | |
12128 | ||
12129 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
12130 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12131 | PyObject * _resultobj; | |
12132 | bool _result; | |
12133 | wxRegionIterator * _arg0; | |
12134 | PyObject * _argo0 = 0; | |
12135 | char *_kwnames[] = { "self", NULL }; | |
12136 | ||
12137 | self = self; | |
12138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
12139 | return NULL; | |
12140 | if (_argo0) { | |
12141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
12144 | return NULL; | |
12145 | } | |
12146 | } | |
12147 | { | |
12148 | wxPy_BEGIN_ALLOW_THREADS; | |
12149 | _result = (bool )wxRegionIterator_HaveRects(_arg0); | |
12150 | ||
12151 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12152 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12153 | } _resultobj = Py_BuildValue("i",_result); |
12154 | return _resultobj; | |
12155 | } | |
12156 | ||
12157 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
12158 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12159 | PyObject * _resultobj; | |
12160 | wxRegionIterator * _arg0; | |
12161 | PyObject * _argo0 = 0; | |
12162 | char *_kwnames[] = { "self", NULL }; | |
12163 | ||
12164 | self = self; | |
12165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
12166 | return NULL; | |
12167 | if (_argo0) { | |
12168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
12171 | return NULL; | |
12172 | } | |
12173 | } | |
12174 | { | |
12175 | wxPy_BEGIN_ALLOW_THREADS; | |
12176 | wxRegionIterator_Reset(_arg0); | |
12177 | ||
12178 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12179 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12180 | } Py_INCREF(Py_None); |
12181 | _resultobj = Py_None; | |
12182 | return _resultobj; | |
12183 | } | |
12184 | ||
12185 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
12186 | (*self) ++; | |
12187 | } | |
12188 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12189 | PyObject * _resultobj; | |
12190 | wxRegionIterator * _arg0; | |
12191 | PyObject * _argo0 = 0; | |
12192 | char *_kwnames[] = { "self", NULL }; | |
12193 | ||
12194 | self = self; | |
12195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
12196 | return NULL; | |
12197 | if (_argo0) { | |
12198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
12201 | return NULL; | |
12202 | } | |
12203 | } | |
12204 | { | |
12205 | wxPy_BEGIN_ALLOW_THREADS; | |
12206 | wxRegionIterator_Next(_arg0); | |
12207 | ||
12208 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 12209 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12210 | } Py_INCREF(Py_None); |
12211 | _resultobj = Py_None; | |
12212 | return _resultobj; | |
12213 | } | |
12214 | ||
8ab979d7 | 12215 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
12216 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
12217 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
12218 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
12219 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
12220 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12221 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
12222 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12223 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
12224 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
12225 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
12226 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
12227 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
12228 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
12229 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
12230 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
12231 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
12232 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
12233 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
12234 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
12235 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
12236 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
12237 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
12238 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
12239 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
12240 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
12241 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
12242 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
12243 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
12244 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
12245 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
12246 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12247 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
12248 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 12249 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12250 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
12251 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
12252 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
12253 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12254 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
12255 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
12256 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
12257 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
12258 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
12259 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
12260 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12261 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
12262 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12263 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
12264 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
12265 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
12266 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17c0e08c RD |
12267 | { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, |
12268 | { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12269 | { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12270 | { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
12271 | { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
12272 | { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12273 | { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
12274 | { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12275 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
12276 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
12277 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
12278 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12279 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 12280 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12281 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
12282 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
12283 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
9d37f964 RD |
12284 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
12285 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 12286 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
9d37f964 | 12287 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
12288 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
12289 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
12290 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
12291 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12292 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12293 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12294 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
12295 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12296 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12297 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12298 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
12299 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
12300 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
12301 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
12302 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
12303 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
12304 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
12305 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12306 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12307 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12308 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
12309 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
12310 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12311 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
19a97bd6 | 12312 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12313 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
12314 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
12315 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
12316 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12317 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12318 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
12319 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
12320 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
12321 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
12322 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
12323 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
12324 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
12325 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12326 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12327 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
12328 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12329 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12330 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12331 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12332 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
12333 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
12334 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12335 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
12336 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12337 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12338 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12339 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
12340 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
12341 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
12342 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
12343 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
12344 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12345 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
12346 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
12347 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
12348 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12349 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
12350 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
12351 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
12352 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 12353 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12354 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
12355 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
12356 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
12357 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
12358 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
12359 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
12360 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
12361 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
12362 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
12363 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
12364 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
12365 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
12366 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
12367 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
12368 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
12369 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
12370 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12371 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
12372 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12373 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 12374 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
12375 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
12376 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
12377 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12378 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
12379 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12380 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
12381 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12382 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12383 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12384 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 12385 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12386 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 12387 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
12388 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
12389 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
12390 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
12391 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
12392 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
12393 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12394 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12395 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 12396 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12397 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
12398 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12399 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
12400 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
12401 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
12402 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12403 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12404 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12405 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
12406 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
12407 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 12408 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12409 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
12410 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
12411 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
12412 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12413 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
12414 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
12415 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12416 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
12417 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
12418 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
12419 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
12420 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 12421 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
12422 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
12423 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
12424 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
12425 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
12426 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
12427 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
12428 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
12429 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d | 12430 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 12431 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12432 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
12433 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
12434 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12435 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12436 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
12437 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
12438 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 | 12439 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 12440 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12441 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 12442 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12443 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12444 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 12445 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 12446 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 12447 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 12448 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12449 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
12450 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
12451 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
12452 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
12453 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
12454 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
12455 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
12456 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
12457 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12458 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
12459 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12460 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
12461 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
12462 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
12463 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
12464 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
12465 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
12466 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12467 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12468 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12469 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12470 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12471 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12472 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12473 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
12474 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12475 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
12476 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 12477 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
12478 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
12479 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12480 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12481 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12482 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12483 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12484 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12485 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12486 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
12487 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12488 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12489 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
12490 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 12491 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12492 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
12493 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
12494 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
12495 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
12496 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
12497 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
12498 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
12499 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12500 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12501 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12502 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12503 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12504 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12505 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12506 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
12507 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12508 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
12509 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12510 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 12511 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12512 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
12513 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12514 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
12515 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
12516 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
12517 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12518 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12519 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
12520 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12521 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
12522 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
12523 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 RD |
12524 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
12525 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12526 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 12527 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
12528 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
12529 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12530 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
12531 | { NULL, NULL } |
12532 | }; | |
1d99702e RD |
12533 | #ifdef __cplusplus |
12534 | } | |
12535 | #endif | |
12536 | /* | |
12537 | * This table is used by the pointer type-checker | |
12538 | */ | |
12539 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 12540 | { "_signed_long","_long",0}, |
b1462dfa | 12541 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
12542 | { "_wxPrintQuality","_int",0}, |
12543 | { "_wxPrintQuality","_signed_int",0}, | |
12544 | { "_wxPrintQuality","_unsigned_int",0}, | |
12545 | { "_wxPrintQuality","_wxWindowID",0}, | |
12546 | { "_wxPrintQuality","_uint",0}, | |
12547 | { "_wxPrintQuality","_EBool",0}, | |
12548 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 12549 | { "_wxPrintQuality","_time_t",0}, |
ecc08ead | 12550 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
1d99702e | 12551 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
12552 | { "_long","_unsigned_long",0}, |
12553 | { "_long","_signed_long",0}, | |
9416aa89 | 12554 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 12555 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 12556 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
ecc08ead | 12557 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9416aa89 | 12558 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 12559 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 12560 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 12561 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 12562 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 12563 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 12564 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 12565 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 12566 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 12567 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
1d99702e | 12568 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 12569 | { "_size_t","_wxCoord",0}, |
1d99702e | 12570 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 12571 | { "_size_t","_time_t",0}, |
1d99702e RD |
12572 | { "_size_t","_unsigned_int",0}, |
12573 | { "_size_t","_int",0}, | |
12574 | { "_size_t","_wxWindowID",0}, | |
12575 | { "_size_t","_uint",0}, | |
b1462dfa | 12576 | { "_uint","_wxCoord",0}, |
1d99702e | 12577 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 12578 | { "_uint","_time_t",0}, |
1d99702e RD |
12579 | { "_uint","_size_t",0}, |
12580 | { "_uint","_unsigned_int",0}, | |
12581 | { "_uint","_int",0}, | |
12582 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 12583 | { "_wxChar","_char",0}, |
f6bcfd97 | 12584 | { "_char","_wxChar",0}, |
6d8b4f8d | 12585 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 12586 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
12587 | { "_EBool","_wxPrintQuality",0}, |
12588 | { "_EBool","_signed_int",0}, | |
12589 | { "_EBool","_int",0}, | |
12590 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 12591 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 12592 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 12593 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
12594 | { "_signed_int","_wxPrintQuality",0}, |
12595 | { "_signed_int","_EBool",0}, | |
12596 | { "_signed_int","_wxWindowID",0}, | |
12597 | { "_signed_int","_int",0}, | |
1d99702e RD |
12598 | { "_WXTYPE","_short",0}, |
12599 | { "_WXTYPE","_signed_short",0}, | |
12600 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
12601 | { "_unsigned_short","_WXTYPE",0}, |
12602 | { "_unsigned_short","_short",0}, | |
9416aa89 | 12603 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 12604 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 12605 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 12606 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 12607 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
17c0e08c | 12608 | { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject}, |
9416aa89 | 12609 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 12610 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 12611 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 12612 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9416aa89 | 12613 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 12614 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
6ee2116b | 12615 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9416aa89 | 12616 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 12617 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
ecc08ead | 12618 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9416aa89 | 12619 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 12620 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 12621 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 12622 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 12623 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 12624 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 12625 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 12626 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 12627 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 12628 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
12629 | { "_signed_short","_WXTYPE",0}, |
12630 | { "_signed_short","_short",0}, | |
1d99702e | 12631 | { "_unsigned_char","_byte",0}, |
b1462dfa | 12632 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 12633 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12634 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
12635 | { "_unsigned_int","_size_t",0}, |
12636 | { "_unsigned_int","_uint",0}, | |
12637 | { "_unsigned_int","_wxWindowID",0}, | |
12638 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
12639 | { "_short","_WXTYPE",0}, |
12640 | { "_short","_unsigned_short",0}, | |
12641 | { "_short","_signed_short",0}, | |
b1462dfa | 12642 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 12643 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12644 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
12645 | { "_wxWindowID","_size_t",0}, |
12646 | { "_wxWindowID","_EBool",0}, | |
12647 | { "_wxWindowID","_uint",0}, | |
12648 | { "_wxWindowID","_int",0}, | |
12649 | { "_wxWindowID","_signed_int",0}, | |
12650 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 12651 | { "_int","_wxCoord",0}, |
1d99702e | 12652 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12653 | { "_int","_time_t",0}, |
1d99702e RD |
12654 | { "_int","_size_t",0}, |
12655 | { "_int","_EBool",0}, | |
12656 | { "_int","_uint",0}, | |
12657 | { "_int","_wxWindowID",0}, | |
12658 | { "_int","_unsigned_int",0}, | |
12659 | { "_int","_signed_int",0}, | |
c368d904 RD |
12660 | { "_time_t","_wxCoord",0}, |
12661 | { "_time_t","_wxPrintQuality",0}, | |
12662 | { "_time_t","_unsigned_int",0}, | |
12663 | { "_time_t","_int",0}, | |
12664 | { "_time_t","_wxWindowID",0}, | |
12665 | { "_time_t","_uint",0}, | |
12666 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
12667 | { "_wxCoord","_int",0}, |
12668 | { "_wxCoord","_signed_int",0}, | |
12669 | { "_wxCoord","_unsigned_int",0}, | |
12670 | { "_wxCoord","_wxWindowID",0}, | |
12671 | { "_wxCoord","_uint",0}, | |
12672 | { "_wxCoord","_EBool",0}, | |
12673 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12674 | { "_wxCoord","_time_t",0}, |
b1462dfa | 12675 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
12676 | {0,0,0}}; |
12677 | ||
8ab979d7 RD |
12678 | static PyObject *SWIG_globals; |
12679 | #ifdef __cplusplus | |
12680 | extern "C" | |
12681 | #endif | |
1d99702e | 12682 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
12683 | PyObject *m, *d; |
12684 | SWIG_globals = SWIG_newvarlink(); | |
12685 | m = Py_InitModule("gdic", gdicMethods); | |
12686 | d = PyModule_GetDict(m); | |
6d8b4f8d RD |
12687 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
12688 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
12689 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
12690 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
12691 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
12692 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
12693 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
12694 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
12695 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); | |
12696 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
12697 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
12698 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
12699 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
12700 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
12701 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
12702 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
f0261a72 RD |
12703 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
12704 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
12705 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
12706 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
12707 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
12708 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
12709 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
12710 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
12711 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
12712 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
12713 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
12714 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
12715 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
12716 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
12717 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
12718 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
12719 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
6d8b4f8d | 12720 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
f0261a72 RD |
12721 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
12722 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
12723 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
12724 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
12725 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
12726 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
12727 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
12728 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
6d8b4f8d | 12729 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
98624b49 RD |
12730 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
12731 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
12732 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
12733 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
f0261a72 RD |
12734 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
12735 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
12736 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
6d8b4f8d RD |
12737 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
12738 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
12739 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
12740 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
12741 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
12742 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
12743 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
12744 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
12745 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
f0261a72 | 12746 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
c5943253 RD |
12747 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
12748 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
12749 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
12750 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
12751 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
12752 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
12753 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
12754 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
12755 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
12756 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
8ab979d7 RD |
12757 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12758 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
12759 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
12760 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
12761 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
12762 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
12763 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
12764 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
12765 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
12766 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
12767 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12768 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12769 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12770 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12771 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12772 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12773 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12774 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12775 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12776 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12777 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12778 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12779 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12780 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12781 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12782 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12783 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12784 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12785 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12786 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12787 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12788 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12789 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12790 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12791 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12792 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12793 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12794 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12795 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12796 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12797 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12798 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12799 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
12800 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
12801 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12802 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12803 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
1d99702e RD |
12804 | { |
12805 | int i; | |
12806 | for (i = 0; _swig_mapping[i].n1; i++) | |
12807 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12808 | } | |
8ab979d7 | 12809 | } |