]>
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 |
96bfd053 RD |
97 | // Implementations of some alternate "constructors" |
98 | ||
8ab979d7 RD |
99 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
100 | return new wxBitmap(width, height, depth); | |
101 | } | |
102 | ||
96bfd053 RD |
103 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
104 | char** cArray = NULL; | |
105 | int count; | |
106 | ||
107 | if (!PyList_Check(listOfStrings)) { | |
108 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
109 | return NULL; | |
110 | } | |
111 | count = PyList_Size(listOfStrings); | |
112 | cArray = new char*[count]; | |
113 | ||
114 | for(int x=0; x<count; x++) { | |
115 | // TODO: Need some validation and error checking here | |
116 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
117 | } | |
118 | return cArray; | |
119 | } | |
120 | ||
d56cebe7 | 121 | |
96bfd053 RD |
122 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
123 | char** cArray = NULL; | |
124 | wxBitmap* bmp; | |
125 | ||
126 | cArray = ConvertListOfStrings(listOfStrings); | |
127 | if (! cArray) | |
128 | return NULL; | |
129 | bmp = new wxBitmap(cArray); | |
130 | delete [] cArray; | |
131 | return bmp; | |
132 | } | |
133 | ||
134 | ||
135 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
136 | return new wxBitmap(icon); | |
137 | } | |
138 | ||
139 | ||
d56cebe7 RD |
140 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
141 | return new wxBitmap(bits, width, height, depth); | |
142 | } | |
926bb76c | 143 | |
4c9993c3 | 144 | |
d56cebe7 RD |
145 | // #ifdef __WXMSW__ |
146 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
147 | // int width, int height, int depth = 1) { | |
148 | // if (! PyString_Check(data)) { | |
149 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
150 | // return NULL; | |
151 | // } | |
152 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
153 | // } | |
154 | // #endif | |
8bf5d46e | 155 | |
8ab979d7 RD |
156 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
157 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
158 | } |
159 | // Implementations of some alternate "constructors" | |
160 | wxIcon* wxEmptyIcon() { | |
161 | return new wxIcon(); | |
162 | } | |
163 | ||
164 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
165 | char** cArray = NULL; | |
166 | wxIcon* icon; | |
167 | ||
168 | cArray = ConvertListOfStrings(listOfStrings); | |
169 | if (! cArray) | |
170 | return NULL; | |
171 | icon = new wxIcon(cArray); | |
172 | delete [] cArray; | |
173 | return icon; | |
8ab979d7 RD |
174 | } |
175 | // Alternate 'constructor' | |
9c039d08 | 176 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
177 | return new wxCursor(id); |
178 | } | |
179 | // Alternate 'constructor' | |
180 | wxColour* wxNamedColour(const wxString& colorName) { | |
181 | return new wxColour(colorName); | |
182 | } | |
ecc08ead RD |
183 | |
184 | class wxPyPen : public wxPen { | |
185 | public: | |
186 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
187 | : wxPen(colour, width, style) | |
188 | { m_dash = NULL; } | |
189 | ~wxPyPen() { | |
190 | if (m_dash) | |
181526ac | 191 | delete [] m_dash; |
ecc08ead RD |
192 | } |
193 | ||
194 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
181526ac RD |
195 | if (m_dash) |
196 | delete [] m_dash; | |
ecc08ead | 197 | m_dash = new wxDash[nb_dashes]; |
181526ac | 198 | for (int i=0; i<nb_dashes; i++) { |
ecc08ead | 199 | m_dash[i] = dash[i]; |
181526ac | 200 | } |
ecc08ead RD |
201 | wxPen::SetDashes(nb_dashes, m_dash); |
202 | } | |
203 | ||
204 | private: | |
205 | wxDash* m_dash; | |
206 | }; | |
9d37f964 RD |
207 | |
208 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
209 | *x1 = dc->MinX(); | |
210 | *y1 = dc->MinY(); | |
211 | *x2 = dc->MaxX(); | |
212 | *y2 = dc->MaxY(); | |
213 | } | |
8ab979d7 RD |
214 | // Alternate 'constructor' |
215 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
216 | return new wxMemoryDC(oldDC); | |
217 | } | |
af309447 | 218 | |
17c0e08c RD |
219 | #include <wx/metafile.h> |
220 | ||
af309447 | 221 | #if 0 |
8ab979d7 RD |
222 | extern wxFont * wxNORMAL_FONT; |
223 | extern wxFont * wxSMALL_FONT; | |
224 | extern wxFont * wxITALIC_FONT; | |
225 | extern wxFont * wxSWISS_FONT; | |
226 | extern wxPen * wxRED_PEN; | |
227 | extern wxPen * wxCYAN_PEN; | |
228 | extern wxPen * wxGREEN_PEN; | |
229 | extern wxPen * wxBLACK_PEN; | |
230 | extern wxPen * wxWHITE_PEN; | |
231 | extern wxPen * wxTRANSPARENT_PEN; | |
232 | extern wxPen * wxBLACK_DASHED_PEN; | |
233 | extern wxPen * wxGREY_PEN; | |
234 | extern wxPen * wxMEDIUM_GREY_PEN; | |
235 | extern wxPen * wxLIGHT_GREY_PEN; | |
236 | extern wxBrush * wxBLUE_BRUSH; | |
237 | extern wxBrush * wxGREEN_BRUSH; | |
238 | extern wxBrush * wxWHITE_BRUSH; | |
239 | extern wxBrush * wxBLACK_BRUSH; | |
240 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
241 | extern wxBrush * wxCYAN_BRUSH; | |
242 | extern wxBrush * wxRED_BRUSH; | |
243 | extern wxBrush * wxGREY_BRUSH; | |
244 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
245 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
246 | extern wxColour * wxBLACK; | |
247 | extern wxColour * wxWHITE; | |
248 | extern wxColour * wxRED; | |
249 | extern wxColour * wxBLUE; | |
250 | extern wxColour * wxGREEN; | |
251 | extern wxColour * wxCYAN; | |
252 | extern wxColour * wxLIGHT_GREY; | |
253 | extern wxCursor * wxSTANDARD_CURSOR; | |
254 | extern wxCursor * wxHOURGLASS_CURSOR; | |
255 | extern wxCursor * wxCROSS_CURSOR; | |
256 | extern wxBitmap wxNullBitmap; | |
257 | extern wxIcon wxNullIcon; | |
258 | extern wxCursor wxNullCursor; | |
259 | extern wxPen wxNullPen; | |
260 | extern wxBrush wxNullBrush; | |
261 | extern wxPalette wxNullPalette; | |
262 | extern wxFont wxNullFont; | |
263 | extern wxColour wxNullColour; | |
0569df0f RD |
264 | extern wxFontList * wxTheFontList; |
265 | extern wxPenList * wxThePenList; | |
6ee2116b | 266 | extern wxBrushList * wxTheBrushList; |
0569df0f | 267 | extern wxColourDatabase * wxTheColourDatabase; |
af309447 | 268 | |
1d99702e RD |
269 | #endif |
270 | #ifdef __cplusplus | |
271 | extern "C" { | |
af309447 | 272 | #endif |
1afc06c2 | 273 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
274 | PyObject * _resultobj; |
275 | wxBitmap * _result; | |
276 | int _arg0; | |
277 | int _arg1; | |
1d99702e | 278 | int _arg2 = (int ) -1; |
1afc06c2 | 279 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
280 | char _ptemp[128]; |
281 | ||
282 | self = self; | |
1afc06c2 | 283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 284 | return NULL; |
cf694132 | 285 | { |
4268f798 | 286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
287 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
288 | ||
4268f798 | 289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 290 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
291 | } if (_result) { |
292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
293 | _resultobj = Py_BuildValue("s",_ptemp); | |
294 | } else { | |
295 | Py_INCREF(Py_None); | |
296 | _resultobj = Py_None; | |
297 | } | |
8ab979d7 RD |
298 | return _resultobj; |
299 | } | |
300 | ||
96bfd053 RD |
301 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
302 | PyObject * _resultobj; | |
303 | wxBitmap * _result; | |
304 | PyObject * _arg0; | |
305 | PyObject * _obj0 = 0; | |
306 | char *_kwnames[] = { "listOfStrings", NULL }; | |
307 | char _ptemp[128]; | |
308 | ||
309 | self = self; | |
310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
311 | return NULL; | |
312 | { | |
313 | _arg0 = _obj0; | |
314 | } | |
315 | { | |
4268f798 | 316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
317 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
318 | ||
4268f798 | 319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 320 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
321 | } if (_result) { |
322 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
323 | _resultobj = Py_BuildValue("s",_ptemp); | |
324 | } else { | |
325 | Py_INCREF(Py_None); | |
326 | _resultobj = Py_None; | |
327 | } | |
328 | return _resultobj; | |
329 | } | |
330 | ||
331 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
332 | PyObject * _resultobj; | |
333 | wxBitmap * _result; | |
334 | wxIcon * _arg0; | |
335 | PyObject * _argo0 = 0; | |
336 | char *_kwnames[] = { "icon", NULL }; | |
337 | char _ptemp[128]; | |
338 | ||
339 | self = self; | |
340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
341 | return NULL; | |
342 | if (_argo0) { | |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | { | |
4268f798 | 350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
351 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
352 | ||
4268f798 | 353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 354 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
355 | } if (_result) { |
356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
357 | _resultobj = Py_BuildValue("s",_ptemp); | |
358 | } else { | |
359 | Py_INCREF(Py_None); | |
360 | _resultobj = Py_None; | |
361 | } | |
362 | return _resultobj; | |
363 | } | |
364 | ||
d56cebe7 | 365 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
366 | PyObject * _resultobj; |
367 | wxBitmap * _result; | |
d56cebe7 RD |
368 | char * _arg0; |
369 | int _arg1; | |
8bf5d46e | 370 | int _arg2; |
d56cebe7 RD |
371 | int _arg3 = (int ) 1; |
372 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
8bf5d46e RD |
373 | char _ptemp[128]; |
374 | ||
375 | self = self; | |
d56cebe7 | 376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
377 | return NULL; |
378 | { | |
4268f798 | 379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d56cebe7 | 380 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 381 | |
4268f798 | 382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 383 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
384 | } if (_result) { |
385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
386 | _resultobj = Py_BuildValue("s",_ptemp); | |
387 | } else { | |
388 | Py_INCREF(Py_None); | |
389 | _resultobj = Py_None; | |
390 | } | |
8bf5d46e RD |
391 | return _resultobj; |
392 | } | |
393 | ||
1afc06c2 | 394 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
395 | PyObject * _resultobj; |
396 | wxMask * _result; | |
397 | wxBitmap * _arg0; | |
398 | wxColour * _arg1; | |
1d99702e | 399 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
400 | wxColour temp; |
401 | PyObject * _obj1 = 0; | |
1afc06c2 | 402 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
403 | char _ptemp[128]; |
404 | ||
405 | self = self; | |
f6bcfd97 | 406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 407 | return NULL; |
1d99702e RD |
408 | if (_argo0) { |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
412 | return NULL; | |
413 | } | |
414 | } | |
f6bcfd97 BP |
415 | { |
416 | _arg1 = &temp; | |
417 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 418 | return NULL; |
f6bcfd97 | 419 | } |
cf694132 | 420 | { |
4268f798 | 421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
422 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
423 | ||
4268f798 | 424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 425 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
426 | } if (_result) { |
427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
428 | _resultobj = Py_BuildValue("s",_ptemp); | |
429 | } else { | |
430 | Py_INCREF(Py_None); | |
431 | _resultobj = Py_None; | |
432 | } | |
8ab979d7 RD |
433 | return _resultobj; |
434 | } | |
435 | ||
96bfd053 RD |
436 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
437 | PyObject * _resultobj; | |
438 | wxIcon * _result; | |
439 | char *_kwnames[] = { NULL }; | |
440 | char _ptemp[128]; | |
441 | ||
442 | self = self; | |
443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
444 | return NULL; | |
445 | { | |
4268f798 | 446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
447 | _result = (wxIcon *)wxEmptyIcon(); |
448 | ||
4268f798 | 449 | wxPyEndAllowThreads(__tstate); |
493f1553 | 450 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
451 | } if (_result) { |
452 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
453 | _resultobj = Py_BuildValue("s",_ptemp); | |
454 | } else { | |
455 | Py_INCREF(Py_None); | |
456 | _resultobj = Py_None; | |
457 | } | |
458 | return _resultobj; | |
459 | } | |
460 | ||
461 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
462 | PyObject * _resultobj; | |
463 | wxIcon * _result; | |
464 | PyObject * _arg0; | |
465 | PyObject * _obj0 = 0; | |
466 | char *_kwnames[] = { "listOfStrings", NULL }; | |
467 | char _ptemp[128]; | |
468 | ||
469 | self = self; | |
470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
471 | return NULL; | |
472 | { | |
473 | _arg0 = _obj0; | |
474 | } | |
475 | { | |
4268f798 | 476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
477 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
478 | ||
4268f798 | 479 | wxPyEndAllowThreads(__tstate); |
493f1553 | 480 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
481 | } if (_result) { |
482 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
483 | _resultobj = Py_BuildValue("s",_ptemp); | |
484 | } else { | |
485 | Py_INCREF(Py_None); | |
486 | _resultobj = Py_None; | |
487 | } | |
488 | return _resultobj; | |
489 | } | |
490 | ||
1afc06c2 | 491 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
492 | PyObject * _resultobj; |
493 | wxCursor * _result; | |
494 | int _arg0; | |
1afc06c2 | 495 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
496 | char _ptemp[128]; |
497 | ||
498 | self = self; | |
1afc06c2 | 499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 500 | return NULL; |
cf694132 | 501 | { |
4268f798 | 502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
503 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
504 | ||
4268f798 | 505 | wxPyEndAllowThreads(__tstate); |
493f1553 | 506 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
507 | } if (_result) { |
508 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
509 | _resultobj = Py_BuildValue("s",_ptemp); | |
510 | } else { | |
511 | Py_INCREF(Py_None); | |
512 | _resultobj = Py_None; | |
513 | } | |
8ab979d7 RD |
514 | return _resultobj; |
515 | } | |
516 | ||
1afc06c2 | 517 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
518 | PyObject * _resultobj; |
519 | wxColour * _result; | |
520 | wxString * _arg0; | |
521 | PyObject * _obj0 = 0; | |
1afc06c2 | 522 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
523 | char _ptemp[128]; |
524 | ||
525 | self = self; | |
1afc06c2 | 526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
527 | return NULL; |
528 | { | |
185d7c3e RD |
529 | #if PYTHON_API_VERSION >= 1009 |
530 | char* tmpPtr; int tmpSize; | |
531 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 532 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
533 | return NULL; |
534 | } | |
535 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
536 | return NULL; | |
537 | _arg0 = new wxString(tmpPtr, tmpSize); | |
538 | #else | |
8ab979d7 RD |
539 | if (!PyString_Check(_obj0)) { |
540 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
541 | return NULL; | |
542 | } | |
185d7c3e RD |
543 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
544 | #endif | |
8ab979d7 | 545 | } |
cf694132 | 546 | { |
4268f798 | 547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
548 | _result = (wxColour *)wxNamedColour(*_arg0); |
549 | ||
4268f798 | 550 | wxPyEndAllowThreads(__tstate); |
493f1553 | 551 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
552 | } if (_result) { |
553 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
554 | _resultobj = Py_BuildValue("s",_ptemp); | |
555 | } else { | |
556 | Py_INCREF(Py_None); | |
557 | _resultobj = Py_None; | |
558 | } | |
8ab979d7 RD |
559 | { |
560 | if (_obj0) | |
561 | delete _arg0; | |
562 | } | |
563 | return _resultobj; | |
564 | } | |
565 | ||
1afc06c2 | 566 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
567 | PyObject * _resultobj; |
568 | wxMemoryDC * _result; | |
569 | wxDC * _arg0; | |
1d99702e | 570 | PyObject * _argo0 = 0; |
1afc06c2 | 571 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
572 | char _ptemp[128]; |
573 | ||
574 | self = self; | |
1afc06c2 | 575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 576 | return NULL; |
1d99702e RD |
577 | if (_argo0) { |
578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
581 | return NULL; | |
582 | } | |
583 | } | |
cf694132 | 584 | { |
4268f798 | 585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
586 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
587 | ||
4268f798 | 588 | wxPyEndAllowThreads(__tstate); |
493f1553 | 589 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
590 | } if (_result) { |
591 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
592 | _resultobj = Py_BuildValue("s",_ptemp); | |
593 | } else { | |
594 | Py_INCREF(Py_None); | |
595 | _resultobj = Py_None; | |
596 | } | |
8ab979d7 RD |
597 | return _resultobj; |
598 | } | |
599 | ||
600 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
601 | ||
602 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
603 | return 1; | |
604 | } | |
605 | ||
606 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
607 | PyObject * pyobj; | |
608 | char ptemp[128]; | |
609 | ||
610 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
611 | pyobj = PyString_FromString(ptemp); | |
612 | return pyobj; | |
613 | } | |
614 | ||
615 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
616 | ||
617 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
618 | return 1; | |
619 | } | |
620 | ||
621 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
622 | PyObject * pyobj; | |
623 | char ptemp[128]; | |
624 | ||
625 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
626 | pyobj = PyString_FromString(ptemp); | |
627 | return pyobj; | |
628 | } | |
629 | ||
630 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
631 | ||
632 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
633 | return 1; | |
634 | } | |
635 | ||
636 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
637 | PyObject * pyobj; | |
638 | char ptemp[128]; | |
639 | ||
640 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
641 | pyobj = PyString_FromString(ptemp); | |
642 | return pyobj; | |
643 | } | |
644 | ||
645 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
646 | ||
647 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
648 | return 1; | |
649 | } | |
650 | ||
651 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
652 | PyObject * pyobj; | |
653 | char ptemp[128]; | |
654 | ||
655 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
656 | pyobj = PyString_FromString(ptemp); | |
657 | return pyobj; | |
658 | } | |
659 | ||
660 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
661 | ||
662 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
663 | return 1; | |
664 | } | |
665 | ||
666 | static PyObject *_wrap_wxRED_PEN_get() { | |
667 | PyObject * pyobj; | |
668 | char ptemp[128]; | |
669 | ||
670 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
671 | pyobj = PyString_FromString(ptemp); | |
672 | return pyobj; | |
673 | } | |
674 | ||
675 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
676 | ||
677 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
678 | return 1; | |
679 | } | |
680 | ||
681 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
682 | PyObject * pyobj; | |
683 | char ptemp[128]; | |
684 | ||
685 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
686 | pyobj = PyString_FromString(ptemp); | |
687 | return pyobj; | |
688 | } | |
689 | ||
690 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
691 | ||
692 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
693 | return 1; | |
694 | } | |
695 | ||
696 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
697 | PyObject * pyobj; | |
698 | char ptemp[128]; | |
699 | ||
700 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
701 | pyobj = PyString_FromString(ptemp); | |
702 | return pyobj; | |
703 | } | |
704 | ||
705 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
706 | ||
707 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
708 | return 1; | |
709 | } | |
710 | ||
711 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
712 | PyObject * pyobj; | |
713 | char ptemp[128]; | |
714 | ||
715 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
716 | pyobj = PyString_FromString(ptemp); | |
717 | return pyobj; | |
718 | } | |
719 | ||
720 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
721 | ||
722 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
723 | return 1; | |
724 | } | |
725 | ||
726 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
727 | PyObject * pyobj; | |
728 | char ptemp[128]; | |
729 | ||
730 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
731 | pyobj = PyString_FromString(ptemp); | |
732 | return pyobj; | |
733 | } | |
734 | ||
735 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
736 | ||
737 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
738 | return 1; | |
739 | } | |
740 | ||
741 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
742 | PyObject * pyobj; | |
743 | char ptemp[128]; | |
744 | ||
745 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
746 | pyobj = PyString_FromString(ptemp); | |
747 | return pyobj; | |
748 | } | |
749 | ||
750 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
751 | ||
752 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
753 | return 1; | |
754 | } | |
755 | ||
756 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
757 | PyObject * pyobj; | |
758 | char ptemp[128]; | |
759 | ||
760 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
761 | pyobj = PyString_FromString(ptemp); | |
762 | return pyobj; | |
763 | } | |
764 | ||
765 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
766 | ||
767 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
768 | return 1; | |
769 | } | |
770 | ||
771 | static PyObject *_wrap_wxGREY_PEN_get() { | |
772 | PyObject * pyobj; | |
773 | char ptemp[128]; | |
774 | ||
775 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
776 | pyobj = PyString_FromString(ptemp); | |
777 | return pyobj; | |
778 | } | |
779 | ||
780 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
781 | ||
782 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
783 | return 1; | |
784 | } | |
785 | ||
786 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
787 | PyObject * pyobj; | |
788 | char ptemp[128]; | |
789 | ||
790 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
791 | pyobj = PyString_FromString(ptemp); | |
792 | return pyobj; | |
793 | } | |
794 | ||
795 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
796 | ||
797 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
798 | return 1; | |
799 | } | |
800 | ||
801 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
802 | PyObject * pyobj; | |
803 | char ptemp[128]; | |
804 | ||
805 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
806 | pyobj = PyString_FromString(ptemp); | |
807 | return pyobj; | |
808 | } | |
809 | ||
810 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
811 | ||
812 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
813 | return 1; | |
814 | } | |
815 | ||
816 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
817 | PyObject * pyobj; | |
818 | char ptemp[128]; | |
819 | ||
820 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
821 | pyobj = PyString_FromString(ptemp); | |
822 | return pyobj; | |
823 | } | |
824 | ||
825 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
826 | ||
827 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
828 | return 1; | |
829 | } | |
830 | ||
831 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
832 | PyObject * pyobj; | |
833 | char ptemp[128]; | |
834 | ||
835 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
836 | pyobj = PyString_FromString(ptemp); | |
837 | return pyobj; | |
838 | } | |
839 | ||
840 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
841 | ||
842 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
843 | return 1; | |
844 | } | |
845 | ||
846 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
847 | PyObject * pyobj; | |
848 | char ptemp[128]; | |
849 | ||
850 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
851 | pyobj = PyString_FromString(ptemp); | |
852 | return pyobj; | |
853 | } | |
854 | ||
855 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
856 | ||
857 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
858 | return 1; | |
859 | } | |
860 | ||
861 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
862 | PyObject * pyobj; | |
863 | char ptemp[128]; | |
864 | ||
865 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
866 | pyobj = PyString_FromString(ptemp); | |
867 | return pyobj; | |
868 | } | |
869 | ||
870 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
871 | ||
872 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
873 | return 1; | |
874 | } | |
875 | ||
876 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
877 | PyObject * pyobj; | |
878 | char ptemp[128]; | |
879 | ||
880 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
881 | pyobj = PyString_FromString(ptemp); | |
882 | return pyobj; | |
883 | } | |
884 | ||
885 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
886 | ||
887 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
888 | return 1; | |
889 | } | |
890 | ||
891 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
892 | PyObject * pyobj; | |
893 | char ptemp[128]; | |
894 | ||
895 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
896 | pyobj = PyString_FromString(ptemp); | |
897 | return pyobj; | |
898 | } | |
899 | ||
900 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
901 | ||
902 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
903 | return 1; | |
904 | } | |
905 | ||
906 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
907 | PyObject * pyobj; | |
908 | char ptemp[128]; | |
909 | ||
910 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
911 | pyobj = PyString_FromString(ptemp); | |
912 | return pyobj; | |
913 | } | |
914 | ||
915 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
916 | ||
917 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
918 | return 1; | |
919 | } | |
920 | ||
921 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
922 | PyObject * pyobj; | |
923 | char ptemp[128]; | |
924 | ||
925 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
926 | pyobj = PyString_FromString(ptemp); | |
927 | return pyobj; | |
928 | } | |
929 | ||
930 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
931 | ||
932 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
933 | return 1; | |
934 | } | |
935 | ||
936 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
937 | PyObject * pyobj; | |
938 | char ptemp[128]; | |
939 | ||
940 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
941 | pyobj = PyString_FromString(ptemp); | |
942 | return pyobj; | |
943 | } | |
944 | ||
945 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
946 | ||
947 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
948 | return 1; | |
949 | } | |
950 | ||
951 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
952 | PyObject * pyobj; | |
953 | char ptemp[128]; | |
954 | ||
955 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
956 | pyobj = PyString_FromString(ptemp); | |
957 | return pyobj; | |
958 | } | |
959 | ||
960 | static int _wrap_wxBLACK_set(PyObject *val) { | |
961 | ||
962 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
963 | return 1; | |
964 | } | |
965 | ||
966 | static PyObject *_wrap_wxBLACK_get() { | |
967 | PyObject * pyobj; | |
968 | char ptemp[128]; | |
969 | ||
970 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
971 | pyobj = PyString_FromString(ptemp); | |
972 | return pyobj; | |
973 | } | |
974 | ||
975 | static int _wrap_wxWHITE_set(PyObject *val) { | |
976 | ||
977 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
978 | return 1; | |
979 | } | |
980 | ||
981 | static PyObject *_wrap_wxWHITE_get() { | |
982 | PyObject * pyobj; | |
983 | char ptemp[128]; | |
984 | ||
985 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
986 | pyobj = PyString_FromString(ptemp); | |
987 | return pyobj; | |
988 | } | |
989 | ||
990 | static int _wrap_wxRED_set(PyObject *val) { | |
991 | ||
992 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
993 | return 1; | |
994 | } | |
995 | ||
996 | static PyObject *_wrap_wxRED_get() { | |
997 | PyObject * pyobj; | |
998 | char ptemp[128]; | |
999 | ||
1000 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1001 | pyobj = PyString_FromString(ptemp); | |
1002 | return pyobj; | |
1003 | } | |
1004 | ||
1005 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1006 | ||
1007 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1008 | return 1; | |
1009 | } | |
1010 | ||
1011 | static PyObject *_wrap_wxBLUE_get() { | |
1012 | PyObject * pyobj; | |
1013 | char ptemp[128]; | |
1014 | ||
1015 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1016 | pyobj = PyString_FromString(ptemp); | |
1017 | return pyobj; | |
1018 | } | |
1019 | ||
1020 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1021 | ||
1022 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1023 | return 1; | |
1024 | } | |
1025 | ||
1026 | static PyObject *_wrap_wxGREEN_get() { | |
1027 | PyObject * pyobj; | |
1028 | char ptemp[128]; | |
1029 | ||
1030 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1031 | pyobj = PyString_FromString(ptemp); | |
1032 | return pyobj; | |
1033 | } | |
1034 | ||
1035 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1036 | ||
1037 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1038 | return 1; | |
1039 | } | |
1040 | ||
1041 | static PyObject *_wrap_wxCYAN_get() { | |
1042 | PyObject * pyobj; | |
1043 | char ptemp[128]; | |
1044 | ||
1045 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1046 | pyobj = PyString_FromString(ptemp); | |
1047 | return pyobj; | |
1048 | } | |
1049 | ||
1050 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1051 | ||
1052 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1053 | return 1; | |
1054 | } | |
1055 | ||
1056 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1057 | PyObject * pyobj; | |
1058 | char ptemp[128]; | |
1059 | ||
1060 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1061 | pyobj = PyString_FromString(ptemp); | |
1062 | return pyobj; | |
1063 | } | |
1064 | ||
1065 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1066 | ||
1067 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1068 | return 1; | |
1069 | } | |
1070 | ||
1071 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1072 | PyObject * pyobj; | |
1073 | char ptemp[128]; | |
1074 | ||
1075 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1076 | pyobj = PyString_FromString(ptemp); | |
1077 | return pyobj; | |
1078 | } | |
1079 | ||
1080 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1081 | ||
1082 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1083 | return 1; | |
1084 | } | |
1085 | ||
1086 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1087 | PyObject * pyobj; | |
1088 | char ptemp[128]; | |
1089 | ||
1090 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1091 | pyobj = PyString_FromString(ptemp); | |
1092 | return pyobj; | |
1093 | } | |
1094 | ||
1095 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1096 | ||
1097 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1098 | return 1; | |
1099 | } | |
1100 | ||
1101 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1102 | PyObject * pyobj; | |
1103 | char ptemp[128]; | |
1104 | ||
1105 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1106 | pyobj = PyString_FromString(ptemp); | |
1107 | return pyobj; | |
1108 | } | |
1109 | ||
1110 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1111 | ||
1112 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1113 | return 1; | |
1114 | } | |
1115 | ||
1116 | static PyObject *_wrap_wxNullBitmap_get() { | |
1117 | PyObject * pyobj; | |
1118 | char ptemp[128]; | |
1119 | ||
1120 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1121 | pyobj = PyString_FromString(ptemp); | |
1122 | return pyobj; | |
1123 | } | |
1124 | ||
1125 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1126 | ||
1127 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1128 | return 1; | |
1129 | } | |
1130 | ||
1131 | static PyObject *_wrap_wxNullIcon_get() { | |
1132 | PyObject * pyobj; | |
1133 | char ptemp[128]; | |
1134 | ||
1135 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1136 | pyobj = PyString_FromString(ptemp); | |
1137 | return pyobj; | |
1138 | } | |
1139 | ||
1140 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1141 | ||
1142 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1143 | return 1; | |
1144 | } | |
1145 | ||
1146 | static PyObject *_wrap_wxNullCursor_get() { | |
1147 | PyObject * pyobj; | |
1148 | char ptemp[128]; | |
1149 | ||
1150 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1151 | pyobj = PyString_FromString(ptemp); | |
1152 | return pyobj; | |
1153 | } | |
1154 | ||
1155 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1156 | ||
1157 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1158 | return 1; | |
1159 | } | |
1160 | ||
1161 | static PyObject *_wrap_wxNullPen_get() { | |
1162 | PyObject * pyobj; | |
1163 | char ptemp[128]; | |
1164 | ||
1165 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1166 | pyobj = PyString_FromString(ptemp); | |
1167 | return pyobj; | |
1168 | } | |
1169 | ||
1170 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1171 | ||
1172 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1173 | return 1; | |
1174 | } | |
1175 | ||
1176 | static PyObject *_wrap_wxNullBrush_get() { | |
1177 | PyObject * pyobj; | |
1178 | char ptemp[128]; | |
1179 | ||
1180 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1181 | pyobj = PyString_FromString(ptemp); | |
1182 | return pyobj; | |
1183 | } | |
1184 | ||
1185 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1186 | ||
1187 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1188 | return 1; | |
1189 | } | |
1190 | ||
1191 | static PyObject *_wrap_wxNullPalette_get() { | |
1192 | PyObject * pyobj; | |
1193 | char ptemp[128]; | |
1194 | ||
1195 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1196 | pyobj = PyString_FromString(ptemp); | |
1197 | return pyobj; | |
1198 | } | |
1199 | ||
1200 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1201 | ||
1202 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1203 | return 1; | |
1204 | } | |
1205 | ||
1206 | static PyObject *_wrap_wxNullFont_get() { | |
1207 | PyObject * pyobj; | |
1208 | char ptemp[128]; | |
1209 | ||
1210 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1211 | pyobj = PyString_FromString(ptemp); | |
1212 | return pyobj; | |
1213 | } | |
1214 | ||
1215 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1216 | ||
1217 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1218 | return 1; | |
1219 | } | |
1220 | ||
1221 | static PyObject *_wrap_wxNullColour_get() { | |
1222 | PyObject * pyobj; | |
1223 | char ptemp[128]; | |
1224 | ||
1225 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1226 | pyobj = PyString_FromString(ptemp); | |
1227 | return pyobj; | |
1228 | } | |
1229 | ||
0569df0f RD |
1230 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1231 | ||
1232 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1233 | return 1; | |
1234 | } | |
1235 | ||
1236 | static PyObject *_wrap_wxTheFontList_get() { | |
1237 | PyObject * pyobj; | |
1238 | char ptemp[128]; | |
1239 | ||
1240 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1241 | pyobj = PyString_FromString(ptemp); | |
1242 | return pyobj; | |
1243 | } | |
1244 | ||
1245 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1246 | ||
1247 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1248 | return 1; | |
1249 | } | |
1250 | ||
1251 | static PyObject *_wrap_wxThePenList_get() { | |
1252 | PyObject * pyobj; | |
1253 | char ptemp[128]; | |
1254 | ||
1255 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1256 | pyobj = PyString_FromString(ptemp); | |
1257 | return pyobj; | |
1258 | } | |
1259 | ||
1260 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1261 | ||
1262 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1263 | return 1; | |
1264 | } | |
1265 | ||
1266 | static PyObject *_wrap_wxTheBrushList_get() { | |
1267 | PyObject * pyobj; | |
1268 | char ptemp[128]; | |
1269 | ||
6ee2116b | 1270 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
0569df0f RD |
1271 | pyobj = PyString_FromString(ptemp); |
1272 | return pyobj; | |
1273 | } | |
1274 | ||
1275 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1276 | ||
1277 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1278 | return 1; | |
1279 | } | |
1280 | ||
1281 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1282 | PyObject * pyobj; | |
1283 | char ptemp[128]; | |
1284 | ||
1285 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1286 | pyobj = PyString_FromString(ptemp); | |
1287 | return pyobj; | |
1288 | } | |
1289 | ||
9416aa89 RD |
1290 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1291 | wxGDIObject *src; | |
1292 | wxObject *dest; | |
1293 | src = (wxGDIObject *) ptr; | |
1294 | dest = (wxObject *) src; | |
1295 | return (void *) dest; | |
1296 | } | |
1297 | ||
1298 | #define new_wxGDIObject() (new wxGDIObject()) | |
1299 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | wxGDIObject * _result; | |
1302 | char *_kwnames[] = { NULL }; | |
1303 | char _ptemp[128]; | |
1304 | ||
1305 | self = self; | |
1306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1307 | return NULL; | |
1308 | { | |
4268f798 | 1309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1310 | _result = (wxGDIObject *)new_wxGDIObject(); |
1311 | ||
4268f798 | 1312 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1313 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1314 | } if (_result) { |
1315 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1316 | _resultobj = Py_BuildValue("s",_ptemp); | |
1317 | } else { | |
1318 | Py_INCREF(Py_None); | |
1319 | _resultobj = Py_None; | |
1320 | } | |
1321 | return _resultobj; | |
1322 | } | |
1323 | ||
1324 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1325 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1326 | PyObject * _resultobj; | |
1327 | wxGDIObject * _arg0; | |
1328 | PyObject * _argo0 = 0; | |
1329 | char *_kwnames[] = { "self", NULL }; | |
1330 | ||
1331 | self = self; | |
1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1333 | return NULL; | |
1334 | if (_argo0) { | |
1335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1338 | return NULL; | |
1339 | } | |
1340 | } | |
1341 | { | |
4268f798 | 1342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1343 | delete_wxGDIObject(_arg0); |
1344 | ||
4268f798 | 1345 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1346 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1347 | } Py_INCREF(Py_None); |
1348 | _resultobj = Py_None; | |
1349 | return _resultobj; | |
1350 | } | |
1351 | ||
1352 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1353 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1354 | PyObject * _resultobj; | |
1355 | bool _result; | |
1356 | wxGDIObject * _arg0; | |
1357 | PyObject * _argo0 = 0; | |
1358 | char *_kwnames[] = { "self", NULL }; | |
1359 | ||
1360 | self = self; | |
1361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1362 | return NULL; | |
1363 | if (_argo0) { | |
1364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1367 | return NULL; | |
1368 | } | |
1369 | } | |
1370 | { | |
4268f798 | 1371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1372 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
1373 | ||
4268f798 | 1374 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1375 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1376 | } _resultobj = Py_BuildValue("i",_result); |
1377 | return _resultobj; | |
1378 | } | |
1379 | ||
1380 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1381 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1382 | PyObject * _resultobj; | |
1383 | wxGDIObject * _arg0; | |
1384 | bool _arg1; | |
1385 | PyObject * _argo0 = 0; | |
1386 | int tempbool1; | |
1387 | char *_kwnames[] = { "self","visible", NULL }; | |
1388 | ||
1389 | self = self; | |
1390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1391 | return NULL; | |
1392 | if (_argo0) { | |
1393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1396 | return NULL; | |
1397 | } | |
1398 | } | |
1399 | _arg1 = (bool ) tempbool1; | |
1400 | { | |
4268f798 | 1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1402 | wxGDIObject_SetVisible(_arg0,_arg1); |
1403 | ||
4268f798 | 1404 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1405 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1406 | } Py_INCREF(Py_None); |
1407 | _resultobj = Py_None; | |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
1411 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1412 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | wxGDIObject * _arg0; | |
1416 | PyObject * _argo0 = 0; | |
1417 | char *_kwnames[] = { "self", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1421 | return NULL; | |
1422 | if (_argo0) { | |
1423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1426 | return NULL; | |
1427 | } | |
1428 | } | |
1429 | { | |
4268f798 | 1430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
1431 | _result = (bool )wxGDIObject_IsNull(_arg0); |
1432 | ||
4268f798 | 1433 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1434 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1435 | } _resultobj = Py_BuildValue("i",_result); |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1440 | wxBitmap *src; | |
1441 | wxGDIObject *dest; | |
1442 | src = (wxBitmap *) ptr; | |
1443 | dest = (wxGDIObject *) src; | |
1444 | return (void *) dest; | |
1445 | } | |
1446 | ||
1447 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1448 | wxBitmap *src; | |
1449 | wxObject *dest; | |
1450 | src = (wxBitmap *) ptr; | |
1451 | dest = (wxObject *) src; | |
1452 | return (void *) dest; | |
1453 | } | |
1454 | ||
6999b0d8 RD |
1455 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1456 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1457 | PyObject * _resultobj; |
6999b0d8 RD |
1458 | wxBitmap * _result; |
1459 | wxString * _arg0; | |
b37c7e1d | 1460 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
6999b0d8 RD |
1461 | PyObject * _obj0 = 0; |
1462 | char *_kwnames[] = { "name","type", NULL }; | |
1463 | char _ptemp[128]; | |
8ab979d7 RD |
1464 | |
1465 | self = self; | |
b37c7e1d | 1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1467 | return NULL; |
6999b0d8 | 1468 | { |
185d7c3e RD |
1469 | #if PYTHON_API_VERSION >= 1009 |
1470 | char* tmpPtr; int tmpSize; | |
1471 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1472 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1473 | return NULL; |
1474 | } | |
1475 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1476 | return NULL; | |
1477 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1478 | #else | |
6999b0d8 RD |
1479 | if (!PyString_Check(_obj0)) { |
1480 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1481 | return NULL; |
8ab979d7 | 1482 | } |
185d7c3e RD |
1483 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1484 | #endif | |
6999b0d8 | 1485 | } |
cf694132 | 1486 | { |
4268f798 | 1487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1488 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 | 1489 | |
4268f798 | 1490 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1491 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1492 | } if (_result) { |
1493 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1494 | _resultobj = Py_BuildValue("s",_ptemp); | |
1495 | } else { | |
1496 | Py_INCREF(Py_None); | |
1497 | _resultobj = Py_None; | |
1498 | } | |
1499 | { | |
1500 | if (_obj0) | |
1501 | delete _arg0; | |
1502 | } | |
8ab979d7 RD |
1503 | return _resultobj; |
1504 | } | |
1505 | ||
6999b0d8 RD |
1506 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1507 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1508 | PyObject * _resultobj; |
1509 | wxBitmap * _arg0; | |
1d99702e | 1510 | PyObject * _argo0 = 0; |
6999b0d8 | 1511 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1512 | |
1513 | self = self; | |
6999b0d8 | 1514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1515 | return NULL; |
1d99702e RD |
1516 | if (_argo0) { |
1517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1520 | return NULL; |
1521 | } | |
1522 | } | |
cf694132 | 1523 | { |
4268f798 | 1524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1525 | delete_wxBitmap(_arg0); |
cf694132 | 1526 | |
4268f798 | 1527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1529 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1530 | _resultobj = Py_None; |
1531 | return _resultobj; | |
1532 | } | |
1533 | ||
6999b0d8 RD |
1534 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1535 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1536 | PyObject * _resultobj; |
6999b0d8 | 1537 | wxPalette * _result; |
8ab979d7 | 1538 | wxBitmap * _arg0; |
1d99702e | 1539 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1540 | char *_kwnames[] = { "self", NULL }; |
1541 | char _ptemp[128]; | |
8ab979d7 RD |
1542 | |
1543 | self = self; | |
6999b0d8 | 1544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1545 | return NULL; |
1d99702e RD |
1546 | if (_argo0) { |
1547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1550 | return NULL; |
1551 | } | |
1552 | } | |
cf694132 | 1553 | { |
4268f798 | 1554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1555 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 | 1556 | |
4268f798 | 1557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1558 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1559 | } if (_result) { |
1560 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1561 | _resultobj = Py_BuildValue("s",_ptemp); | |
1562 | } else { | |
1563 | Py_INCREF(Py_None); | |
1564 | _resultobj = Py_None; | |
1565 | } | |
8ab979d7 RD |
1566 | return _resultobj; |
1567 | } | |
1568 | ||
6999b0d8 RD |
1569 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1570 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1571 | PyObject * _resultobj; |
1572 | wxMask * _result; | |
1573 | wxBitmap * _arg0; | |
1d99702e | 1574 | PyObject * _argo0 = 0; |
6999b0d8 | 1575 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1576 | char _ptemp[128]; |
1577 | ||
1578 | self = self; | |
6999b0d8 | 1579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1580 | return NULL; |
1d99702e RD |
1581 | if (_argo0) { |
1582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1585 | return NULL; |
1586 | } | |
1587 | } | |
cf694132 | 1588 | { |
4268f798 | 1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1590 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 | 1591 | |
4268f798 | 1592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1593 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1594 | } if (_result) { |
1595 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1596 | _resultobj = Py_BuildValue("s",_ptemp); | |
1597 | } else { | |
1598 | Py_INCREF(Py_None); | |
1599 | _resultobj = Py_None; | |
1600 | } | |
8ab979d7 RD |
1601 | return _resultobj; |
1602 | } | |
1603 | ||
6999b0d8 RD |
1604 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1605 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1606 | PyObject * _resultobj; |
6999b0d8 RD |
1607 | bool _result; |
1608 | wxBitmap * _arg0; | |
1609 | wxString * _arg1; | |
b37c7e1d | 1610 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP; |
6999b0d8 RD |
1611 | PyObject * _argo0 = 0; |
1612 | PyObject * _obj1 = 0; | |
b37c7e1d | 1613 | char *_kwnames[] = { "self","name","type", NULL }; |
8ab979d7 RD |
1614 | |
1615 | self = self; | |
b37c7e1d | 1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6999b0d8 RD |
1617 | return NULL; |
1618 | if (_argo0) { | |
1619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1622 | return NULL; |
6999b0d8 RD |
1623 | } |
1624 | } | |
8ab979d7 | 1625 | { |
185d7c3e RD |
1626 | #if PYTHON_API_VERSION >= 1009 |
1627 | char* tmpPtr; int tmpSize; | |
1628 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1629 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1630 | return NULL; |
1631 | } | |
1632 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1633 | return NULL; | |
1634 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1635 | #else | |
6999b0d8 | 1636 | if (!PyString_Check(_obj1)) { |
8ab979d7 RD |
1637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1638 | return NULL; | |
1639 | } | |
185d7c3e RD |
1640 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1641 | #endif | |
8ab979d7 | 1642 | } |
cf694132 | 1643 | { |
4268f798 | 1644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1645 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 | 1646 | |
4268f798 | 1647 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1648 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1649 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1650 | { |
6999b0d8 RD |
1651 | if (_obj1) |
1652 | delete _arg1; | |
8ab979d7 RD |
1653 | } |
1654 | return _resultobj; | |
1655 | } | |
1656 | ||
6999b0d8 RD |
1657 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1658 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1659 | PyObject * _resultobj; |
6999b0d8 RD |
1660 | bool _result; |
1661 | wxBitmap * _arg0; | |
1662 | wxString * _arg1; | |
b37c7e1d | 1663 | wxBitmapType _arg2; |
6999b0d8 | 1664 | wxPalette * _arg3 = (wxPalette *) NULL; |
1d99702e | 1665 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1666 | PyObject * _obj1 = 0; |
1667 | PyObject * _argo3 = 0; | |
1668 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1669 | |
1670 | self = self; | |
6999b0d8 | 1671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1672 | return NULL; |
1d99702e RD |
1673 | if (_argo0) { |
1674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1677 | return NULL; |
1678 | } | |
1679 | } | |
cf694132 | 1680 | { |
185d7c3e RD |
1681 | #if PYTHON_API_VERSION >= 1009 |
1682 | char* tmpPtr; int tmpSize; | |
1683 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1684 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1685 | return NULL; |
1686 | } | |
1687 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1688 | return NULL; | |
1689 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1690 | #else | |
6999b0d8 RD |
1691 | if (!PyString_Check(_obj1)) { |
1692 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 1693 | return NULL; |
6999b0d8 | 1694 | } |
185d7c3e RD |
1695 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1696 | #endif | |
6999b0d8 RD |
1697 | } |
1698 | if (_argo3) { | |
1699 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1700 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1702 | return NULL; |
1703 | } | |
1704 | } | |
cf694132 | 1705 | { |
4268f798 | 1706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1707 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 1708 | |
4268f798 | 1709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1710 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1711 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1712 | { |
1713 | if (_obj1) | |
1714 | delete _arg1; | |
1715 | } | |
8ab979d7 RD |
1716 | return _resultobj; |
1717 | } | |
1718 | ||
6999b0d8 RD |
1719 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1720 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1721 | PyObject * _resultobj; |
6999b0d8 RD |
1722 | wxBitmap * _arg0; |
1723 | wxMask * _arg1; | |
1d99702e | 1724 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1725 | PyObject * _argo1 = 0; |
1726 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1727 | |
1728 | self = self; | |
6999b0d8 | 1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1730 | return NULL; |
1d99702e RD |
1731 | if (_argo0) { |
1732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1735 | return NULL; |
1736 | } | |
1737 | } | |
6999b0d8 RD |
1738 | if (_argo1) { |
1739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1742 | return NULL; |
1743 | } | |
1744 | } | |
cf694132 | 1745 | { |
4268f798 | 1746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1747 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 | 1748 | |
4268f798 | 1749 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1750 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1751 | } Py_INCREF(Py_None); |
1752 | _resultobj = Py_None; | |
8ab979d7 RD |
1753 | return _resultobj; |
1754 | } | |
1755 | ||
6999b0d8 RD |
1756 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1757 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1758 | PyObject * _resultobj; | |
1759 | wxBitmap * _arg0; | |
1760 | wxPalette * _arg1; | |
1d99702e | 1761 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1762 | PyObject * _argo1 = 0; |
1763 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1764 | |
1765 | self = self; | |
6999b0d8 | 1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1767 | return NULL; |
1d99702e RD |
1768 | if (_argo0) { |
1769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1772 | return NULL; |
1773 | } | |
1774 | } | |
6999b0d8 RD |
1775 | if (_argo1) { |
1776 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1779 | return NULL; |
6999b0d8 | 1780 | } |
8ab979d7 | 1781 | } |
cf694132 | 1782 | { |
4268f798 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 | 1784 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 | 1785 | |
4268f798 | 1786 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1787 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1788 | } Py_INCREF(Py_None); |
1789 | _resultobj = Py_None; | |
8ab979d7 RD |
1790 | return _resultobj; |
1791 | } | |
1792 | ||
9b3d3bc4 RD |
1793 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1794 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1795 | PyObject * _resultobj; |
9b3d3bc4 | 1796 | long _result; |
6999b0d8 | 1797 | wxBitmap * _arg0; |
1d99702e | 1798 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1799 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1800 | |
1801 | self = self; | |
9b3d3bc4 | 1802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1803 | return NULL; |
1d99702e RD |
1804 | if (_argo0) { |
1805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1808 | return NULL; |
1809 | } | |
1810 | } | |
cf694132 | 1811 | { |
4268f798 | 1812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 1813 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 | 1814 | |
4268f798 | 1815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1816 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1817 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1818 | return _resultobj; |
1819 | } | |
1820 | ||
9b3d3bc4 RD |
1821 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1822 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1823 | PyObject * _resultobj; |
9b3d3bc4 | 1824 | wxBitmap * _arg0; |
6999b0d8 | 1825 | long _arg1; |
9b3d3bc4 RD |
1826 | PyObject * _argo0 = 0; |
1827 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1828 | |
1829 | self = self; | |
9b3d3bc4 | 1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1831 | return NULL; |
9b3d3bc4 RD |
1832 | if (_argo0) { |
1833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1836 | return NULL; |
9b3d3bc4 | 1837 | } |
8ab979d7 | 1838 | } |
9b3d3bc4 | 1839 | { |
4268f798 | 1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1841 | wxBitmap_SetHandle(_arg0,_arg1); |
1842 | ||
4268f798 | 1843 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1844 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1845 | } Py_INCREF(Py_None); |
1846 | _resultobj = Py_None; | |
1847 | return _resultobj; | |
6999b0d8 | 1848 | } |
9b3d3bc4 RD |
1849 | |
1850 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1851 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject * _resultobj; | |
1853 | bool _result; | |
1854 | wxBitmap * _arg0; | |
1855 | PyObject * _argo0 = 0; | |
1856 | char *_kwnames[] = { "self", NULL }; | |
1857 | ||
1858 | self = self; | |
1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1860 | return NULL; | |
1861 | if (_argo0) { | |
1862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1865 | return NULL; | |
1866 | } | |
1867 | } | |
cf694132 | 1868 | { |
4268f798 | 1869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 1870 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 | 1871 | |
4268f798 | 1872 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1873 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1874 | } _resultobj = Py_BuildValue("i",_result); |
1875 | return _resultobj; | |
1876 | } | |
1877 | ||
1878 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1879 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1880 | PyObject * _resultobj; | |
1881 | int _result; | |
1882 | wxBitmap * _arg0; | |
1883 | PyObject * _argo0 = 0; | |
1884 | char *_kwnames[] = { "self", NULL }; | |
1885 | ||
1886 | self = self; | |
1887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1888 | return NULL; | |
1889 | if (_argo0) { | |
1890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1893 | return NULL; | |
1894 | } | |
6999b0d8 RD |
1895 | } |
1896 | { | |
4268f798 | 1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1898 | _result = (int )wxBitmap_GetWidth(_arg0); |
1899 | ||
4268f798 | 1900 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1901 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1902 | } _resultobj = Py_BuildValue("i",_result); |
1903 | return _resultobj; | |
6999b0d8 | 1904 | } |
9b3d3bc4 RD |
1905 | |
1906 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1907 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject * _resultobj; | |
1909 | int _result; | |
1910 | wxBitmap * _arg0; | |
1911 | PyObject * _argo0 = 0; | |
1912 | char *_kwnames[] = { "self", NULL }; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1916 | return NULL; | |
1917 | if (_argo0) { | |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
1924 | { | |
4268f798 | 1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1926 | _result = (int )wxBitmap_GetHeight(_arg0); |
1927 | ||
4268f798 | 1928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1929 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1930 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1931 | return _resultobj; |
1932 | } | |
1933 | ||
9b3d3bc4 RD |
1934 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1935 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1936 | PyObject * _resultobj; |
9b3d3bc4 RD |
1937 | int _result; |
1938 | wxBitmap * _arg0; | |
1d99702e | 1939 | PyObject * _argo0 = 0; |
6999b0d8 | 1940 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1941 | |
1942 | self = self; | |
9b3d3bc4 | 1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1944 | return NULL; |
1d99702e RD |
1945 | if (_argo0) { |
1946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1949 | return NULL; |
1950 | } | |
1951 | } | |
cf694132 | 1952 | { |
4268f798 | 1953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
1954 | _result = (int )wxBitmap_GetDepth(_arg0); |
1955 | ||
4268f798 | 1956 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1957 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1958 | } _resultobj = Py_BuildValue("i",_result); |
1959 | return _resultobj; | |
1960 | } | |
1961 | ||
1962 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1963 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1964 | PyObject * _resultobj; | |
1965 | wxBitmap * _arg0; | |
1966 | int _arg1; | |
1967 | PyObject * _argo0 = 0; | |
1968 | char *_kwnames[] = { "self","w", NULL }; | |
1969 | ||
1970 | self = self; | |
1971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1972 | return NULL; | |
1973 | if (_argo0) { | |
1974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1977 | return NULL; | |
1978 | } | |
1979 | } | |
1980 | { | |
4268f798 | 1981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 1982 | wxBitmap_SetWidth(_arg0,_arg1); |
cf694132 | 1983 | |
4268f798 | 1984 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1985 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1986 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1987 | _resultobj = Py_None; |
1988 | return _resultobj; | |
1989 | } | |
1990 | ||
9b3d3bc4 RD |
1991 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1992 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1993 | PyObject * _resultobj; |
9b3d3bc4 RD |
1994 | wxBitmap * _arg0; |
1995 | int _arg1; | |
1d99702e | 1996 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1997 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
1998 | |
1999 | self = self; | |
9b3d3bc4 | 2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2001 | return NULL; |
1d99702e RD |
2002 | if (_argo0) { |
2003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
2005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
2006 | return NULL; |
2007 | } | |
2008 | } | |
6999b0d8 | 2009 | { |
4268f798 | 2010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2011 | wxBitmap_SetHeight(_arg0,_arg1); |
2012 | ||
4268f798 | 2013 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2014 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2015 | } Py_INCREF(Py_None); |
2016 | _resultobj = Py_None; | |
2017 | return _resultobj; | |
2018 | } | |
2019 | ||
2020 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2021 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject * _resultobj; | |
2023 | wxBitmap * _arg0; | |
2024 | int _arg1; | |
2025 | PyObject * _argo0 = 0; | |
2026 | char *_kwnames[] = { "self","d", NULL }; | |
2027 | ||
2028 | self = self; | |
2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2030 | return NULL; | |
2031 | if (_argo0) { | |
2032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2035 | return NULL; |
9b3d3bc4 | 2036 | } |
6999b0d8 | 2037 | } |
cf694132 | 2038 | { |
4268f798 | 2039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 2040 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 | 2041 | |
4268f798 | 2042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2043 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2044 | } Py_INCREF(Py_None); |
2045 | _resultobj = Py_None; | |
2046 | return _resultobj; | |
2047 | } | |
2048 | ||
2049 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2050 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject * _resultobj; | |
2052 | wxBitmap * _arg0; | |
2053 | wxSize * _arg1; | |
2054 | PyObject * _argo0 = 0; | |
2055 | wxSize temp; | |
2056 | PyObject * _obj1 = 0; | |
2057 | char *_kwnames[] = { "self","size", NULL }; | |
2058 | ||
2059 | self = self; | |
2060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2061 | return NULL; | |
2062 | if (_argo0) { | |
2063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2066 | return NULL; | |
2067 | } | |
2068 | } | |
6999b0d8 | 2069 | { |
9b3d3bc4 RD |
2070 | _arg1 = &temp; |
2071 | if (! wxSize_helper(_obj1, &_arg1)) | |
2072 | return NULL; | |
6999b0d8 | 2073 | } |
9b3d3bc4 | 2074 | { |
4268f798 | 2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2076 | wxBitmap_SetSize(_arg0,*_arg1); |
2077 | ||
4268f798 | 2078 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2079 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2080 | } Py_INCREF(Py_None); |
2081 | _resultobj = Py_None; | |
8ab979d7 RD |
2082 | return _resultobj; |
2083 | } | |
2084 | ||
f6bcfd97 BP |
2085 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2086 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2087 | PyObject * _resultobj; | |
2088 | wxBitmap * _result; | |
2089 | wxBitmap * _arg0; | |
2090 | wxRect * _arg1; | |
2091 | PyObject * _argo0 = 0; | |
2092 | wxRect temp; | |
2093 | PyObject * _obj1 = 0; | |
2094 | char *_kwnames[] = { "self","rect", NULL }; | |
2095 | char _ptemp[128]; | |
2096 | ||
2097 | self = self; | |
2098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2099 | return NULL; | |
2100 | if (_argo0) { | |
2101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2104 | return NULL; | |
2105 | } | |
2106 | } | |
2107 | { | |
2108 | _arg1 = &temp; | |
2109 | if (! wxRect_helper(_obj1, &_arg1)) | |
2110 | return NULL; | |
2111 | } | |
2112 | { | |
4268f798 | 2113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2114 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
2115 | ||
4268f798 | 2116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2117 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2118 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2119 | _resultobj = Py_BuildValue("s",_ptemp); | |
2120 | return _resultobj; | |
2121 | } | |
2122 | ||
2123 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2124 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2125 | PyObject * _resultobj; | |
2126 | bool _result; | |
2127 | wxBitmap * _arg0; | |
2128 | wxIcon * _arg1; | |
2129 | PyObject * _argo0 = 0; | |
2130 | PyObject * _argo1 = 0; | |
2131 | char *_kwnames[] = { "self","icon", NULL }; | |
2132 | ||
2133 | self = self; | |
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2135 | return NULL; | |
2136 | if (_argo0) { | |
2137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2140 | return NULL; | |
2141 | } | |
2142 | } | |
2143 | if (_argo1) { | |
2144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2147 | return NULL; | |
2148 | } | |
2149 | } | |
2150 | { | |
4268f798 | 2151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2152 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
2153 | ||
4268f798 | 2154 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2155 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2156 | } _resultobj = Py_BuildValue("i",_result); |
2157 | return _resultobj; | |
2158 | } | |
2159 | ||
2160 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2161 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2162 | PyObject * _resultobj; | |
2163 | bool _result; | |
2164 | wxBitmap * _arg0; | |
2165 | wxCursor * _arg1; | |
2166 | PyObject * _argo0 = 0; | |
2167 | PyObject * _argo1 = 0; | |
2168 | char *_kwnames[] = { "self","cursor", NULL }; | |
2169 | ||
2170 | self = self; | |
2171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2172 | return NULL; | |
2173 | if (_argo0) { | |
2174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2177 | return NULL; | |
2178 | } | |
2179 | } | |
2180 | if (_argo1) { | |
2181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2184 | return NULL; | |
2185 | } | |
2186 | } | |
2187 | { | |
4268f798 | 2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2189 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); |
2190 | ||
4268f798 | 2191 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2192 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2193 | } _resultobj = Py_BuildValue("i",_result); |
2194 | return _resultobj; | |
2195 | } | |
2196 | ||
2197 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2198 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2199 | PyObject * _resultobj; | |
2200 | int _result; | |
2201 | wxBitmap * _arg0; | |
2202 | PyObject * _argo0 = 0; | |
2203 | char *_kwnames[] = { "self", NULL }; | |
2204 | ||
2205 | self = self; | |
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2207 | return NULL; | |
2208 | if (_argo0) { | |
2209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2212 | return NULL; | |
2213 | } | |
2214 | } | |
2215 | { | |
4268f798 | 2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2217 | _result = (int )wxBitmap_GetQuality(_arg0); |
2218 | ||
4268f798 | 2219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2220 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2221 | } _resultobj = Py_BuildValue("i",_result); |
2222 | return _resultobj; | |
2223 | } | |
2224 | ||
2225 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2226 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject * _resultobj; | |
2228 | wxBitmap * _arg0; | |
2229 | int _arg1; | |
2230 | PyObject * _argo0 = 0; | |
2231 | char *_kwnames[] = { "self","q", NULL }; | |
2232 | ||
2233 | self = self; | |
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2235 | return NULL; | |
2236 | if (_argo0) { | |
2237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2240 | return NULL; | |
2241 | } | |
2242 | } | |
2243 | { | |
4268f798 | 2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2245 | wxBitmap_SetQuality(_arg0,_arg1); |
2246 | ||
4268f798 | 2247 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2248 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2249 | } Py_INCREF(Py_None); |
2250 | _resultobj = Py_None; | |
2251 | return _resultobj; | |
2252 | } | |
2253 | ||
9416aa89 RD |
2254 | static void *SwigwxMaskTowxObject(void *ptr) { |
2255 | wxMask *src; | |
2256 | wxObject *dest; | |
2257 | src = (wxMask *) ptr; | |
2258 | dest = (wxObject *) src; | |
2259 | return (void *) dest; | |
2260 | } | |
2261 | ||
9b3d3bc4 RD |
2262 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2263 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2264 | PyObject * _resultobj; | |
2265 | wxMask * _result; | |
2266 | wxBitmap * _arg0; | |
2267 | PyObject * _argo0 = 0; | |
2268 | char *_kwnames[] = { "bitmap", NULL }; | |
2269 | char _ptemp[128]; | |
2270 | ||
2271 | self = self; | |
2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2273 | return NULL; | |
2274 | if (_argo0) { | |
2275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2278 | return NULL; | |
2279 | } | |
2280 | } | |
2281 | { | |
4268f798 | 2282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2283 | _result = (wxMask *)new_wxMask(*_arg0); |
2284 | ||
4268f798 | 2285 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2286 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2287 | } if (_result) { |
2288 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2289 | _resultobj = Py_BuildValue("s",_ptemp); | |
2290 | } else { | |
2291 | Py_INCREF(Py_None); | |
2292 | _resultobj = Py_None; | |
2293 | } | |
2294 | return _resultobj; | |
8ab979d7 RD |
2295 | } |
2296 | ||
96bfd053 RD |
2297 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2298 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2299 | PyObject * _resultobj; | |
2300 | wxMask * _arg0; | |
2301 | PyObject * _argo0 = 0; | |
2302 | char *_kwnames[] = { "self", NULL }; | |
2303 | ||
2304 | self = self; | |
2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2306 | return NULL; | |
2307 | if (_argo0) { | |
2308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2311 | return NULL; | |
2312 | } | |
2313 | } | |
2314 | { | |
4268f798 | 2315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
2316 | wxMask_Destroy(_arg0); |
2317 | ||
4268f798 | 2318 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2319 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2320 | } Py_INCREF(Py_None); |
2321 | _resultobj = Py_None; | |
2322 | return _resultobj; | |
2323 | } | |
2324 | ||
9416aa89 RD |
2325 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2326 | wxIcon *src; | |
2327 | wxGDIObject *dest; | |
2328 | src = (wxIcon *) ptr; | |
2329 | dest = (wxGDIObject *) src; | |
2330 | return (void *) dest; | |
2331 | } | |
2332 | ||
2333 | static void *SwigwxIconTowxObject(void *ptr) { | |
2334 | wxIcon *src; | |
2335 | wxObject *dest; | |
2336 | src = (wxIcon *) ptr; | |
2337 | dest = (wxObject *) src; | |
2338 | return (void *) dest; | |
2339 | } | |
2340 | ||
9b3d3bc4 RD |
2341 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2342 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2343 | PyObject * _resultobj; |
9b3d3bc4 | 2344 | wxIcon * _result; |
8ab979d7 RD |
2345 | wxString * _arg0; |
2346 | long _arg1; | |
9b3d3bc4 RD |
2347 | int _arg2 = (int ) -1; |
2348 | int _arg3 = (int ) -1; | |
8ab979d7 | 2349 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2350 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2351 | char _ptemp[128]; |
2352 | ||
2353 | self = self; | |
9b3d3bc4 | 2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2355 | return NULL; |
2356 | { | |
185d7c3e RD |
2357 | #if PYTHON_API_VERSION >= 1009 |
2358 | char* tmpPtr; int tmpSize; | |
2359 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2360 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2361 | return NULL; |
2362 | } | |
2363 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2364 | return NULL; | |
2365 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2366 | #else | |
8ab979d7 RD |
2367 | if (!PyString_Check(_obj0)) { |
2368 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2369 | return NULL; | |
2370 | } | |
185d7c3e RD |
2371 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2372 | #endif | |
8ab979d7 | 2373 | } |
cf694132 | 2374 | { |
4268f798 | 2375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 2376 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 | 2377 | |
4268f798 | 2378 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2379 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2380 | } if (_result) { |
9b3d3bc4 | 2381 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2382 | _resultobj = Py_BuildValue("s",_ptemp); |
2383 | } else { | |
2384 | Py_INCREF(Py_None); | |
2385 | _resultobj = Py_None; | |
2386 | } | |
8ab979d7 RD |
2387 | { |
2388 | if (_obj0) | |
2389 | delete _arg0; | |
2390 | } | |
2391 | return _resultobj; | |
2392 | } | |
2393 | ||
9b3d3bc4 RD |
2394 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2395 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2396 | PyObject * _resultobj; |
9b3d3bc4 | 2397 | wxIcon * _arg0; |
1d99702e | 2398 | PyObject * _argo0 = 0; |
1afc06c2 | 2399 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2400 | |
2401 | self = self; | |
9b3d3bc4 | 2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2403 | return NULL; |
1d99702e RD |
2404 | if (_argo0) { |
2405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2408 | return NULL; |
2409 | } | |
2410 | } | |
cf694132 | 2411 | { |
4268f798 | 2412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2413 | delete_wxIcon(_arg0); |
2414 | ||
4268f798 | 2415 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2416 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2417 | } Py_INCREF(Py_None); |
2418 | _resultobj = Py_None; | |
2419 | return _resultobj; | |
2420 | } | |
2421 | ||
2422 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2423 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2424 | PyObject * _resultobj; | |
2425 | bool _result; | |
2426 | wxIcon * _arg0; | |
2427 | wxString * _arg1; | |
2428 | long _arg2; | |
2429 | PyObject * _argo0 = 0; | |
2430 | PyObject * _obj1 = 0; | |
2431 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2432 | ||
2433 | self = self; | |
2434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2435 | return NULL; | |
2436 | if (_argo0) { | |
2437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2440 | return NULL; | |
2441 | } | |
2442 | } | |
2443 | { | |
185d7c3e RD |
2444 | #if PYTHON_API_VERSION >= 1009 |
2445 | char* tmpPtr; int tmpSize; | |
2446 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2447 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2448 | return NULL; |
2449 | } | |
2450 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2451 | return NULL; | |
2452 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2453 | #else | |
9b3d3bc4 RD |
2454 | if (!PyString_Check(_obj1)) { |
2455 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2456 | return NULL; | |
2457 | } | |
185d7c3e RD |
2458 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2459 | #endif | |
9b3d3bc4 RD |
2460 | } |
2461 | { | |
4268f798 | 2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2463 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
2464 | ||
4268f798 | 2465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2466 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2467 | } _resultobj = Py_BuildValue("i",_result); |
2468 | { | |
2469 | if (_obj1) | |
2470 | delete _arg1; | |
2471 | } | |
2472 | return _resultobj; | |
2473 | } | |
2474 | ||
2475 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2476 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2477 | PyObject * _resultobj; | |
2478 | long _result; | |
2479 | wxIcon * _arg0; | |
2480 | PyObject * _argo0 = 0; | |
2481 | char *_kwnames[] = { "self", NULL }; | |
2482 | ||
2483 | self = self; | |
2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2485 | return NULL; | |
2486 | if (_argo0) { | |
2487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2490 | return NULL; | |
2491 | } | |
2492 | } | |
2493 | { | |
4268f798 | 2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2495 | _result = (long )wxIcon_GetHandle(_arg0); |
2496 | ||
4268f798 | 2497 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2498 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2499 | } _resultobj = Py_BuildValue("l",_result); |
2500 | return _resultobj; | |
2501 | } | |
2502 | ||
2503 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2504 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2505 | PyObject * _resultobj; | |
2506 | wxIcon * _arg0; | |
2507 | long _arg1; | |
2508 | PyObject * _argo0 = 0; | |
2509 | char *_kwnames[] = { "self","handle", NULL }; | |
2510 | ||
2511 | self = self; | |
2512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2513 | return NULL; | |
2514 | if (_argo0) { | |
2515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2518 | return NULL; | |
2519 | } | |
2520 | } | |
2521 | { | |
4268f798 | 2522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2523 | wxIcon_SetHandle(_arg0,_arg1); |
2524 | ||
4268f798 | 2525 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2526 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2527 | } Py_INCREF(Py_None); |
2528 | _resultobj = Py_None; | |
2529 | return _resultobj; | |
2530 | } | |
2531 | ||
2532 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2533 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2534 | PyObject * _resultobj; | |
2535 | bool _result; | |
2536 | wxIcon * _arg0; | |
2537 | PyObject * _argo0 = 0; | |
2538 | char *_kwnames[] = { "self", NULL }; | |
2539 | ||
2540 | self = self; | |
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2542 | return NULL; | |
2543 | if (_argo0) { | |
2544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2547 | return NULL; | |
2548 | } | |
2549 | } | |
2550 | { | |
4268f798 | 2551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2552 | _result = (bool )wxIcon_Ok(_arg0); |
2553 | ||
4268f798 | 2554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2555 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2556 | } _resultobj = Py_BuildValue("i",_result); |
2557 | return _resultobj; | |
2558 | } | |
2559 | ||
2560 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2561 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2562 | PyObject * _resultobj; | |
2563 | int _result; | |
2564 | wxIcon * _arg0; | |
2565 | PyObject * _argo0 = 0; | |
2566 | char *_kwnames[] = { "self", NULL }; | |
2567 | ||
2568 | self = self; | |
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2570 | return NULL; | |
2571 | if (_argo0) { | |
2572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
2578 | { | |
4268f798 | 2579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2580 | _result = (int )wxIcon_GetWidth(_arg0); |
2581 | ||
4268f798 | 2582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2583 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2584 | } _resultobj = Py_BuildValue("i",_result); |
2585 | return _resultobj; | |
2586 | } | |
2587 | ||
2588 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2589 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject * _resultobj; | |
2591 | int _result; | |
2592 | wxIcon * _arg0; | |
2593 | PyObject * _argo0 = 0; | |
2594 | char *_kwnames[] = { "self", NULL }; | |
2595 | ||
2596 | self = self; | |
2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2598 | return NULL; | |
2599 | if (_argo0) { | |
2600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2603 | return NULL; | |
2604 | } | |
2605 | } | |
2606 | { | |
4268f798 | 2607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2608 | _result = (int )wxIcon_GetHeight(_arg0); |
2609 | ||
4268f798 | 2610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2611 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2612 | } _resultobj = Py_BuildValue("i",_result); |
2613 | return _resultobj; | |
2614 | } | |
2615 | ||
2616 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2617 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2618 | PyObject * _resultobj; | |
2619 | int _result; | |
2620 | wxIcon * _arg0; | |
2621 | PyObject * _argo0 = 0; | |
2622 | char *_kwnames[] = { "self", NULL }; | |
2623 | ||
2624 | self = self; | |
2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2626 | return NULL; | |
2627 | if (_argo0) { | |
2628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2631 | return NULL; | |
2632 | } | |
2633 | } | |
2634 | { | |
4268f798 | 2635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2636 | _result = (int )wxIcon_GetDepth(_arg0); |
2637 | ||
4268f798 | 2638 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2639 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2640 | } _resultobj = Py_BuildValue("i",_result); |
2641 | return _resultobj; | |
2642 | } | |
2643 | ||
2644 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2645 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2646 | PyObject * _resultobj; | |
2647 | wxIcon * _arg0; | |
2648 | int _arg1; | |
2649 | PyObject * _argo0 = 0; | |
2650 | char *_kwnames[] = { "self","w", NULL }; | |
2651 | ||
2652 | self = self; | |
2653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2654 | return NULL; | |
2655 | if (_argo0) { | |
2656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2659 | return NULL; | |
2660 | } | |
2661 | } | |
2662 | { | |
4268f798 | 2663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2664 | wxIcon_SetWidth(_arg0,_arg1); |
2665 | ||
4268f798 | 2666 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2667 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2668 | } Py_INCREF(Py_None); |
2669 | _resultobj = Py_None; | |
2670 | return _resultobj; | |
2671 | } | |
2672 | ||
2673 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2674 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2675 | PyObject * _resultobj; | |
2676 | wxIcon * _arg0; | |
2677 | int _arg1; | |
2678 | PyObject * _argo0 = 0; | |
2679 | char *_kwnames[] = { "self","h", NULL }; | |
2680 | ||
2681 | self = self; | |
2682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2683 | return NULL; | |
2684 | if (_argo0) { | |
2685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2688 | return NULL; | |
2689 | } | |
2690 | } | |
2691 | { | |
4268f798 | 2692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2693 | wxIcon_SetHeight(_arg0,_arg1); |
2694 | ||
4268f798 | 2695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2696 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2697 | } Py_INCREF(Py_None); |
2698 | _resultobj = Py_None; | |
2699 | return _resultobj; | |
2700 | } | |
2701 | ||
2702 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2703 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2704 | PyObject * _resultobj; | |
2705 | wxIcon * _arg0; | |
2706 | int _arg1; | |
2707 | PyObject * _argo0 = 0; | |
2708 | char *_kwnames[] = { "self","d", NULL }; | |
2709 | ||
2710 | self = self; | |
2711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2712 | return NULL; | |
2713 | if (_argo0) { | |
2714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2717 | return NULL; | |
2718 | } | |
2719 | } | |
2720 | { | |
4268f798 | 2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2722 | wxIcon_SetDepth(_arg0,_arg1); |
2723 | ||
4268f798 | 2724 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2725 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2726 | } Py_INCREF(Py_None); |
2727 | _resultobj = Py_None; | |
2728 | return _resultobj; | |
2729 | } | |
2730 | ||
2731 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2732 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2733 | PyObject * _resultobj; | |
2734 | wxIcon * _arg0; | |
2735 | wxSize * _arg1; | |
2736 | PyObject * _argo0 = 0; | |
2737 | wxSize temp; | |
2738 | PyObject * _obj1 = 0; | |
2739 | char *_kwnames[] = { "self","size", NULL }; | |
2740 | ||
2741 | self = self; | |
2742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2743 | return NULL; | |
2744 | if (_argo0) { | |
2745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2748 | return NULL; | |
2749 | } | |
2750 | } | |
2751 | { | |
2752 | _arg1 = &temp; | |
2753 | if (! wxSize_helper(_obj1, &_arg1)) | |
2754 | return NULL; | |
2755 | } | |
2756 | { | |
4268f798 | 2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2758 | wxIcon_SetSize(_arg0,*_arg1); |
2759 | ||
4268f798 | 2760 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2761 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2762 | } Py_INCREF(Py_None); |
2763 | _resultobj = Py_None; | |
2764 | return _resultobj; | |
2765 | } | |
2766 | ||
96bfd053 RD |
2767 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2768 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2769 | PyObject * _resultobj; | |
2770 | wxIcon * _arg0; | |
2771 | wxBitmap * _arg1; | |
2772 | PyObject * _argo0 = 0; | |
2773 | PyObject * _argo1 = 0; | |
2774 | char *_kwnames[] = { "self","bmp", NULL }; | |
2775 | ||
2776 | self = self; | |
2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2778 | return NULL; | |
2779 | if (_argo0) { | |
2780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2783 | return NULL; | |
2784 | } | |
2785 | } | |
2786 | if (_argo1) { | |
2787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2790 | return NULL; | |
2791 | } | |
2792 | } | |
2793 | { | |
4268f798 | 2794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
96bfd053 RD |
2795 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
2796 | ||
4268f798 | 2797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2798 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2799 | } Py_INCREF(Py_None); |
2800 | _resultobj = Py_None; | |
2801 | return _resultobj; | |
2802 | } | |
2803 | ||
9416aa89 RD |
2804 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2805 | wxCursor *src; | |
2806 | wxGDIObject *dest; | |
2807 | src = (wxCursor *) ptr; | |
2808 | dest = (wxGDIObject *) src; | |
2809 | return (void *) dest; | |
2810 | } | |
2811 | ||
2812 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2813 | wxCursor *src; | |
2814 | wxObject *dest; | |
2815 | src = (wxCursor *) ptr; | |
2816 | dest = (wxObject *) src; | |
2817 | return (void *) dest; | |
2818 | } | |
2819 | ||
9b3d3bc4 RD |
2820 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2821 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2822 | PyObject * _resultobj; | |
2823 | wxCursor * _result; | |
2824 | wxString * _arg0; | |
2825 | long _arg1; | |
2826 | int _arg2 = (int ) 0; | |
2827 | int _arg3 = (int ) 0; | |
2828 | PyObject * _obj0 = 0; | |
2829 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2830 | char _ptemp[128]; | |
2831 | ||
2832 | self = self; | |
2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2834 | return NULL; | |
2835 | { | |
185d7c3e RD |
2836 | #if PYTHON_API_VERSION >= 1009 |
2837 | char* tmpPtr; int tmpSize; | |
2838 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2839 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2840 | return NULL; |
2841 | } | |
2842 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2843 | return NULL; | |
2844 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2845 | #else | |
9b3d3bc4 RD |
2846 | if (!PyString_Check(_obj0)) { |
2847 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2848 | return NULL; | |
2849 | } | |
185d7c3e RD |
2850 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2851 | #endif | |
9b3d3bc4 RD |
2852 | } |
2853 | { | |
4268f798 | 2854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2855 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); |
2856 | ||
4268f798 | 2857 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2858 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2859 | } if (_result) { |
2860 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2861 | _resultobj = Py_BuildValue("s",_ptemp); | |
2862 | } else { | |
2863 | Py_INCREF(Py_None); | |
2864 | _resultobj = Py_None; | |
2865 | } | |
2866 | { | |
2867 | if (_obj0) | |
2868 | delete _arg0; | |
2869 | } | |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
2873 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2874 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | wxCursor * _arg0; | |
2877 | PyObject * _argo0 = 0; | |
2878 | char *_kwnames[] = { "self", NULL }; | |
2879 | ||
2880 | self = self; | |
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2882 | return NULL; | |
2883 | if (_argo0) { | |
2884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
2890 | { | |
4268f798 | 2891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2892 | delete_wxCursor(_arg0); |
2893 | ||
4268f798 | 2894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2895 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2896 | } Py_INCREF(Py_None); |
2897 | _resultobj = Py_None; | |
2898 | return _resultobj; | |
2899 | } | |
2900 | ||
2901 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2902 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2903 | PyObject * _resultobj; | |
2904 | long _result; | |
2905 | wxCursor * _arg0; | |
2906 | PyObject * _argo0 = 0; | |
2907 | char *_kwnames[] = { "self", NULL }; | |
2908 | ||
2909 | self = self; | |
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2911 | return NULL; | |
2912 | if (_argo0) { | |
2913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2916 | return NULL; | |
2917 | } | |
2918 | } | |
2919 | { | |
4268f798 | 2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2921 | _result = (long )wxCursor_GetHandle(_arg0); |
2922 | ||
4268f798 | 2923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2924 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2925 | } _resultobj = Py_BuildValue("l",_result); |
2926 | return _resultobj; | |
2927 | } | |
2928 | ||
2929 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2930 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject * _resultobj; | |
2932 | wxCursor * _arg0; | |
2933 | long _arg1; | |
2934 | PyObject * _argo0 = 0; | |
2935 | char *_kwnames[] = { "self","handle", NULL }; | |
2936 | ||
2937 | self = self; | |
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2939 | return NULL; | |
2940 | if (_argo0) { | |
2941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2944 | return NULL; | |
2945 | } | |
2946 | } | |
2947 | { | |
4268f798 | 2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2949 | wxCursor_SetHandle(_arg0,_arg1); |
2950 | ||
4268f798 | 2951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2952 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2953 | } Py_INCREF(Py_None); |
2954 | _resultobj = Py_None; | |
2955 | return _resultobj; | |
2956 | } | |
2957 | ||
2958 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2959 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2960 | PyObject * _resultobj; | |
2961 | bool _result; | |
2962 | wxCursor * _arg0; | |
2963 | PyObject * _argo0 = 0; | |
2964 | char *_kwnames[] = { "self", NULL }; | |
2965 | ||
2966 | self = self; | |
2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2968 | return NULL; | |
2969 | if (_argo0) { | |
2970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2973 | return NULL; | |
2974 | } | |
2975 | } | |
2976 | { | |
4268f798 | 2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
2978 | _result = (bool )wxCursor_Ok(_arg0); |
2979 | ||
4268f798 | 2980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2981 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2982 | } _resultobj = Py_BuildValue("i",_result); |
2983 | return _resultobj; | |
2984 | } | |
2985 | ||
2986 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2987 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2988 | PyObject * _resultobj; | |
2989 | int _result; | |
2990 | wxCursor * _arg0; | |
2991 | PyObject * _argo0 = 0; | |
2992 | char *_kwnames[] = { "self", NULL }; | |
2993 | ||
2994 | self = self; | |
2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2996 | return NULL; | |
2997 | if (_argo0) { | |
2998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
3001 | return NULL; | |
3002 | } | |
3003 | } | |
3004 | { | |
4268f798 | 3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3006 | _result = (int )wxCursor_GetWidth(_arg0); |
3007 | ||
4268f798 | 3008 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3009 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3010 | } _resultobj = Py_BuildValue("i",_result); |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
3015 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject * _resultobj; | |
3017 | int _result; | |
3018 | wxCursor * _arg0; | |
3019 | PyObject * _argo0 = 0; | |
3020 | char *_kwnames[] = { "self", NULL }; | |
3021 | ||
3022 | self = self; | |
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
3024 | return NULL; | |
3025 | if (_argo0) { | |
3026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
3029 | return NULL; | |
3030 | } | |
3031 | } | |
3032 | { | |
4268f798 | 3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3034 | _result = (int )wxCursor_GetHeight(_arg0); |
3035 | ||
4268f798 | 3036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3037 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3038 | } _resultobj = Py_BuildValue("i",_result); |
3039 | return _resultobj; | |
3040 | } | |
3041 | ||
3042 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
3043 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject * _resultobj; | |
3045 | int _result; | |
3046 | wxCursor * _arg0; | |
3047 | PyObject * _argo0 = 0; | |
3048 | char *_kwnames[] = { "self", NULL }; | |
3049 | ||
3050 | self = self; | |
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
3052 | return NULL; | |
3053 | if (_argo0) { | |
3054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3057 | return NULL; | |
3058 | } | |
3059 | } | |
3060 | { | |
4268f798 | 3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3062 | _result = (int )wxCursor_GetDepth(_arg0); |
3063 | ||
4268f798 | 3064 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3065 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3066 | } _resultobj = Py_BuildValue("i",_result); |
3067 | return _resultobj; | |
3068 | } | |
3069 | ||
3070 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3071 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject * _resultobj; | |
3073 | wxCursor * _arg0; | |
3074 | int _arg1; | |
3075 | PyObject * _argo0 = 0; | |
3076 | char *_kwnames[] = { "self","w", NULL }; | |
3077 | ||
3078 | self = self; | |
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3080 | return NULL; | |
3081 | if (_argo0) { | |
3082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3085 | return NULL; | |
3086 | } | |
3087 | } | |
3088 | { | |
4268f798 | 3089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3090 | wxCursor_SetWidth(_arg0,_arg1); |
3091 | ||
4268f798 | 3092 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3093 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3094 | } Py_INCREF(Py_None); |
3095 | _resultobj = Py_None; | |
3096 | return _resultobj; | |
3097 | } | |
3098 | ||
3099 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3100 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3101 | PyObject * _resultobj; | |
3102 | wxCursor * _arg0; | |
3103 | int _arg1; | |
3104 | PyObject * _argo0 = 0; | |
3105 | char *_kwnames[] = { "self","h", NULL }; | |
3106 | ||
3107 | self = self; | |
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3109 | return NULL; | |
3110 | if (_argo0) { | |
3111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3114 | return NULL; | |
3115 | } | |
3116 | } | |
3117 | { | |
4268f798 | 3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3119 | wxCursor_SetHeight(_arg0,_arg1); |
3120 | ||
4268f798 | 3121 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3122 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3123 | } Py_INCREF(Py_None); |
3124 | _resultobj = Py_None; | |
3125 | return _resultobj; | |
3126 | } | |
3127 | ||
3128 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3129 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3130 | PyObject * _resultobj; | |
3131 | wxCursor * _arg0; | |
3132 | int _arg1; | |
3133 | PyObject * _argo0 = 0; | |
3134 | char *_kwnames[] = { "self","d", NULL }; | |
3135 | ||
3136 | self = self; | |
3137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3138 | return NULL; | |
3139 | if (_argo0) { | |
3140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3143 | return NULL; | |
3144 | } | |
3145 | } | |
3146 | { | |
4268f798 | 3147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 RD |
3148 | wxCursor_SetDepth(_arg0,_arg1); |
3149 | ||
4268f798 | 3150 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3151 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3152 | } Py_INCREF(Py_None); |
3153 | _resultobj = Py_None; | |
3154 | return _resultobj; | |
3155 | } | |
3156 | ||
3157 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3158 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3159 | PyObject * _resultobj; | |
3160 | wxCursor * _arg0; | |
3161 | wxSize * _arg1; | |
3162 | PyObject * _argo0 = 0; | |
3163 | wxSize temp; | |
3164 | PyObject * _obj1 = 0; | |
3165 | char *_kwnames[] = { "self","size", NULL }; | |
3166 | ||
3167 | self = self; | |
3168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3169 | return NULL; | |
3170 | if (_argo0) { | |
3171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3174 | return NULL; | |
3175 | } | |
3176 | } | |
3177 | { | |
3178 | _arg1 = &temp; | |
3179 | if (! wxSize_helper(_obj1, &_arg1)) | |
3180 | return NULL; | |
3181 | } | |
3182 | { | |
4268f798 | 3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9b3d3bc4 | 3184 | wxCursor_SetSize(_arg0,*_arg1); |
cf694132 | 3185 | |
4268f798 | 3186 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3187 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3188 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3189 | _resultobj = Py_None; |
3190 | return _resultobj; | |
3191 | } | |
3192 | ||
b5a5d647 RD |
3193 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) |
3194 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3195 | PyObject * _resultobj; | |
3196 | wxNativeFontInfo * _result; | |
3197 | char *_kwnames[] = { NULL }; | |
3198 | char _ptemp[128]; | |
3199 | ||
3200 | self = self; | |
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
3202 | return NULL; | |
3203 | { | |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) return NULL; | |
3209 | } if (_result) { | |
3210 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3211 | _resultobj = Py_BuildValue("s",_ptemp); | |
3212 | } else { | |
3213 | Py_INCREF(Py_None); | |
3214 | _resultobj = Py_None; | |
3215 | } | |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
3219 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
3220 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3221 | PyObject * _resultobj; | |
3222 | wxNativeFontInfo * _arg0; | |
3223 | PyObject * _argo0 = 0; | |
3224 | char *_kwnames[] = { "self", NULL }; | |
3225 | ||
3226 | self = self; | |
3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
3228 | return NULL; | |
3229 | if (_argo0) { | |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
3236 | { | |
3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3238 | wxNativeFontInfo_Init(_arg0); | |
3239 | ||
3240 | wxPyEndAllowThreads(__tstate); | |
3241 | if (PyErr_Occurred()) return NULL; | |
3242 | } Py_INCREF(Py_None); | |
3243 | _resultobj = Py_None; | |
3244 | return _resultobj; | |
3245 | } | |
3246 | ||
3247 | #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3248 | static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3249 | PyObject * _resultobj; | |
3250 | int _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_GetPointSize",_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_GetPointSize. Expected _wxNativeFontInfo_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3267 | _result = (int )wxNativeFontInfo_GetPointSize(_arg0); | |
3268 | ||
3269 | wxPyEndAllowThreads(__tstate); | |
3270 | if (PyErr_Occurred()) return NULL; | |
3271 | } _resultobj = Py_BuildValue("i",_result); | |
3272 | return _resultobj; | |
3273 | } | |
3274 | ||
3275 | #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3276 | static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject * _resultobj; | |
3278 | wxFontStyle _result; | |
3279 | wxNativeFontInfo * _arg0; | |
3280 | PyObject * _argo0 = 0; | |
3281 | char *_kwnames[] = { "self", NULL }; | |
3282 | ||
3283 | self = self; | |
3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0)) | |
3285 | return NULL; | |
3286 | if (_argo0) { | |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p."); | |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
3293 | { | |
3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3295 | _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0); | |
3296 | ||
3297 | wxPyEndAllowThreads(__tstate); | |
3298 | if (PyErr_Occurred()) return NULL; | |
3299 | } _resultobj = Py_BuildValue("i",_result); | |
3300 | return _resultobj; | |
3301 | } | |
3302 | ||
3303 | #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3304 | static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject * _resultobj; | |
3306 | wxFontWeight _result; | |
3307 | wxNativeFontInfo * _arg0; | |
3308 | PyObject * _argo0 = 0; | |
3309 | char *_kwnames[] = { "self", NULL }; | |
3310 | ||
3311 | self = self; | |
3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0)) | |
3313 | return NULL; | |
3314 | if (_argo0) { | |
3315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p."); | |
3318 | return NULL; | |
3319 | } | |
3320 | } | |
3321 | { | |
3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3323 | _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0); | |
3324 | ||
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) return NULL; | |
3327 | } _resultobj = Py_BuildValue("i",_result); | |
3328 | return _resultobj; | |
3329 | } | |
3330 | ||
3331 | #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3332 | static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3333 | PyObject * _resultobj; | |
3334 | bool _result; | |
3335 | wxNativeFontInfo * _arg0; | |
3336 | PyObject * _argo0 = 0; | |
3337 | char *_kwnames[] = { "self", NULL }; | |
3338 | ||
3339 | self = self; | |
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0)) | |
3341 | return NULL; | |
3342 | if (_argo0) { | |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p."); | |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) return NULL; | |
3355 | } _resultobj = Py_BuildValue("i",_result); | |
3356 | return _resultobj; | |
3357 | } | |
3358 | ||
3359 | #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3360 | static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject * _resultobj; | |
3362 | wxString * _result; | |
3363 | wxNativeFontInfo * _arg0; | |
3364 | PyObject * _argo0 = 0; | |
3365 | char *_kwnames[] = { "self", NULL }; | |
3366 | ||
3367 | self = self; | |
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0)) | |
3369 | return NULL; | |
3370 | if (_argo0) { | |
3371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p."); | |
3374 | return NULL; | |
3375 | } | |
3376 | } | |
3377 | { | |
3378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3379 | _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0)); | |
3380 | ||
3381 | wxPyEndAllowThreads(__tstate); | |
3382 | if (PyErr_Occurred()) return NULL; | |
3383 | }{ | |
3384 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3385 | } | |
3386 | { | |
3387 | delete _result; | |
3388 | } | |
3389 | return _resultobj; | |
3390 | } | |
3391 | ||
3392 | #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3393 | static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3394 | PyObject * _resultobj; | |
3395 | wxFontFamily _result; | |
3396 | wxNativeFontInfo * _arg0; | |
3397 | PyObject * _argo0 = 0; | |
3398 | char *_kwnames[] = { "self", NULL }; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0)) | |
3402 | return NULL; | |
3403 | if (_argo0) { | |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | { | |
3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3412 | _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0); | |
3413 | ||
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) return NULL; | |
3416 | } _resultobj = Py_BuildValue("i",_result); | |
3417 | return _resultobj; | |
3418 | } | |
3419 | ||
3420 | #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3421 | static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3422 | PyObject * _resultobj; | |
3423 | wxFontEncoding _result; | |
3424 | wxNativeFontInfo * _arg0; | |
3425 | PyObject * _argo0 = 0; | |
3426 | char *_kwnames[] = { "self", NULL }; | |
3427 | ||
3428 | self = self; | |
3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0)) | |
3430 | return NULL; | |
3431 | if (_argo0) { | |
3432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p."); | |
3435 | return NULL; | |
3436 | } | |
3437 | } | |
3438 | { | |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0); | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) return NULL; | |
3444 | } _resultobj = Py_BuildValue("i",_result); | |
3445 | return _resultobj; | |
3446 | } | |
3447 | ||
3448 | #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
3449 | static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3450 | PyObject * _resultobj; | |
3451 | wxNativeFontInfo * _arg0; | |
3452 | int _arg1; | |
3453 | PyObject * _argo0 = 0; | |
3454 | char *_kwnames[] = { "self","pointsize", NULL }; | |
3455 | ||
3456 | self = self; | |
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
3458 | return NULL; | |
3459 | if (_argo0) { | |
3460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p."); | |
3463 | return NULL; | |
3464 | } | |
3465 | } | |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | wxNativeFontInfo_SetPointSize(_arg0,_arg1); | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) return NULL; | |
3472 | } Py_INCREF(Py_None); | |
3473 | _resultobj = Py_None; | |
3474 | return _resultobj; | |
3475 | } | |
3476 | ||
3477 | #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3478 | static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3479 | PyObject * _resultobj; | |
3480 | wxNativeFontInfo * _arg0; | |
3481 | wxFontStyle _arg1; | |
3482 | PyObject * _argo0 = 0; | |
3483 | char *_kwnames[] = { "self","style", NULL }; | |
3484 | ||
3485 | self = self; | |
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3487 | return NULL; | |
3488 | if (_argo0) { | |
3489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p."); | |
3492 | return NULL; | |
3493 | } | |
3494 | } | |
3495 | { | |
3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3497 | wxNativeFontInfo_SetStyle(_arg0,_arg1); | |
3498 | ||
3499 | wxPyEndAllowThreads(__tstate); | |
3500 | if (PyErr_Occurred()) return NULL; | |
3501 | } Py_INCREF(Py_None); | |
3502 | _resultobj = Py_None; | |
3503 | return _resultobj; | |
3504 | } | |
3505 | ||
3506 | #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3507 | static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3508 | PyObject * _resultobj; | |
3509 | wxNativeFontInfo * _arg0; | |
3510 | wxFontWeight _arg1; | |
3511 | PyObject * _argo0 = 0; | |
3512 | char *_kwnames[] = { "self","weight", NULL }; | |
3513 | ||
3514 | self = self; | |
3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3516 | return NULL; | |
3517 | if (_argo0) { | |
3518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p."); | |
3521 | return NULL; | |
3522 | } | |
3523 | } | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | wxNativeFontInfo_SetWeight(_arg0,_arg1); | |
3527 | ||
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) return NULL; | |
3530 | } Py_INCREF(Py_None); | |
3531 | _resultobj = Py_None; | |
3532 | return _resultobj; | |
3533 | } | |
3534 | ||
3535 | #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
3536 | static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3537 | PyObject * _resultobj; | |
3538 | wxNativeFontInfo * _arg0; | |
3539 | bool _arg1; | |
3540 | PyObject * _argo0 = 0; | |
3541 | int tempbool1; | |
3542 | char *_kwnames[] = { "self","underlined", NULL }; | |
3543 | ||
3544 | self = self; | |
3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
3546 | return NULL; | |
3547 | if (_argo0) { | |
3548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p."); | |
3551 | return NULL; | |
3552 | } | |
3553 | } | |
3554 | _arg1 = (bool ) tempbool1; | |
3555 | { | |
3556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3557 | wxNativeFontInfo_SetUnderlined(_arg0,_arg1); | |
3558 | ||
3559 | wxPyEndAllowThreads(__tstate); | |
3560 | if (PyErr_Occurred()) return NULL; | |
3561 | } Py_INCREF(Py_None); | |
3562 | _resultobj = Py_None; | |
3563 | return _resultobj; | |
3564 | } | |
3565 | ||
3566 | #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
3567 | static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3568 | PyObject * _resultobj; | |
3569 | wxNativeFontInfo * _arg0; | |
3570 | wxString * _arg1; | |
3571 | PyObject * _argo0 = 0; | |
3572 | PyObject * _obj1 = 0; | |
3573 | char *_kwnames[] = { "self","facename", NULL }; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
3577 | return NULL; | |
3578 | if (_argo0) { | |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | { | |
3586 | #if PYTHON_API_VERSION >= 1009 | |
3587 | char* tmpPtr; int tmpSize; | |
3588 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3589 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3590 | return NULL; | |
3591 | } | |
3592 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3593 | return NULL; | |
3594 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3595 | #else | |
3596 | if (!PyString_Check(_obj1)) { | |
3597 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3598 | return NULL; | |
3599 | } | |
3600 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3601 | #endif | |
3602 | } | |
3603 | { | |
3604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3605 | wxNativeFontInfo_SetFaceName(_arg0,*_arg1); | |
3606 | ||
3607 | wxPyEndAllowThreads(__tstate); | |
3608 | if (PyErr_Occurred()) return NULL; | |
3609 | } Py_INCREF(Py_None); | |
3610 | _resultobj = Py_None; | |
3611 | { | |
3612 | if (_obj1) | |
3613 | delete _arg1; | |
3614 | } | |
3615 | return _resultobj; | |
3616 | } | |
3617 | ||
3618 | #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
3619 | static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3620 | PyObject * _resultobj; | |
3621 | wxNativeFontInfo * _arg0; | |
3622 | wxFontFamily _arg1; | |
3623 | PyObject * _argo0 = 0; | |
3624 | char *_kwnames[] = { "self","family", NULL }; | |
3625 | ||
3626 | self = self; | |
3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1)) | |
3628 | return NULL; | |
3629 | if (_argo0) { | |
3630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p."); | |
3633 | return NULL; | |
3634 | } | |
3635 | } | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | wxNativeFontInfo_SetFamily(_arg0,_arg1); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) return NULL; | |
3642 | } Py_INCREF(Py_None); | |
3643 | _resultobj = Py_None; | |
3644 | return _resultobj; | |
3645 | } | |
3646 | ||
3647 | #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3648 | static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject * _resultobj; | |
3650 | wxNativeFontInfo * _arg0; | |
3651 | wxFontEncoding _arg1; | |
3652 | PyObject * _argo0 = 0; | |
3653 | char *_kwnames[] = { "self","encoding", NULL }; | |
3654 | ||
3655 | self = self; | |
3656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3657 | return NULL; | |
3658 | if (_argo0) { | |
3659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p."); | |
3662 | return NULL; | |
3663 | } | |
3664 | } | |
3665 | { | |
3666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3667 | wxNativeFontInfo_SetEncoding(_arg0,_arg1); | |
3668 | ||
3669 | wxPyEndAllowThreads(__tstate); | |
3670 | if (PyErr_Occurred()) return NULL; | |
3671 | } Py_INCREF(Py_None); | |
3672 | _resultobj = Py_None; | |
3673 | return _resultobj; | |
3674 | } | |
3675 | ||
6d8b4f8d RD |
3676 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
3677 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3678 | PyObject * _resultobj; | |
3679 | bool _result; | |
3680 | wxNativeFontInfo * _arg0; | |
3681 | wxString * _arg1; | |
3682 | PyObject * _argo0 = 0; | |
3683 | PyObject * _obj1 = 0; | |
3684 | char *_kwnames[] = { "self","s", NULL }; | |
3685 | ||
3686 | self = self; | |
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
3688 | return NULL; | |
3689 | if (_argo0) { | |
3690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3693 | return NULL; | |
3694 | } | |
3695 | } | |
3696 | { | |
3697 | #if PYTHON_API_VERSION >= 1009 | |
3698 | char* tmpPtr; int tmpSize; | |
3699 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3700 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3701 | return NULL; | |
3702 | } | |
3703 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3704 | return NULL; | |
3705 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3706 | #else | |
3707 | if (!PyString_Check(_obj1)) { | |
3708 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3709 | return NULL; | |
3710 | } | |
3711 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3712 | #endif | |
9416aa89 | 3713 | } |
6d8b4f8d | 3714 | { |
4268f798 | 3715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3716 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
9416aa89 | 3717 | |
4268f798 | 3718 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3719 | if (PyErr_Occurred()) return NULL; |
3720 | } _resultobj = Py_BuildValue("i",_result); | |
3721 | { | |
3722 | if (_obj1) | |
3723 | delete _arg1; | |
3724 | } | |
3725 | return _resultobj; | |
9416aa89 RD |
3726 | } |
3727 | ||
6d8b4f8d RD |
3728 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
3729 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3730 | PyObject * _resultobj; |
6d8b4f8d RD |
3731 | wxString * _result; |
3732 | wxNativeFontInfo * _arg0; | |
3733 | PyObject * _argo0 = 0; | |
3734 | char *_kwnames[] = { "self", NULL }; | |
3735 | ||
3736 | self = self; | |
3737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3738 | return NULL; | |
3739 | if (_argo0) { | |
3740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3743 | return NULL; | |
3744 | } | |
3745 | } | |
3746 | { | |
4268f798 | 3747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
3748 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
3749 | ||
4268f798 | 3750 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3751 | if (PyErr_Occurred()) return NULL; |
3752 | }{ | |
3753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3754 | } | |
3755 | { | |
3756 | delete _result; | |
3757 | } | |
3758 | return _resultobj; | |
3759 | } | |
3760 | ||
3761 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3762 | return self->ToString(); | |
3763 | } | |
3764 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject * _resultobj; | |
3766 | wxString * _result; | |
3767 | wxNativeFontInfo * _arg0; | |
3768 | PyObject * _argo0 = 0; | |
3769 | char *_kwnames[] = { "self", NULL }; | |
3770 | ||
3771 | self = self; | |
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3773 | return NULL; | |
3774 | if (_argo0) { | |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3778 | return NULL; | |
3779 | } | |
3780 | } | |
3781 | { | |
4268f798 | 3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
3783 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
3784 | ||
4268f798 | 3785 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3786 | if (PyErr_Occurred()) return NULL; |
3787 | }{ | |
3788 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3789 | } | |
3790 | { | |
3791 | delete _result; | |
3792 | } | |
3793 | return _resultobj; | |
3794 | } | |
3795 | ||
b5a5d647 RD |
3796 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
3797 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3798 | PyObject * _resultobj; | |
3799 | bool _result; | |
3800 | wxNativeFontInfo * _arg0; | |
3801 | wxString * _arg1; | |
3802 | PyObject * _argo0 = 0; | |
3803 | PyObject * _obj1 = 0; | |
3804 | char *_kwnames[] = { "self","s", NULL }; | |
3805 | ||
3806 | self = self; | |
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
3808 | return NULL; | |
3809 | if (_argo0) { | |
3810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
3813 | return NULL; | |
3814 | } | |
3815 | } | |
3816 | { | |
3817 | #if PYTHON_API_VERSION >= 1009 | |
3818 | char* tmpPtr; int tmpSize; | |
3819 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3820 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3821 | return NULL; | |
3822 | } | |
3823 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3824 | return NULL; | |
3825 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3826 | #else | |
3827 | if (!PyString_Check(_obj1)) { | |
3828 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3829 | return NULL; | |
3830 | } | |
3831 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3832 | #endif | |
3833 | } | |
3834 | { | |
3835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3836 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); | |
3837 | ||
3838 | wxPyEndAllowThreads(__tstate); | |
3839 | if (PyErr_Occurred()) return NULL; | |
3840 | } _resultobj = Py_BuildValue("i",_result); | |
3841 | { | |
3842 | if (_obj1) | |
3843 | delete _arg1; | |
3844 | } | |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
3848 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
3849 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3850 | PyObject * _resultobj; | |
3851 | wxString * _result; | |
3852 | wxNativeFontInfo * _arg0; | |
3853 | PyObject * _argo0 = 0; | |
3854 | char *_kwnames[] = { "self", NULL }; | |
3855 | ||
3856 | self = self; | |
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
3858 | return NULL; | |
3859 | if (_argo0) { | |
3860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
3863 | return NULL; | |
3864 | } | |
3865 | } | |
3866 | { | |
3867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3868 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); | |
3869 | ||
3870 | wxPyEndAllowThreads(__tstate); | |
3871 | if (PyErr_Occurred()) return NULL; | |
3872 | }{ | |
3873 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3874 | } | |
3875 | { | |
3876 | delete _result; | |
3877 | } | |
3878 | return _resultobj; | |
3879 | } | |
3880 | ||
6d8b4f8d RD |
3881 | #define new_wxFontMapper() (new wxFontMapper()) |
3882 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3883 | PyObject * _resultobj; | |
3884 | wxFontMapper * _result; | |
3885 | char *_kwnames[] = { NULL }; | |
8ab979d7 RD |
3886 | char _ptemp[128]; |
3887 | ||
3888 | self = self; | |
6d8b4f8d | 3889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) |
8ab979d7 | 3890 | return NULL; |
cf694132 | 3891 | { |
4268f798 | 3892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3893 | _result = (wxFontMapper *)new_wxFontMapper(); |
cf694132 | 3894 | |
4268f798 | 3895 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3896 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3897 | } if (_result) { |
6d8b4f8d | 3898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); |
1d99702e RD |
3899 | _resultobj = Py_BuildValue("s",_ptemp); |
3900 | } else { | |
3901 | Py_INCREF(Py_None); | |
3902 | _resultobj = Py_None; | |
3903 | } | |
8ab979d7 RD |
3904 | return _resultobj; |
3905 | } | |
3906 | ||
6d8b4f8d RD |
3907 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) |
3908 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0569df0f | 3909 | PyObject * _resultobj; |
6d8b4f8d | 3910 | wxFontMapper * _arg0; |
0569df0f RD |
3911 | PyObject * _argo0 = 0; |
3912 | char *_kwnames[] = { "self", NULL }; | |
3913 | ||
3914 | self = self; | |
6d8b4f8d | 3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
0569df0f RD |
3916 | return NULL; |
3917 | if (_argo0) { | |
3918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
0569df0f RD |
3921 | return NULL; |
3922 | } | |
3923 | } | |
3924 | { | |
4268f798 | 3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3926 | delete_wxFontMapper(_arg0); |
0569df0f | 3927 | |
4268f798 | 3928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3929 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3930 | } Py_INCREF(Py_None); |
3931 | _resultobj = Py_None; | |
3932 | return _resultobj; | |
3933 | } | |
3934 | ||
6d8b4f8d RD |
3935 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3936 | wxFontEncoding alt_enc; | |
3937 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3938 | return PyInt_FromLong(alt_enc); | |
3939 | else { | |
3940 | Py_INCREF(Py_None); | |
3941 | return Py_None; | |
3942 | } | |
3943 | } | |
3944 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
694759cf | 3945 | PyObject * _resultobj; |
6d8b4f8d RD |
3946 | PyObject * _result; |
3947 | wxFontMapper * _arg0; | |
3948 | wxFontEncoding _arg1; | |
3949 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3950 | bool _arg3 = (bool ) TRUE; | |
694759cf | 3951 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3952 | PyObject * _obj2 = 0; |
3953 | int tempbool3 = (int) TRUE; | |
3954 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
694759cf RD |
3955 | |
3956 | self = self; | |
6d8b4f8d | 3957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
694759cf RD |
3958 | return NULL; |
3959 | if (_argo0) { | |
3960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
694759cf RD |
3963 | return NULL; |
3964 | } | |
3965 | } | |
6d8b4f8d RD |
3966 | if (_obj2) |
3967 | { | |
3968 | #if PYTHON_API_VERSION >= 1009 | |
3969 | char* tmpPtr; int tmpSize; | |
3970 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3971 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3972 | return NULL; | |
3973 | } | |
3974 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3975 | return NULL; | |
3976 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3977 | #else | |
3978 | if (!PyString_Check(_obj2)) { | |
3979 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3980 | return NULL; | |
3981 | } | |
3982 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3983 | #endif | |
3984 | } | |
3985 | _arg3 = (bool ) tempbool3; | |
694759cf | 3986 | { |
4268f798 | 3987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 3988 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
694759cf | 3989 | |
4268f798 | 3990 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3991 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
3992 | }{ |
3993 | _resultobj = _result; | |
3994 | } | |
3995 | { | |
3996 | if (_obj2) | |
3997 | delete _arg2; | |
3998 | } | |
694759cf RD |
3999 | return _resultobj; |
4000 | } | |
4001 | ||
6d8b4f8d RD |
4002 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
4003 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4004 | PyObject * _resultobj; |
6d8b4f8d RD |
4005 | bool _result; |
4006 | wxFontMapper * _arg0; | |
4007 | wxFontEncoding _arg1; | |
4008 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1d99702e | 4009 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4010 | PyObject * _obj2 = 0; |
4011 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
8ab979d7 RD |
4012 | |
4013 | self = self; | |
6d8b4f8d | 4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4015 | return NULL; |
1d99702e RD |
4016 | if (_argo0) { |
4017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
4018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
8ab979d7 RD |
4020 | return NULL; |
4021 | } | |
4022 | } | |
6d8b4f8d RD |
4023 | if (_obj2) |
4024 | { | |
4025 | #if PYTHON_API_VERSION >= 1009 | |
4026 | char* tmpPtr; int tmpSize; | |
4027 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4028 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4029 | return NULL; | |
4030 | } | |
4031 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4032 | return NULL; | |
4033 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4034 | #else | |
4035 | if (!PyString_Check(_obj2)) { | |
4036 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4037 | return NULL; | |
4038 | } | |
4039 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4040 | #endif | |
4041 | } | |
8ab979d7 | 4042 | { |
4268f798 | 4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4044 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
cf694132 | 4045 | |
4268f798 | 4046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4047 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 4048 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 4049 | { |
6d8b4f8d RD |
4050 | if (_obj2) |
4051 | delete _arg2; | |
8ab979d7 RD |
4052 | } |
4053 | return _resultobj; | |
4054 | } | |
4055 | ||
6d8b4f8d RD |
4056 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
4057 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4058 | PyObject * _resultobj; |
6d8b4f8d RD |
4059 | wxFontEncoding _result; |
4060 | wxFontMapper * _arg0; | |
4061 | wxString * _arg1; | |
4062 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4063 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4064 | PyObject * _obj1 = 0; |
4065 | int tempbool2 = (int) TRUE; | |
4066 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
8ab979d7 RD |
4067 | |
4068 | self = self; | |
6d8b4f8d | 4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 4070 | return NULL; |
1d99702e RD |
4071 | if (_argo0) { |
4072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
4073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
4074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
4075 | return NULL; | |
4076 | } | |
4077 | } | |
4078 | { | |
4079 | #if PYTHON_API_VERSION >= 1009 | |
4080 | char* tmpPtr; int tmpSize; | |
4081 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4082 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4083 | return NULL; | |
4084 | } | |
4085 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4086 | return NULL; | |
4087 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4088 | #else | |
4089 | if (!PyString_Check(_obj1)) { | |
4090 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4091 | return NULL; | |
4092 | } | |
4093 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4094 | #endif | |
4095 | } | |
4096 | _arg2 = (bool ) tempbool2; | |
4097 | { | |
4268f798 | 4098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4099 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
4100 | ||
4268f798 | 4101 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4102 | if (PyErr_Occurred()) return NULL; |
4103 | } _resultobj = Py_BuildValue("i",_result); | |
4104 | { | |
4105 | if (_obj1) | |
4106 | delete _arg1; | |
4107 | } | |
4108 | return _resultobj; | |
4109 | } | |
4110 | ||
4111 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4112 | PyObject * _resultobj; | |
4113 | wxString * _result; | |
4114 | wxFontEncoding _arg0; | |
4115 | char *_kwnames[] = { "encoding", NULL }; | |
4116 | ||
4117 | self = self; | |
4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
4119 | return NULL; | |
4120 | { | |
4268f798 | 4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4122 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
4123 | ||
4268f798 | 4124 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4125 | if (PyErr_Occurred()) return NULL; |
4126 | }{ | |
4127 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4128 | } | |
4129 | { | |
4130 | delete _result; | |
4131 | } | |
4132 | return _resultobj; | |
4133 | } | |
4134 | ||
4135 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject * _resultobj; | |
4137 | wxString * _result; | |
4138 | wxFontEncoding _arg0; | |
4139 | char *_kwnames[] = { "encoding", NULL }; | |
4140 | ||
4141 | self = self; | |
4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
4143 | return NULL; | |
4144 | { | |
4268f798 | 4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4146 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
4147 | ||
4268f798 | 4148 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4149 | if (PyErr_Occurred()) return NULL; |
4150 | }{ | |
4151 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4152 | } | |
4153 | { | |
4154 | delete _result; | |
4155 | } | |
4156 | return _resultobj; | |
4157 | } | |
4158 | ||
4159 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
4160 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4161 | PyObject * _resultobj; | |
4162 | wxFontMapper * _arg0; | |
4163 | wxWindow * _arg1; | |
4164 | PyObject * _argo0 = 0; | |
4165 | PyObject * _argo1 = 0; | |
4166 | char *_kwnames[] = { "self","parent", NULL }; | |
4167 | ||
4168 | self = self; | |
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
4170 | return NULL; | |
4171 | if (_argo0) { | |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
4175 | return NULL; | |
4176 | } | |
4177 | } | |
4178 | if (_argo1) { | |
4179 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4180 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
4182 | return NULL; | |
4183 | } | |
4184 | } | |
4185 | { | |
4268f798 | 4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4187 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
4188 | ||
4268f798 | 4189 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4190 | if (PyErr_Occurred()) return NULL; |
4191 | } Py_INCREF(Py_None); | |
4192 | _resultobj = Py_None; | |
4193 | return _resultobj; | |
4194 | } | |
4195 | ||
4196 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
4197 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4198 | PyObject * _resultobj; | |
4199 | wxFontMapper * _arg0; | |
4200 | wxString * _arg1; | |
4201 | PyObject * _argo0 = 0; | |
4202 | PyObject * _obj1 = 0; | |
4203 | char *_kwnames[] = { "self","title", NULL }; | |
4204 | ||
4205 | self = self; | |
4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
4207 | return NULL; | |
4208 | if (_argo0) { | |
4209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
4212 | return NULL; | |
4213 | } | |
4214 | } | |
4215 | { | |
4216 | #if PYTHON_API_VERSION >= 1009 | |
4217 | char* tmpPtr; int tmpSize; | |
4218 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4219 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4220 | return NULL; | |
4221 | } | |
4222 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4223 | return NULL; | |
4224 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4225 | #else | |
4226 | if (!PyString_Check(_obj1)) { | |
4227 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4228 | return NULL; | |
4229 | } | |
4230 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4231 | #endif | |
4232 | } | |
4233 | { | |
4268f798 | 4234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4235 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
4236 | ||
4268f798 | 4237 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4238 | if (PyErr_Occurred()) return NULL; |
4239 | } Py_INCREF(Py_None); | |
4240 | _resultobj = Py_None; | |
4241 | { | |
4242 | if (_obj1) | |
4243 | delete _arg1; | |
4244 | } | |
4245 | return _resultobj; | |
4246 | } | |
4247 | ||
4248 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
4249 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject * _resultobj; | |
4251 | wxFontMapper * _arg0; | |
4252 | wxConfigBase * _arg1; | |
4253 | PyObject * _argo0 = 0; | |
4254 | PyObject * _argo1 = 0; | |
4255 | char *_kwnames[] = { "self","config", NULL }; | |
4256 | ||
4257 | self = self; | |
4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
4259 | return NULL; | |
4260 | if (_argo0) { | |
4261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
4264 | return NULL; | |
4265 | } | |
4266 | } | |
4267 | if (_argo1) { | |
4268 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4269 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
4270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
4271 | return NULL; | |
4272 | } | |
4273 | } | |
4274 | { | |
4268f798 | 4275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4276 | wxFontMapper_SetConfig(_arg0,_arg1); |
4277 | ||
4268f798 | 4278 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4279 | if (PyErr_Occurred()) return NULL; |
4280 | } Py_INCREF(Py_None); | |
4281 | _resultobj = Py_None; | |
4282 | return _resultobj; | |
4283 | } | |
4284 | ||
4285 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
4286 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4287 | PyObject * _resultobj; | |
4288 | wxFontMapper * _arg0; | |
4289 | wxString * _arg1; | |
4290 | PyObject * _argo0 = 0; | |
4291 | PyObject * _obj1 = 0; | |
4292 | char *_kwnames[] = { "self","prefix", NULL }; | |
4293 | ||
4294 | self = self; | |
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
4296 | return NULL; | |
4297 | if (_argo0) { | |
4298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
4301 | return NULL; | |
4302 | } | |
4303 | } | |
4304 | { | |
4305 | #if PYTHON_API_VERSION >= 1009 | |
4306 | char* tmpPtr; int tmpSize; | |
4307 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4308 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4309 | return NULL; | |
4310 | } | |
4311 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4312 | return NULL; | |
4313 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4314 | #else | |
4315 | if (!PyString_Check(_obj1)) { | |
4316 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4317 | return NULL; | |
4318 | } | |
4319 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4320 | #endif | |
4321 | } | |
4322 | { | |
4268f798 | 4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4324 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
4325 | ||
4268f798 | 4326 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4327 | if (PyErr_Occurred()) return NULL; |
4328 | } Py_INCREF(Py_None); | |
4329 | _resultobj = Py_None; | |
4330 | { | |
4331 | if (_obj1) | |
4332 | delete _arg1; | |
4333 | } | |
4334 | return _resultobj; | |
4335 | } | |
4336 | ||
4337 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4338 | PyObject * _resultobj; | |
4339 | wxChar * _result; | |
4340 | char *_kwnames[] = { NULL }; | |
4341 | ||
4342 | self = self; | |
4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
4344 | return NULL; | |
4345 | { | |
4268f798 | 4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4347 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
4348 | ||
4268f798 | 4349 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4350 | if (PyErr_Occurred()) return NULL; |
4351 | } _resultobj = Py_BuildValue("s", _result); | |
4352 | return _resultobj; | |
4353 | } | |
4354 | ||
4355 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
4356 | wxFont *src; | |
4357 | wxGDIObject *dest; | |
4358 | src = (wxFont *) ptr; | |
4359 | dest = (wxGDIObject *) src; | |
4360 | return (void *) dest; | |
4361 | } | |
4362 | ||
4363 | static void *SwigwxFontTowxObject(void *ptr) { | |
4364 | wxFont *src; | |
4365 | wxObject *dest; | |
4366 | src = (wxFont *) ptr; | |
4367 | dest = (wxObject *) src; | |
4368 | return (void *) dest; | |
4369 | } | |
4370 | ||
4371 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4372 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4373 | PyObject * _resultobj; | |
4374 | wxFont * _result; | |
4375 | int _arg0; | |
4376 | int _arg1; | |
4377 | int _arg2; | |
4378 | int _arg3; | |
4379 | int _arg4 = (int ) FALSE; | |
4380 | char * _arg5 = (char *) ""; | |
4381 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4382 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
4383 | char _ptemp[128]; | |
4384 | ||
4385 | self = self; | |
4386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4387 | return NULL; | |
4388 | { | |
4268f798 | 4389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4390 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
4391 | ||
4268f798 | 4392 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4393 | if (PyErr_Occurred()) return NULL; |
4394 | } if (_result) { | |
4395 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4396 | _resultobj = Py_BuildValue("s",_ptemp); | |
4397 | } else { | |
4398 | Py_INCREF(Py_None); | |
4399 | _resultobj = Py_None; | |
4400 | } | |
4401 | return _resultobj; | |
4402 | } | |
4403 | ||
4404 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
4405 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4406 | PyObject * _resultobj; | |
4407 | wxFont * _result; | |
4408 | wxNativeFontInfo * _arg0; | |
4409 | PyObject * _argo0 = 0; | |
4410 | char *_kwnames[] = { "info", NULL }; | |
4411 | char _ptemp[128]; | |
4412 | ||
4413 | self = self; | |
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
4415 | return NULL; | |
4416 | if (_argo0) { | |
4417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
4419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
4420 | return NULL; | |
4421 | } | |
4422 | } | |
4423 | { | |
4268f798 | 4424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4425 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
4426 | ||
4268f798 | 4427 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4428 | if (PyErr_Occurred()) return NULL; |
4429 | } if (_result) { | |
4430 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4431 | _resultobj = Py_BuildValue("s",_ptemp); | |
4432 | } else { | |
4433 | Py_INCREF(Py_None); | |
4434 | _resultobj = Py_None; | |
4435 | } | |
4436 | return _resultobj; | |
4437 | } | |
4438 | ||
4439 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
4440 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4441 | PyObject * _resultobj; | |
4442 | wxFont * _arg0; | |
4443 | PyObject * _argo0 = 0; | |
4444 | char *_kwnames[] = { "self", NULL }; | |
4445 | ||
4446 | self = self; | |
4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
4448 | return NULL; | |
4449 | if (_argo0) { | |
4450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
4456 | { | |
4268f798 | 4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4458 | delete_wxFont(_arg0); |
4459 | ||
4268f798 | 4460 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4461 | if (PyErr_Occurred()) return NULL; |
4462 | } Py_INCREF(Py_None); | |
4463 | _resultobj = Py_None; | |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
4467 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
4468 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject * _resultobj; | |
4470 | bool _result; | |
4471 | wxFont * _arg0; | |
4472 | PyObject * _argo0 = 0; | |
4473 | char *_kwnames[] = { "self", NULL }; | |
4474 | ||
4475 | self = self; | |
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
4477 | return NULL; | |
4478 | if (_argo0) { | |
4479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
4482 | return NULL; | |
4483 | } | |
4484 | } | |
4485 | { | |
4268f798 | 4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4487 | _result = (bool )wxFont_Ok(_arg0); |
4488 | ||
4268f798 | 4489 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4490 | if (PyErr_Occurred()) return NULL; |
4491 | } _resultobj = Py_BuildValue("i",_result); | |
4492 | return _resultobj; | |
4493 | } | |
4494 | ||
4495 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
4496 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4497 | PyObject * _resultobj; | |
4498 | int _result; | |
4499 | wxFont * _arg0; | |
4500 | PyObject * _argo0 = 0; | |
4501 | char *_kwnames[] = { "self", NULL }; | |
4502 | ||
4503 | self = self; | |
4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
4505 | return NULL; | |
4506 | if (_argo0) { | |
4507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
8ab979d7 RD |
4510 | return NULL; |
4511 | } | |
4512 | } | |
cf694132 | 4513 | { |
4268f798 | 4514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4515 | _result = (int )wxFont_GetPointSize(_arg0); |
cf694132 | 4516 | |
4268f798 | 4517 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4518 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4519 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4520 | return _resultobj; |
4521 | } | |
4522 | ||
6d8b4f8d RD |
4523 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) |
4524 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4525 | PyObject * _resultobj; |
4526 | int _result; | |
4527 | wxFont * _arg0; | |
1d99702e | 4528 | PyObject * _argo0 = 0; |
1afc06c2 | 4529 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4530 | |
4531 | self = self; | |
6d8b4f8d | 4532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 4533 | return NULL; |
1d99702e RD |
4534 | if (_argo0) { |
4535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
8ab979d7 RD |
4538 | return NULL; |
4539 | } | |
4540 | } | |
cf694132 | 4541 | { |
4268f798 | 4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4543 | _result = (int )wxFont_GetFamily(_arg0); |
cf694132 | 4544 | |
4268f798 | 4545 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4546 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4547 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4548 | return _resultobj; |
4549 | } | |
4550 | ||
6d8b4f8d RD |
4551 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) |
4552 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4553 | PyObject * _resultobj; |
4554 | int _result; | |
4555 | wxFont * _arg0; | |
1d99702e | 4556 | PyObject * _argo0 = 0; |
1afc06c2 | 4557 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4558 | |
4559 | self = self; | |
6d8b4f8d | 4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4561 | return NULL; |
1d99702e RD |
4562 | if (_argo0) { |
4563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4566 | return NULL; |
4567 | } | |
4568 | } | |
cf694132 | 4569 | { |
4268f798 | 4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4571 | _result = (int )wxFont_GetStyle(_arg0); |
cf694132 | 4572 | |
4268f798 | 4573 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4574 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4575 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4576 | return _resultobj; |
4577 | } | |
4578 | ||
6d8b4f8d RD |
4579 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) |
4580 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4581 | PyObject * _resultobj; |
4582 | int _result; | |
4583 | wxFont * _arg0; | |
1d99702e | 4584 | PyObject * _argo0 = 0; |
1afc06c2 | 4585 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4586 | |
4587 | self = self; | |
6d8b4f8d | 4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 4589 | return NULL; |
1d99702e RD |
4590 | if (_argo0) { |
4591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4594 | return NULL; |
4595 | } | |
4596 | } | |
cf694132 | 4597 | { |
4268f798 | 4598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4599 | _result = (int )wxFont_GetWeight(_arg0); |
cf694132 | 4600 | |
4268f798 | 4601 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4602 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4603 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4604 | return _resultobj; |
4605 | } | |
4606 | ||
4607 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 4608 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4609 | PyObject * _resultobj; |
4610 | bool _result; | |
4611 | wxFont * _arg0; | |
1d99702e | 4612 | PyObject * _argo0 = 0; |
1afc06c2 | 4613 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4614 | |
4615 | self = self; | |
1afc06c2 | 4616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 4617 | return NULL; |
1d99702e RD |
4618 | if (_argo0) { |
4619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
4622 | return NULL; | |
4623 | } | |
4624 | } | |
cf694132 | 4625 | { |
4268f798 | 4626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4627 | _result = (bool )wxFont_GetUnderlined(_arg0); |
4628 | ||
4268f798 | 4629 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4630 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4631 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4632 | return _resultobj; |
4633 | } | |
4634 | ||
6d8b4f8d RD |
4635 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
4636 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4637 | PyObject * _resultobj; |
6d8b4f8d | 4638 | wxString * _result; |
8ab979d7 | 4639 | wxFont * _arg0; |
1d99702e | 4640 | PyObject * _argo0 = 0; |
1afc06c2 | 4641 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4642 | |
4643 | self = self; | |
6d8b4f8d | 4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 4645 | return NULL; |
1d99702e RD |
4646 | if (_argo0) { |
4647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
8ab979d7 RD |
4650 | return NULL; |
4651 | } | |
4652 | } | |
cf694132 | 4653 | { |
4268f798 | 4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4655 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
cf694132 | 4656 | |
4268f798 | 4657 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4658 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
4659 | }{ |
4660 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4661 | } | |
4662 | { | |
4663 | delete _result; | |
4664 | } | |
8ab979d7 RD |
4665 | return _resultobj; |
4666 | } | |
4667 | ||
f0261a72 RD |
4668 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
4669 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4670 | PyObject * _resultobj; | |
4671 | wxFontEncoding _result; | |
4672 | wxFont * _arg0; | |
4673 | PyObject * _argo0 = 0; | |
4674 | char *_kwnames[] = { "self", NULL }; | |
4675 | ||
4676 | self = self; | |
4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
4678 | return NULL; | |
4679 | if (_argo0) { | |
4680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
4683 | return NULL; | |
4684 | } | |
4685 | } | |
4686 | { | |
4268f798 | 4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
4688 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
4689 | ||
4268f798 | 4690 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4691 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4692 | } _resultobj = Py_BuildValue("i",_result); |
4693 | return _resultobj; | |
4694 | } | |
4695 | ||
68320e40 RD |
4696 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
4697 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4698 | PyObject * _resultobj; | |
4699 | bool _result; | |
4700 | wxFont * _arg0; | |
4701 | PyObject * _argo0 = 0; | |
4702 | char *_kwnames[] = { "self", NULL }; | |
4703 | ||
4704 | self = self; | |
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
4706 | return NULL; | |
4707 | if (_argo0) { | |
4708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
4711 | return NULL; | |
4712 | } | |
4713 | } | |
4714 | { | |
4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4716 | _result = (bool )wxFont_IsFixedWidth(_arg0); | |
4717 | ||
4718 | wxPyEndAllowThreads(__tstate); | |
4719 | if (PyErr_Occurred()) return NULL; | |
4720 | } _resultobj = Py_BuildValue("i",_result); | |
4721 | return _resultobj; | |
4722 | } | |
4723 | ||
6d8b4f8d RD |
4724 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4725 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4726 | PyObject * _resultobj; |
6d8b4f8d | 4727 | wxNativeFontInfo * _result; |
8ab979d7 | 4728 | wxFont * _arg0; |
1d99702e | 4729 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4730 | char *_kwnames[] = { "self", NULL }; |
4731 | char _ptemp[128]; | |
8ab979d7 RD |
4732 | |
4733 | self = self; | |
6d8b4f8d | 4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
8ab979d7 | 4735 | return NULL; |
1d99702e RD |
4736 | if (_argo0) { |
4737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
8ab979d7 RD |
4740 | return NULL; |
4741 | } | |
4742 | } | |
4743 | { | |
4268f798 | 4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4745 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
4746 | ||
4268f798 | 4747 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4748 | if (PyErr_Occurred()) return NULL; |
4749 | } if (_result) { | |
4750 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4751 | _resultobj = Py_BuildValue("s",_ptemp); | |
4752 | } else { | |
4753 | Py_INCREF(Py_None); | |
4754 | _resultobj = Py_None; | |
185d7c3e | 4755 | } |
6d8b4f8d RD |
4756 | return _resultobj; |
4757 | } | |
4758 | ||
b5a5d647 RD |
4759 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
4760 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4761 | PyObject * _resultobj; | |
4762 | wxString * _result; | |
4763 | wxFont * _arg0; | |
4764 | PyObject * _argo0 = 0; | |
4765 | char *_kwnames[] = { "self", NULL }; | |
4766 | ||
4767 | self = self; | |
4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
4769 | return NULL; | |
4770 | if (_argo0) { | |
4771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
4774 | return NULL; | |
4775 | } | |
4776 | } | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) return NULL; | |
4783 | }{ | |
4784 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4785 | } | |
4786 | { | |
4787 | delete _result; | |
4788 | } | |
4789 | return _resultobj; | |
4790 | } | |
4791 | ||
4792 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
4793 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4794 | PyObject * _resultobj; | |
4795 | wxString * _result; | |
4796 | wxFont * _arg0; | |
4797 | PyObject * _argo0 = 0; | |
4798 | char *_kwnames[] = { "self", NULL }; | |
4799 | ||
4800 | self = self; | |
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
4802 | return NULL; | |
4803 | if (_argo0) { | |
4804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4807 | return NULL; | |
4808 | } | |
4809 | } | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) return NULL; | |
4816 | }{ | |
4817 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4818 | } | |
4819 | { | |
4820 | delete _result; | |
4821 | } | |
4822 | return _resultobj; | |
4823 | } | |
4824 | ||
6d8b4f8d RD |
4825 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
4826 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4827 | PyObject * _resultobj; | |
4828 | wxFont * _arg0; | |
4829 | int _arg1; | |
4830 | PyObject * _argo0 = 0; | |
4831 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4832 | ||
4833 | self = self; | |
4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4835 | return NULL; |
6d8b4f8d RD |
4836 | if (_argo0) { |
4837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
8ab979d7 | 4840 | return NULL; |
6d8b4f8d | 4841 | } |
8ab979d7 | 4842 | } |
cf694132 | 4843 | { |
4268f798 | 4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4845 | wxFont_SetPointSize(_arg0,_arg1); |
cf694132 | 4846 | |
4268f798 | 4847 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4848 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4849 | } Py_INCREF(Py_None); |
8ab979d7 | 4850 | _resultobj = Py_None; |
8ab979d7 RD |
4851 | return _resultobj; |
4852 | } | |
4853 | ||
4854 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 4855 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4856 | PyObject * _resultobj; |
4857 | wxFont * _arg0; | |
4858 | int _arg1; | |
1d99702e | 4859 | PyObject * _argo0 = 0; |
1afc06c2 | 4860 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
4861 | |
4862 | self = self; | |
1afc06c2 | 4863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4864 | return NULL; |
1d99702e RD |
4865 | if (_argo0) { |
4866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
4869 | return NULL; | |
4870 | } | |
4871 | } | |
cf694132 | 4872 | { |
4268f798 | 4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4874 | wxFont_SetFamily(_arg0,_arg1); |
4875 | ||
4268f798 | 4876 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4877 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4878 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4879 | _resultobj = Py_None; |
4880 | return _resultobj; | |
4881 | } | |
4882 | ||
6d8b4f8d RD |
4883 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
4884 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4885 | PyObject * _resultobj; |
4886 | wxFont * _arg0; | |
4887 | int _arg1; | |
1d99702e | 4888 | PyObject * _argo0 = 0; |
6d8b4f8d | 4889 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4890 | |
4891 | self = self; | |
6d8b4f8d | 4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4893 | return NULL; |
1d99702e RD |
4894 | if (_argo0) { |
4895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4898 | return NULL; |
4899 | } | |
4900 | } | |
cf694132 | 4901 | { |
4268f798 | 4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4903 | wxFont_SetStyle(_arg0,_arg1); |
cf694132 | 4904 | |
4268f798 | 4905 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4906 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4907 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4908 | _resultobj = Py_None; |
4909 | return _resultobj; | |
4910 | } | |
4911 | ||
6d8b4f8d RD |
4912 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4913 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4914 | PyObject * _resultobj; |
4915 | wxFont * _arg0; | |
4916 | int _arg1; | |
1d99702e | 4917 | PyObject * _argo0 = 0; |
6d8b4f8d | 4918 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
4919 | |
4920 | self = self; | |
6d8b4f8d | 4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4922 | return NULL; |
1d99702e RD |
4923 | if (_argo0) { |
4924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4927 | return NULL; |
4928 | } | |
4929 | } | |
cf694132 | 4930 | { |
4268f798 | 4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
4932 | wxFont_SetWeight(_arg0,_arg1); |
4933 | ||
4268f798 | 4934 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4935 | if (PyErr_Occurred()) return NULL; |
4936 | } Py_INCREF(Py_None); | |
4937 | _resultobj = Py_None; | |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
4941 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4942 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject * _resultobj; | |
4944 | wxFont * _arg0; | |
4945 | wxString * _arg1; | |
4946 | PyObject * _argo0 = 0; | |
4947 | PyObject * _obj1 = 0; | |
4948 | char *_kwnames[] = { "self","faceName", NULL }; | |
4949 | ||
4950 | self = self; | |
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4952 | return NULL; | |
4953 | if (_argo0) { | |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
4960 | { | |
4961 | #if PYTHON_API_VERSION >= 1009 | |
4962 | char* tmpPtr; int tmpSize; | |
4963 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4964 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4965 | return NULL; | |
4966 | } | |
4967 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4968 | return NULL; | |
4969 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4970 | #else | |
4971 | if (!PyString_Check(_obj1)) { | |
4972 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4973 | return NULL; | |
4974 | } | |
4975 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4976 | #endif | |
4977 | } | |
4978 | { | |
4268f798 | 4979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 4980 | wxFont_SetFaceName(_arg0,*_arg1); |
cf694132 | 4981 | |
4268f798 | 4982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4983 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4984 | } Py_INCREF(Py_None); |
8ab979d7 | 4985 | _resultobj = Py_None; |
6d8b4f8d RD |
4986 | { |
4987 | if (_obj1) | |
4988 | delete _arg1; | |
4989 | } | |
8ab979d7 RD |
4990 | return _resultobj; |
4991 | } | |
4992 | ||
4993 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 4994 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4995 | PyObject * _resultobj; |
4996 | wxFont * _arg0; | |
4997 | bool _arg1; | |
1d99702e | 4998 | PyObject * _argo0 = 0; |
8ab979d7 | 4999 | int tempbool1; |
1afc06c2 | 5000 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
5001 | |
5002 | self = self; | |
1afc06c2 | 5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5004 | return NULL; |
1d99702e RD |
5005 | if (_argo0) { |
5006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
5008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
5009 | return NULL; | |
5010 | } | |
5011 | } | |
5012 | _arg1 = (bool ) tempbool1; | |
cf694132 | 5013 | { |
4268f798 | 5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5015 | wxFont_SetUnderlined(_arg0,_arg1); |
5016 | ||
4268f798 | 5017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5019 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5020 | _resultobj = Py_None; |
5021 | return _resultobj; | |
5022 | } | |
5023 | ||
6d8b4f8d RD |
5024 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
5025 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
5026 | PyObject * _resultobj; |
5027 | wxFont * _arg0; | |
6d8b4f8d | 5028 | wxFontEncoding _arg1; |
1d99702e | 5029 | PyObject * _argo0 = 0; |
6d8b4f8d | 5030 | char *_kwnames[] = { "self","encoding", NULL }; |
8ab979d7 RD |
5031 | |
5032 | self = self; | |
6d8b4f8d | 5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5034 | return NULL; |
1d99702e RD |
5035 | if (_argo0) { |
5036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 5038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
8ab979d7 RD |
5039 | return NULL; |
5040 | } | |
5041 | } | |
cf694132 | 5042 | { |
4268f798 | 5043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 5044 | wxFont_SetEncoding(_arg0,_arg1); |
cf694132 | 5045 | |
4268f798 | 5046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5048 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5049 | _resultobj = Py_None; |
5050 | return _resultobj; | |
5051 | } | |
5052 | ||
6d8b4f8d RD |
5053 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
5054 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 RD |
5055 | PyObject * _resultobj; |
5056 | wxFont * _arg0; | |
6d8b4f8d | 5057 | wxNativeFontInfo * _arg1; |
f0261a72 | 5058 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
5059 | PyObject * _argo1 = 0; |
5060 | char *_kwnames[] = { "self","info", NULL }; | |
f0261a72 RD |
5061 | |
5062 | self = self; | |
6d8b4f8d | 5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
f0261a72 RD |
5064 | return NULL; |
5065 | if (_argo0) { | |
5066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d RD |
5068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
5069 | return NULL; | |
5070 | } | |
5071 | } | |
5072 | if (_argo1) { | |
5073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
5075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
f0261a72 RD |
5076 | return NULL; |
5077 | } | |
5078 | } | |
5079 | { | |
4268f798 | 5080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d | 5081 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
f0261a72 | 5082 | |
4268f798 | 5083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5084 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
5085 | } Py_INCREF(Py_None); |
5086 | _resultobj = Py_None; | |
5087 | return _resultobj; | |
5088 | } | |
5089 | ||
b5a5d647 RD |
5090 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
5091 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject * _resultobj; | |
5093 | wxFont * _arg0; | |
5094 | wxString * _arg1; | |
5095 | PyObject * _argo0 = 0; | |
5096 | PyObject * _obj1 = 0; | |
5097 | char *_kwnames[] = { "self","info", NULL }; | |
5098 | ||
5099 | self = self; | |
5100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
5101 | return NULL; | |
5102 | if (_argo0) { | |
5103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
5106 | return NULL; | |
5107 | } | |
5108 | } | |
5109 | { | |
5110 | #if PYTHON_API_VERSION >= 1009 | |
5111 | char* tmpPtr; int tmpSize; | |
5112 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5113 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5114 | return NULL; | |
5115 | } | |
5116 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5117 | return NULL; | |
5118 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5119 | #else | |
5120 | if (!PyString_Check(_obj1)) { | |
5121 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5122 | return NULL; | |
5123 | } | |
5124 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5125 | #endif | |
5126 | } | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
5132 | if (PyErr_Occurred()) return NULL; | |
5133 | } Py_INCREF(Py_None); | |
5134 | _resultobj = Py_None; | |
5135 | { | |
5136 | if (_obj1) | |
5137 | delete _arg1; | |
5138 | } | |
5139 | return _resultobj; | |
5140 | } | |
5141 | ||
f0261a72 RD |
5142 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
5143 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5144 | PyObject * _resultobj; | |
5145 | wxString * _result; | |
5146 | wxFont * _arg0; | |
5147 | PyObject * _argo0 = 0; | |
5148 | char *_kwnames[] = { "self", NULL }; | |
5149 | ||
5150 | self = self; | |
5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
5152 | return NULL; | |
5153 | if (_argo0) { | |
5154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
5157 | return NULL; | |
5158 | } | |
5159 | } | |
5160 | { | |
4268f798 | 5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
5162 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
5163 | ||
4268f798 | 5164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5165 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5166 | }{ |
eec92d76 | 5167 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
5168 | } |
5169 | { | |
5170 | delete _result; | |
5171 | } | |
5172 | return _resultobj; | |
5173 | } | |
5174 | ||
5175 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
5176 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5177 | PyObject * _resultobj; | |
5178 | wxString * _result; | |
5179 | wxFont * _arg0; | |
5180 | PyObject * _argo0 = 0; | |
5181 | char *_kwnames[] = { "self", NULL }; | |
5182 | ||
5183 | self = self; | |
5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
5185 | return NULL; | |
5186 | if (_argo0) { | |
5187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
5190 | return NULL; | |
5191 | } | |
5192 | } | |
5193 | { | |
4268f798 | 5194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
5195 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
5196 | ||
4268f798 | 5197 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5198 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5199 | }{ |
eec92d76 | 5200 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
5201 | } |
5202 | { | |
5203 | delete _result; | |
5204 | } | |
5205 | return _resultobj; | |
5206 | } | |
5207 | ||
5208 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
5209 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5210 | PyObject * _resultobj; | |
5211 | wxString * _result; | |
5212 | wxFont * _arg0; | |
5213 | PyObject * _argo0 = 0; | |
5214 | char *_kwnames[] = { "self", NULL }; | |
5215 | ||
5216 | self = self; | |
5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
5218 | return NULL; | |
5219 | if (_argo0) { | |
5220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
5223 | return NULL; | |
5224 | } | |
5225 | } | |
5226 | { | |
4268f798 | 5227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
5228 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
5229 | ||
4268f798 | 5230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5231 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5232 | }{ |
eec92d76 | 5233 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
f0261a72 RD |
5234 | } |
5235 | { | |
5236 | delete _result; | |
5237 | } | |
5238 | return _resultobj; | |
5239 | } | |
5240 | ||
6d8b4f8d RD |
5241 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
5242 | PyObject * _resultobj; | |
5243 | wxFontEncoding _result; | |
5244 | char *_kwnames[] = { NULL }; | |
5245 | ||
5246 | self = self; | |
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
5248 | return NULL; | |
5249 | { | |
4268f798 | 5250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
5251 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
5252 | ||
4268f798 | 5253 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5254 | if (PyErr_Occurred()) return NULL; |
5255 | } _resultobj = Py_BuildValue("i",_result); | |
5256 | return _resultobj; | |
5257 | } | |
5258 | ||
5259 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject * _resultobj; | |
5261 | wxFontEncoding _arg0; | |
5262 | char *_kwnames[] = { "encoding", NULL }; | |
5263 | ||
5264 | self = self; | |
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
5266 | return NULL; | |
5267 | { | |
4268f798 | 5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6d8b4f8d RD |
5269 | wxFont::SetDefaultEncoding(_arg0); |
5270 | ||
4268f798 | 5271 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5272 | if (PyErr_Occurred()) return NULL; |
5273 | } Py_INCREF(Py_None); | |
5274 | _resultobj = Py_None; | |
5275 | return _resultobj; | |
5276 | } | |
5277 | ||
9416aa89 RD |
5278 | static void *SwigwxFontListTowxObject(void *ptr) { |
5279 | wxFontList *src; | |
5280 | wxObject *dest; | |
5281 | src = (wxFontList *) ptr; | |
5282 | dest = (wxObject *) src; | |
5283 | return (void *) dest; | |
5284 | } | |
5285 | ||
0569df0f RD |
5286 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
5287 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5288 | PyObject * _resultobj; | |
5289 | wxFontList * _arg0; | |
5290 | wxFont * _arg1; | |
5291 | PyObject * _argo0 = 0; | |
5292 | PyObject * _argo1 = 0; | |
5293 | char *_kwnames[] = { "self","font", NULL }; | |
5294 | ||
5295 | self = self; | |
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
5297 | return NULL; | |
5298 | if (_argo0) { | |
5299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
5302 | return NULL; | |
5303 | } | |
5304 | } | |
5305 | if (_argo1) { | |
5306 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5307 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
5309 | return NULL; | |
5310 | } | |
5311 | } | |
5312 | { | |
4268f798 | 5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5314 | wxFontList_AddFont(_arg0,_arg1); |
5315 | ||
4268f798 | 5316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5317 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5318 | } Py_INCREF(Py_None); |
5319 | _resultobj = Py_None; | |
5320 | return _resultobj; | |
5321 | } | |
5322 | ||
5323 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5324 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5325 | PyObject * _resultobj; | |
5326 | wxFont * _result; | |
5327 | wxFontList * _arg0; | |
5328 | int _arg1; | |
5329 | int _arg2; | |
5330 | int _arg3; | |
5331 | int _arg4; | |
5332 | bool _arg5 = (bool ) FALSE; | |
5333 | char * _arg6 = (char *) NULL; | |
5334 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
5335 | PyObject * _argo0 = 0; | |
5336 | int tempbool5 = (int) FALSE; | |
5337 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
5338 | char _ptemp[128]; | |
5339 | ||
5340 | self = self; | |
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
5342 | return NULL; | |
5343 | if (_argo0) { | |
5344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
5347 | return NULL; | |
5348 | } | |
5349 | } | |
5350 | _arg5 = (bool ) tempbool5; | |
5351 | { | |
4268f798 | 5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5353 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
5354 | ||
4268f798 | 5355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5356 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5357 | } if (_result) { |
5358 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5359 | _resultobj = Py_BuildValue("s",_ptemp); | |
5360 | } else { | |
5361 | Py_INCREF(Py_None); | |
5362 | _resultobj = Py_None; | |
5363 | } | |
5364 | return _resultobj; | |
5365 | } | |
5366 | ||
5367 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
5368 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5369 | PyObject * _resultobj; | |
5370 | wxFontList * _arg0; | |
5371 | wxFont * _arg1; | |
5372 | PyObject * _argo0 = 0; | |
5373 | PyObject * _argo1 = 0; | |
5374 | char *_kwnames[] = { "self","font", NULL }; | |
5375 | ||
5376 | self = self; | |
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
5378 | return NULL; | |
5379 | if (_argo0) { | |
5380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
5383 | return NULL; | |
5384 | } | |
5385 | } | |
5386 | if (_argo1) { | |
5387 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5388 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
5390 | return NULL; | |
5391 | } | |
5392 | } | |
5393 | { | |
4268f798 | 5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5395 | wxFontList_RemoveFont(_arg0,_arg1); |
5396 | ||
4268f798 | 5397 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5398 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5399 | } Py_INCREF(Py_None); |
5400 | _resultobj = Py_None; | |
5401 | return _resultobj; | |
5402 | } | |
5403 | ||
2f4e9287 RD |
5404 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
5405 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5406 | PyObject * _resultobj; | |
5407 | int _result; | |
5408 | wxFontList * _arg0; | |
5409 | PyObject * _argo0 = 0; | |
5410 | char *_kwnames[] = { "self", NULL }; | |
5411 | ||
5412 | self = self; | |
5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
5414 | return NULL; | |
5415 | if (_argo0) { | |
5416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
5419 | return NULL; | |
5420 | } | |
5421 | } | |
5422 | { | |
4268f798 | 5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
5424 | _result = (int )wxFontList_GetCount(_arg0); |
5425 | ||
4268f798 | 5426 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5427 | if (PyErr_Occurred()) return NULL; |
5428 | } _resultobj = Py_BuildValue("i",_result); | |
5429 | return _resultobj; | |
5430 | } | |
5431 | ||
9416aa89 RD |
5432 | static void *SwigwxColourTowxObject(void *ptr) { |
5433 | wxColour *src; | |
5434 | wxObject *dest; | |
5435 | src = (wxColour *) ptr; | |
5436 | dest = (wxObject *) src; | |
5437 | return (void *) dest; | |
5438 | } | |
5439 | ||
8ab979d7 | 5440 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5441 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5442 | PyObject * _resultobj; |
5443 | wxColour * _result; | |
1d99702e RD |
5444 | unsigned char _arg0 = (unsigned char ) 0; |
5445 | unsigned char _arg1 = (unsigned char ) 0; | |
5446 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 5447 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
5448 | char _ptemp[128]; |
5449 | ||
5450 | self = self; | |
1afc06c2 | 5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 5452 | return NULL; |
cf694132 | 5453 | { |
4268f798 | 5454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5455 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
5456 | ||
4268f798 | 5457 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5458 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5459 | } if (_result) { |
5460 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5461 | _resultobj = Py_BuildValue("s",_ptemp); | |
5462 | } else { | |
5463 | Py_INCREF(Py_None); | |
5464 | _resultobj = Py_None; | |
5465 | } | |
8ab979d7 RD |
5466 | return _resultobj; |
5467 | } | |
5468 | ||
5469 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 5470 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5471 | PyObject * _resultobj; |
5472 | wxColour * _arg0; | |
f6bcfd97 BP |
5473 | wxColour temp; |
5474 | PyObject * _obj0 = 0; | |
1afc06c2 | 5475 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5476 | |
5477 | self = self; | |
f6bcfd97 | 5478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 5479 | return NULL; |
f6bcfd97 BP |
5480 | { |
5481 | _arg0 = &temp; | |
5482 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5483 | return NULL; |
f6bcfd97 | 5484 | } |
cf694132 | 5485 | { |
4268f798 | 5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5487 | delete_wxColour(_arg0); |
5488 | ||
4268f798 | 5489 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5490 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5491 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5492 | _resultobj = Py_None; |
5493 | return _resultobj; | |
5494 | } | |
5495 | ||
5496 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 5497 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5498 | PyObject * _resultobj; |
5499 | unsigned char _result; | |
5500 | wxColour * _arg0; | |
f6bcfd97 BP |
5501 | wxColour temp; |
5502 | PyObject * _obj0 = 0; | |
1afc06c2 | 5503 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5504 | |
5505 | self = self; | |
f6bcfd97 | 5506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 5507 | return NULL; |
f6bcfd97 BP |
5508 | { |
5509 | _arg0 = &temp; | |
5510 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5511 | return NULL; |
f6bcfd97 | 5512 | } |
cf694132 | 5513 | { |
4268f798 | 5514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5515 | _result = (unsigned char )wxColour_Red(_arg0); |
5516 | ||
4268f798 | 5517 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5518 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5519 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5520 | return _resultobj; |
5521 | } | |
5522 | ||
5523 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 5524 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5525 | PyObject * _resultobj; |
5526 | unsigned char _result; | |
5527 | wxColour * _arg0; | |
f6bcfd97 BP |
5528 | wxColour temp; |
5529 | PyObject * _obj0 = 0; | |
1afc06c2 | 5530 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5531 | |
5532 | self = self; | |
f6bcfd97 | 5533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 5534 | return NULL; |
f6bcfd97 BP |
5535 | { |
5536 | _arg0 = &temp; | |
5537 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5538 | return NULL; |
f6bcfd97 | 5539 | } |
cf694132 | 5540 | { |
4268f798 | 5541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5542 | _result = (unsigned char )wxColour_Green(_arg0); |
5543 | ||
4268f798 | 5544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5545 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5546 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5547 | return _resultobj; |
5548 | } | |
5549 | ||
5550 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 5551 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5552 | PyObject * _resultobj; |
5553 | unsigned char _result; | |
5554 | wxColour * _arg0; | |
f6bcfd97 BP |
5555 | wxColour temp; |
5556 | PyObject * _obj0 = 0; | |
1afc06c2 | 5557 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5558 | |
5559 | self = self; | |
f6bcfd97 | 5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 5561 | return NULL; |
f6bcfd97 BP |
5562 | { |
5563 | _arg0 = &temp; | |
5564 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5565 | return NULL; |
f6bcfd97 | 5566 | } |
cf694132 | 5567 | { |
4268f798 | 5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5569 | _result = (unsigned char )wxColour_Blue(_arg0); |
5570 | ||
4268f798 | 5571 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5572 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5573 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5574 | return _resultobj; |
5575 | } | |
5576 | ||
5577 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5578 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5579 | PyObject * _resultobj; |
5580 | bool _result; | |
5581 | wxColour * _arg0; | |
f6bcfd97 BP |
5582 | wxColour temp; |
5583 | PyObject * _obj0 = 0; | |
1afc06c2 | 5584 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5585 | |
5586 | self = self; | |
f6bcfd97 | 5587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 5588 | return NULL; |
f6bcfd97 BP |
5589 | { |
5590 | _arg0 = &temp; | |
5591 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5592 | return NULL; |
f6bcfd97 | 5593 | } |
cf694132 | 5594 | { |
4268f798 | 5595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5596 | _result = (bool )wxColour_Ok(_arg0); |
5597 | ||
4268f798 | 5598 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5599 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5600 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5601 | return _resultobj; |
5602 | } | |
5603 | ||
5604 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5605 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5606 | PyObject * _resultobj; |
5607 | wxColour * _arg0; | |
5608 | unsigned char _arg1; | |
5609 | unsigned char _arg2; | |
5610 | unsigned char _arg3; | |
f6bcfd97 BP |
5611 | wxColour temp; |
5612 | PyObject * _obj0 = 0; | |
1afc06c2 | 5613 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
5614 | |
5615 | self = self; | |
f6bcfd97 | 5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 5617 | return NULL; |
f6bcfd97 BP |
5618 | { |
5619 | _arg0 = &temp; | |
5620 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5621 | return NULL; |
f6bcfd97 | 5622 | } |
cf694132 | 5623 | { |
4268f798 | 5624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5625 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
5626 | ||
4268f798 | 5627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5628 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5629 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5630 | _resultobj = Py_None; |
5631 | return _resultobj; | |
5632 | } | |
5633 | ||
5634 | static PyObject * wxColour_Get(wxColour *self) { | |
5635 | PyObject* rv = PyTuple_New(3); | |
5636 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
5637 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
5638 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
5639 | return rv; | |
5640 | } | |
1afc06c2 | 5641 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5642 | PyObject * _resultobj; |
5643 | PyObject * _result; | |
5644 | wxColour * _arg0; | |
f6bcfd97 BP |
5645 | wxColour temp; |
5646 | PyObject * _obj0 = 0; | |
1afc06c2 | 5647 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5648 | |
5649 | self = self; | |
f6bcfd97 | 5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 5651 | return NULL; |
f6bcfd97 BP |
5652 | { |
5653 | _arg0 = &temp; | |
5654 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5655 | return NULL; |
f6bcfd97 | 5656 | } |
8ab979d7 | 5657 | { |
4268f798 | 5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5659 | _result = (PyObject *)wxColour_Get(_arg0); |
5660 | ||
4268f798 | 5661 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5662 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5663 | }{ |
8ab979d7 RD |
5664 | _resultobj = _result; |
5665 | } | |
5666 | return _resultobj; | |
5667 | } | |
5668 | ||
9416aa89 RD |
5669 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
5670 | wxColourDatabase *src; | |
5671 | wxObject *dest; | |
5672 | src = (wxColourDatabase *) ptr; | |
5673 | dest = (wxObject *) src; | |
5674 | return (void *) dest; | |
5675 | } | |
5676 | ||
0569df0f RD |
5677 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
5678 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5679 | PyObject * _resultobj; | |
5680 | wxColour * _result; | |
5681 | wxColourDatabase * _arg0; | |
5682 | wxString * _arg1; | |
5683 | PyObject * _argo0 = 0; | |
5684 | PyObject * _obj1 = 0; | |
5685 | char *_kwnames[] = { "self","colour", NULL }; | |
5686 | char _ptemp[128]; | |
5687 | ||
5688 | self = self; | |
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
5690 | return NULL; | |
5691 | if (_argo0) { | |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
5695 | return NULL; | |
8ab979d7 | 5696 | } |
0569df0f RD |
5697 | } |
5698 | { | |
5699 | #if PYTHON_API_VERSION >= 1009 | |
5700 | char* tmpPtr; int tmpSize; | |
5701 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5702 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
5703 | return NULL; |
5704 | } | |
5705 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5706 | return NULL; | |
5707 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5708 | #else | |
5709 | if (!PyString_Check(_obj1)) { | |
5710 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5711 | return NULL; | |
5712 | } | |
5713 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5714 | #endif | |
5715 | } | |
5716 | { | |
4268f798 | 5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 5718 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
8ab979d7 | 5719 | |
4268f798 | 5720 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5721 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5722 | } if (_result) { |
5723 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5724 | _resultobj = Py_BuildValue("s",_ptemp); | |
5725 | } else { | |
5726 | Py_INCREF(Py_None); | |
5727 | _resultobj = Py_None; | |
5728 | } | |
5729 | { | |
5730 | if (_obj1) | |
5731 | delete _arg1; | |
5732 | } | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
5736 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
5737 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5738 | PyObject * _resultobj; | |
5739 | wxString * _result; | |
5740 | wxColourDatabase * _arg0; | |
5741 | wxColour * _arg1; | |
5742 | PyObject * _argo0 = 0; | |
5743 | wxColour temp; | |
5744 | PyObject * _obj1 = 0; | |
5745 | char *_kwnames[] = { "self","colour", NULL }; | |
5746 | ||
5747 | self = self; | |
5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
5749 | return NULL; | |
5750 | if (_argo0) { | |
5751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
5754 | return NULL; | |
5755 | } | |
5756 | } | |
5757 | { | |
5758 | _arg1 = &temp; | |
5759 | if (! wxColour_helper(_obj1, &_arg1)) | |
5760 | return NULL; | |
5761 | } | |
5762 | { | |
4268f798 | 5763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5764 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
5765 | ||
4268f798 | 5766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5767 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5768 | }{ |
5769 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5770 | } | |
5771 | { | |
5772 | delete _result; | |
5773 | } | |
5774 | return _resultobj; | |
5775 | } | |
5776 | ||
5777 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
5778 | self->Append(name.c_str(), new wxColour(red, green, blue)); | |
5779 | } | |
5780 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5781 | PyObject * _resultobj; | |
5782 | wxColourDatabase * _arg0; | |
5783 | wxString * _arg1; | |
5784 | int _arg2; | |
5785 | int _arg3; | |
5786 | int _arg4; | |
5787 | PyObject * _argo0 = 0; | |
5788 | PyObject * _obj1 = 0; | |
5789 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5790 | ||
5791 | self = self; | |
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5793 | return NULL; | |
5794 | if (_argo0) { | |
5795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5798 | return NULL; | |
5799 | } | |
5800 | } | |
5801 | { | |
5802 | #if PYTHON_API_VERSION >= 1009 | |
5803 | char* tmpPtr; int tmpSize; | |
5804 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 5805 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
0569df0f RD |
5806 | return NULL; |
5807 | } | |
5808 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5809 | return NULL; | |
5810 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5811 | #else | |
5812 | if (!PyString_Check(_obj1)) { | |
5813 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5814 | return NULL; | |
5815 | } | |
5816 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5817 | #endif | |
5818 | } | |
5819 | { | |
4268f798 | 5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5821 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
5822 | ||
4268f798 | 5823 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5824 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5825 | } Py_INCREF(Py_None); |
5826 | _resultobj = Py_None; | |
5827 | { | |
5828 | if (_obj1) | |
5829 | delete _arg1; | |
5830 | } | |
5831 | return _resultobj; | |
5832 | } | |
5833 | ||
9416aa89 RD |
5834 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
5835 | wxPen *src; | |
5836 | wxGDIObject *dest; | |
5837 | src = (wxPen *) ptr; | |
5838 | dest = (wxGDIObject *) src; | |
5839 | return (void *) dest; | |
5840 | } | |
5841 | ||
5842 | static void *SwigwxPenTowxObject(void *ptr) { | |
5843 | wxPen *src; | |
5844 | wxObject *dest; | |
5845 | src = (wxPen *) ptr; | |
5846 | dest = (wxObject *) src; | |
5847 | return (void *) dest; | |
5848 | } | |
5849 | ||
0569df0f | 5850 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5851 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5852 | PyObject * _resultobj; |
5853 | wxPen * _result; | |
5854 | wxColour * _arg0; | |
1d99702e RD |
5855 | int _arg1 = (int ) 1; |
5856 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
5857 | wxColour temp; |
5858 | PyObject * _obj0 = 0; | |
1afc06c2 | 5859 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
5860 | char _ptemp[128]; |
5861 | ||
5862 | self = self; | |
f6bcfd97 | 5863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 5864 | return NULL; |
f6bcfd97 BP |
5865 | { |
5866 | _arg0 = &temp; | |
5867 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5868 | return NULL; |
f6bcfd97 | 5869 | } |
cf694132 | 5870 | { |
4268f798 | 5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 5872 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 | 5873 | |
4268f798 | 5874 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5875 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5876 | } if (_result) { |
5877 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5878 | _resultobj = Py_BuildValue("s",_ptemp); | |
5879 | } else { | |
5880 | Py_INCREF(Py_None); | |
5881 | _resultobj = Py_None; | |
5882 | } | |
8ab979d7 RD |
5883 | return _resultobj; |
5884 | } | |
5885 | ||
0569df0f RD |
5886 | #define delete_wxPen(_swigobj) (delete _swigobj) |
5887 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject * _resultobj; | |
5889 | wxPen * _arg0; | |
5890 | PyObject * _argo0 = 0; | |
5891 | char *_kwnames[] = { "self", NULL }; | |
5892 | ||
5893 | self = self; | |
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5895 | return NULL; | |
5896 | if (_argo0) { | |
5897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5900 | return NULL; | |
5901 | } | |
5902 | } | |
5903 | { | |
4268f798 | 5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
5905 | delete_wxPen(_arg0); |
5906 | ||
4268f798 | 5907 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5908 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5909 | } Py_INCREF(Py_None); |
5910 | _resultobj = Py_None; | |
5911 | return _resultobj; | |
5912 | } | |
5913 | ||
8ab979d7 | 5914 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 5915 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5916 | PyObject * _resultobj; |
5917 | int _result; | |
5918 | wxPen * _arg0; | |
1d99702e | 5919 | PyObject * _argo0 = 0; |
1afc06c2 | 5920 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5921 | |
5922 | self = self; | |
1afc06c2 | 5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 5924 | return NULL; |
1d99702e RD |
5925 | if (_argo0) { |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
cf694132 | 5932 | { |
4268f798 | 5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5934 | _result = (int )wxPen_GetCap(_arg0); |
5935 | ||
4268f798 | 5936 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5937 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5938 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5939 | return _resultobj; |
5940 | } | |
5941 | ||
5942 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 5943 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5944 | PyObject * _resultobj; |
5945 | wxColour * _result; | |
5946 | wxPen * _arg0; | |
1d99702e | 5947 | PyObject * _argo0 = 0; |
1afc06c2 | 5948 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5949 | char _ptemp[128]; |
5950 | ||
5951 | self = self; | |
1afc06c2 | 5952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5953 | return NULL; |
1d99702e RD |
5954 | if (_argo0) { |
5955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
5958 | return NULL; | |
5959 | } | |
5960 | } | |
cf694132 | 5961 | { |
4268f798 | 5962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 5963 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 | 5964 | |
4268f798 | 5965 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5966 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5967 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5968 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5969 | return _resultobj; |
5970 | } | |
5971 | ||
8ab979d7 | 5972 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 5973 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5974 | PyObject * _resultobj; |
5975 | int _result; | |
5976 | wxPen * _arg0; | |
1d99702e | 5977 | PyObject * _argo0 = 0; |
1afc06c2 | 5978 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5979 | |
5980 | self = self; | |
1afc06c2 | 5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 5982 | return NULL; |
1d99702e RD |
5983 | if (_argo0) { |
5984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5987 | return NULL; | |
5988 | } | |
5989 | } | |
cf694132 | 5990 | { |
4268f798 | 5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
5992 | _result = (int )wxPen_GetJoin(_arg0); |
5993 | ||
4268f798 | 5994 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5995 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5996 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5997 | return _resultobj; |
5998 | } | |
5999 | ||
6000 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 6001 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6002 | PyObject * _resultobj; |
6003 | int _result; | |
6004 | wxPen * _arg0; | |
1d99702e | 6005 | PyObject * _argo0 = 0; |
1afc06c2 | 6006 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6007 | |
6008 | self = self; | |
1afc06c2 | 6009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6010 | return NULL; |
1d99702e RD |
6011 | if (_argo0) { |
6012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
6015 | return NULL; | |
6016 | } | |
6017 | } | |
cf694132 | 6018 | { |
4268f798 | 6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6020 | _result = (int )wxPen_GetStyle(_arg0); |
6021 | ||
4268f798 | 6022 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6024 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6025 | return _resultobj; |
6026 | } | |
6027 | ||
6028 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 6029 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6030 | PyObject * _resultobj; |
6031 | int _result; | |
6032 | wxPen * _arg0; | |
1d99702e | 6033 | PyObject * _argo0 = 0; |
1afc06c2 | 6034 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6035 | |
6036 | self = self; | |
1afc06c2 | 6037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 6038 | return NULL; |
1d99702e RD |
6039 | if (_argo0) { |
6040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
6043 | return NULL; | |
6044 | } | |
6045 | } | |
cf694132 | 6046 | { |
4268f798 | 6047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6048 | _result = (int )wxPen_GetWidth(_arg0); |
6049 | ||
4268f798 | 6050 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6052 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6053 | return _resultobj; |
6054 | } | |
6055 | ||
6056 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6057 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6058 | PyObject * _resultobj; |
6059 | bool _result; | |
6060 | wxPen * _arg0; | |
1d99702e | 6061 | PyObject * _argo0 = 0; |
1afc06c2 | 6062 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6063 | |
6064 | self = self; | |
1afc06c2 | 6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6066 | return NULL; |
1d99702e RD |
6067 | if (_argo0) { |
6068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
6071 | return NULL; | |
6072 | } | |
6073 | } | |
cf694132 | 6074 | { |
4268f798 | 6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6076 | _result = (bool )wxPen_Ok(_arg0); |
6077 | ||
4268f798 | 6078 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6080 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6081 | return _resultobj; |
6082 | } | |
6083 | ||
6084 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 6085 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6086 | PyObject * _resultobj; |
6087 | wxPen * _arg0; | |
6088 | int _arg1; | |
1d99702e | 6089 | PyObject * _argo0 = 0; |
1afc06c2 | 6090 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
6091 | |
6092 | self = self; | |
1afc06c2 | 6093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6094 | return NULL; |
1d99702e RD |
6095 | if (_argo0) { |
6096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
6099 | return NULL; | |
6100 | } | |
6101 | } | |
cf694132 | 6102 | { |
4268f798 | 6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6104 | wxPen_SetCap(_arg0,_arg1); |
6105 | ||
4268f798 | 6106 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6107 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6108 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6109 | _resultobj = Py_None; |
6110 | return _resultobj; | |
6111 | } | |
6112 | ||
6113 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6114 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6115 | PyObject * _resultobj; |
6116 | wxPen * _arg0; | |
6117 | wxColour * _arg1; | |
1d99702e | 6118 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6119 | wxColour temp; |
6120 | PyObject * _obj1 = 0; | |
1afc06c2 | 6121 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6122 | |
6123 | self = self; | |
f6bcfd97 | 6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6125 | return NULL; |
1d99702e RD |
6126 | if (_argo0) { |
6127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
6129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
6130 | return NULL; | |
6131 | } | |
6132 | } | |
f6bcfd97 BP |
6133 | { |
6134 | _arg1 = &temp; | |
6135 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6136 | return NULL; |
f6bcfd97 | 6137 | } |
cf694132 | 6138 | { |
4268f798 | 6139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6140 | wxPen_SetColour(_arg0,*_arg1); |
6141 | ||
4268f798 | 6142 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6143 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6144 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6145 | _resultobj = Py_None; |
6146 | return _resultobj; | |
6147 | } | |
6148 | ||
2ea09579 | 6149 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 6150 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6151 | PyObject * _resultobj; |
6152 | wxPen * _arg0; | |
6153 | int _arg1; | |
1d99702e | 6154 | PyObject * _argo0 = 0; |
1afc06c2 | 6155 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
6156 | |
6157 | self = self; | |
1afc06c2 | 6158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6159 | return NULL; |
1d99702e RD |
6160 | if (_argo0) { |
6161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
6164 | return NULL; |
6165 | } | |
6166 | } | |
cf694132 | 6167 | { |
4268f798 | 6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6169 | wxPen_SetJoin(_arg0,_arg1); |
6170 | ||
4268f798 | 6171 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6172 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6173 | } Py_INCREF(Py_None); |
2ea09579 RD |
6174 | _resultobj = Py_None; |
6175 | return _resultobj; | |
6176 | } | |
6177 | ||
6178 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6179 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6180 | PyObject * _resultobj; |
6181 | wxPen * _arg0; | |
6182 | int _arg1; | |
1d99702e | 6183 | PyObject * _argo0 = 0; |
1afc06c2 | 6184 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
6185 | |
6186 | self = self; | |
1afc06c2 | 6187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6188 | return NULL; |
1d99702e RD |
6189 | if (_argo0) { |
6190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
6193 | return NULL; | |
6194 | } | |
8ab979d7 | 6195 | } |
cf694132 | 6196 | { |
4268f798 | 6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6198 | wxPen_SetStyle(_arg0,_arg1); |
6199 | ||
4268f798 | 6200 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6201 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6202 | } Py_INCREF(Py_None); |
8ab979d7 | 6203 | _resultobj = Py_None; |
2ea09579 | 6204 | return _resultobj; |
8ab979d7 | 6205 | } |
2ea09579 RD |
6206 | |
6207 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 6208 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6209 | PyObject * _resultobj; |
6210 | wxPen * _arg0; | |
6211 | int _arg1; | |
1d99702e | 6212 | PyObject * _argo0 = 0; |
1afc06c2 | 6213 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
6214 | |
6215 | self = self; | |
1afc06c2 | 6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 6217 | return NULL; |
1d99702e RD |
6218 | if (_argo0) { |
6219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
6222 | return NULL; | |
6223 | } | |
6224 | } | |
cf694132 | 6225 | { |
4268f798 | 6226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6227 | wxPen_SetWidth(_arg0,_arg1); |
6228 | ||
4268f798 | 6229 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6230 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6231 | } Py_INCREF(Py_None); |
2ea09579 | 6232 | _resultobj = Py_None; |
8ab979d7 RD |
6233 | return _resultobj; |
6234 | } | |
6235 | ||
2ea09579 | 6236 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 6237 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6238 | PyObject * _resultobj; |
6239 | wxPen * _arg0; | |
6240 | int _arg1; | |
2ea09579 | 6241 | wxDash * _arg2; |
1d99702e | 6242 | PyObject * _argo0 = 0; |
2ea09579 | 6243 | PyObject * _obj2 = 0; |
eec92d76 | 6244 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
6245 | |
6246 | self = self; | |
1afc06c2 | 6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6248 | return NULL; |
1d99702e RD |
6249 | if (_argo0) { |
6250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
6253 | return NULL; |
6254 | } | |
6255 | } | |
2ea09579 RD |
6256 | if (_obj2) |
6257 | { | |
f6bcfd97 | 6258 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
6259 | if (_arg2 == NULL) { |
6260 | return NULL; | |
6261 | } | |
6262 | } | |
6263 | { | |
cf694132 RD |
6264 | if (_obj2) { |
6265 | _arg1 = PyList_Size(_obj2); | |
6266 | } | |
6267 | else { | |
6268 | _arg1 = 0; | |
6269 | } | |
2ea09579 | 6270 | } |
cf694132 | 6271 | { |
4268f798 | 6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6273 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
6274 | ||
4268f798 | 6275 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6276 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6277 | } Py_INCREF(Py_None); |
8ab979d7 | 6278 | _resultobj = Py_None; |
2ea09579 RD |
6279 | { |
6280 | delete [] _arg2; | |
6281 | } | |
8ab979d7 RD |
6282 | return _resultobj; |
6283 | } | |
6284 | ||
6999b0d8 RD |
6285 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
6286 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6287 | PyObject * _resultobj; | |
6288 | wxBitmap * _result; | |
6289 | wxPen * _arg0; | |
6290 | PyObject * _argo0 = 0; | |
6291 | char *_kwnames[] = { "self", NULL }; | |
6292 | char _ptemp[128]; | |
6293 | ||
6294 | self = self; | |
6295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
6296 | return NULL; | |
6297 | if (_argo0) { | |
6298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
6300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
6301 | return NULL; | |
6302 | } | |
6303 | } | |
6304 | { | |
4268f798 | 6305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 RD |
6306 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); |
6307 | ||
4268f798 | 6308 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6309 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6310 | } if (_result) { |
6311 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6312 | _resultobj = Py_BuildValue("s",_ptemp); | |
6313 | } else { | |
6314 | Py_INCREF(Py_None); | |
6315 | _resultobj = Py_None; | |
6316 | } | |
6317 | return _resultobj; | |
6318 | } | |
6319 | ||
2ea09579 | 6320 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 6321 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6322 | PyObject * _resultobj; |
6323 | wxPen * _arg0; | |
2ea09579 | 6324 | wxBitmap * _arg1; |
1d99702e RD |
6325 | PyObject * _argo0 = 0; |
6326 | PyObject * _argo1 = 0; | |
1afc06c2 | 6327 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
6328 | |
6329 | self = self; | |
1afc06c2 | 6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6331 | return NULL; |
1d99702e RD |
6332 | if (_argo0) { |
6333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
6336 | return NULL; |
6337 | } | |
6338 | } | |
1d99702e RD |
6339 | if (_argo1) { |
6340 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6341 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
6342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
6343 | return NULL; | |
6344 | } | |
6345 | } | |
cf694132 | 6346 | { |
4268f798 | 6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6348 | wxPen_SetStipple(_arg0,*_arg1); |
6349 | ||
4268f798 | 6350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6353 | _resultobj = Py_None; |
6354 | return _resultobj; | |
6355 | } | |
6356 | ||
ecc08ead RD |
6357 | static void *SwigwxPyPenTowxPen(void *ptr) { |
6358 | wxPyPen *src; | |
6359 | wxPen *dest; | |
6360 | src = (wxPyPen *) ptr; | |
6361 | dest = (wxPen *) src; | |
6362 | return (void *) dest; | |
6363 | } | |
6364 | ||
6365 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
6366 | wxPyPen *src; | |
6367 | wxGDIObject *dest; | |
6368 | src = (wxPyPen *) ptr; | |
6369 | dest = (wxGDIObject *) src; | |
6370 | return (void *) dest; | |
6371 | } | |
6372 | ||
6373 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
6374 | wxPyPen *src; | |
6375 | wxObject *dest; | |
6376 | src = (wxPyPen *) ptr; | |
6377 | dest = (wxObject *) src; | |
6378 | return (void *) dest; | |
6379 | } | |
6380 | ||
6381 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
6382 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6383 | PyObject * _resultobj; | |
6384 | wxPyPen * _result; | |
6385 | wxColour * _arg0; | |
6386 | int _arg1 = (int ) 1; | |
6387 | int _arg2 = (int ) wxSOLID; | |
6388 | wxColour temp; | |
6389 | PyObject * _obj0 = 0; | |
6390 | char *_kwnames[] = { "colour","width","style", NULL }; | |
6391 | char _ptemp[128]; | |
6392 | ||
6393 | self = self; | |
6394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
6395 | return NULL; | |
6396 | { | |
6397 | _arg0 = &temp; | |
6398 | if (! wxColour_helper(_obj0, &_arg0)) | |
6399 | return NULL; | |
6400 | } | |
6401 | { | |
4268f798 | 6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ecc08ead RD |
6403 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
6404 | ||
4268f798 | 6405 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6406 | if (PyErr_Occurred()) return NULL; |
6407 | } if (_result) { | |
6408 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
6409 | _resultobj = Py_BuildValue("s",_ptemp); | |
6410 | } else { | |
6411 | Py_INCREF(Py_None); | |
6412 | _resultobj = Py_None; | |
6413 | } | |
6414 | return _resultobj; | |
6415 | } | |
6416 | ||
6417 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
6418 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6419 | PyObject * _resultobj; | |
6420 | wxPyPen * _arg0; | |
6421 | PyObject * _argo0 = 0; | |
6422 | char *_kwnames[] = { "self", NULL }; | |
6423 | ||
6424 | self = self; | |
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
6426 | return NULL; | |
6427 | if (_argo0) { | |
6428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
6431 | return NULL; | |
6432 | } | |
6433 | } | |
6434 | { | |
4268f798 | 6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ecc08ead RD |
6436 | delete_wxPyPen(_arg0); |
6437 | ||
4268f798 | 6438 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6439 | if (PyErr_Occurred()) return NULL; |
6440 | } Py_INCREF(Py_None); | |
6441 | _resultobj = Py_None; | |
6442 | return _resultobj; | |
6443 | } | |
6444 | ||
6445 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
6446 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject * _resultobj; | |
6448 | wxPyPen * _arg0; | |
6449 | int _arg1; | |
6450 | wxDash * _arg2; | |
6451 | PyObject * _argo0 = 0; | |
6452 | PyObject * _obj2 = 0; | |
6453 | char *_kwnames[] = { "self","choices", NULL }; | |
6454 | ||
6455 | self = self; | |
6456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
6457 | return NULL; | |
6458 | if (_argo0) { | |
6459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
6462 | return NULL; | |
6463 | } | |
6464 | } | |
6465 | if (_obj2) | |
6466 | { | |
6467 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
6468 | if (_arg2 == NULL) { | |
6469 | return NULL; | |
6470 | } | |
6471 | } | |
6472 | { | |
6473 | if (_obj2) { | |
6474 | _arg1 = PyList_Size(_obj2); | |
6475 | } | |
6476 | else { | |
6477 | _arg1 = 0; | |
6478 | } | |
6479 | } | |
6480 | { | |
4268f798 | 6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ecc08ead RD |
6482 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
6483 | ||
4268f798 | 6484 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6485 | if (PyErr_Occurred()) return NULL; |
6486 | } Py_INCREF(Py_None); | |
6487 | _resultobj = Py_None; | |
6488 | { | |
6489 | delete [] _arg2; | |
6490 | } | |
6491 | return _resultobj; | |
6492 | } | |
6493 | ||
9416aa89 RD |
6494 | static void *SwigwxPenListTowxObject(void *ptr) { |
6495 | wxPenList *src; | |
6496 | wxObject *dest; | |
6497 | src = (wxPenList *) ptr; | |
6498 | dest = (wxObject *) src; | |
6499 | return (void *) dest; | |
6500 | } | |
6501 | ||
0569df0f RD |
6502 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
6503 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6504 | PyObject * _resultobj; | |
6505 | wxPenList * _arg0; | |
6506 | wxPen * _arg1; | |
6507 | PyObject * _argo0 = 0; | |
6508 | PyObject * _argo1 = 0; | |
6509 | char *_kwnames[] = { "self","pen", NULL }; | |
6510 | ||
6511 | self = self; | |
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
6513 | return NULL; | |
6514 | if (_argo0) { | |
6515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
6518 | return NULL; | |
6519 | } | |
6520 | } | |
6521 | if (_argo1) { | |
6522 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6523 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
6525 | return NULL; | |
6526 | } | |
6527 | } | |
6528 | { | |
4268f798 | 6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6530 | wxPenList_AddPen(_arg0,_arg1); |
6531 | ||
4268f798 | 6532 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6533 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6534 | } Py_INCREF(Py_None); |
6535 | _resultobj = Py_None; | |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
6539 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
6540 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | wxPen * _result; | |
6543 | wxPenList * _arg0; | |
6544 | wxColour * _arg1; | |
6545 | int _arg2; | |
6546 | int _arg3; | |
6547 | PyObject * _argo0 = 0; | |
6548 | wxColour temp; | |
6549 | PyObject * _obj1 = 0; | |
6550 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
6551 | char _ptemp[128]; | |
6552 | ||
6553 | self = self; | |
6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
6555 | return NULL; | |
6556 | if (_argo0) { | |
6557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
6560 | return NULL; | |
6561 | } | |
6562 | } | |
6563 | { | |
6564 | _arg1 = &temp; | |
6565 | if (! wxColour_helper(_obj1, &_arg1)) | |
6566 | return NULL; | |
6567 | } | |
6568 | { | |
4268f798 | 6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6570 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
6571 | ||
4268f798 | 6572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6573 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6574 | } if (_result) { |
6575 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6576 | _resultobj = Py_BuildValue("s",_ptemp); | |
6577 | } else { | |
6578 | Py_INCREF(Py_None); | |
6579 | _resultobj = Py_None; | |
6580 | } | |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
6584 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
6585 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject * _resultobj; | |
6587 | wxPenList * _arg0; | |
6588 | wxPen * _arg1; | |
6589 | PyObject * _argo0 = 0; | |
6590 | PyObject * _argo1 = 0; | |
6591 | char *_kwnames[] = { "self","pen", NULL }; | |
6592 | ||
6593 | self = self; | |
6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
6595 | return NULL; | |
6596 | if (_argo0) { | |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
6600 | return NULL; | |
6601 | } | |
6602 | } | |
6603 | if (_argo1) { | |
6604 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6605 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
6607 | return NULL; | |
8ab979d7 | 6608 | } |
0569df0f RD |
6609 | } |
6610 | { | |
4268f798 | 6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 6612 | wxPenList_RemovePen(_arg0,_arg1); |
8ab979d7 | 6613 | |
4268f798 | 6614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6615 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6616 | } Py_INCREF(Py_None); |
6617 | _resultobj = Py_None; | |
6618 | return _resultobj; | |
6619 | } | |
6620 | ||
2f4e9287 RD |
6621 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
6622 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6623 | PyObject * _resultobj; | |
6624 | int _result; | |
6625 | wxPenList * _arg0; | |
6626 | PyObject * _argo0 = 0; | |
6627 | char *_kwnames[] = { "self", NULL }; | |
6628 | ||
6629 | self = self; | |
6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
6631 | return NULL; | |
6632 | if (_argo0) { | |
6633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
6636 | return NULL; | |
6637 | } | |
6638 | } | |
6639 | { | |
4268f798 | 6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
6641 | _result = (int )wxPenList_GetCount(_arg0); |
6642 | ||
4268f798 | 6643 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6644 | if (PyErr_Occurred()) return NULL; |
6645 | } _resultobj = Py_BuildValue("i",_result); | |
6646 | return _resultobj; | |
6647 | } | |
6648 | ||
9416aa89 RD |
6649 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
6650 | wxBrush *src; | |
6651 | wxGDIObject *dest; | |
6652 | src = (wxBrush *) ptr; | |
6653 | dest = (wxGDIObject *) src; | |
6654 | return (void *) dest; | |
6655 | } | |
6656 | ||
6657 | static void *SwigwxBrushTowxObject(void *ptr) { | |
6658 | wxBrush *src; | |
6659 | wxObject *dest; | |
6660 | src = (wxBrush *) ptr; | |
6661 | dest = (wxObject *) src; | |
6662 | return (void *) dest; | |
6663 | } | |
6664 | ||
0569df0f | 6665 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 6666 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6667 | PyObject * _resultobj; |
6668 | wxBrush * _result; | |
6669 | wxColour * _arg0; | |
1d99702e | 6670 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
6671 | wxColour temp; |
6672 | PyObject * _obj0 = 0; | |
1afc06c2 | 6673 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
6674 | char _ptemp[128]; |
6675 | ||
6676 | self = self; | |
f6bcfd97 | 6677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 6678 | return NULL; |
f6bcfd97 BP |
6679 | { |
6680 | _arg0 = &temp; | |
6681 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 6682 | return NULL; |
f6bcfd97 | 6683 | } |
cf694132 | 6684 | { |
4268f798 | 6685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f | 6686 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 | 6687 | |
4268f798 | 6688 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6689 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6690 | } if (_result) { |
6691 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6692 | _resultobj = Py_BuildValue("s",_ptemp); | |
6693 | } else { | |
6694 | Py_INCREF(Py_None); | |
6695 | _resultobj = Py_None; | |
6696 | } | |
8ab979d7 RD |
6697 | return _resultobj; |
6698 | } | |
6699 | ||
0569df0f RD |
6700 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
6701 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6702 | PyObject * _resultobj; | |
6703 | wxBrush * _arg0; | |
6704 | PyObject * _argo0 = 0; | |
6705 | char *_kwnames[] = { "self", NULL }; | |
6706 | ||
6707 | self = self; | |
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
6709 | return NULL; | |
6710 | if (_argo0) { | |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
6714 | return NULL; | |
6715 | } | |
6716 | } | |
6717 | { | |
4268f798 | 6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6719 | delete_wxBrush(_arg0); |
6720 | ||
4268f798 | 6721 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6722 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6723 | } Py_INCREF(Py_None); |
6724 | _resultobj = Py_None; | |
6725 | return _resultobj; | |
6726 | } | |
6727 | ||
8ab979d7 | 6728 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 6729 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6730 | PyObject * _resultobj; |
6731 | wxColour * _result; | |
6732 | wxBrush * _arg0; | |
1d99702e | 6733 | PyObject * _argo0 = 0; |
1afc06c2 | 6734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6735 | char _ptemp[128]; |
6736 | ||
6737 | self = self; | |
1afc06c2 | 6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 6739 | return NULL; |
1d99702e RD |
6740 | if (_argo0) { |
6741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
6744 | return NULL; | |
6745 | } | |
6746 | } | |
cf694132 | 6747 | { |
4268f798 | 6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 6749 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 | 6750 | |
4268f798 | 6751 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6752 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
6753 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6754 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6755 | return _resultobj; |
6756 | } | |
6757 | ||
6758 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 6759 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6760 | PyObject * _resultobj; |
6761 | wxBitmap * _result; | |
6762 | wxBrush * _arg0; | |
1d99702e | 6763 | PyObject * _argo0 = 0; |
1afc06c2 | 6764 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6765 | char _ptemp[128]; |
6766 | ||
6767 | self = self; | |
1afc06c2 | 6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 6769 | return NULL; |
1d99702e RD |
6770 | if (_argo0) { |
6771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
6774 | return NULL; | |
6775 | } | |
6776 | } | |
cf694132 | 6777 | { |
4268f798 | 6778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6779 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
6780 | ||
4268f798 | 6781 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6782 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6783 | } if (_result) { |
6784 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6785 | _resultobj = Py_BuildValue("s",_ptemp); | |
6786 | } else { | |
6787 | Py_INCREF(Py_None); | |
6788 | _resultobj = Py_None; | |
6789 | } | |
8ab979d7 RD |
6790 | return _resultobj; |
6791 | } | |
6792 | ||
6793 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 6794 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6795 | PyObject * _resultobj; |
6796 | int _result; | |
6797 | wxBrush * _arg0; | |
1d99702e | 6798 | PyObject * _argo0 = 0; |
1afc06c2 | 6799 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6800 | |
6801 | self = self; | |
1afc06c2 | 6802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6803 | return NULL; |
1d99702e RD |
6804 | if (_argo0) { |
6805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
6808 | return NULL; | |
6809 | } | |
6810 | } | |
cf694132 | 6811 | { |
4268f798 | 6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6813 | _result = (int )wxBrush_GetStyle(_arg0); |
6814 | ||
4268f798 | 6815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6816 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6817 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6818 | return _resultobj; |
6819 | } | |
6820 | ||
6821 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6822 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6823 | PyObject * _resultobj; |
6824 | bool _result; | |
6825 | wxBrush * _arg0; | |
1d99702e | 6826 | PyObject * _argo0 = 0; |
1afc06c2 | 6827 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6828 | |
6829 | self = self; | |
1afc06c2 | 6830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6831 | return NULL; |
1d99702e RD |
6832 | if (_argo0) { |
6833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
6836 | return NULL; | |
6837 | } | |
6838 | } | |
cf694132 | 6839 | { |
4268f798 | 6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6841 | _result = (bool )wxBrush_Ok(_arg0); |
6842 | ||
4268f798 | 6843 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6844 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6845 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6846 | return _resultobj; |
6847 | } | |
6848 | ||
6849 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6850 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6851 | PyObject * _resultobj; |
6852 | wxBrush * _arg0; | |
6853 | wxColour * _arg1; | |
1d99702e | 6854 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6855 | wxColour temp; |
6856 | PyObject * _obj1 = 0; | |
1afc06c2 | 6857 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6858 | |
6859 | self = self; | |
f6bcfd97 | 6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6861 | return NULL; |
1d99702e RD |
6862 | if (_argo0) { |
6863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
6866 | return NULL; | |
6867 | } | |
6868 | } | |
f6bcfd97 BP |
6869 | { |
6870 | _arg1 = &temp; | |
6871 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6872 | return NULL; |
f6bcfd97 | 6873 | } |
cf694132 | 6874 | { |
4268f798 | 6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6876 | wxBrush_SetColour(_arg0,*_arg1); |
6877 | ||
4268f798 | 6878 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6879 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6880 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6881 | _resultobj = Py_None; |
6882 | return _resultobj; | |
6883 | } | |
6884 | ||
6885 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 6886 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6887 | PyObject * _resultobj; |
6888 | wxBrush * _arg0; | |
6889 | wxBitmap * _arg1; | |
1d99702e RD |
6890 | PyObject * _argo0 = 0; |
6891 | PyObject * _argo1 = 0; | |
1afc06c2 | 6892 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6893 | |
6894 | self = self; | |
1afc06c2 | 6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6896 | return NULL; |
1d99702e RD |
6897 | if (_argo0) { |
6898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
6901 | return NULL; | |
6902 | } | |
6903 | } | |
1d99702e RD |
6904 | if (_argo1) { |
6905 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6906 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
6908 | return NULL; | |
6909 | } | |
6910 | } | |
cf694132 | 6911 | { |
4268f798 | 6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6913 | wxBrush_SetStipple(_arg0,*_arg1); |
6914 | ||
4268f798 | 6915 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6916 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6917 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6918 | _resultobj = Py_None; |
6919 | return _resultobj; | |
6920 | } | |
6921 | ||
6922 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6923 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6924 | PyObject * _resultobj; |
6925 | wxBrush * _arg0; | |
6926 | int _arg1; | |
1d99702e | 6927 | PyObject * _argo0 = 0; |
1afc06c2 | 6928 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
6929 | |
6930 | self = self; | |
1afc06c2 | 6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6932 | return NULL; |
1d99702e RD |
6933 | if (_argo0) { |
6934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
6937 | return NULL; | |
6938 | } | |
6939 | } | |
cf694132 | 6940 | { |
4268f798 | 6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6942 | wxBrush_SetStyle(_arg0,_arg1); |
6943 | ||
4268f798 | 6944 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6946 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6947 | _resultobj = Py_None; |
6948 | return _resultobj; | |
6949 | } | |
6950 | ||
6ee2116b RD |
6951 | static void *SwigwxBrushListTowxObject(void *ptr) { |
6952 | wxBrushList *src; | |
6953 | wxObject *dest; | |
6954 | src = (wxBrushList *) ptr; | |
6955 | dest = (wxObject *) src; | |
6956 | return (void *) dest; | |
6957 | } | |
6958 | ||
0569df0f RD |
6959 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6960 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6961 | PyObject * _resultobj; | |
6962 | wxBrushList * _arg0; | |
6963 | wxBrush * _arg1; | |
6964 | PyObject * _argo0 = 0; | |
6965 | PyObject * _argo1 = 0; | |
6966 | char *_kwnames[] = { "self","brush", NULL }; | |
6967 | ||
6968 | self = self; | |
6969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6970 | return NULL; | |
6971 | if (_argo0) { | |
6972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6975 | return NULL; | |
6976 | } | |
6977 | } | |
6978 | if (_argo1) { | |
6979 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6980 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6982 | return NULL; | |
6983 | } | |
6984 | } | |
6985 | { | |
4268f798 | 6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
6987 | wxBrushList_AddBrush(_arg0,_arg1); |
6988 | ||
4268f798 | 6989 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6990 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6991 | } Py_INCREF(Py_None); |
6992 | _resultobj = Py_None; | |
6993 | return _resultobj; | |
6994 | } | |
6995 | ||
6996 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6997 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6998 | PyObject * _resultobj; | |
6999 | wxBrush * _result; | |
7000 | wxBrushList * _arg0; | |
7001 | wxColour * _arg1; | |
7002 | int _arg2; | |
7003 | PyObject * _argo0 = 0; | |
7004 | wxColour temp; | |
7005 | PyObject * _obj1 = 0; | |
7006 | char *_kwnames[] = { "self","colour","style", NULL }; | |
7007 | char _ptemp[128]; | |
7008 | ||
7009 | self = self; | |
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7011 | return NULL; | |
7012 | if (_argo0) { | |
7013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
7019 | { | |
7020 | _arg1 = &temp; | |
7021 | if (! wxColour_helper(_obj1, &_arg1)) | |
7022 | return NULL; | |
7023 | } | |
7024 | { | |
4268f798 | 7025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
7026 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
7027 | ||
4268f798 | 7028 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7029 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
7030 | } if (_result) { |
7031 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
7032 | _resultobj = Py_BuildValue("s",_ptemp); | |
7033 | } else { | |
7034 | Py_INCREF(Py_None); | |
7035 | _resultobj = Py_None; | |
7036 | } | |
7037 | return _resultobj; | |
7038 | } | |
7039 | ||
7040 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
7041 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7042 | PyObject * _resultobj; | |
7043 | wxBrushList * _arg0; | |
7044 | wxBrush * _arg1; | |
7045 | PyObject * _argo0 = 0; | |
7046 | PyObject * _argo1 = 0; | |
7047 | char *_kwnames[] = { "self","brush", NULL }; | |
7048 | ||
7049 | self = self; | |
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
7051 | return NULL; | |
7052 | if (_argo0) { | |
7053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
7059 | if (_argo1) { | |
7060 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7061 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
7062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
7063 | return NULL; | |
7064 | } | |
7065 | } | |
7066 | { | |
4268f798 | 7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0569df0f RD |
7068 | wxBrushList_RemoveBrush(_arg0,_arg1); |
7069 | ||
4268f798 | 7070 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7071 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
7072 | } Py_INCREF(Py_None); |
7073 | _resultobj = Py_None; | |
7074 | return _resultobj; | |
7075 | } | |
7076 | ||
2f4e9287 RD |
7077 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
7078 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7079 | PyObject * _resultobj; | |
7080 | int _result; | |
7081 | wxBrushList * _arg0; | |
7082 | PyObject * _argo0 = 0; | |
7083 | char *_kwnames[] = { "self", NULL }; | |
7084 | ||
7085 | self = self; | |
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
7087 | return NULL; | |
7088 | if (_argo0) { | |
7089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
7095 | { | |
4268f798 | 7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2f4e9287 RD |
7097 | _result = (int )wxBrushList_GetCount(_arg0); |
7098 | ||
4268f798 | 7099 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
7100 | if (PyErr_Occurred()) return NULL; |
7101 | } _resultobj = Py_BuildValue("i",_result); | |
7102 | return _resultobj; | |
7103 | } | |
7104 | ||
9416aa89 RD |
7105 | static void *SwigwxDCTowxObject(void *ptr) { |
7106 | wxDC *src; | |
7107 | wxObject *dest; | |
7108 | src = (wxDC *) ptr; | |
7109 | dest = (wxObject *) src; | |
7110 | return (void *) dest; | |
7111 | } | |
7112 | ||
8ab979d7 | 7113 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 7114 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7115 | PyObject * _resultobj; |
7116 | wxDC * _arg0; | |
1d99702e | 7117 | PyObject * _argo0 = 0; |
1afc06c2 | 7118 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7119 | |
7120 | self = self; | |
1afc06c2 | 7121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 7122 | return NULL; |
1d99702e RD |
7123 | if (_argo0) { |
7124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
7127 | return NULL; | |
7128 | } | |
7129 | } | |
cf694132 | 7130 | { |
4268f798 | 7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7132 | delete_wxDC(_arg0); |
7133 | ||
4268f798 | 7134 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7135 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7136 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7137 | _resultobj = Py_None; |
7138 | return _resultobj; | |
7139 | } | |
7140 | ||
7141 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 7142 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7143 | PyObject * _resultobj; |
7144 | wxDC * _arg0; | |
1d99702e | 7145 | PyObject * _argo0 = 0; |
1afc06c2 | 7146 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7147 | |
7148 | self = self; | |
1afc06c2 | 7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7150 | return NULL; |
1d99702e RD |
7151 | if (_argo0) { |
7152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
7155 | return NULL; | |
7156 | } | |
7157 | } | |
cf694132 | 7158 | { |
4268f798 | 7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7160 | wxDC_BeginDrawing(_arg0); |
7161 | ||
4268f798 | 7162 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7163 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7164 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7165 | _resultobj = Py_None; |
7166 | return _resultobj; | |
7167 | } | |
7168 | ||
efc5f224 | 7169 | #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 | 7170 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7171 | PyObject * _resultobj; |
7172 | bool _result; | |
7173 | wxDC * _arg0; | |
7174 | long _arg1; | |
7175 | long _arg2; | |
7176 | long _arg3; | |
7177 | long _arg4; | |
7178 | wxDC * _arg5; | |
7179 | long _arg6; | |
7180 | long _arg7; | |
efc5f224 RD |
7181 | int _arg8 = (int ) wxCOPY; |
7182 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
7183 | PyObject * _argo0 = 0; |
7184 | PyObject * _argo5 = 0; | |
1afc06c2 | 7185 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
7186 | |
7187 | self = self; | |
1afc06c2 | 7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 7189 | return NULL; |
1d99702e RD |
7190 | if (_argo0) { |
7191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
7194 | return NULL; | |
7195 | } | |
7196 | } | |
1d99702e RD |
7197 | if (_argo5) { |
7198 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7199 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
7200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
7201 | return NULL; | |
7202 | } | |
7203 | } | |
cf694132 | 7204 | { |
4268f798 | 7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
efc5f224 | 7206 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 | 7207 | |
4268f798 | 7208 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7209 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7210 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7211 | return _resultobj; |
7212 | } | |
7213 | ||
7214 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 7215 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7216 | PyObject * _resultobj; |
7217 | wxDC * _arg0; | |
1d99702e | 7218 | PyObject * _argo0 = 0; |
1afc06c2 | 7219 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7220 | |
7221 | self = self; | |
1afc06c2 | 7222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 7223 | return NULL; |
1d99702e RD |
7224 | if (_argo0) { |
7225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
7228 | return NULL; | |
7229 | } | |
7230 | } | |
cf694132 | 7231 | { |
4268f798 | 7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7233 | wxDC_Clear(_arg0); |
7234 | ||
4268f798 | 7235 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7236 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7237 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7238 | _resultobj = Py_None; |
7239 | return _resultobj; | |
7240 | } | |
7241 | ||
7242 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 7243 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7244 | PyObject * _resultobj; |
7245 | wxDC * _arg0; | |
7246 | long _arg1; | |
7247 | long _arg2; | |
1d99702e | 7248 | PyObject * _argo0 = 0; |
1afc06c2 | 7249 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7250 | |
7251 | self = self; | |
1afc06c2 | 7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7253 | return NULL; |
1d99702e RD |
7254 | if (_argo0) { |
7255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
7258 | return NULL; | |
7259 | } | |
7260 | } | |
cf694132 | 7261 | { |
4268f798 | 7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7263 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
7264 | ||
4268f798 | 7265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7267 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7268 | _resultobj = Py_None; |
7269 | return _resultobj; | |
7270 | } | |
7271 | ||
7272 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 7273 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7274 | PyObject * _resultobj; |
7275 | wxDC * _arg0; | |
1d99702e | 7276 | PyObject * _argo0 = 0; |
1afc06c2 | 7277 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7278 | |
7279 | self = self; | |
1afc06c2 | 7280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 7281 | return NULL; |
1d99702e RD |
7282 | if (_argo0) { |
7283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
7286 | return NULL; | |
7287 | } | |
7288 | } | |
cf694132 | 7289 | { |
4268f798 | 7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7291 | wxDC_DestroyClippingRegion(_arg0); |
7292 | ||
4268f798 | 7293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7295 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7296 | _resultobj = Py_None; |
7297 | return _resultobj; | |
7298 | } | |
7299 | ||
7300 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 7301 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7302 | PyObject * _resultobj; |
7303 | long _result; | |
7304 | wxDC * _arg0; | |
7305 | long _arg1; | |
1d99702e | 7306 | PyObject * _argo0 = 0; |
1afc06c2 | 7307 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7308 | |
7309 | self = self; | |
1afc06c2 | 7310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7311 | return NULL; |
1d99702e RD |
7312 | if (_argo0) { |
7313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
7316 | return NULL; | |
7317 | } | |
7318 | } | |
cf694132 | 7319 | { |
4268f798 | 7320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7321 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
7322 | ||
4268f798 | 7323 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7325 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7326 | return _resultobj; |
7327 | } | |
7328 | ||
7329 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 7330 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7331 | PyObject * _resultobj; |
7332 | long _result; | |
7333 | wxDC * _arg0; | |
7334 | long _arg1; | |
1d99702e | 7335 | PyObject * _argo0 = 0; |
1afc06c2 | 7336 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7337 | |
7338 | self = self; | |
1afc06c2 | 7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7340 | return NULL; |
1d99702e RD |
7341 | if (_argo0) { |
7342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
7345 | return NULL; | |
7346 | } | |
7347 | } | |
cf694132 | 7348 | { |
4268f798 | 7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7350 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
7351 | ||
4268f798 | 7352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7354 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7355 | return _resultobj; |
7356 | } | |
7357 | ||
7358 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 7359 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7360 | PyObject * _resultobj; |
7361 | long _result; | |
7362 | wxDC * _arg0; | |
7363 | long _arg1; | |
1d99702e | 7364 | PyObject * _argo0 = 0; |
1afc06c2 | 7365 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7366 | |
7367 | self = self; | |
1afc06c2 | 7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7369 | return NULL; |
1d99702e RD |
7370 | if (_argo0) { |
7371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
7374 | return NULL; | |
7375 | } | |
7376 | } | |
cf694132 | 7377 | { |
4268f798 | 7378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7379 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
7380 | ||
4268f798 | 7381 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7383 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7384 | return _resultobj; |
7385 | } | |
7386 | ||
7387 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 7388 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7389 | PyObject * _resultobj; |
7390 | long _result; | |
7391 | wxDC * _arg0; | |
7392 | long _arg1; | |
1d99702e | 7393 | PyObject * _argo0 = 0; |
1afc06c2 | 7394 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7395 | |
7396 | self = self; | |
1afc06c2 | 7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7398 | return NULL; |
1d99702e RD |
7399 | if (_argo0) { |
7400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
7403 | return NULL; | |
7404 | } | |
7405 | } | |
cf694132 | 7406 | { |
4268f798 | 7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7408 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
7409 | ||
4268f798 | 7410 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7411 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7412 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7413 | return _resultobj; |
7414 | } | |
7415 | ||
7416 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7417 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7418 | PyObject * _resultobj; |
7419 | wxDC * _arg0; | |
7420 | long _arg1; | |
7421 | long _arg2; | |
7422 | long _arg3; | |
7423 | long _arg4; | |
7424 | long _arg5; | |
7425 | long _arg6; | |
1d99702e | 7426 | PyObject * _argo0 = 0; |
1afc06c2 | 7427 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
7428 | |
7429 | self = self; | |
1afc06c2 | 7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7431 | return NULL; |
1d99702e RD |
7432 | if (_argo0) { |
7433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
7436 | return NULL; | |
7437 | } | |
7438 | } | |
cf694132 | 7439 | { |
4268f798 | 7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7441 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
7442 | ||
4268f798 | 7443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7444 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7445 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7446 | _resultobj = Py_None; |
7447 | return _resultobj; | |
7448 | } | |
7449 | ||
bb0054cd | 7450 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7451 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7452 | PyObject * _resultobj; |
7453 | wxDC * _arg0; | |
7454 | long _arg1; | |
7455 | long _arg2; | |
7456 | long _arg3; | |
1d99702e | 7457 | PyObject * _argo0 = 0; |
1afc06c2 | 7458 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
7459 | |
7460 | self = self; | |
1afc06c2 | 7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 7462 | return NULL; |
1d99702e RD |
7463 | if (_argo0) { |
7464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
7467 | return NULL; | |
7468 | } | |
7469 | } | |
7470 | { | |
4268f798 | 7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
7472 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
7473 | ||
4268f798 | 7474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7475 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7476 | } Py_INCREF(Py_None); |
7477 | _resultobj = Py_None; | |
7478 | return _resultobj; | |
7479 | } | |
7480 | ||
8ab979d7 | 7481 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7482 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7483 | PyObject * _resultobj; |
7484 | wxDC * _arg0; | |
7485 | long _arg1; | |
7486 | long _arg2; | |
7487 | long _arg3; | |
7488 | long _arg4; | |
1d99702e | 7489 | PyObject * _argo0 = 0; |
1afc06c2 | 7490 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7491 | |
7492 | self = self; | |
1afc06c2 | 7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7494 | return NULL; |
1d99702e RD |
7495 | if (_argo0) { |
7496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
7499 | return NULL; | |
7500 | } | |
7501 | } | |
cf694132 | 7502 | { |
4268f798 | 7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7504 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
7505 | ||
4268f798 | 7506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7507 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7508 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7509 | _resultobj = Py_None; |
7510 | return _resultobj; | |
7511 | } | |
7512 | ||
7513 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7514 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7515 | PyObject * _resultobj; |
7516 | wxDC * _arg0; | |
7517 | long _arg1; | |
7518 | long _arg2; | |
7519 | long _arg3; | |
7520 | long _arg4; | |
7521 | long _arg5; | |
7522 | long _arg6; | |
1d99702e | 7523 | PyObject * _argo0 = 0; |
1afc06c2 | 7524 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
7525 | |
7526 | self = self; | |
1afc06c2 | 7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7528 | return NULL; |
1d99702e RD |
7529 | if (_argo0) { |
7530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
7533 | return NULL; | |
7534 | } | |
7535 | } | |
cf694132 | 7536 | { |
4268f798 | 7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7538 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
7539 | ||
4268f798 | 7540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7541 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7542 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7543 | _resultobj = Py_None; |
7544 | return _resultobj; | |
7545 | } | |
7546 | ||
7547 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7548 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7549 | PyObject * _resultobj; |
7550 | wxDC * _arg0; | |
7551 | wxIcon * _arg1; | |
7552 | long _arg2; | |
7553 | long _arg3; | |
1d99702e RD |
7554 | PyObject * _argo0 = 0; |
7555 | PyObject * _argo1 = 0; | |
1afc06c2 | 7556 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
7557 | |
7558 | self = self; | |
1afc06c2 | 7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7560 | return NULL; |
1d99702e RD |
7561 | if (_argo0) { |
7562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
7565 | return NULL; | |
7566 | } | |
7567 | } | |
1d99702e RD |
7568 | if (_argo1) { |
7569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
7571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
7572 | return NULL; | |
7573 | } | |
7574 | } | |
cf694132 | 7575 | { |
4268f798 | 7576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7577 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
7578 | ||
4268f798 | 7579 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7580 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7581 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7582 | _resultobj = Py_None; |
7583 | return _resultobj; | |
7584 | } | |
7585 | ||
23bed520 RD |
7586 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7587 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7588 | PyObject * _resultobj; | |
7589 | wxDC * _arg0; | |
7590 | wxString * _arg1; | |
7591 | wxRect * _arg2; | |
7592 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
7593 | int _arg4 = (int ) -1; | |
7594 | PyObject * _argo0 = 0; | |
7595 | PyObject * _obj1 = 0; | |
7596 | wxRect temp; | |
7597 | PyObject * _obj2 = 0; | |
7598 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
7599 | ||
7600 | self = self; | |
7601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
7602 | return NULL; | |
7603 | if (_argo0) { | |
7604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
7607 | return NULL; | |
7608 | } | |
7609 | } | |
7610 | { | |
7611 | #if PYTHON_API_VERSION >= 1009 | |
7612 | char* tmpPtr; int tmpSize; | |
7613 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7614 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7615 | return NULL; | |
7616 | } | |
7617 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7618 | return NULL; | |
7619 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7620 | #else | |
7621 | if (!PyString_Check(_obj1)) { | |
7622 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7623 | return NULL; | |
7624 | } | |
7625 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7626 | #endif | |
7627 | } | |
7628 | { | |
7629 | _arg2 = &temp; | |
7630 | if (! wxRect_helper(_obj2, &_arg2)) | |
7631 | return NULL; | |
7632 | } | |
7633 | { | |
7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7635 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
7636 | ||
7637 | wxPyEndAllowThreads(__tstate); | |
7638 | if (PyErr_Occurred()) return NULL; | |
7639 | } Py_INCREF(Py_None); | |
7640 | _resultobj = Py_None; | |
7641 | { | |
7642 | if (_obj1) | |
7643 | delete _arg1; | |
7644 | } | |
7645 | return _resultobj; | |
7646 | } | |
7647 | ||
7648 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
7649 | wxRect rv; | |
7650 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
7651 | return rv; | |
7652 | } | |
7653 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7654 | PyObject * _resultobj; | |
7655 | wxRect * _result; | |
7656 | wxDC * _arg0; | |
7657 | wxString * _arg1; | |
7658 | wxBitmap * _arg2; | |
7659 | wxRect * _arg3; | |
7660 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
7661 | int _arg5 = (int ) -1; | |
7662 | PyObject * _argo0 = 0; | |
7663 | PyObject * _obj1 = 0; | |
7664 | PyObject * _argo2 = 0; | |
7665 | wxRect temp; | |
7666 | PyObject * _obj3 = 0; | |
7667 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
7668 | char _ptemp[128]; | |
7669 | ||
7670 | self = self; | |
7671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
7672 | return NULL; | |
7673 | if (_argo0) { | |
7674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
7677 | return NULL; | |
7678 | } | |
7679 | } | |
7680 | { | |
7681 | #if PYTHON_API_VERSION >= 1009 | |
7682 | char* tmpPtr; int tmpSize; | |
7683 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7684 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7685 | return NULL; | |
7686 | } | |
7687 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7688 | return NULL; | |
7689 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7690 | #else | |
7691 | if (!PyString_Check(_obj1)) { | |
7692 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7693 | return NULL; | |
7694 | } | |
7695 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7696 | #endif | |
7697 | } | |
7698 | if (_argo2) { | |
7699 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7700 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
7701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
7702 | return NULL; | |
7703 | } | |
7704 | } | |
7705 | { | |
7706 | _arg3 = &temp; | |
7707 | if (! wxRect_helper(_obj3, &_arg3)) | |
7708 | return NULL; | |
7709 | } | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) return NULL; | |
7716 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
7717 | _resultobj = Py_BuildValue("s",_ptemp); | |
7718 | { | |
7719 | if (_obj1) | |
7720 | delete _arg1; | |
7721 | } | |
7722 | return _resultobj; | |
7723 | } | |
7724 | ||
8ab979d7 | 7725 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7726 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7727 | PyObject * _resultobj; |
7728 | wxDC * _arg0; | |
7729 | long _arg1; | |
7730 | long _arg2; | |
7731 | long _arg3; | |
7732 | long _arg4; | |
1d99702e | 7733 | PyObject * _argo0 = 0; |
1afc06c2 | 7734 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
7735 | |
7736 | self = self; | |
1afc06c2 | 7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7738 | return NULL; |
1d99702e RD |
7739 | if (_argo0) { |
7740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
7743 | return NULL; | |
7744 | } | |
7745 | } | |
cf694132 | 7746 | { |
4268f798 | 7747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7748 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
7749 | ||
4268f798 | 7750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7751 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7752 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7753 | _resultobj = Py_None; |
7754 | return _resultobj; | |
7755 | } | |
7756 | ||
7757 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7758 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7759 | PyObject * _resultobj; |
7760 | wxDC * _arg0; | |
7761 | int _arg1; | |
7762 | wxPoint * _arg2; | |
1d99702e RD |
7763 | long _arg3 = (long ) 0; |
7764 | long _arg4 = (long ) 0; | |
7765 | PyObject * _argo0 = 0; | |
e0672e2f | 7766 | int NPOINTS; |
8ab979d7 | 7767 | PyObject * _obj2 = 0; |
eec92d76 | 7768 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
7769 | |
7770 | self = self; | |
1afc06c2 | 7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 7772 | return NULL; |
1d99702e RD |
7773 | if (_argo0) { |
7774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
7777 | return NULL; | |
7778 | } | |
7779 | } | |
7780 | if (_obj2) | |
7781 | { | |
e0672e2f RD |
7782 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7783 | if (_arg2 == NULL) { | |
7784 | return NULL; | |
7785 | } | |
8ab979d7 RD |
7786 | } |
7787 | { | |
e0672e2f | 7788 | _arg1 = NPOINTS; |
8ab979d7 | 7789 | } |
cf694132 | 7790 | { |
4268f798 | 7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7792 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
7793 | ||
4268f798 | 7794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7795 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7796 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7797 | _resultobj = Py_None; |
7798 | { | |
7799 | delete [] _arg2; | |
7800 | } | |
7801 | return _resultobj; | |
7802 | } | |
7803 | ||
7804 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 7805 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7806 | PyObject * _resultobj; |
7807 | wxDC * _arg0; | |
7808 | int _arg1; | |
7809 | wxPoint * _arg2; | |
1d99702e RD |
7810 | long _arg3 = (long ) 0; |
7811 | long _arg4 = (long ) 0; | |
7812 | int _arg5 = (int ) wxODDEVEN_RULE; | |
7813 | PyObject * _argo0 = 0; | |
e0672e2f | 7814 | int NPOINTS; |
8ab979d7 | 7815 | PyObject * _obj2 = 0; |
eec92d76 | 7816 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
7817 | |
7818 | self = self; | |
1afc06c2 | 7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7820 | return NULL; |
1d99702e RD |
7821 | if (_argo0) { |
7822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
7825 | return NULL; | |
7826 | } | |
7827 | } | |
7828 | if (_obj2) | |
7829 | { | |
e0672e2f RD |
7830 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7831 | if (_arg2 == NULL) { | |
7832 | return NULL; | |
7833 | } | |
8ab979d7 RD |
7834 | } |
7835 | { | |
e0672e2f | 7836 | _arg1 = NPOINTS; |
8ab979d7 | 7837 | } |
cf694132 | 7838 | { |
4268f798 | 7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7840 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7841 | ||
4268f798 | 7842 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7843 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7844 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7845 | _resultobj = Py_None; |
7846 | { | |
7847 | delete [] _arg2; | |
7848 | } | |
7849 | return _resultobj; | |
7850 | } | |
7851 | ||
7852 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 7853 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7854 | PyObject * _resultobj; |
7855 | wxDC * _arg0; | |
7856 | long _arg1; | |
7857 | long _arg2; | |
1d99702e | 7858 | PyObject * _argo0 = 0; |
1afc06c2 | 7859 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7860 | |
7861 | self = self; | |
1afc06c2 | 7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7863 | return NULL; |
1d99702e RD |
7864 | if (_argo0) { |
7865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
7868 | return NULL; | |
7869 | } | |
7870 | } | |
cf694132 | 7871 | { |
4268f798 | 7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7873 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
7874 | ||
4268f798 | 7875 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7877 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7878 | _resultobj = Py_None; |
7879 | return _resultobj; | |
7880 | } | |
7881 | ||
7882 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7883 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7884 | PyObject * _resultobj; |
7885 | wxDC * _arg0; | |
7886 | long _arg1; | |
7887 | long _arg2; | |
7888 | long _arg3; | |
7889 | long _arg4; | |
1d99702e | 7890 | PyObject * _argo0 = 0; |
1afc06c2 | 7891 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7892 | |
7893 | self = self; | |
1afc06c2 | 7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7895 | return NULL; |
1d99702e RD |
7896 | if (_argo0) { |
7897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
7900 | return NULL; | |
7901 | } | |
7902 | } | |
cf694132 | 7903 | { |
4268f798 | 7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7905 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
7906 | ||
4268f798 | 7907 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7908 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7909 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7910 | _resultobj = Py_None; |
7911 | return _resultobj; | |
7912 | } | |
7913 | ||
6999b0d8 RD |
7914 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7915 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject * _resultobj; | |
7917 | wxDC * _arg0; | |
7918 | wxString * _arg1; | |
7919 | wxCoord _arg2; | |
7920 | wxCoord _arg3; | |
7921 | double _arg4; | |
7922 | PyObject * _argo0 = 0; | |
7923 | PyObject * _obj1 = 0; | |
7924 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7925 | ||
7926 | self = self; | |
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7928 | return NULL; | |
7929 | if (_argo0) { | |
7930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7933 | return NULL; | |
7934 | } | |
7935 | } | |
7936 | { | |
185d7c3e RD |
7937 | #if PYTHON_API_VERSION >= 1009 |
7938 | char* tmpPtr; int tmpSize; | |
7939 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7940 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7941 | return NULL; |
7942 | } | |
7943 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7944 | return NULL; | |
7945 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7946 | #else | |
6999b0d8 RD |
7947 | if (!PyString_Check(_obj1)) { |
7948 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7949 | return NULL; | |
7950 | } | |
185d7c3e RD |
7951 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7952 | #endif | |
6999b0d8 RD |
7953 | } |
7954 | { | |
4268f798 | 7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6999b0d8 RD |
7956 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
7957 | ||
4268f798 | 7958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7959 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
7960 | } Py_INCREF(Py_None); |
7961 | _resultobj = Py_None; | |
7962 | { | |
7963 | if (_obj1) | |
7964 | delete _arg1; | |
7965 | } | |
7966 | return _resultobj; | |
7967 | } | |
7968 | ||
8ab979d7 | 7969 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 7970 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7971 | PyObject * _resultobj; |
7972 | wxDC * _arg0; | |
7973 | long _arg1; | |
7974 | long _arg2; | |
7975 | long _arg3; | |
7976 | long _arg4; | |
1d99702e RD |
7977 | long _arg5 = (long ) 20; |
7978 | PyObject * _argo0 = 0; | |
1afc06c2 | 7979 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
7980 | |
7981 | self = self; | |
1afc06c2 | 7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7983 | return NULL; |
1d99702e RD |
7984 | if (_argo0) { |
7985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
7988 | return NULL; | |
7989 | } | |
7990 | } | |
cf694132 | 7991 | { |
4268f798 | 7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7993 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
7994 | ||
4268f798 | 7995 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7996 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7997 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7998 | _resultobj = Py_None; |
7999 | return _resultobj; | |
8000 | } | |
8001 | ||
8002 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 8003 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8004 | PyObject * _resultobj; |
8005 | wxDC * _arg0; | |
8006 | int _arg1; | |
8007 | wxPoint * _arg2; | |
1d99702e | 8008 | PyObject * _argo0 = 0; |
e0672e2f | 8009 | int NPOINTS; |
8ab979d7 | 8010 | PyObject * _obj2 = 0; |
eec92d76 | 8011 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
8012 | |
8013 | self = self; | |
1afc06c2 | 8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 8015 | return NULL; |
1d99702e RD |
8016 | if (_argo0) { |
8017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
8020 | return NULL; | |
8021 | } | |
8022 | } | |
8023 | if (_obj2) | |
8024 | { | |
e0672e2f RD |
8025 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
8026 | if (_arg2 == NULL) { | |
8027 | return NULL; | |
8028 | } | |
8ab979d7 RD |
8029 | } |
8030 | { | |
e0672e2f | 8031 | _arg1 = NPOINTS; |
8ab979d7 | 8032 | } |
cf694132 | 8033 | { |
4268f798 | 8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8035 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
8036 | ||
4268f798 | 8037 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8038 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8039 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8040 | _resultobj = Py_None; |
8041 | { | |
8042 | delete [] _arg2; | |
8043 | } | |
8044 | return _resultobj; | |
8045 | } | |
8046 | ||
8047 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 8048 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8049 | PyObject * _resultobj; |
8050 | wxDC * _arg0; | |
8051 | wxString * _arg1; | |
8052 | long _arg2; | |
8053 | long _arg3; | |
1d99702e | 8054 | PyObject * _argo0 = 0; |
8ab979d7 | 8055 | PyObject * _obj1 = 0; |
1afc06c2 | 8056 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
8057 | |
8058 | self = self; | |
1afc06c2 | 8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 8060 | return NULL; |
1d99702e RD |
8061 | if (_argo0) { |
8062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
8065 | return NULL; | |
8066 | } | |
8067 | } | |
8068 | { | |
185d7c3e RD |
8069 | #if PYTHON_API_VERSION >= 1009 |
8070 | char* tmpPtr; int tmpSize; | |
8071 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8072 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8073 | return NULL; |
8074 | } | |
8075 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8076 | return NULL; | |
8077 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8078 | #else | |
8ab979d7 RD |
8079 | if (!PyString_Check(_obj1)) { |
8080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8081 | return NULL; | |
8082 | } | |
185d7c3e RD |
8083 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8084 | #endif | |
8ab979d7 | 8085 | } |
cf694132 | 8086 | { |
4268f798 | 8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8088 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
8089 | ||
4268f798 | 8090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8092 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8093 | _resultobj = Py_None; |
8094 | { | |
8095 | if (_obj1) | |
8096 | delete _arg1; | |
8097 | } | |
8098 | return _resultobj; | |
8099 | } | |
8100 | ||
8101 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 8102 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8103 | PyObject * _resultobj; |
8104 | wxDC * _arg0; | |
1d99702e | 8105 | PyObject * _argo0 = 0; |
1afc06c2 | 8106 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8107 | |
8108 | self = self; | |
1afc06c2 | 8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 8110 | return NULL; |
1d99702e RD |
8111 | if (_argo0) { |
8112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
8115 | return NULL; | |
8116 | } | |
8117 | } | |
cf694132 | 8118 | { |
4268f798 | 8119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8120 | wxDC_EndDoc(_arg0); |
8121 | ||
4268f798 | 8122 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8123 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8124 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8125 | _resultobj = Py_None; |
8126 | return _resultobj; | |
8127 | } | |
8128 | ||
8129 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 8130 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8131 | PyObject * _resultobj; |
8132 | wxDC * _arg0; | |
1d99702e | 8133 | PyObject * _argo0 = 0; |
1afc06c2 | 8134 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8135 | |
8136 | self = self; | |
1afc06c2 | 8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 8138 | return NULL; |
1d99702e RD |
8139 | if (_argo0) { |
8140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
8143 | return NULL; | |
8144 | } | |
8145 | } | |
cf694132 | 8146 | { |
4268f798 | 8147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8148 | wxDC_EndDrawing(_arg0); |
8149 | ||
4268f798 | 8150 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8151 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8152 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8153 | _resultobj = Py_None; |
8154 | return _resultobj; | |
8155 | } | |
8156 | ||
8157 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 8158 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8159 | PyObject * _resultobj; |
8160 | wxDC * _arg0; | |
1d99702e | 8161 | PyObject * _argo0 = 0; |
1afc06c2 | 8162 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8163 | |
8164 | self = self; | |
1afc06c2 | 8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 8166 | return NULL; |
1d99702e RD |
8167 | if (_argo0) { |
8168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
8171 | return NULL; | |
8172 | } | |
8173 | } | |
cf694132 | 8174 | { |
4268f798 | 8175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8176 | wxDC_EndPage(_arg0); |
8177 | ||
4268f798 | 8178 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8180 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8181 | _resultobj = Py_None; |
8182 | return _resultobj; | |
8183 | } | |
8184 | ||
be4d9c1f | 8185 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8186 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
8187 | PyObject * _resultobj; |
8188 | wxDC * _arg0; | |
8189 | long _arg1; | |
8190 | long _arg2; | |
8191 | wxColour * _arg3; | |
1d99702e RD |
8192 | int _arg4 = (int ) wxFLOOD_SURFACE; |
8193 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
8194 | wxColour temp; |
8195 | PyObject * _obj3 = 0; | |
1afc06c2 | 8196 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
8197 | |
8198 | self = self; | |
f6bcfd97 | 8199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 8200 | return NULL; |
1d99702e RD |
8201 | if (_argo0) { |
8202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
8204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
8205 | return NULL; | |
8206 | } | |
8207 | } | |
f6bcfd97 BP |
8208 | { |
8209 | _arg3 = &temp; | |
8210 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 8211 | return NULL; |
f6bcfd97 | 8212 | } |
cf694132 | 8213 | { |
4268f798 | 8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8215 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
8216 | ||
4268f798 | 8217 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8218 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8219 | } Py_INCREF(Py_None); |
be4d9c1f RD |
8220 | _resultobj = Py_None; |
8221 | return _resultobj; | |
8222 | } | |
8223 | ||
8ab979d7 | 8224 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 8225 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8226 | PyObject * _resultobj; |
8227 | wxBrush * _result; | |
8228 | wxDC * _arg0; | |
1d99702e | 8229 | PyObject * _argo0 = 0; |
1afc06c2 | 8230 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8231 | char _ptemp[128]; |
8232 | ||
8233 | self = self; | |
1afc06c2 | 8234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 8235 | return NULL; |
1d99702e RD |
8236 | if (_argo0) { |
8237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
8240 | return NULL; | |
8241 | } | |
8242 | } | |
cf694132 | 8243 | { |
4268f798 | 8244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8245 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
cf694132 | 8246 | |
4268f798 | 8247 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8248 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8249 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8250 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8251 | return _resultobj; |
8252 | } | |
8253 | ||
8254 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 8255 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8256 | PyObject * _resultobj; |
8257 | wxBrush * _result; | |
8258 | wxDC * _arg0; | |
1d99702e | 8259 | PyObject * _argo0 = 0; |
1afc06c2 | 8260 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8261 | char _ptemp[128]; |
8262 | ||
8263 | self = self; | |
1afc06c2 | 8264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 8265 | return NULL; |
1d99702e RD |
8266 | if (_argo0) { |
8267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
8270 | return NULL; | |
8271 | } | |
8272 | } | |
cf694132 | 8273 | { |
4268f798 | 8274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8275 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
cf694132 | 8276 | |
4268f798 | 8277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8278 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8279 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8280 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8281 | return _resultobj; |
8282 | } | |
8283 | ||
8284 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 8285 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8286 | PyObject * _resultobj; |
8287 | long _result; | |
8288 | wxDC * _arg0; | |
1d99702e | 8289 | PyObject * _argo0 = 0; |
1afc06c2 | 8290 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8291 | |
8292 | self = self; | |
1afc06c2 | 8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 8294 | return NULL; |
1d99702e RD |
8295 | if (_argo0) { |
8296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
8299 | return NULL; | |
8300 | } | |
8301 | } | |
cf694132 | 8302 | { |
4268f798 | 8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8304 | _result = (long )wxDC_GetCharHeight(_arg0); |
8305 | ||
4268f798 | 8306 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8307 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8308 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8309 | return _resultobj; |
8310 | } | |
8311 | ||
8312 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 8313 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8314 | PyObject * _resultobj; |
8315 | long _result; | |
8316 | wxDC * _arg0; | |
1d99702e | 8317 | PyObject * _argo0 = 0; |
1afc06c2 | 8318 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8319 | |
8320 | self = self; | |
1afc06c2 | 8321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 8322 | return NULL; |
1d99702e RD |
8323 | if (_argo0) { |
8324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
8327 | return NULL; | |
8328 | } | |
8329 | } | |
cf694132 | 8330 | { |
4268f798 | 8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8332 | _result = (long )wxDC_GetCharWidth(_arg0); |
8333 | ||
4268f798 | 8334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8335 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8336 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8337 | return _resultobj; |
8338 | } | |
8339 | ||
8340 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8341 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8342 | PyObject * _resultobj; |
8343 | wxDC * _arg0; | |
8344 | long * _arg1; | |
8345 | long temp; | |
8346 | long * _arg2; | |
8347 | long temp0; | |
8348 | long * _arg3; | |
8349 | long temp1; | |
8350 | long * _arg4; | |
8351 | long temp2; | |
1d99702e | 8352 | PyObject * _argo0 = 0; |
1afc06c2 | 8353 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8354 | |
8355 | self = self; | |
8356 | { | |
8357 | _arg1 = &temp; | |
8358 | } | |
8359 | { | |
8360 | _arg2 = &temp0; | |
8361 | } | |
8362 | { | |
8363 | _arg3 = &temp1; | |
8364 | } | |
8365 | { | |
8366 | _arg4 = &temp2; | |
8367 | } | |
1afc06c2 | 8368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 8369 | return NULL; |
1d99702e RD |
8370 | if (_argo0) { |
8371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
8374 | return NULL; | |
8375 | } | |
8376 | } | |
cf694132 | 8377 | { |
4268f798 | 8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8379 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
8380 | ||
4268f798 | 8381 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8383 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8384 | _resultobj = Py_None; |
8385 | { | |
8386 | PyObject *o; | |
8387 | o = PyInt_FromLong((long) (*_arg1)); | |
8388 | _resultobj = t_output_helper(_resultobj, o); | |
8389 | } | |
8390 | { | |
8391 | PyObject *o; | |
8392 | o = PyInt_FromLong((long) (*_arg2)); | |
8393 | _resultobj = t_output_helper(_resultobj, o); | |
8394 | } | |
8395 | { | |
8396 | PyObject *o; | |
8397 | o = PyInt_FromLong((long) (*_arg3)); | |
8398 | _resultobj = t_output_helper(_resultobj, o); | |
8399 | } | |
8400 | { | |
8401 | PyObject *o; | |
8402 | o = PyInt_FromLong((long) (*_arg4)); | |
8403 | _resultobj = t_output_helper(_resultobj, o); | |
8404 | } | |
8405 | return _resultobj; | |
8406 | } | |
8407 | ||
8408 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 8409 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8410 | PyObject * _resultobj; |
8411 | wxFont * _result; | |
8412 | wxDC * _arg0; | |
1d99702e | 8413 | PyObject * _argo0 = 0; |
1afc06c2 | 8414 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8415 | char _ptemp[128]; |
8416 | ||
8417 | self = self; | |
1afc06c2 | 8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 8419 | return NULL; |
1d99702e RD |
8420 | if (_argo0) { |
8421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
8424 | return NULL; | |
8425 | } | |
8426 | } | |
cf694132 | 8427 | { |
4268f798 | 8428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8429 | _result = new wxFont (wxDC_GetFont(_arg0)); |
cf694132 | 8430 | |
4268f798 | 8431 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8432 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8433 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8434 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8435 | return _resultobj; |
8436 | } | |
8437 | ||
8438 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 8439 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8440 | PyObject * _resultobj; |
8441 | int _result; | |
8442 | wxDC * _arg0; | |
1d99702e | 8443 | PyObject * _argo0 = 0; |
1afc06c2 | 8444 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8445 | |
8446 | self = self; | |
1afc06c2 | 8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 8448 | return NULL; |
1d99702e RD |
8449 | if (_argo0) { |
8450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
8453 | return NULL; | |
8454 | } | |
8455 | } | |
cf694132 | 8456 | { |
4268f798 | 8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8458 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
8459 | ||
4268f798 | 8460 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8461 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8462 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8463 | return _resultobj; |
8464 | } | |
8465 | ||
eec92d76 RD |
8466 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
8467 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8468 | PyObject * _resultobj; | |
8469 | wxDC * _arg0; | |
8470 | double * _arg1; | |
8471 | double temp; | |
8472 | double * _arg2; | |
8473 | double temp0; | |
8474 | PyObject * _argo0 = 0; | |
8475 | char *_kwnames[] = { "self", NULL }; | |
8476 | ||
8477 | self = self; | |
8478 | { | |
8479 | _arg1 = &temp; | |
8480 | } | |
8481 | { | |
8482 | _arg2 = &temp0; | |
8483 | } | |
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
8485 | return NULL; | |
8486 | if (_argo0) { | |
8487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
8490 | return NULL; | |
8491 | } | |
8492 | } | |
8493 | { | |
4268f798 | 8494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
8495 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
8496 | ||
4268f798 | 8497 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8498 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8499 | } Py_INCREF(Py_None); |
8500 | _resultobj = Py_None; | |
8501 | { | |
8502 | PyObject *o; | |
8503 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8504 | _resultobj = t_output_helper(_resultobj, o); | |
8505 | } | |
8506 | { | |
8507 | PyObject *o; | |
8508 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8509 | _resultobj = t_output_helper(_resultobj, o); | |
8510 | } | |
8511 | return _resultobj; | |
8512 | } | |
8513 | ||
8ab979d7 | 8514 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 8515 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8516 | PyObject * _resultobj; |
8517 | int _result; | |
8518 | wxDC * _arg0; | |
1d99702e | 8519 | PyObject * _argo0 = 0; |
1afc06c2 | 8520 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8521 | |
8522 | self = self; | |
1afc06c2 | 8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 8524 | return NULL; |
1d99702e RD |
8525 | if (_argo0) { |
8526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
8529 | return NULL; | |
8530 | } | |
8531 | } | |
cf694132 | 8532 | { |
4268f798 | 8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8534 | _result = (int )wxDC_GetMapMode(_arg0); |
8535 | ||
4268f798 | 8536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8538 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8539 | return _resultobj; |
8540 | } | |
8541 | ||
8542 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 8543 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8544 | PyObject * _resultobj; |
8545 | bool _result; | |
8546 | wxDC * _arg0; | |
1d99702e | 8547 | PyObject * _argo0 = 0; |
1afc06c2 | 8548 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8549 | |
8550 | self = self; | |
1afc06c2 | 8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 8552 | return NULL; |
1d99702e RD |
8553 | if (_argo0) { |
8554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
8557 | return NULL; | |
8558 | } | |
8559 | } | |
cf694132 | 8560 | { |
4268f798 | 8561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8562 | _result = (bool )wxDC_GetOptimization(_arg0); |
8563 | ||
4268f798 | 8564 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8565 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8566 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8567 | return _resultobj; |
8568 | } | |
8569 | ||
8570 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 8571 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8572 | PyObject * _resultobj; |
8573 | wxPen * _result; | |
8574 | wxDC * _arg0; | |
1d99702e | 8575 | PyObject * _argo0 = 0; |
1afc06c2 | 8576 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8577 | char _ptemp[128]; |
8578 | ||
8579 | self = self; | |
1afc06c2 | 8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 8581 | return NULL; |
1d99702e RD |
8582 | if (_argo0) { |
8583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
8586 | return NULL; | |
8587 | } | |
8588 | } | |
cf694132 | 8589 | { |
4268f798 | 8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c5943253 | 8591 | _result = new wxPen (wxDC_GetPen(_arg0)); |
cf694132 | 8592 | |
4268f798 | 8593 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8594 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8595 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
8596 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8597 | return _resultobj; |
8598 | } | |
8599 | ||
8600 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
8601 | wxColour* wc = new wxColour(); | |
8602 | self->GetPixel(x, y, wc); | |
8603 | return wc; | |
8604 | } | |
1afc06c2 | 8605 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8606 | PyObject * _resultobj; |
8607 | wxColour * _result; | |
8608 | wxDC * _arg0; | |
8609 | long _arg1; | |
8610 | long _arg2; | |
1d99702e | 8611 | PyObject * _argo0 = 0; |
1afc06c2 | 8612 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
8613 | char _ptemp[128]; |
8614 | ||
8615 | self = self; | |
1afc06c2 | 8616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8617 | return NULL; |
1d99702e RD |
8618 | if (_argo0) { |
8619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
8622 | return NULL; | |
8623 | } | |
8624 | } | |
cf694132 | 8625 | { |
4268f798 | 8626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8627 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
8628 | ||
4268f798 | 8629 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8630 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8631 | } if (_result) { |
8632 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
8633 | _resultobj = Py_BuildValue("s",_ptemp); | |
8634 | } else { | |
8635 | Py_INCREF(Py_None); | |
8636 | _resultobj = Py_None; | |
8637 | } | |
8ab979d7 RD |
8638 | return _resultobj; |
8639 | } | |
8640 | ||
bb0054cd | 8641 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 8642 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8643 | PyObject * _resultobj; |
8644 | wxDC * _arg0; | |
8645 | int * _arg1; | |
8646 | int temp; | |
8647 | int * _arg2; | |
8648 | int temp0; | |
1d99702e | 8649 | PyObject * _argo0 = 0; |
1afc06c2 | 8650 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8651 | |
8652 | self = self; | |
8653 | { | |
8654 | _arg1 = &temp; | |
8655 | } | |
8656 | { | |
8657 | _arg2 = &temp0; | |
8658 | } | |
1afc06c2 | 8659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 8660 | return NULL; |
1d99702e RD |
8661 | if (_argo0) { |
8662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 8664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
8665 | return NULL; |
8666 | } | |
8667 | } | |
cf694132 | 8668 | { |
4268f798 | 8669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd | 8670 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 8671 | |
4268f798 | 8672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8674 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8675 | _resultobj = Py_None; |
8676 | { | |
8677 | PyObject *o; | |
8678 | o = PyInt_FromLong((long) (*_arg1)); | |
8679 | _resultobj = t_output_helper(_resultobj, o); | |
8680 | } | |
8681 | { | |
8682 | PyObject *o; | |
8683 | o = PyInt_FromLong((long) (*_arg2)); | |
8684 | _resultobj = t_output_helper(_resultobj, o); | |
8685 | } | |
8686 | return _resultobj; | |
8687 | } | |
8688 | ||
bb0054cd | 8689 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 8690 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8691 | PyObject * _resultobj; |
8692 | wxSize * _result; | |
8693 | wxDC * _arg0; | |
1d99702e | 8694 | PyObject * _argo0 = 0; |
1afc06c2 | 8695 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
8696 | char _ptemp[128]; |
8697 | ||
8698 | self = self; | |
1afc06c2 | 8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 8700 | return NULL; |
1d99702e RD |
8701 | if (_argo0) { |
8702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
8704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
8705 | return NULL; | |
8706 | } | |
8707 | } | |
8708 | { | |
4268f798 | 8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
8710 | _result = new wxSize (wxDC_GetSize(_arg0)); |
8711 | ||
4268f798 | 8712 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8713 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8714 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8715 | _resultobj = Py_BuildValue("s",_ptemp); | |
8716 | return _resultobj; | |
8717 | } | |
8718 | ||
eec92d76 RD |
8719 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
8720 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8721 | PyObject * _resultobj; | |
8722 | wxSize * _result; | |
8723 | wxDC * _arg0; | |
8724 | PyObject * _argo0 = 0; | |
8725 | char *_kwnames[] = { "self", NULL }; | |
8726 | char _ptemp[128]; | |
8727 | ||
8728 | self = self; | |
8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
8730 | return NULL; | |
8731 | if (_argo0) { | |
8732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
8735 | return NULL; | |
8736 | } | |
8737 | } | |
8738 | { | |
4268f798 | 8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
8740 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
8741 | ||
4268f798 | 8742 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8743 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8744 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8745 | _resultobj = Py_BuildValue("s",_ptemp); | |
8746 | return _resultobj; | |
8747 | } | |
8748 | ||
8ab979d7 | 8749 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 8750 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8751 | PyObject * _resultobj; |
8752 | wxColour * _result; | |
8753 | wxDC * _arg0; | |
1d99702e | 8754 | PyObject * _argo0 = 0; |
1afc06c2 | 8755 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8756 | char _ptemp[128]; |
8757 | ||
8758 | self = self; | |
1afc06c2 | 8759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 8760 | return NULL; |
1d99702e RD |
8761 | if (_argo0) { |
8762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
8765 | return NULL; | |
8766 | } | |
8767 | } | |
cf694132 | 8768 | { |
4268f798 | 8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 8770 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 | 8771 | |
4268f798 | 8772 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8773 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8774 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8775 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8776 | return _resultobj; |
8777 | } | |
8778 | ||
af309447 | 8779 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 8780 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8781 | PyObject * _resultobj; |
8782 | wxDC * _arg0; | |
8783 | wxString * _arg1; | |
8784 | long * _arg2; | |
8785 | long temp; | |
8786 | long * _arg3; | |
8787 | long temp0; | |
1d99702e | 8788 | PyObject * _argo0 = 0; |
af309447 | 8789 | PyObject * _obj1 = 0; |
1afc06c2 | 8790 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
8791 | |
8792 | self = self; | |
8793 | { | |
8794 | _arg2 = &temp; | |
8795 | } | |
8796 | { | |
8797 | _arg3 = &temp0; | |
8798 | } | |
1afc06c2 | 8799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 8800 | return NULL; |
1d99702e RD |
8801 | if (_argo0) { |
8802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
8804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
8805 | return NULL; | |
8806 | } | |
8807 | } | |
8808 | { | |
185d7c3e RD |
8809 | #if PYTHON_API_VERSION >= 1009 |
8810 | char* tmpPtr; int tmpSize; | |
8811 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8812 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8813 | return NULL; |
8814 | } | |
8815 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8816 | return NULL; | |
8817 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8818 | #else | |
af309447 RD |
8819 | if (!PyString_Check(_obj1)) { |
8820 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8821 | return NULL; | |
8822 | } | |
185d7c3e RD |
8823 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8824 | #endif | |
af309447 | 8825 | } |
cf694132 | 8826 | { |
4268f798 | 8827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8828 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
8829 | ||
4268f798 | 8830 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8831 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8832 | } Py_INCREF(Py_None); |
af309447 RD |
8833 | _resultobj = Py_None; |
8834 | { | |
8835 | PyObject *o; | |
8836 | o = PyInt_FromLong((long) (*_arg2)); | |
8837 | _resultobj = t_output_helper(_resultobj, o); | |
8838 | } | |
8839 | { | |
8840 | PyObject *o; | |
8841 | o = PyInt_FromLong((long) (*_arg3)); | |
8842 | _resultobj = t_output_helper(_resultobj, o); | |
8843 | } | |
8844 | { | |
8845 | if (_obj1) | |
8846 | delete _arg1; | |
8847 | } | |
8848 | return _resultobj; | |
8849 | } | |
8850 | ||
8851 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 8852 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8853 | PyObject * _resultobj; |
8854 | wxDC * _arg0; | |
8855 | wxString * _arg1; | |
8856 | long * _arg2; | |
8857 | long temp; | |
8858 | long * _arg3; | |
8859 | long temp0; | |
8860 | long * _arg4; | |
8861 | long temp1; | |
8862 | long * _arg5; | |
8863 | long temp2; | |
1d99702e RD |
8864 | wxFont * _arg6 = (wxFont *) NULL; |
8865 | PyObject * _argo0 = 0; | |
8ab979d7 | 8866 | PyObject * _obj1 = 0; |
1d99702e | 8867 | PyObject * _argo6 = 0; |
1afc06c2 | 8868 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
8869 | |
8870 | self = self; | |
8871 | { | |
8872 | _arg2 = &temp; | |
8873 | } | |
8874 | { | |
8875 | _arg3 = &temp0; | |
8876 | } | |
8877 | { | |
8878 | _arg4 = &temp1; | |
8879 | } | |
8880 | { | |
8881 | _arg5 = &temp2; | |
8882 | } | |
1afc06c2 | 8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 8884 | return NULL; |
1d99702e RD |
8885 | if (_argo0) { |
8886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 8888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
8889 | return NULL; |
8890 | } | |
8891 | } | |
8892 | { | |
185d7c3e RD |
8893 | #if PYTHON_API_VERSION >= 1009 |
8894 | char* tmpPtr; int tmpSize; | |
8895 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8896 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8897 | return NULL; |
8898 | } | |
8899 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8900 | return NULL; | |
8901 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8902 | #else | |
8ab979d7 RD |
8903 | if (!PyString_Check(_obj1)) { |
8904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8905 | return NULL; | |
8906 | } | |
185d7c3e RD |
8907 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8908 | #endif | |
8ab979d7 | 8909 | } |
1d99702e RD |
8910 | if (_argo6) { |
8911 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8912 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
8913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
8914 | return NULL; | |
8915 | } | |
8916 | } | |
cf694132 | 8917 | { |
4268f798 | 8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8919 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
8920 | ||
4268f798 | 8921 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8923 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8924 | _resultobj = Py_None; |
8925 | { | |
8926 | PyObject *o; | |
8927 | o = PyInt_FromLong((long) (*_arg2)); | |
8928 | _resultobj = t_output_helper(_resultobj, o); | |
8929 | } | |
8930 | { | |
8931 | PyObject *o; | |
8932 | o = PyInt_FromLong((long) (*_arg3)); | |
8933 | _resultobj = t_output_helper(_resultobj, o); | |
8934 | } | |
8935 | { | |
8936 | PyObject *o; | |
8937 | o = PyInt_FromLong((long) (*_arg4)); | |
8938 | _resultobj = t_output_helper(_resultobj, o); | |
8939 | } | |
8940 | { | |
8941 | PyObject *o; | |
8942 | o = PyInt_FromLong((long) (*_arg5)); | |
8943 | _resultobj = t_output_helper(_resultobj, o); | |
8944 | } | |
8945 | { | |
8946 | if (_obj1) | |
8947 | delete _arg1; | |
8948 | } | |
8949 | return _resultobj; | |
8950 | } | |
8951 | ||
8952 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 8953 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8954 | PyObject * _resultobj; |
8955 | wxColour * _result; | |
8956 | wxDC * _arg0; | |
1d99702e | 8957 | PyObject * _argo0 = 0; |
1afc06c2 | 8958 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8959 | char _ptemp[128]; |
8960 | ||
8961 | self = self; | |
1afc06c2 | 8962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 8963 | return NULL; |
1d99702e RD |
8964 | if (_argo0) { |
8965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
8968 | return NULL; | |
8969 | } | |
8970 | } | |
cf694132 | 8971 | { |
4268f798 | 8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f | 8973 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 | 8974 | |
4268f798 | 8975 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8976 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8977 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8978 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8979 | return _resultobj; |
8980 | } | |
8981 | ||
eec92d76 RD |
8982 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
8983 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8984 | PyObject * _resultobj; | |
8985 | wxDC * _arg0; | |
8986 | double * _arg1; | |
8987 | double temp; | |
8988 | double * _arg2; | |
8989 | double temp0; | |
8990 | PyObject * _argo0 = 0; | |
8991 | char *_kwnames[] = { "self", NULL }; | |
8992 | ||
8993 | self = self; | |
8994 | { | |
8995 | _arg1 = &temp; | |
8996 | } | |
8997 | { | |
8998 | _arg2 = &temp0; | |
8999 | } | |
9000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
9001 | return NULL; | |
9002 | if (_argo0) { | |
9003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
9006 | return NULL; | |
9007 | } | |
9008 | } | |
9009 | { | |
4268f798 | 9010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9011 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
9012 | ||
4268f798 | 9013 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9014 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9015 | } Py_INCREF(Py_None); |
9016 | _resultobj = Py_None; | |
9017 | { | |
9018 | PyObject *o; | |
9019 | o = PyFloat_FromDouble((double) (*_arg1)); | |
9020 | _resultobj = t_output_helper(_resultobj, o); | |
9021 | } | |
9022 | { | |
9023 | PyObject *o; | |
9024 | o = PyFloat_FromDouble((double) (*_arg2)); | |
9025 | _resultobj = t_output_helper(_resultobj, o); | |
9026 | } | |
9027 | return _resultobj; | |
9028 | } | |
9029 | ||
8ab979d7 | 9030 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 9031 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9032 | PyObject * _resultobj; |
9033 | long _result; | |
9034 | wxDC * _arg0; | |
9035 | long _arg1; | |
1d99702e | 9036 | PyObject * _argo0 = 0; |
1afc06c2 | 9037 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
9038 | |
9039 | self = self; | |
1afc06c2 | 9040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9041 | return NULL; |
1d99702e RD |
9042 | if (_argo0) { |
9043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
9046 | return NULL; | |
9047 | } | |
9048 | } | |
cf694132 | 9049 | { |
4268f798 | 9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9051 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
9052 | ||
4268f798 | 9053 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9054 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9055 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9056 | return _resultobj; |
9057 | } | |
9058 | ||
9059 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 9060 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9061 | PyObject * _resultobj; |
9062 | long _result; | |
9063 | wxDC * _arg0; | |
9064 | long _arg1; | |
1d99702e | 9065 | PyObject * _argo0 = 0; |
1afc06c2 | 9066 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
9067 | |
9068 | self = self; | |
1afc06c2 | 9069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9070 | return NULL; |
1d99702e RD |
9071 | if (_argo0) { |
9072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
9075 | return NULL; | |
9076 | } | |
9077 | } | |
cf694132 | 9078 | { |
4268f798 | 9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9080 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
9081 | ||
4268f798 | 9082 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9083 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9084 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9085 | return _resultobj; |
9086 | } | |
9087 | ||
9088 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 9089 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9090 | PyObject * _resultobj; |
9091 | long _result; | |
9092 | wxDC * _arg0; | |
9093 | long _arg1; | |
1d99702e | 9094 | PyObject * _argo0 = 0; |
1afc06c2 | 9095 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
9096 | |
9097 | self = self; | |
1afc06c2 | 9098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9099 | return NULL; |
1d99702e RD |
9100 | if (_argo0) { |
9101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
9104 | return NULL; | |
9105 | } | |
9106 | } | |
cf694132 | 9107 | { |
4268f798 | 9108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9109 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
9110 | ||
4268f798 | 9111 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9112 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9113 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9114 | return _resultobj; |
9115 | } | |
9116 | ||
9117 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 9118 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9119 | PyObject * _resultobj; |
9120 | long _result; | |
9121 | wxDC * _arg0; | |
9122 | long _arg1; | |
1d99702e | 9123 | PyObject * _argo0 = 0; |
1afc06c2 | 9124 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
9125 | |
9126 | self = self; | |
1afc06c2 | 9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9128 | return NULL; |
1d99702e RD |
9129 | if (_argo0) { |
9130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
9133 | return NULL; | |
9134 | } | |
9135 | } | |
cf694132 | 9136 | { |
4268f798 | 9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9138 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
9139 | ||
4268f798 | 9140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9142 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9143 | return _resultobj; |
9144 | } | |
9145 | ||
9146 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 9147 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9148 | PyObject * _resultobj; |
9149 | long _result; | |
9150 | wxDC * _arg0; | |
1d99702e | 9151 | PyObject * _argo0 = 0; |
1afc06c2 | 9152 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9153 | |
9154 | self = self; | |
1afc06c2 | 9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 9156 | return NULL; |
1d99702e RD |
9157 | if (_argo0) { |
9158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
9161 | return NULL; | |
9162 | } | |
9163 | } | |
cf694132 | 9164 | { |
4268f798 | 9165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9166 | _result = (long )wxDC_MaxX(_arg0); |
9167 | ||
4268f798 | 9168 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9169 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9170 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9171 | return _resultobj; |
9172 | } | |
9173 | ||
9174 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 9175 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9176 | PyObject * _resultobj; |
9177 | long _result; | |
9178 | wxDC * _arg0; | |
1d99702e | 9179 | PyObject * _argo0 = 0; |
1afc06c2 | 9180 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9181 | |
9182 | self = self; | |
1afc06c2 | 9183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 9184 | return NULL; |
1d99702e RD |
9185 | if (_argo0) { |
9186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
9189 | return NULL; | |
9190 | } | |
9191 | } | |
cf694132 | 9192 | { |
4268f798 | 9193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9194 | _result = (long )wxDC_MaxY(_arg0); |
9195 | ||
4268f798 | 9196 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9198 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9199 | return _resultobj; |
9200 | } | |
9201 | ||
9202 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 9203 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9204 | PyObject * _resultobj; |
9205 | long _result; | |
9206 | wxDC * _arg0; | |
1d99702e | 9207 | PyObject * _argo0 = 0; |
1afc06c2 | 9208 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9209 | |
9210 | self = self; | |
1afc06c2 | 9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 9212 | return NULL; |
1d99702e RD |
9213 | if (_argo0) { |
9214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
9217 | return NULL; | |
9218 | } | |
9219 | } | |
cf694132 | 9220 | { |
4268f798 | 9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9222 | _result = (long )wxDC_MinX(_arg0); |
9223 | ||
4268f798 | 9224 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9226 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9227 | return _resultobj; |
9228 | } | |
9229 | ||
9230 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 9231 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9232 | PyObject * _resultobj; |
9233 | long _result; | |
9234 | wxDC * _arg0; | |
1d99702e | 9235 | PyObject * _argo0 = 0; |
1afc06c2 | 9236 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9237 | |
9238 | self = self; | |
1afc06c2 | 9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 9240 | return NULL; |
1d99702e RD |
9241 | if (_argo0) { |
9242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
9245 | return NULL; | |
9246 | } | |
9247 | } | |
cf694132 | 9248 | { |
4268f798 | 9249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9250 | _result = (long )wxDC_MinY(_arg0); |
9251 | ||
4268f798 | 9252 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9253 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9254 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9255 | return _resultobj; |
9256 | } | |
9257 | ||
9258 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9259 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9260 | PyObject * _resultobj; |
9261 | bool _result; | |
9262 | wxDC * _arg0; | |
1d99702e | 9263 | PyObject * _argo0 = 0; |
1afc06c2 | 9264 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9265 | |
9266 | self = self; | |
1afc06c2 | 9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 9268 | return NULL; |
1d99702e RD |
9269 | if (_argo0) { |
9270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
9273 | return NULL; | |
9274 | } | |
9275 | } | |
cf694132 | 9276 | { |
4268f798 | 9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9278 | _result = (bool )wxDC_Ok(_arg0); |
9279 | ||
4268f798 | 9280 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9282 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9283 | return _resultobj; |
9284 | } | |
9285 | ||
9286 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 9287 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9288 | PyObject * _resultobj; |
9289 | wxDC * _arg0; | |
9290 | long _arg1; | |
9291 | long _arg2; | |
1d99702e | 9292 | PyObject * _argo0 = 0; |
1afc06c2 | 9293 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
9294 | |
9295 | self = self; | |
1afc06c2 | 9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9297 | return NULL; |
1d99702e RD |
9298 | if (_argo0) { |
9299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
9302 | return NULL; | |
9303 | } | |
9304 | } | |
cf694132 | 9305 | { |
4268f798 | 9306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9307 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
9308 | ||
4268f798 | 9309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9311 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9312 | _resultobj = Py_None; |
9313 | return _resultobj; | |
9314 | } | |
9315 | ||
9316 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 9317 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9318 | PyObject * _resultobj; |
9319 | wxDC * _arg0; | |
9320 | wxBrush * _arg1; | |
1d99702e RD |
9321 | PyObject * _argo0 = 0; |
9322 | PyObject * _argo1 = 0; | |
1afc06c2 | 9323 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9324 | |
9325 | self = self; | |
1afc06c2 | 9326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9327 | return NULL; |
1d99702e RD |
9328 | if (_argo0) { |
9329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
9332 | return NULL; | |
9333 | } | |
9334 | } | |
1d99702e RD |
9335 | if (_argo1) { |
9336 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9337 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
9339 | return NULL; | |
9340 | } | |
9341 | } | |
cf694132 | 9342 | { |
4268f798 | 9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9344 | wxDC_SetBackground(_arg0,*_arg1); |
9345 | ||
4268f798 | 9346 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9347 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9348 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9349 | _resultobj = Py_None; |
9350 | return _resultobj; | |
9351 | } | |
9352 | ||
9353 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 9354 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9355 | PyObject * _resultobj; |
9356 | wxDC * _arg0; | |
9357 | int _arg1; | |
1d99702e | 9358 | PyObject * _argo0 = 0; |
1afc06c2 | 9359 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9360 | |
9361 | self = self; | |
1afc06c2 | 9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9363 | return NULL; |
1d99702e RD |
9364 | if (_argo0) { |
9365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
9368 | return NULL; | |
9369 | } | |
9370 | } | |
cf694132 | 9371 | { |
4268f798 | 9372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9373 | wxDC_SetBackgroundMode(_arg0,_arg1); |
9374 | ||
4268f798 | 9375 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9376 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9377 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9378 | _resultobj = Py_None; |
9379 | return _resultobj; | |
9380 | } | |
9381 | ||
9382 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9383 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9384 | PyObject * _resultobj; |
9385 | wxDC * _arg0; | |
9386 | long _arg1; | |
9387 | long _arg2; | |
9388 | long _arg3; | |
9389 | long _arg4; | |
1d99702e | 9390 | PyObject * _argo0 = 0; |
1afc06c2 | 9391 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
9392 | |
9393 | self = self; | |
1afc06c2 | 9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9395 | return NULL; |
1d99702e RD |
9396 | if (_argo0) { |
9397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
9400 | return NULL; | |
9401 | } | |
9402 | } | |
cf694132 | 9403 | { |
4268f798 | 9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9405 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
9406 | ||
4268f798 | 9407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9409 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9410 | _resultobj = Py_None; |
9411 | return _resultobj; | |
9412 | } | |
9413 | ||
19a97bd6 RD |
9414 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
9415 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9416 | PyObject * _resultobj; | |
9417 | wxDC * _arg0; | |
9418 | wxRegion * _arg1; | |
9419 | PyObject * _argo0 = 0; | |
9420 | PyObject * _argo1 = 0; | |
9421 | char *_kwnames[] = { "self","region", NULL }; | |
9422 | ||
9423 | self = self; | |
9424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
9425 | return NULL; | |
9426 | if (_argo0) { | |
9427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
9430 | return NULL; | |
9431 | } | |
9432 | } | |
9433 | if (_argo1) { | |
9434 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9435 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
9437 | return NULL; | |
9438 | } | |
9439 | } | |
9440 | { | |
4268f798 | 9441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19a97bd6 RD |
9442 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
9443 | ||
4268f798 | 9444 | wxPyEndAllowThreads(__tstate); |
19a97bd6 RD |
9445 | if (PyErr_Occurred()) return NULL; |
9446 | } Py_INCREF(Py_None); | |
9447 | _resultobj = Py_None; | |
9448 | return _resultobj; | |
9449 | } | |
9450 | ||
8ab979d7 | 9451 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1afc06c2 | 9452 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9453 | PyObject * _resultobj; |
9454 | wxDC * _arg0; | |
9455 | wxPalette * _arg1; | |
1d99702e RD |
9456 | PyObject * _argo0 = 0; |
9457 | PyObject * _argo1 = 0; | |
1afc06c2 | 9458 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
9459 | |
9460 | self = self; | |
1afc06c2 | 9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9462 | return NULL; |
1d99702e RD |
9463 | if (_argo0) { |
9464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
9467 | return NULL; | |
9468 | } | |
9469 | } | |
1d99702e RD |
9470 | if (_argo1) { |
9471 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9472 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
9473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
9474 | return NULL; | |
9475 | } | |
9476 | } | |
cf694132 | 9477 | { |
4268f798 | 9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9479 | wxDC_SetPalette(_arg0,*_arg1); |
9480 | ||
4268f798 | 9481 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9482 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9483 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9484 | _resultobj = Py_None; |
9485 | return _resultobj; | |
9486 | } | |
9487 | ||
9488 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 9489 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9490 | PyObject * _resultobj; |
9491 | wxDC * _arg0; | |
9492 | wxBrush * _arg1; | |
1d99702e RD |
9493 | PyObject * _argo0 = 0; |
9494 | PyObject * _argo1 = 0; | |
1afc06c2 | 9495 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9496 | |
9497 | self = self; | |
1afc06c2 | 9498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9499 | return NULL; |
1d99702e RD |
9500 | if (_argo0) { |
9501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
9504 | return NULL; | |
9505 | } | |
9506 | } | |
1d99702e RD |
9507 | if (_argo1) { |
9508 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9509 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
9511 | return NULL; | |
9512 | } | |
9513 | } | |
cf694132 | 9514 | { |
4268f798 | 9515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9516 | wxDC_SetBrush(_arg0,*_arg1); |
9517 | ||
4268f798 | 9518 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9519 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9520 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9521 | _resultobj = Py_None; |
9522 | return _resultobj; | |
9523 | } | |
9524 | ||
9525 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 9526 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9527 | PyObject * _resultobj; |
9528 | wxDC * _arg0; | |
9529 | wxFont * _arg1; | |
1d99702e RD |
9530 | PyObject * _argo0 = 0; |
9531 | PyObject * _argo1 = 0; | |
1afc06c2 | 9532 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
9533 | |
9534 | self = self; | |
1afc06c2 | 9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9536 | return NULL; |
1d99702e RD |
9537 | if (_argo0) { |
9538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
9541 | return NULL; | |
9542 | } | |
9543 | } | |
1d99702e RD |
9544 | if (_argo1) { |
9545 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9546 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
9547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
9548 | return NULL; | |
9549 | } | |
9550 | } | |
cf694132 | 9551 | { |
4268f798 | 9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9553 | wxDC_SetFont(_arg0,*_arg1); |
9554 | ||
4268f798 | 9555 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9556 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9557 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9558 | _resultobj = Py_None; |
9559 | return _resultobj; | |
9560 | } | |
9561 | ||
9562 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 9563 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9564 | PyObject * _resultobj; |
9565 | wxDC * _arg0; | |
9566 | int _arg1; | |
1d99702e | 9567 | PyObject * _argo0 = 0; |
1afc06c2 | 9568 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
9569 | |
9570 | self = self; | |
1afc06c2 | 9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9572 | return NULL; |
1d99702e RD |
9573 | if (_argo0) { |
9574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
9577 | return NULL; | |
9578 | } | |
9579 | } | |
cf694132 | 9580 | { |
4268f798 | 9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9582 | wxDC_SetLogicalFunction(_arg0,_arg1); |
9583 | ||
4268f798 | 9584 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9585 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9586 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9587 | _resultobj = Py_None; |
9588 | return _resultobj; | |
9589 | } | |
9590 | ||
eec92d76 RD |
9591 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
9592 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject * _resultobj; | |
9594 | wxDC * _arg0; | |
9595 | double _arg1; | |
9596 | double _arg2; | |
9597 | PyObject * _argo0 = 0; | |
9598 | char *_kwnames[] = { "self","x","y", NULL }; | |
9599 | ||
9600 | self = self; | |
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9602 | return NULL; | |
9603 | if (_argo0) { | |
9604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
9607 | return NULL; | |
9608 | } | |
9609 | } | |
9610 | { | |
4268f798 | 9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9612 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
9613 | ||
4268f798 | 9614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9615 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9616 | } Py_INCREF(Py_None); |
9617 | _resultobj = Py_None; | |
9618 | return _resultobj; | |
9619 | } | |
9620 | ||
8ab979d7 | 9621 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 9622 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9623 | PyObject * _resultobj; |
9624 | wxDC * _arg0; | |
9625 | int _arg1; | |
1d99702e | 9626 | PyObject * _argo0 = 0; |
1afc06c2 | 9627 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9628 | |
9629 | self = self; | |
1afc06c2 | 9630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9631 | return NULL; |
1d99702e RD |
9632 | if (_argo0) { |
9633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
9636 | return NULL; | |
9637 | } | |
9638 | } | |
cf694132 | 9639 | { |
4268f798 | 9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9641 | wxDC_SetMapMode(_arg0,_arg1); |
9642 | ||
4268f798 | 9643 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9644 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9645 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9646 | _resultobj = Py_None; |
9647 | return _resultobj; | |
9648 | } | |
9649 | ||
9650 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 9651 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9652 | PyObject * _resultobj; |
9653 | wxDC * _arg0; | |
9654 | bool _arg1; | |
1d99702e | 9655 | PyObject * _argo0 = 0; |
8ab979d7 | 9656 | int tempbool1; |
1afc06c2 | 9657 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
9658 | |
9659 | self = self; | |
1afc06c2 | 9660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9661 | return NULL; |
1d99702e RD |
9662 | if (_argo0) { |
9663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
9666 | return NULL; | |
9667 | } | |
9668 | } | |
9669 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9670 | { |
4268f798 | 9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9672 | wxDC_SetOptimization(_arg0,_arg1); |
9673 | ||
4268f798 | 9674 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9676 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9677 | _resultobj = Py_None; |
9678 | return _resultobj; | |
9679 | } | |
9680 | ||
9681 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 9682 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9683 | PyObject * _resultobj; |
9684 | wxDC * _arg0; | |
9685 | wxPen * _arg1; | |
1d99702e RD |
9686 | PyObject * _argo0 = 0; |
9687 | PyObject * _argo1 = 0; | |
1afc06c2 | 9688 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
9689 | |
9690 | self = self; | |
1afc06c2 | 9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9692 | return NULL; |
1d99702e RD |
9693 | if (_argo0) { |
9694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
9697 | return NULL; | |
9698 | } | |
9699 | } | |
1d99702e RD |
9700 | if (_argo1) { |
9701 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9702 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
9703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
9704 | return NULL; | |
9705 | } | |
9706 | } | |
cf694132 | 9707 | { |
4268f798 | 9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9709 | wxDC_SetPen(_arg0,*_arg1); |
9710 | ||
4268f798 | 9711 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9712 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9713 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9714 | _resultobj = Py_None; |
9715 | return _resultobj; | |
9716 | } | |
9717 | ||
9718 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 9719 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9720 | PyObject * _resultobj; |
9721 | wxDC * _arg0; | |
9722 | wxColour * _arg1; | |
1d99702e | 9723 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9724 | wxColour temp; |
9725 | PyObject * _obj1 = 0; | |
1afc06c2 | 9726 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9727 | |
9728 | self = self; | |
f6bcfd97 | 9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9730 | return NULL; |
1d99702e RD |
9731 | if (_argo0) { |
9732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
9735 | return NULL; | |
9736 | } | |
9737 | } | |
f6bcfd97 BP |
9738 | { |
9739 | _arg1 = &temp; | |
9740 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9741 | return NULL; |
f6bcfd97 | 9742 | } |
cf694132 | 9743 | { |
4268f798 | 9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9745 | wxDC_SetTextBackground(_arg0,*_arg1); |
9746 | ||
4268f798 | 9747 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9748 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9749 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9750 | _resultobj = Py_None; |
9751 | return _resultobj; | |
9752 | } | |
9753 | ||
9754 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 9755 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9756 | PyObject * _resultobj; |
9757 | wxDC * _arg0; | |
9758 | wxColour * _arg1; | |
1d99702e | 9759 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9760 | wxColour temp; |
9761 | PyObject * _obj1 = 0; | |
1afc06c2 | 9762 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9763 | |
9764 | self = self; | |
f6bcfd97 | 9765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9766 | return NULL; |
1d99702e RD |
9767 | if (_argo0) { |
9768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
9771 | return NULL; | |
9772 | } | |
9773 | } | |
f6bcfd97 BP |
9774 | { |
9775 | _arg1 = &temp; | |
9776 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9777 | return NULL; |
f6bcfd97 | 9778 | } |
cf694132 | 9779 | { |
4268f798 | 9780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9781 | wxDC_SetTextForeground(_arg0,*_arg1); |
9782 | ||
4268f798 | 9783 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9785 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9786 | _resultobj = Py_None; |
9787 | return _resultobj; | |
9788 | } | |
9789 | ||
9790 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 9791 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9792 | PyObject * _resultobj; |
9793 | wxDC * _arg0; | |
9794 | double _arg1; | |
9795 | double _arg2; | |
1d99702e | 9796 | PyObject * _argo0 = 0; |
1afc06c2 | 9797 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
9798 | |
9799 | self = self; | |
1afc06c2 | 9800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9801 | return NULL; |
1d99702e RD |
9802 | if (_argo0) { |
9803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
9806 | return NULL; | |
9807 | } | |
9808 | } | |
cf694132 | 9809 | { |
4268f798 | 9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9811 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
9812 | ||
4268f798 | 9813 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9814 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9815 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9816 | _resultobj = Py_None; |
9817 | return _resultobj; | |
9818 | } | |
9819 | ||
9820 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 9821 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9822 | PyObject * _resultobj; |
9823 | bool _result; | |
9824 | wxDC * _arg0; | |
9825 | wxString * _arg1; | |
1d99702e | 9826 | PyObject * _argo0 = 0; |
8ab979d7 | 9827 | PyObject * _obj1 = 0; |
1afc06c2 | 9828 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
9829 | |
9830 | self = self; | |
1afc06c2 | 9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9832 | return NULL; |
1d99702e RD |
9833 | if (_argo0) { |
9834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
9837 | return NULL; | |
9838 | } | |
9839 | } | |
9840 | { | |
185d7c3e RD |
9841 | #if PYTHON_API_VERSION >= 1009 |
9842 | char* tmpPtr; int tmpSize; | |
9843 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 9844 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
9845 | return NULL; |
9846 | } | |
9847 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9848 | return NULL; | |
9849 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9850 | #else | |
8ab979d7 RD |
9851 | if (!PyString_Check(_obj1)) { |
9852 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9853 | return NULL; | |
9854 | } | |
185d7c3e RD |
9855 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
9856 | #endif | |
8ab979d7 | 9857 | } |
cf694132 | 9858 | { |
4268f798 | 9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9860 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
9861 | ||
4268f798 | 9862 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9863 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9864 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9865 | { |
9866 | if (_obj1) | |
9867 | delete _arg1; | |
9868 | } | |
9869 | return _resultobj; | |
9870 | } | |
9871 | ||
9872 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 9873 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9874 | PyObject * _resultobj; |
9875 | wxDC * _arg0; | |
1d99702e | 9876 | PyObject * _argo0 = 0; |
1afc06c2 | 9877 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9878 | |
9879 | self = self; | |
1afc06c2 | 9880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 9881 | return NULL; |
1d99702e RD |
9882 | if (_argo0) { |
9883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
9886 | return NULL; | |
9887 | } | |
9888 | } | |
cf694132 | 9889 | { |
4268f798 | 9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9891 | wxDC_StartPage(_arg0); |
9892 | ||
4268f798 | 9893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9894 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9895 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9896 | _resultobj = Py_None; |
9897 | return _resultobj; | |
9898 | } | |
9899 | ||
efc5f224 | 9900 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9901 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9902 | PyObject * _resultobj; |
9903 | wxDC * _arg0; | |
9904 | wxBitmap * _arg1; | |
9905 | long _arg2; | |
9906 | long _arg3; | |
efc5f224 | 9907 | int _arg4 = (int ) FALSE; |
1d99702e RD |
9908 | PyObject * _argo0 = 0; |
9909 | PyObject * _argo1 = 0; | |
1afc06c2 | 9910 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
9911 | |
9912 | self = self; | |
1afc06c2 | 9913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9914 | return NULL; |
1d99702e RD |
9915 | if (_argo0) { |
9916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
9919 | return NULL; | |
9920 | } | |
9921 | } | |
1d99702e RD |
9922 | if (_argo1) { |
9923 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9924 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
9926 | return NULL; | |
9927 | } | |
9928 | } | |
cf694132 | 9929 | { |
4268f798 | 9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9931 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
9932 | ||
4268f798 | 9933 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9934 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9935 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9936 | _resultobj = Py_None; |
9937 | return _resultobj; | |
9938 | } | |
9939 | ||
eec92d76 RD |
9940 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
9941 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject * _resultobj; | |
9943 | bool _result; | |
9944 | wxDC * _arg0; | |
9945 | PyObject * _argo0 = 0; | |
9946 | char *_kwnames[] = { "self", NULL }; | |
9947 | ||
9948 | self = self; | |
9949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9950 | return NULL; | |
9951 | if (_argo0) { | |
9952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9955 | return NULL; | |
9956 | } | |
9957 | } | |
9958 | { | |
4268f798 | 9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9960 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
9961 | ||
4268f798 | 9962 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9963 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9964 | } _resultobj = Py_BuildValue("i",_result); |
9965 | return _resultobj; | |
9966 | } | |
9967 | ||
9968 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9969 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9970 | PyObject * _resultobj; | |
9971 | bool _result; | |
9972 | wxDC * _arg0; | |
9973 | PyObject * _argo0 = 0; | |
9974 | char *_kwnames[] = { "self", NULL }; | |
9975 | ||
9976 | self = self; | |
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9978 | return NULL; | |
9979 | if (_argo0) { | |
9980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9983 | return NULL; | |
9984 | } | |
9985 | } | |
9986 | { | |
4268f798 | 9987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
9988 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
9989 | ||
4268f798 | 9990 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9991 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9992 | } _resultobj = Py_BuildValue("i",_result); |
9993 | return _resultobj; | |
9994 | } | |
9995 | ||
9996 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9997 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject * _resultobj; | |
9999 | int _result; | |
10000 | wxDC * _arg0; | |
10001 | PyObject * _argo0 = 0; | |
10002 | char *_kwnames[] = { "self", NULL }; | |
10003 | ||
10004 | self = self; | |
10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
10006 | return NULL; | |
10007 | if (_argo0) { | |
10008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
10011 | return NULL; | |
10012 | } | |
10013 | } | |
10014 | { | |
4268f798 | 10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10016 | _result = (int )wxDC_GetDepth(_arg0); |
10017 | ||
4268f798 | 10018 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10019 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10020 | } _resultobj = Py_BuildValue("i",_result); |
10021 | return _resultobj; | |
10022 | } | |
10023 | ||
10024 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
10025 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10026 | PyObject * _resultobj; | |
10027 | wxSize * _result; | |
10028 | wxDC * _arg0; | |
10029 | PyObject * _argo0 = 0; | |
10030 | char *_kwnames[] = { "self", NULL }; | |
10031 | char _ptemp[128]; | |
10032 | ||
10033 | self = self; | |
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
10035 | return NULL; | |
10036 | if (_argo0) { | |
10037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
10040 | return NULL; | |
10041 | } | |
10042 | } | |
10043 | { | |
4268f798 | 10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10045 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
10046 | ||
4268f798 | 10047 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10048 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10049 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
10050 | _resultobj = Py_BuildValue("s",_ptemp); | |
10051 | return _resultobj; | |
10052 | } | |
10053 | ||
10054 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
10055 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10056 | PyObject * _resultobj; | |
10057 | wxDC * _arg0; | |
10058 | int * _arg1; | |
10059 | int temp; | |
10060 | int * _arg2; | |
10061 | int temp0; | |
10062 | PyObject * _argo0 = 0; | |
10063 | char *_kwnames[] = { "self", NULL }; | |
10064 | ||
10065 | self = self; | |
10066 | { | |
10067 | _arg1 = &temp; | |
10068 | } | |
10069 | { | |
10070 | _arg2 = &temp0; | |
10071 | } | |
10072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
10073 | return NULL; | |
10074 | if (_argo0) { | |
10075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
10078 | return NULL; | |
10079 | } | |
10080 | } | |
10081 | { | |
4268f798 | 10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10083 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
10084 | ||
4268f798 | 10085 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10086 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10087 | } Py_INCREF(Py_None); |
10088 | _resultobj = Py_None; | |
10089 | { | |
10090 | PyObject *o; | |
10091 | o = PyInt_FromLong((long) (*_arg1)); | |
10092 | _resultobj = t_output_helper(_resultobj, o); | |
10093 | } | |
10094 | { | |
10095 | PyObject *o; | |
10096 | o = PyInt_FromLong((long) (*_arg2)); | |
10097 | _resultobj = t_output_helper(_resultobj, o); | |
10098 | } | |
10099 | return _resultobj; | |
10100 | } | |
10101 | ||
10102 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
10103 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10104 | PyObject * _resultobj; | |
10105 | wxDC * _arg0; | |
10106 | int _arg1; | |
10107 | int _arg2; | |
10108 | PyObject * _argo0 = 0; | |
10109 | char *_kwnames[] = { "self","x","y", NULL }; | |
10110 | ||
10111 | self = self; | |
10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10113 | return NULL; | |
10114 | if (_argo0) { | |
10115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
10118 | return NULL; | |
10119 | } | |
10120 | } | |
10121 | { | |
4268f798 | 10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10123 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
10124 | ||
4268f798 | 10125 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10126 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10127 | } Py_INCREF(Py_None); |
10128 | _resultobj = Py_None; | |
10129 | return _resultobj; | |
10130 | } | |
10131 | ||
10132 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
10133 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10134 | PyObject * _resultobj; | |
10135 | wxDC * _arg0; | |
10136 | int * _arg1; | |
10137 | int temp; | |
10138 | int * _arg2; | |
10139 | int temp0; | |
10140 | PyObject * _argo0 = 0; | |
10141 | char *_kwnames[] = { "self", NULL }; | |
10142 | ||
10143 | self = self; | |
10144 | { | |
10145 | _arg1 = &temp; | |
10146 | } | |
10147 | { | |
10148 | _arg2 = &temp0; | |
10149 | } | |
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
10151 | return NULL; | |
10152 | if (_argo0) { | |
10153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
10156 | return NULL; | |
10157 | } | |
10158 | } | |
10159 | { | |
4268f798 | 10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10161 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
10162 | ||
4268f798 | 10163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10164 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10165 | } Py_INCREF(Py_None); |
10166 | _resultobj = Py_None; | |
10167 | { | |
10168 | PyObject *o; | |
10169 | o = PyInt_FromLong((long) (*_arg1)); | |
10170 | _resultobj = t_output_helper(_resultobj, o); | |
10171 | } | |
10172 | { | |
10173 | PyObject *o; | |
10174 | o = PyInt_FromLong((long) (*_arg2)); | |
10175 | _resultobj = t_output_helper(_resultobj, o); | |
10176 | } | |
10177 | return _resultobj; | |
10178 | } | |
10179 | ||
10180 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
10181 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10182 | PyObject * _resultobj; | |
10183 | wxDC * _arg0; | |
10184 | bool _arg1; | |
10185 | bool _arg2; | |
10186 | PyObject * _argo0 = 0; | |
10187 | int tempbool1; | |
10188 | int tempbool2; | |
10189 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
10190 | ||
10191 | self = self; | |
10192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
10193 | return NULL; | |
10194 | if (_argo0) { | |
10195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
10198 | return NULL; | |
10199 | } | |
10200 | } | |
10201 | _arg1 = (bool ) tempbool1; | |
10202 | _arg2 = (bool ) tempbool2; | |
10203 | { | |
4268f798 | 10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eec92d76 RD |
10205 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
10206 | ||
4268f798 | 10207 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10208 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
10209 | } Py_INCREF(Py_None); |
10210 | _resultobj = Py_None; | |
10211 | return _resultobj; | |
10212 | } | |
10213 | ||
f6bcfd97 BP |
10214 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
10215 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10216 | PyObject * _resultobj; | |
10217 | wxDC * _arg0; | |
10218 | int _arg1; | |
10219 | int _arg2; | |
10220 | PyObject * _argo0 = 0; | |
10221 | char *_kwnames[] = { "self","x","y", NULL }; | |
10222 | ||
10223 | self = self; | |
10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10225 | return NULL; | |
10226 | if (_argo0) { | |
10227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
10230 | return NULL; | |
10231 | } | |
10232 | } | |
10233 | { | |
4268f798 | 10234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10235 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
10236 | ||
4268f798 | 10237 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10238 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10239 | } Py_INCREF(Py_None); |
10240 | _resultobj = Py_None; | |
10241 | return _resultobj; | |
10242 | } | |
10243 | ||
10244 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
10245 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10246 | PyObject * _resultobj; | |
10247 | wxDC * _arg0; | |
10248 | PyObject * _argo0 = 0; | |
10249 | char *_kwnames[] = { "self", NULL }; | |
10250 | ||
10251 | self = self; | |
10252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
10253 | return NULL; | |
10254 | if (_argo0) { | |
10255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
10258 | return NULL; | |
10259 | } | |
10260 | } | |
10261 | { | |
4268f798 | 10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
10263 | wxDC_ResetBoundingBox(_arg0); |
10264 | ||
4268f798 | 10265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10266 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10267 | } Py_INCREF(Py_None); |
10268 | _resultobj = Py_None; | |
10269 | return _resultobj; | |
10270 | } | |
10271 | ||
9d37f964 RD |
10272 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10273 | PyObject * _resultobj; | |
10274 | wxDC * _arg0; | |
10275 | int * _arg1; | |
10276 | int temp; | |
10277 | int * _arg2; | |
10278 | int temp0; | |
10279 | int * _arg3; | |
10280 | int temp1; | |
10281 | int * _arg4; | |
10282 | int temp2; | |
10283 | PyObject * _argo0 = 0; | |
10284 | char *_kwnames[] = { "self", NULL }; | |
10285 | ||
10286 | self = self; | |
10287 | { | |
10288 | _arg1 = &temp; | |
10289 | } | |
10290 | { | |
10291 | _arg2 = &temp0; | |
10292 | } | |
10293 | { | |
10294 | _arg3 = &temp1; | |
10295 | } | |
10296 | { | |
10297 | _arg4 = &temp2; | |
10298 | } | |
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
10300 | return NULL; | |
10301 | if (_argo0) { | |
10302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
10305 | return NULL; | |
10306 | } | |
10307 | } | |
10308 | { | |
4268f798 | 10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d37f964 RD |
10310 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
10311 | ||
4268f798 | 10312 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10313 | if (PyErr_Occurred()) return NULL; |
10314 | } Py_INCREF(Py_None); | |
10315 | _resultobj = Py_None; | |
10316 | { | |
10317 | PyObject *o; | |
10318 | o = PyInt_FromLong((long) (*_arg1)); | |
10319 | _resultobj = t_output_helper(_resultobj, o); | |
10320 | } | |
10321 | { | |
10322 | PyObject *o; | |
10323 | o = PyInt_FromLong((long) (*_arg2)); | |
10324 | _resultobj = t_output_helper(_resultobj, o); | |
10325 | } | |
10326 | { | |
10327 | PyObject *o; | |
10328 | o = PyInt_FromLong((long) (*_arg3)); | |
10329 | _resultobj = t_output_helper(_resultobj, o); | |
10330 | } | |
10331 | { | |
10332 | PyObject *o; | |
10333 | o = PyInt_FromLong((long) (*_arg4)); | |
10334 | _resultobj = t_output_helper(_resultobj, o); | |
10335 | } | |
10336 | return _resultobj; | |
10337 | } | |
10338 | ||
c7e7022c RD |
10339 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
10340 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject * _resultobj; | |
10342 | long _result; | |
10343 | wxDC * _arg0; | |
10344 | PyObject * _argo0 = 0; | |
10345 | char *_kwnames[] = { "self", NULL }; | |
10346 | ||
10347 | self = self; | |
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
10349 | return NULL; | |
10350 | if (_argo0) { | |
10351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
10354 | return NULL; | |
10355 | } | |
10356 | } | |
10357 | { | |
4268f798 | 10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c7e7022c RD |
10359 | _result = (long )wxDC_GetHDC(_arg0); |
10360 | ||
4268f798 | 10361 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
10362 | if (PyErr_Occurred()) return NULL; |
10363 | } _resultobj = Py_BuildValue("l",_result); | |
10364 | return _resultobj; | |
10365 | } | |
10366 | ||
9d37f964 RD |
10367 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { |
10368 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
10369 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10370 | int numObjs = 0; | |
10371 | int numPens = 0; | |
10372 | wxPen* pen; | |
10373 | PyObject* obj; | |
10374 | int x1, y1; | |
10375 | int i = 0; | |
10376 | ||
10377 | if (!PySequence_Check(pyPoints)) { | |
10378 | goto err0; | |
10379 | } | |
10380 | if (!PySequence_Check(pyPens)) { | |
10381 | goto err1; | |
10382 | } | |
10383 | numObjs = PySequence_Length(pyPoints); | |
10384 | numPens = PySequence_Length(pyPens); | |
10385 | ||
10386 | for (i = 0; i < numObjs; i++) { | |
10387 | // Use a new pen? | |
10388 | if (i < numPens) { | |
10389 | if (isFastPens) { | |
10390 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10391 | } | |
10392 | else { | |
10393 | obj = PySequence_GetItem(pyPens, i); | |
10394 | } | |
10395 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10396 | if (!isFastPens) |
10397 | Py_DECREF(obj); | |
9d37f964 RD |
10398 | goto err1; |
10399 | } | |
10400 | ||
10401 | self->SetPen(*pen); | |
10402 | if (!isFastPens) | |
10403 | Py_DECREF(obj); | |
10404 | } | |
10405 | ||
10406 | // Get the point coordinants | |
10407 | if (isFastSeq) { | |
10408 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
10409 | } | |
10410 | else { | |
10411 | obj = PySequence_GetItem(pyPoints, i); | |
10412 | } | |
10413 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
76e280e7 RD |
10414 | if (!isFastPens) |
10415 | Py_DECREF(obj); | |
9d37f964 RD |
10416 | goto err0; |
10417 | } | |
10418 | ||
10419 | // Now draw the point | |
10420 | self->DrawPoint(x1, y1); | |
10421 | ||
10422 | if (!isFastSeq) | |
10423 | Py_DECREF(obj); | |
10424 | } | |
10425 | ||
10426 | Py_INCREF(Py_None); | |
10427 | return Py_None; | |
10428 | ||
10429 | err1: | |
10430 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10431 | return NULL; | |
10432 | err0: | |
10433 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
10434 | return NULL; | |
10435 | } | |
10436 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10437 | PyObject * _resultobj; | |
10438 | PyObject * _result; | |
10439 | wxDC * _arg0; | |
10440 | PyObject * _arg1; | |
10441 | PyObject * _arg2; | |
10442 | PyObject * _argo0 = 0; | |
10443 | PyObject * _obj1 = 0; | |
10444 | PyObject * _obj2 = 0; | |
10445 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
10446 | ||
10447 | self = self; | |
10448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10449 | return NULL; | |
10450 | if (_argo0) { | |
10451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
10454 | return NULL; | |
10455 | } | |
10456 | } | |
10457 | { | |
10458 | _arg1 = _obj1; | |
10459 | } | |
10460 | { | |
10461 | _arg2 = _obj2; | |
10462 | } | |
10463 | { | |
4268f798 | 10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d37f964 RD |
10465 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
10466 | ||
4268f798 | 10467 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10468 | if (PyErr_Occurred()) return NULL; |
10469 | }{ | |
10470 | _resultobj = _result; | |
10471 | } | |
10472 | return _resultobj; | |
10473 | } | |
10474 | ||
10475 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
10476 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
10477 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10478 | int numObjs = 0; | |
10479 | int numPens = 0; | |
10480 | wxPen* pen; | |
10481 | PyObject* obj; | |
10482 | int x1, y1, x2, y2; | |
10483 | int i = 0; | |
10484 | ||
10485 | if (!PySequence_Check(pyLines)) { | |
10486 | goto err0; | |
10487 | } | |
10488 | if (!PySequence_Check(pyPens)) { | |
10489 | goto err1; | |
10490 | } | |
10491 | numObjs = PySequence_Length(pyLines); | |
10492 | numPens = PySequence_Length(pyPens); | |
10493 | ||
10494 | for (i = 0; i < numObjs; i++) { | |
10495 | // Use a new pen? | |
10496 | if (i < numPens) { | |
10497 | if (isFastPens) { | |
10498 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10499 | } | |
10500 | else { | |
10501 | obj = PySequence_GetItem(pyPens, i); | |
10502 | } | |
10503 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10504 | if (!isFastPens) |
10505 | Py_DECREF(obj); | |
9d37f964 RD |
10506 | goto err1; |
10507 | } | |
10508 | ||
10509 | self->SetPen(*pen); | |
10510 | if (!isFastPens) | |
10511 | Py_DECREF(obj); | |
10512 | } | |
10513 | ||
10514 | // Get the line coordinants | |
10515 | if (isFastSeq) { | |
10516 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
10517 | } | |
10518 | else { | |
10519 | obj = PySequence_GetItem(pyLines, i); | |
10520 | } | |
10521 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
76e280e7 RD |
10522 | if (!isFastPens) |
10523 | Py_DECREF(obj); | |
9d37f964 RD |
10524 | goto err0; |
10525 | } | |
10526 | ||
10527 | // Now draw the line | |
10528 | self->DrawLine(x1, y1, x2, y2); | |
10529 | ||
10530 | if (!isFastSeq) | |
10531 | Py_DECREF(obj); | |
10532 | } | |
10533 | ||
10534 | Py_INCREF(Py_None); | |
10535 | return Py_None; | |
10536 | ||
10537 | err1: | |
10538 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10539 | return NULL; | |
10540 | err0: | |
10541 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
10542 | return NULL; | |
10543 | } | |
10544 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10545 | PyObject * _resultobj; | |
10546 | PyObject * _result; | |
10547 | wxDC * _arg0; | |
10548 | PyObject * _arg1; | |
10549 | PyObject * _arg2; | |
10550 | PyObject * _argo0 = 0; | |
10551 | PyObject * _obj1 = 0; | |
10552 | PyObject * _obj2 = 0; | |
10553 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
10554 | ||
10555 | self = self; | |
10556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10557 | return NULL; | |
10558 | if (_argo0) { | |
10559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
10562 | return NULL; | |
10563 | } | |
10564 | } | |
10565 | { | |
10566 | _arg1 = _obj1; | |
10567 | } | |
10568 | { | |
10569 | _arg2 = _obj2; | |
10570 | } | |
10571 | { | |
4268f798 | 10572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9d37f964 RD |
10573 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
10574 | ||
4268f798 | 10575 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10576 | if (PyErr_Occurred()) return NULL; |
10577 | }{ | |
10578 | _resultobj = _result; | |
10579 | } | |
10580 | return _resultobj; | |
10581 | } | |
10582 | ||
8ab979d7 RD |
10583 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
10584 | wxMemoryDC *src; | |
10585 | wxDC *dest; | |
10586 | src = (wxMemoryDC *) ptr; | |
10587 | dest = (wxDC *) src; | |
10588 | return (void *) dest; | |
10589 | } | |
10590 | ||
9416aa89 RD |
10591 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
10592 | wxMemoryDC *src; | |
10593 | wxObject *dest; | |
10594 | src = (wxMemoryDC *) ptr; | |
10595 | dest = (wxObject *) src; | |
10596 | return (void *) dest; | |
10597 | } | |
10598 | ||
8ab979d7 | 10599 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 10600 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10601 | PyObject * _resultobj; |
10602 | wxMemoryDC * _result; | |
1afc06c2 | 10603 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10604 | char _ptemp[128]; |
10605 | ||
10606 | self = self; | |
1afc06c2 | 10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 10608 | return NULL; |
cf694132 | 10609 | { |
4268f798 | 10610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10611 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
10612 | ||
4268f798 | 10613 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10614 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10615 | } if (_result) { |
10616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
10617 | _resultobj = Py_BuildValue("s",_ptemp); | |
10618 | } else { | |
10619 | Py_INCREF(Py_None); | |
10620 | _resultobj = Py_None; | |
10621 | } | |
8ab979d7 RD |
10622 | return _resultobj; |
10623 | } | |
10624 | ||
10625 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 10626 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10627 | PyObject * _resultobj; |
10628 | wxMemoryDC * _arg0; | |
10629 | wxBitmap * _arg1; | |
1d99702e RD |
10630 | PyObject * _argo0 = 0; |
10631 | PyObject * _argo1 = 0; | |
1afc06c2 | 10632 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
10633 | |
10634 | self = self; | |
1afc06c2 | 10635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10636 | return NULL; |
1d99702e RD |
10637 | if (_argo0) { |
10638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
10640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
10641 | return NULL; | |
10642 | } | |
10643 | } | |
1d99702e RD |
10644 | if (_argo1) { |
10645 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10646 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
10647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
10648 | return NULL; | |
10649 | } | |
10650 | } | |
cf694132 | 10651 | { |
4268f798 | 10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10653 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
10654 | ||
4268f798 | 10655 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10656 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10657 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10658 | _resultobj = Py_None; |
10659 | return _resultobj; | |
10660 | } | |
10661 | ||
10662 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
10663 | wxScreenDC *src; | |
10664 | wxDC *dest; | |
10665 | src = (wxScreenDC *) ptr; | |
10666 | dest = (wxDC *) src; | |
10667 | return (void *) dest; | |
10668 | } | |
10669 | ||
9416aa89 RD |
10670 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
10671 | wxScreenDC *src; | |
10672 | wxObject *dest; | |
10673 | src = (wxScreenDC *) ptr; | |
10674 | dest = (wxObject *) src; | |
10675 | return (void *) dest; | |
10676 | } | |
10677 | ||
8ab979d7 | 10678 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 10679 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10680 | PyObject * _resultobj; |
10681 | wxScreenDC * _result; | |
1afc06c2 | 10682 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10683 | char _ptemp[128]; |
10684 | ||
10685 | self = self; | |
1afc06c2 | 10686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 10687 | return NULL; |
cf694132 | 10688 | { |
4268f798 | 10689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10690 | _result = (wxScreenDC *)new_wxScreenDC(); |
10691 | ||
4268f798 | 10692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10693 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10694 | } if (_result) { |
10695 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
10696 | _resultobj = Py_BuildValue("s",_ptemp); | |
10697 | } else { | |
10698 | Py_INCREF(Py_None); | |
10699 | _resultobj = Py_None; | |
10700 | } | |
8ab979d7 RD |
10701 | return _resultobj; |
10702 | } | |
10703 | ||
26b9cf27 RD |
10704 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10705 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10706 | PyObject * _resultobj; |
10707 | bool _result; | |
10708 | wxScreenDC * _arg0; | |
10709 | wxWindow * _arg1; | |
1d99702e RD |
10710 | PyObject * _argo0 = 0; |
10711 | PyObject * _argo1 = 0; | |
1afc06c2 | 10712 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
10713 | |
10714 | self = self; | |
26b9cf27 | 10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10716 | return NULL; |
1d99702e RD |
10717 | if (_argo0) { |
10718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10721 | return NULL; |
10722 | } | |
10723 | } | |
1d99702e RD |
10724 | if (_argo1) { |
10725 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10726 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 10727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
10728 | return NULL; |
10729 | } | |
10730 | } | |
cf694132 | 10731 | { |
4268f798 | 10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26b9cf27 | 10733 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 | 10734 | |
4268f798 | 10735 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10736 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10737 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10738 | return _resultobj; |
10739 | } | |
10740 | ||
26b9cf27 RD |
10741 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10742 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10743 | PyObject * _resultobj; |
10744 | bool _result; | |
10745 | wxScreenDC * _arg0; | |
1d99702e RD |
10746 | wxRect * _arg1 = (wxRect *) NULL; |
10747 | PyObject * _argo0 = 0; | |
2f90df85 RD |
10748 | wxRect temp; |
10749 | PyObject * _obj1 = 0; | |
1afc06c2 | 10750 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
10751 | |
10752 | self = self; | |
26b9cf27 | 10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10754 | return NULL; |
1d99702e RD |
10755 | if (_argo0) { |
10756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10759 | return NULL; |
10760 | } | |
10761 | } | |
2f90df85 RD |
10762 | if (_obj1) |
10763 | { | |
10764 | _arg1 = &temp; | |
10765 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 10766 | return NULL; |
2f90df85 | 10767 | } |
cf694132 | 10768 | { |
4268f798 | 10769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26b9cf27 | 10770 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 | 10771 | |
4268f798 | 10772 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10773 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10774 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10775 | return _resultobj; |
10776 | } | |
10777 | ||
10778 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 10779 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10780 | PyObject * _resultobj; |
10781 | bool _result; | |
10782 | wxScreenDC * _arg0; | |
1d99702e | 10783 | PyObject * _argo0 = 0; |
1afc06c2 | 10784 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10785 | |
10786 | self = self; | |
1afc06c2 | 10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 10788 | return NULL; |
1d99702e RD |
10789 | if (_argo0) { |
10790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
10792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
10793 | return NULL; | |
10794 | } | |
10795 | } | |
cf694132 | 10796 | { |
4268f798 | 10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10798 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
10799 | ||
4268f798 | 10800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10802 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10803 | return _resultobj; |
10804 | } | |
10805 | ||
10806 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
10807 | wxClientDC *src; | |
10808 | wxDC *dest; | |
10809 | src = (wxClientDC *) ptr; | |
10810 | dest = (wxDC *) src; | |
10811 | return (void *) dest; | |
10812 | } | |
10813 | ||
9416aa89 RD |
10814 | static void *SwigwxClientDCTowxObject(void *ptr) { |
10815 | wxClientDC *src; | |
10816 | wxObject *dest; | |
10817 | src = (wxClientDC *) ptr; | |
10818 | dest = (wxObject *) src; | |
10819 | return (void *) dest; | |
10820 | } | |
10821 | ||
8ab979d7 | 10822 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 10823 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10824 | PyObject * _resultobj; |
10825 | wxClientDC * _result; | |
10826 | wxWindow * _arg0; | |
1d99702e | 10827 | PyObject * _argo0 = 0; |
1afc06c2 | 10828 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10829 | char _ptemp[128]; |
10830 | ||
10831 | self = self; | |
1afc06c2 | 10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 10833 | return NULL; |
1d99702e RD |
10834 | if (_argo0) { |
10835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
10838 | return NULL; | |
10839 | } | |
10840 | } | |
cf694132 | 10841 | { |
4268f798 | 10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10843 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
10844 | ||
4268f798 | 10845 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10846 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10847 | } if (_result) { |
10848 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
10849 | _resultobj = Py_BuildValue("s",_ptemp); | |
10850 | } else { | |
10851 | Py_INCREF(Py_None); | |
10852 | _resultobj = Py_None; | |
10853 | } | |
8ab979d7 RD |
10854 | return _resultobj; |
10855 | } | |
10856 | ||
10857 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10858 | wxPaintDC *src; | |
10859 | wxDC *dest; | |
10860 | src = (wxPaintDC *) ptr; | |
10861 | dest = (wxDC *) src; | |
10862 | return (void *) dest; | |
10863 | } | |
10864 | ||
9416aa89 RD |
10865 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
10866 | wxPaintDC *src; | |
10867 | wxObject *dest; | |
10868 | src = (wxPaintDC *) ptr; | |
10869 | dest = (wxObject *) src; | |
10870 | return (void *) dest; | |
10871 | } | |
10872 | ||
8ab979d7 | 10873 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 10874 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10875 | PyObject * _resultobj; |
10876 | wxPaintDC * _result; | |
10877 | wxWindow * _arg0; | |
1d99702e | 10878 | PyObject * _argo0 = 0; |
1afc06c2 | 10879 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10880 | char _ptemp[128]; |
10881 | ||
10882 | self = self; | |
1afc06c2 | 10883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 10884 | return NULL; |
1d99702e RD |
10885 | if (_argo0) { |
10886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
10889 | return NULL; | |
10890 | } | |
10891 | } | |
cf694132 | 10892 | { |
4268f798 | 10893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10894 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
10895 | ||
4268f798 | 10896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10897 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10898 | } if (_result) { |
10899 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10900 | _resultobj = Py_BuildValue("s",_ptemp); | |
10901 | } else { | |
10902 | Py_INCREF(Py_None); | |
10903 | _resultobj = Py_None; | |
10904 | } | |
8ab979d7 RD |
10905 | return _resultobj; |
10906 | } | |
10907 | ||
b639c3c5 RD |
10908 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
10909 | wxWindowDC *src; | |
10910 | wxDC *dest; | |
10911 | src = (wxWindowDC *) ptr; | |
10912 | dest = (wxDC *) src; | |
10913 | return (void *) dest; | |
10914 | } | |
10915 | ||
9416aa89 RD |
10916 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
10917 | wxWindowDC *src; | |
10918 | wxObject *dest; | |
10919 | src = (wxWindowDC *) ptr; | |
10920 | dest = (wxObject *) src; | |
10921 | return (void *) dest; | |
10922 | } | |
10923 | ||
b639c3c5 | 10924 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 10925 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10926 | PyObject * _resultobj; |
10927 | wxWindowDC * _result; | |
10928 | wxWindow * _arg0; | |
1d99702e | 10929 | PyObject * _argo0 = 0; |
1afc06c2 | 10930 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
10931 | char _ptemp[128]; |
10932 | ||
10933 | self = self; | |
1afc06c2 | 10934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 10935 | return NULL; |
1d99702e RD |
10936 | if (_argo0) { |
10937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
10939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
10940 | return NULL; | |
10941 | } | |
10942 | } | |
cf694132 | 10943 | { |
4268f798 | 10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
10945 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
10946 | ||
4268f798 | 10947 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10948 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10949 | } if (_result) { |
10950 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10951 | _resultobj = Py_BuildValue("s",_ptemp); | |
10952 | } else { | |
10953 | Py_INCREF(Py_None); | |
10954 | _resultobj = Py_None; | |
10955 | } | |
b639c3c5 RD |
10956 | return _resultobj; |
10957 | } | |
10958 | ||
17c0e08c RD |
10959 | static void *SwigwxMetaFileTowxObject(void *ptr) { |
10960 | wxMetaFile *src; | |
10961 | wxObject *dest; | |
10962 | src = (wxMetaFile *) ptr; | |
10963 | dest = (wxObject *) src; | |
10964 | return (void *) dest; | |
10965 | } | |
10966 | ||
10967 | #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0)) | |
10968 | static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10969 | PyObject * _resultobj; | |
10970 | wxMetaFile * _result; | |
23bed520 | 10971 | wxString * _arg0 = (wxString *) &wxEmptyString; |
17c0e08c RD |
10972 | PyObject * _obj0 = 0; |
10973 | char *_kwnames[] = { "filename", NULL }; | |
10974 | char _ptemp[128]; | |
10975 | ||
10976 | self = self; | |
10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0)) | |
10978 | return NULL; | |
10979 | if (_obj0) | |
10980 | { | |
10981 | #if PYTHON_API_VERSION >= 1009 | |
10982 | char* tmpPtr; int tmpSize; | |
10983 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
10984 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10985 | return NULL; | |
10986 | } | |
10987 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10988 | return NULL; | |
10989 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10990 | #else | |
10991 | if (!PyString_Check(_obj0)) { | |
10992 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10993 | return NULL; | |
10994 | } | |
10995 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10996 | #endif | |
10997 | } | |
10998 | { | |
4268f798 | 10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11000 | _result = (wxMetaFile *)new_wxMetaFile(*_arg0); |
11001 | ||
4268f798 | 11002 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11003 | if (PyErr_Occurred()) return NULL; |
11004 | } if (_result) { | |
11005 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
11006 | _resultobj = Py_BuildValue("s",_ptemp); | |
11007 | } else { | |
11008 | Py_INCREF(Py_None); | |
11009 | _resultobj = Py_None; | |
11010 | } | |
11011 | { | |
11012 | if (_obj0) | |
11013 | delete _arg0; | |
11014 | } | |
11015 | return _resultobj; | |
11016 | } | |
11017 | ||
11018 | #define delete_wxMetaFile(_swigobj) (delete _swigobj) | |
11019 | static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11020 | PyObject * _resultobj; | |
11021 | wxMetaFile * _arg0; | |
11022 | PyObject * _argo0 = 0; | |
11023 | char *_kwnames[] = { "self", NULL }; | |
11024 | ||
11025 | self = self; | |
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0)) | |
11027 | return NULL; | |
11028 | if (_argo0) { | |
11029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p."); | |
11032 | return NULL; | |
11033 | } | |
11034 | } | |
11035 | { | |
4268f798 | 11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11037 | delete_wxMetaFile(_arg0); |
11038 | ||
4268f798 | 11039 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11040 | if (PyErr_Occurred()) return NULL; |
11041 | } Py_INCREF(Py_None); | |
11042 | _resultobj = Py_None; | |
11043 | return _resultobj; | |
11044 | } | |
11045 | ||
11046 | #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok()) | |
11047 | static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject * _resultobj; | |
11049 | bool _result; | |
11050 | wxMetaFile * _arg0; | |
11051 | PyObject * _argo0 = 0; | |
11052 | char *_kwnames[] = { "self", NULL }; | |
11053 | ||
11054 | self = self; | |
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0)) | |
11056 | return NULL; | |
11057 | if (_argo0) { | |
11058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p."); | |
11061 | return NULL; | |
11062 | } | |
11063 | } | |
11064 | { | |
4268f798 | 11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11066 | _result = (bool )wxMetaFile_Ok(_arg0); |
11067 | ||
4268f798 | 11068 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11069 | if (PyErr_Occurred()) return NULL; |
11070 | } _resultobj = Py_BuildValue("i",_result); | |
11071 | return _resultobj; | |
11072 | } | |
11073 | ||
11074 | #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1)) | |
11075 | static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11076 | PyObject * _resultobj; | |
11077 | bool _result; | |
11078 | wxMetaFile * _arg0; | |
11079 | int _arg1 = (int ) 0; | |
11080 | int _arg2 = (int ) 0; | |
11081 | PyObject * _argo0 = 0; | |
11082 | char *_kwnames[] = { "self","width","height", NULL }; | |
11083 | ||
11084 | self = self; | |
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11086 | return NULL; | |
11087 | if (_argo0) { | |
11088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p."); | |
11091 | return NULL; | |
11092 | } | |
11093 | } | |
11094 | { | |
4268f798 | 11095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11096 | _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2); |
11097 | ||
4268f798 | 11098 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11099 | if (PyErr_Occurred()) return NULL; |
11100 | } _resultobj = Py_BuildValue("i",_result); | |
11101 | return _resultobj; | |
11102 | } | |
11103 | ||
11104 | #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize()) | |
11105 | static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject * _resultobj; | |
11107 | wxSize * _result; | |
11108 | wxMetaFile * _arg0; | |
11109 | PyObject * _argo0 = 0; | |
11110 | char *_kwnames[] = { "self", NULL }; | |
11111 | char _ptemp[128]; | |
11112 | ||
11113 | self = self; | |
11114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0)) | |
11115 | return NULL; | |
11116 | if (_argo0) { | |
11117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p."); | |
11120 | return NULL; | |
11121 | } | |
11122 | } | |
11123 | { | |
4268f798 | 11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11125 | _result = new wxSize (wxMetaFile_GetSize(_arg0)); |
11126 | ||
4268f798 | 11127 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11128 | if (PyErr_Occurred()) return NULL; |
11129 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
11130 | _resultobj = Py_BuildValue("s",_ptemp); | |
11131 | return _resultobj; | |
11132 | } | |
11133 | ||
11134 | #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11135 | static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11136 | PyObject * _resultobj; | |
11137 | int _result; | |
11138 | wxMetaFile * _arg0; | |
11139 | PyObject * _argo0 = 0; | |
11140 | char *_kwnames[] = { "self", NULL }; | |
11141 | ||
11142 | self = self; | |
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0)) | |
11144 | return NULL; | |
11145 | if (_argo0) { | |
11146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p."); | |
11149 | return NULL; | |
11150 | } | |
11151 | } | |
11152 | { | |
4268f798 | 11153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11154 | _result = (int )wxMetaFile_GetWidth(_arg0); |
11155 | ||
4268f798 | 11156 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11157 | if (PyErr_Occurred()) return NULL; |
11158 | } _resultobj = Py_BuildValue("i",_result); | |
11159 | return _resultobj; | |
11160 | } | |
11161 | ||
11162 | #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11163 | static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11164 | PyObject * _resultobj; | |
11165 | int _result; | |
11166 | wxMetaFile * _arg0; | |
11167 | PyObject * _argo0 = 0; | |
11168 | char *_kwnames[] = { "self", NULL }; | |
11169 | ||
11170 | self = self; | |
11171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0)) | |
11172 | return NULL; | |
11173 | if (_argo0) { | |
11174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p."); | |
11177 | return NULL; | |
11178 | } | |
11179 | } | |
11180 | { | |
4268f798 | 11181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11182 | _result = (int )wxMetaFile_GetHeight(_arg0); |
11183 | ||
4268f798 | 11184 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11185 | if (PyErr_Occurred()) return NULL; |
11186 | } _resultobj = Py_BuildValue("i",_result); | |
11187 | return _resultobj; | |
11188 | } | |
11189 | ||
11190 | #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
11191 | static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11192 | PyObject * _resultobj; | |
11193 | wxString * _result; | |
11194 | wxMetaFile * _arg0; | |
11195 | PyObject * _argo0 = 0; | |
11196 | char *_kwnames[] = { "self", NULL }; | |
11197 | ||
11198 | self = self; | |
11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0)) | |
11200 | return NULL; | |
11201 | if (_argo0) { | |
11202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
11204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p."); | |
11205 | return NULL; | |
11206 | } | |
11207 | } | |
11208 | { | |
4268f798 | 11209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c RD |
11210 | const wxString & _result_ref = wxMetaFile_GetFileName(_arg0); |
11211 | _result = (wxString *) &_result_ref; | |
11212 | ||
4268f798 | 11213 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
11214 | if (PyErr_Occurred()) return NULL; |
11215 | }{ | |
11216 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
11217 | } | |
11218 | return _resultobj; | |
11219 | } | |
11220 | ||
8ab979d7 RD |
11221 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
11222 | wxMetaFileDC *src; | |
11223 | wxDC *dest; | |
11224 | src = (wxMetaFileDC *) ptr; | |
11225 | dest = (wxDC *) src; | |
11226 | return (void *) dest; | |
11227 | } | |
11228 | ||
9416aa89 RD |
11229 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
11230 | wxMetaFileDC *src; | |
11231 | wxObject *dest; | |
11232 | src = (wxMetaFileDC *) ptr; | |
11233 | dest = (wxObject *) src; | |
11234 | return (void *) dest; | |
11235 | } | |
11236 | ||
17c0e08c | 11237 | #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11238 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11239 | PyObject * _resultobj; |
11240 | wxMetaFileDC * _result; | |
23bed520 | 11241 | wxString * _arg0 = (wxString *) &wxEmptyString; |
17c0e08c RD |
11242 | int _arg1 = (int ) 0; |
11243 | int _arg2 = (int ) 0; | |
23bed520 | 11244 | wxString * _arg3 = (wxString *) &wxEmptyString; |
8ab979d7 | 11245 | PyObject * _obj0 = 0; |
17c0e08c RD |
11246 | PyObject * _obj3 = 0; |
11247 | char *_kwnames[] = { "filename","width","height","description", NULL }; | |
8ab979d7 RD |
11248 | char _ptemp[128]; |
11249 | ||
11250 | self = self; | |
17c0e08c | 11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 RD |
11252 | return NULL; |
11253 | if (_obj0) | |
11254 | { | |
185d7c3e RD |
11255 | #if PYTHON_API_VERSION >= 1009 |
11256 | char* tmpPtr; int tmpSize; | |
11257 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 11258 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
11259 | return NULL; |
11260 | } | |
11261 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
11262 | return NULL; | |
11263 | _arg0 = new wxString(tmpPtr, tmpSize); | |
11264 | #else | |
8ab979d7 RD |
11265 | if (!PyString_Check(_obj0)) { |
11266 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11267 | return NULL; | |
11268 | } | |
185d7c3e RD |
11269 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
11270 | #endif | |
17c0e08c RD |
11271 | } |
11272 | if (_obj3) | |
11273 | { | |
11274 | #if PYTHON_API_VERSION >= 1009 | |
11275 | char* tmpPtr; int tmpSize; | |
11276 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
11277 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11278 | return NULL; | |
11279 | } | |
11280 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
11281 | return NULL; | |
11282 | _arg3 = new wxString(tmpPtr, tmpSize); | |
11283 | #else | |
11284 | if (!PyString_Check(_obj3)) { | |
11285 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
11286 | return NULL; | |
11287 | } | |
11288 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
11289 | #endif | |
8ab979d7 | 11290 | } |
cf694132 | 11291 | { |
4268f798 | 11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17c0e08c | 11293 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 11294 | |
4268f798 | 11295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11296 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11297 | } if (_result) { |
11298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
11299 | _resultobj = Py_BuildValue("s",_ptemp); | |
11300 | } else { | |
11301 | Py_INCREF(Py_None); | |
11302 | _resultobj = Py_None; | |
11303 | } | |
8ab979d7 RD |
11304 | { |
11305 | if (_obj0) | |
11306 | delete _arg0; | |
17c0e08c RD |
11307 | } |
11308 | { | |
11309 | if (_obj3) | |
11310 | delete _arg3; | |
8ab979d7 RD |
11311 | } |
11312 | return _resultobj; | |
11313 | } | |
11314 | ||
11315 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 11316 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11317 | PyObject * _resultobj; |
11318 | wxMetaFile * _result; | |
11319 | wxMetaFileDC * _arg0; | |
1d99702e | 11320 | PyObject * _argo0 = 0; |
1afc06c2 | 11321 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
11322 | char _ptemp[128]; |
11323 | ||
11324 | self = self; | |
1afc06c2 | 11325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 11326 | return NULL; |
1d99702e RD |
11327 | if (_argo0) { |
11328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
11330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
11331 | return NULL; | |
11332 | } | |
11333 | } | |
cf694132 | 11334 | { |
4268f798 | 11335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11336 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); |
11337 | ||
4268f798 | 11338 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11339 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11340 | } if (_result) { |
11341 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
11342 | _resultobj = Py_BuildValue("s",_ptemp); | |
11343 | } else { | |
11344 | Py_INCREF(Py_None); | |
11345 | _resultobj = Py_None; | |
11346 | } | |
8ab979d7 RD |
11347 | return _resultobj; |
11348 | } | |
11349 | ||
9416aa89 RD |
11350 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
11351 | wxPalette *src; | |
11352 | wxGDIObject *dest; | |
11353 | src = (wxPalette *) ptr; | |
11354 | dest = (wxGDIObject *) src; | |
11355 | return (void *) dest; | |
11356 | } | |
11357 | ||
11358 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
11359 | wxPalette *src; | |
11360 | wxObject *dest; | |
11361 | src = (wxPalette *) ptr; | |
11362 | dest = (wxObject *) src; | |
11363 | return (void *) dest; | |
11364 | } | |
11365 | ||
b639c3c5 | 11366 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11367 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11368 | PyObject * _resultobj; |
11369 | wxPalette * _result; | |
11370 | int _arg0; | |
11371 | byte * _arg1; | |
11372 | byte * _arg2; | |
11373 | byte * _arg3; | |
11374 | PyObject * _obj1 = 0; | |
11375 | PyObject * _obj2 = 0; | |
11376 | PyObject * _obj3 = 0; | |
eec92d76 | 11377 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
11378 | char _ptemp[128]; |
11379 | ||
11380 | self = self; | |
1afc06c2 | 11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
11382 | return NULL; |
11383 | { | |
11384 | _arg1 = byte_LIST_helper(_obj1); | |
11385 | if (_arg1 == NULL) { | |
11386 | return NULL; | |
11387 | } | |
11388 | } | |
11389 | { | |
11390 | _arg2 = byte_LIST_helper(_obj2); | |
11391 | if (_arg2 == NULL) { | |
11392 | return NULL; | |
11393 | } | |
11394 | } | |
11395 | if (_obj3) | |
11396 | { | |
11397 | _arg3 = byte_LIST_helper(_obj3); | |
11398 | if (_arg3 == NULL) { | |
11399 | return NULL; | |
11400 | } | |
11401 | } | |
11402 | { | |
cf694132 RD |
11403 | if (_obj1) { |
11404 | _arg0 = PyList_Size(_obj1); | |
11405 | } | |
11406 | else { | |
11407 | _arg0 = 0; | |
11408 | } | |
b639c3c5 | 11409 | } |
cf694132 | 11410 | { |
4268f798 | 11411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11412 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
11413 | ||
4268f798 | 11414 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11415 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11416 | } if (_result) { |
11417 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
11418 | _resultobj = Py_BuildValue("s",_ptemp); | |
11419 | } else { | |
11420 | Py_INCREF(Py_None); | |
11421 | _resultobj = Py_None; | |
11422 | } | |
b639c3c5 RD |
11423 | { |
11424 | delete [] _arg1; | |
11425 | } | |
11426 | { | |
11427 | delete [] _arg2; | |
11428 | } | |
11429 | { | |
11430 | delete [] _arg3; | |
11431 | } | |
11432 | return _resultobj; | |
11433 | } | |
11434 | ||
11435 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 11436 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11437 | PyObject * _resultobj; |
11438 | wxPalette * _arg0; | |
1d99702e | 11439 | PyObject * _argo0 = 0; |
1afc06c2 | 11440 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11441 | |
11442 | self = self; | |
1afc06c2 | 11443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 11444 | return NULL; |
1d99702e RD |
11445 | if (_argo0) { |
11446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
11449 | return NULL; | |
11450 | } | |
11451 | } | |
cf694132 | 11452 | { |
4268f798 | 11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11454 | delete_wxPalette(_arg0); |
11455 | ||
4268f798 | 11456 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11458 | } Py_INCREF(Py_None); |
b639c3c5 RD |
11459 | _resultobj = Py_None; |
11460 | return _resultobj; | |
11461 | } | |
11462 | ||
11463 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 11464 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11465 | PyObject * _resultobj; |
11466 | int _result; | |
11467 | wxPalette * _arg0; | |
11468 | byte _arg1; | |
11469 | byte _arg2; | |
11470 | byte _arg3; | |
1d99702e | 11471 | PyObject * _argo0 = 0; |
1afc06c2 | 11472 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
11473 | |
11474 | self = self; | |
1afc06c2 | 11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 11476 | return NULL; |
1d99702e RD |
11477 | if (_argo0) { |
11478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
11481 | return NULL; | |
11482 | } | |
11483 | } | |
cf694132 | 11484 | { |
4268f798 | 11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11486 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
11487 | ||
4268f798 | 11488 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11490 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11491 | return _resultobj; |
11492 | } | |
11493 | ||
11494 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 11495 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11496 | PyObject * _resultobj; |
11497 | bool _result; | |
11498 | wxPalette * _arg0; | |
11499 | int _arg1; | |
11500 | byte * _arg2; | |
11501 | byte * _arg3; | |
11502 | byte * _arg4; | |
1d99702e RD |
11503 | PyObject * _argo0 = 0; |
11504 | PyObject * _argo2 = 0; | |
11505 | PyObject * _argo3 = 0; | |
11506 | PyObject * _argo4 = 0; | |
1afc06c2 | 11507 | char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL }; |
b639c3c5 RD |
11508 | |
11509 | self = self; | |
1afc06c2 | 11510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4)) |
b639c3c5 | 11511 | return NULL; |
1d99702e RD |
11512 | if (_argo0) { |
11513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
11516 | return NULL; | |
11517 | } | |
11518 | } | |
1d99702e RD |
11519 | if (_argo2) { |
11520 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11521 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) { | |
b639c3c5 RD |
11522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p."); |
11523 | return NULL; | |
11524 | } | |
11525 | } | |
1d99702e RD |
11526 | if (_argo3) { |
11527 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11528 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) { | |
b639c3c5 RD |
11529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p."); |
11530 | return NULL; | |
11531 | } | |
11532 | } | |
1d99702e RD |
11533 | if (_argo4) { |
11534 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
11535 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) { | |
b639c3c5 RD |
11536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p."); |
11537 | return NULL; | |
11538 | } | |
11539 | } | |
cf694132 | 11540 | { |
4268f798 | 11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11542 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
11543 | ||
4268f798 | 11544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11545 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11546 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11547 | return _resultobj; |
11548 | } | |
11549 | ||
11550 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 11551 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11552 | PyObject * _resultobj; |
11553 | bool _result; | |
11554 | wxPalette * _arg0; | |
1d99702e | 11555 | PyObject * _argo0 = 0; |
1afc06c2 | 11556 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11557 | |
11558 | self = self; | |
1afc06c2 | 11559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 11560 | return NULL; |
1d99702e RD |
11561 | if (_argo0) { |
11562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
11565 | return NULL; | |
11566 | } | |
11567 | } | |
cf694132 | 11568 | { |
4268f798 | 11569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11570 | _result = (bool )wxPalette_Ok(_arg0); |
11571 | ||
4268f798 | 11572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11573 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11574 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11575 | return _resultobj; |
11576 | } | |
11577 | ||
9416aa89 RD |
11578 | static void *SwigwxImageListTowxObject(void *ptr) { |
11579 | wxImageList *src; | |
11580 | wxObject *dest; | |
11581 | src = (wxImageList *) ptr; | |
11582 | dest = (wxObject *) src; | |
11583 | return (void *) dest; | |
11584 | } | |
11585 | ||
af309447 | 11586 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11587 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11588 | PyObject * _resultobj; |
11589 | wxImageList * _result; | |
11590 | int _arg0; | |
11591 | int _arg1; | |
dcd38683 | 11592 | int _arg2 = (int ) TRUE; |
1d99702e | 11593 | int _arg3 = (int ) 1; |
1afc06c2 | 11594 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
11595 | char _ptemp[128]; |
11596 | ||
11597 | self = self; | |
6999b0d8 | 11598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 11599 | return NULL; |
cf694132 | 11600 | { |
4268f798 | 11601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11602 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
11603 | ||
4268f798 | 11604 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11605 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11606 | } if (_result) { |
11607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
11608 | _resultobj = Py_BuildValue("s",_ptemp); | |
11609 | } else { | |
11610 | Py_INCREF(Py_None); | |
11611 | _resultobj = Py_None; | |
11612 | } | |
af309447 RD |
11613 | return _resultobj; |
11614 | } | |
11615 | ||
11616 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 11617 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11618 | PyObject * _resultobj; |
11619 | wxImageList * _arg0; | |
1d99702e | 11620 | PyObject * _argo0 = 0; |
1afc06c2 | 11621 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11622 | |
11623 | self = self; | |
1afc06c2 | 11624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 11625 | return NULL; |
1d99702e RD |
11626 | if (_argo0) { |
11627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
11630 | return NULL; | |
11631 | } | |
11632 | } | |
cf694132 | 11633 | { |
4268f798 | 11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11635 | delete_wxImageList(_arg0); |
11636 | ||
4268f798 | 11637 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11639 | } Py_INCREF(Py_None); |
af309447 RD |
11640 | _resultobj = Py_None; |
11641 | return _resultobj; | |
11642 | } | |
11643 | ||
11644 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11645 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11646 | PyObject * _resultobj; |
11647 | int _result; | |
11648 | wxImageList * _arg0; | |
11649 | wxBitmap * _arg1; | |
1d99702e RD |
11650 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
11651 | PyObject * _argo0 = 0; | |
11652 | PyObject * _argo1 = 0; | |
11653 | PyObject * _argo2 = 0; | |
1afc06c2 | 11654 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
11655 | |
11656 | self = self; | |
1afc06c2 | 11657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 11658 | return NULL; |
1d99702e RD |
11659 | if (_argo0) { |
11660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
11663 | return NULL; | |
11664 | } | |
11665 | } | |
1d99702e RD |
11666 | if (_argo1) { |
11667 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11668 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
11670 | return NULL; | |
11671 | } | |
11672 | } | |
1d99702e RD |
11673 | if (_argo2) { |
11674 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11675 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
11676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
11677 | return NULL; | |
11678 | } | |
11679 | } | |
cf694132 | 11680 | { |
4268f798 | 11681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11682 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
11683 | ||
4268f798 | 11684 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11685 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11686 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11687 | return _resultobj; |
11688 | } | |
11689 | ||
11690 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11691 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11692 | PyObject * _resultobj; |
11693 | int _result; | |
11694 | wxImageList * _arg0; | |
11695 | wxBitmap * _arg1; | |
11696 | wxColour * _arg2; | |
1d99702e RD |
11697 | PyObject * _argo0 = 0; |
11698 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
11699 | wxColour temp; |
11700 | PyObject * _obj2 = 0; | |
1afc06c2 | 11701 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
11702 | |
11703 | self = self; | |
f6bcfd97 | 11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 11705 | return NULL; |
1d99702e RD |
11706 | if (_argo0) { |
11707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
11710 | return NULL; | |
11711 | } | |
11712 | } | |
1d99702e RD |
11713 | if (_argo1) { |
11714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
11717 | return NULL; | |
11718 | } | |
11719 | } | |
f6bcfd97 BP |
11720 | { |
11721 | _arg2 = &temp; | |
11722 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 11723 | return NULL; |
f6bcfd97 | 11724 | } |
cf694132 | 11725 | { |
4268f798 | 11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11727 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
11728 | ||
4268f798 | 11729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11730 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11731 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11732 | return _resultobj; |
11733 | } | |
11734 | ||
11735 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 11736 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11737 | PyObject * _resultobj; |
11738 | int _result; | |
11739 | wxImageList * _arg0; | |
11740 | wxIcon * _arg1; | |
1d99702e RD |
11741 | PyObject * _argo0 = 0; |
11742 | PyObject * _argo1 = 0; | |
1afc06c2 | 11743 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
11744 | |
11745 | self = self; | |
1afc06c2 | 11746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 11747 | return NULL; |
1d99702e RD |
11748 | if (_argo0) { |
11749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
11752 | return NULL; | |
11753 | } | |
11754 | } | |
1d99702e RD |
11755 | if (_argo1) { |
11756 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11757 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
11758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
11759 | return NULL; | |
11760 | } | |
11761 | } | |
cf694132 | 11762 | { |
4268f798 | 11763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11764 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
11765 | ||
4268f798 | 11766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11767 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11768 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11769 | return _resultobj; |
11770 | } | |
11771 | ||
21f8d7ea | 11772 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 11773 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11774 | PyObject * _resultobj; |
11775 | bool _result; | |
11776 | wxImageList * _arg0; | |
11777 | int _arg1; | |
21f8d7ea | 11778 | wxBitmap * _arg2; |
1d99702e RD |
11779 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
11780 | PyObject * _argo0 = 0; | |
11781 | PyObject * _argo2 = 0; | |
11782 | PyObject * _argo3 = 0; | |
1afc06c2 | 11783 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
11784 | |
11785 | self = self; | |
1afc06c2 | 11786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 11787 | return NULL; |
1d99702e RD |
11788 | if (_argo0) { |
11789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
11792 | return NULL; |
11793 | } | |
11794 | } | |
1d99702e RD |
11795 | if (_argo2) { |
11796 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11797 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 11798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
11799 | return NULL; |
11800 | } | |
11801 | } | |
1d99702e RD |
11802 | if (_argo3) { |
11803 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11804 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
11805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
11806 | return NULL; | |
11807 | } | |
11808 | } | |
cf694132 | 11809 | { |
4268f798 | 11810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11811 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); |
11812 | ||
4268f798 | 11813 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11814 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11815 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11816 | return _resultobj; |
11817 | } | |
11818 | ||
21f8d7ea | 11819 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 11820 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11821 | PyObject * _resultobj; |
11822 | bool _result; | |
11823 | wxImageList * _arg0; | |
11824 | int _arg1; | |
21f8d7ea RD |
11825 | wxDC * _arg2; |
11826 | int _arg3; | |
11827 | int _arg4; | |
1d99702e RD |
11828 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
11829 | bool _arg6 = (bool ) FALSE; | |
11830 | PyObject * _argo0 = 0; | |
11831 | PyObject * _argo2 = 0; | |
11832 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 11833 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
11834 | |
11835 | self = self; | |
1afc06c2 | 11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 11837 | return NULL; |
1d99702e RD |
11838 | if (_argo0) { |
11839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
11842 | return NULL; |
11843 | } | |
11844 | } | |
1d99702e RD |
11845 | if (_argo2) { |
11846 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11847 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
11848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
11849 | return NULL; | |
11850 | } | |
11851 | } | |
11852 | _arg6 = (bool ) tempbool6; | |
cf694132 | 11853 | { |
4268f798 | 11854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11855 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
11856 | ||
4268f798 | 11857 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11858 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11859 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11860 | return _resultobj; |
11861 | } | |
11862 | ||
21f8d7ea | 11863 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 11864 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 11865 | PyObject * _resultobj; |
21f8d7ea | 11866 | int _result; |
af309447 | 11867 | wxImageList * _arg0; |
1d99702e | 11868 | PyObject * _argo0 = 0; |
1afc06c2 | 11869 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11870 | |
11871 | self = self; | |
1afc06c2 | 11872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 11873 | return NULL; |
1d99702e RD |
11874 | if (_argo0) { |
11875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
11878 | return NULL; |
11879 | } | |
11880 | } | |
cf694132 | 11881 | { |
4268f798 | 11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11883 | _result = (int )wxImageList_GetImageCount(_arg0); |
11884 | ||
4268f798 | 11885 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11886 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11887 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11888 | return _resultobj; |
11889 | } | |
11890 | ||
21f8d7ea | 11891 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 11892 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11893 | PyObject * _resultobj; |
11894 | bool _result; | |
11895 | wxImageList * _arg0; | |
11896 | int _arg1; | |
1d99702e | 11897 | PyObject * _argo0 = 0; |
1afc06c2 | 11898 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
11899 | |
11900 | self = self; | |
1afc06c2 | 11901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 11902 | return NULL; |
1d99702e RD |
11903 | if (_argo0) { |
11904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
11907 | return NULL; |
11908 | } | |
11909 | } | |
cf694132 | 11910 | { |
4268f798 | 11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11912 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
11913 | ||
4268f798 | 11914 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11915 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11916 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11917 | return _resultobj; |
11918 | } | |
11919 | ||
21f8d7ea | 11920 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 11921 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11922 | PyObject * _resultobj; |
11923 | bool _result; | |
11924 | wxImageList * _arg0; | |
1d99702e | 11925 | PyObject * _argo0 = 0; |
1afc06c2 | 11926 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11927 | |
11928 | self = self; | |
1afc06c2 | 11929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 11930 | return NULL; |
1d99702e RD |
11931 | if (_argo0) { |
11932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
11935 | return NULL; |
11936 | } | |
11937 | } | |
cf694132 | 11938 | { |
4268f798 | 11939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
11940 | _result = (bool )wxImageList_RemoveAll(_arg0); |
11941 | ||
4268f798 | 11942 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11943 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11944 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11945 | return _resultobj; |
11946 | } | |
11947 | ||
f6bcfd97 BP |
11948 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
11949 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11950 | PyObject * _resultobj; | |
11951 | wxImageList * _arg0; | |
11952 | int _arg1; | |
11953 | int * _arg2; | |
11954 | int temp; | |
11955 | int * _arg3; | |
11956 | int temp0; | |
11957 | PyObject * _argo0 = 0; | |
11958 | char *_kwnames[] = { "self","index", NULL }; | |
11959 | ||
11960 | self = self; | |
11961 | { | |
11962 | _arg2 = &temp; | |
11963 | } | |
11964 | { | |
11965 | _arg3 = &temp0; | |
11966 | } | |
11967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
11968 | return NULL; | |
11969 | if (_argo0) { | |
11970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
11972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
11973 | return NULL; | |
11974 | } | |
11975 | } | |
11976 | { | |
4268f798 | 11977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
11978 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
11979 | ||
4268f798 | 11980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11981 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11982 | } Py_INCREF(Py_None); |
11983 | _resultobj = Py_None; | |
11984 | { | |
11985 | PyObject *o; | |
11986 | o = PyInt_FromLong((long) (*_arg2)); | |
11987 | _resultobj = t_output_helper(_resultobj, o); | |
11988 | } | |
11989 | { | |
11990 | PyObject *o; | |
11991 | o = PyInt_FromLong((long) (*_arg3)); | |
11992 | _resultobj = t_output_helper(_resultobj, o); | |
11993 | } | |
11994 | return _resultobj; | |
11995 | } | |
11996 | ||
9416aa89 RD |
11997 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
11998 | wxRegion *src; | |
11999 | wxGDIObject *dest; | |
12000 | src = (wxRegion *) ptr; | |
12001 | dest = (wxGDIObject *) src; | |
12002 | return (void *) dest; | |
12003 | } | |
12004 | ||
12005 | static void *SwigwxRegionTowxObject(void *ptr) { | |
12006 | wxRegion *src; | |
12007 | wxObject *dest; | |
12008 | src = (wxRegion *) ptr; | |
12009 | dest = (wxObject *) src; | |
12010 | return (void *) dest; | |
12011 | } | |
12012 | ||
12013 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12014 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12015 | PyObject * _resultobj; | |
12016 | wxRegion * _result; | |
12017 | long _arg0 = (long ) 0; | |
12018 | long _arg1 = (long ) 0; | |
12019 | long _arg2 = (long ) 0; | |
12020 | long _arg3 = (long ) 0; | |
12021 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
12022 | char _ptemp[128]; | |
12023 | ||
12024 | self = self; | |
12025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
12026 | return NULL; | |
12027 | { | |
4268f798 | 12028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12029 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
12030 | ||
4268f798 | 12031 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12032 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12033 | } if (_result) { |
12034 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
12035 | _resultobj = Py_BuildValue("s",_ptemp); | |
12036 | } else { | |
12037 | Py_INCREF(Py_None); | |
12038 | _resultobj = Py_None; | |
12039 | } | |
12040 | return _resultobj; | |
12041 | } | |
12042 | ||
12043 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
12044 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12045 | PyObject * _resultobj; | |
12046 | wxRegion * _arg0; | |
12047 | PyObject * _argo0 = 0; | |
12048 | char *_kwnames[] = { "self", NULL }; | |
12049 | ||
12050 | self = self; | |
12051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
12052 | return NULL; | |
12053 | if (_argo0) { | |
12054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
12057 | return NULL; | |
12058 | } | |
12059 | } | |
12060 | { | |
4268f798 | 12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12062 | delete_wxRegion(_arg0); |
12063 | ||
4268f798 | 12064 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12065 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12066 | } Py_INCREF(Py_None); |
12067 | _resultobj = Py_None; | |
12068 | return _resultobj; | |
12069 | } | |
12070 | ||
12071 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
12072 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12073 | PyObject * _resultobj; | |
12074 | wxRegion * _arg0; | |
12075 | PyObject * _argo0 = 0; | |
12076 | char *_kwnames[] = { "self", NULL }; | |
12077 | ||
12078 | self = self; | |
12079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
12080 | return NULL; | |
12081 | if (_argo0) { | |
12082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
12085 | return NULL; | |
12086 | } | |
12087 | } | |
12088 | { | |
4268f798 | 12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12090 | wxRegion_Clear(_arg0); |
12091 | ||
4268f798 | 12092 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12093 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12094 | } Py_INCREF(Py_None); |
12095 | _resultobj = Py_None; | |
12096 | return _resultobj; | |
12097 | } | |
12098 | ||
23bed520 RD |
12099 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
12100 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12101 | PyObject * _resultobj; | |
12102 | bool _result; | |
12103 | wxRegion * _arg0; | |
12104 | wxCoord _arg1; | |
12105 | wxCoord _arg2; | |
12106 | PyObject * _argo0 = 0; | |
12107 | char *_kwnames[] = { "self","x","y", NULL }; | |
12108 | ||
12109 | self = self; | |
12110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
12111 | return NULL; | |
12112 | if (_argo0) { | |
12113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
12116 | return NULL; | |
12117 | } | |
12118 | } | |
12119 | { | |
12120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12121 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); | |
12122 | ||
12123 | wxPyEndAllowThreads(__tstate); | |
12124 | if (PyErr_Occurred()) return NULL; | |
12125 | } _resultobj = Py_BuildValue("i",_result); | |
12126 | return _resultobj; | |
12127 | } | |
12128 | ||
9416aa89 RD |
12129 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
12130 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12131 | PyObject * _resultobj; | |
12132 | wxRegionContain _result; | |
12133 | wxRegion * _arg0; | |
12134 | long _arg1; | |
12135 | long _arg2; | |
12136 | PyObject * _argo0 = 0; | |
12137 | char *_kwnames[] = { "self","x","y", NULL }; | |
12138 | ||
12139 | self = self; | |
12140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
12141 | return NULL; | |
12142 | if (_argo0) { | |
12143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
12146 | return NULL; | |
12147 | } | |
12148 | } | |
12149 | { | |
4268f798 | 12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12151 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
12152 | ||
4268f798 | 12153 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12154 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12155 | } _resultobj = Py_BuildValue("i",_result); |
12156 | return _resultobj; | |
12157 | } | |
12158 | ||
12159 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
12160 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12161 | PyObject * _resultobj; | |
12162 | wxRegionContain _result; | |
12163 | wxRegion * _arg0; | |
12164 | wxPoint * _arg1; | |
12165 | PyObject * _argo0 = 0; | |
12166 | wxPoint temp; | |
12167 | PyObject * _obj1 = 0; | |
12168 | char *_kwnames[] = { "self","pt", NULL }; | |
12169 | ||
12170 | self = self; | |
12171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
12172 | return NULL; | |
12173 | if (_argo0) { | |
12174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
12177 | return NULL; | |
12178 | } | |
12179 | } | |
12180 | { | |
12181 | _arg1 = &temp; | |
12182 | if (! wxPoint_helper(_obj1, &_arg1)) | |
12183 | return NULL; | |
12184 | } | |
12185 | { | |
4268f798 | 12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12187 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
12188 | ||
4268f798 | 12189 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12190 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12191 | } _resultobj = Py_BuildValue("i",_result); |
12192 | return _resultobj; | |
12193 | } | |
12194 | ||
12195 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
12196 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12197 | PyObject * _resultobj; | |
12198 | wxRegionContain _result; | |
12199 | wxRegion * _arg0; | |
12200 | wxRect * _arg1; | |
12201 | PyObject * _argo0 = 0; | |
12202 | wxRect temp; | |
12203 | PyObject * _obj1 = 0; | |
12204 | char *_kwnames[] = { "self","rect", NULL }; | |
12205 | ||
12206 | self = self; | |
12207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
12208 | return NULL; | |
12209 | if (_argo0) { | |
12210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
12213 | return NULL; | |
12214 | } | |
12215 | } | |
12216 | { | |
12217 | _arg1 = &temp; | |
12218 | if (! wxRect_helper(_obj1, &_arg1)) | |
12219 | return NULL; | |
12220 | } | |
12221 | { | |
4268f798 | 12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12223 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
12224 | ||
4268f798 | 12225 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12226 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12227 | } _resultobj = Py_BuildValue("i",_result); |
12228 | return _resultobj; | |
12229 | } | |
12230 | ||
12231 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12232 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12233 | PyObject * _resultobj; | |
12234 | wxRegionContain _result; | |
12235 | wxRegion * _arg0; | |
12236 | long _arg1; | |
12237 | long _arg2; | |
12238 | long _arg3; | |
12239 | long _arg4; | |
12240 | PyObject * _argo0 = 0; | |
12241 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
12242 | ||
12243 | self = self; | |
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12245 | return NULL; | |
12246 | if (_argo0) { | |
12247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
12250 | return NULL; | |
12251 | } | |
12252 | } | |
12253 | { | |
4268f798 | 12254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12255 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
12256 | ||
4268f798 | 12257 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12258 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12259 | } _resultobj = Py_BuildValue("i",_result); |
12260 | return _resultobj; | |
12261 | } | |
12262 | ||
12263 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
12264 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12265 | PyObject * _resultobj; | |
12266 | wxRect * _result; | |
12267 | wxRegion * _arg0; | |
12268 | PyObject * _argo0 = 0; | |
12269 | char *_kwnames[] = { "self", NULL }; | |
12270 | char _ptemp[128]; | |
12271 | ||
12272 | self = self; | |
12273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
12274 | return NULL; | |
12275 | if (_argo0) { | |
12276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
12279 | return NULL; | |
12280 | } | |
12281 | } | |
12282 | { | |
4268f798 | 12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12284 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
12285 | ||
4268f798 | 12286 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12287 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12288 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12289 | _resultobj = Py_BuildValue("s",_ptemp); | |
12290 | return _resultobj; | |
12291 | } | |
12292 | ||
12293 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12294 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12295 | PyObject * _resultobj; | |
12296 | bool _result; | |
12297 | wxRegion * _arg0; | |
12298 | long _arg1; | |
12299 | long _arg2; | |
12300 | long _arg3; | |
12301 | long _arg4; | |
12302 | PyObject * _argo0 = 0; | |
12303 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12304 | ||
12305 | self = self; | |
12306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12307 | return NULL; | |
12308 | if (_argo0) { | |
12309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
12312 | return NULL; | |
12313 | } | |
12314 | } | |
12315 | { | |
4268f798 | 12316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12317 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
12318 | ||
4268f798 | 12319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12320 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12321 | } _resultobj = Py_BuildValue("i",_result); |
12322 | return _resultobj; | |
12323 | } | |
12324 | ||
12325 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12326 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject * _resultobj; | |
12328 | bool _result; | |
12329 | wxRegion * _arg0; | |
12330 | wxRect * _arg1; | |
12331 | PyObject * _argo0 = 0; | |
12332 | wxRect temp; | |
12333 | PyObject * _obj1 = 0; | |
12334 | char *_kwnames[] = { "self","rect", NULL }; | |
12335 | ||
12336 | self = self; | |
12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
12338 | return NULL; | |
12339 | if (_argo0) { | |
12340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
12343 | return NULL; | |
12344 | } | |
12345 | } | |
12346 | { | |
12347 | _arg1 = &temp; | |
12348 | if (! wxRect_helper(_obj1, &_arg1)) | |
12349 | return NULL; | |
12350 | } | |
12351 | { | |
4268f798 | 12352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12353 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
12354 | ||
4268f798 | 12355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12356 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12357 | } _resultobj = Py_BuildValue("i",_result); |
12358 | return _resultobj; | |
12359 | } | |
12360 | ||
12361 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12362 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12363 | PyObject * _resultobj; | |
12364 | bool _result; | |
12365 | wxRegion * _arg0; | |
12366 | wxRegion * _arg1; | |
12367 | PyObject * _argo0 = 0; | |
12368 | PyObject * _argo1 = 0; | |
12369 | char *_kwnames[] = { "self","region", NULL }; | |
12370 | ||
12371 | self = self; | |
12372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
12373 | return NULL; | |
12374 | if (_argo0) { | |
12375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12378 | return NULL; | |
12379 | } | |
12380 | } | |
12381 | if (_argo1) { | |
12382 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12383 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12385 | return NULL; | |
12386 | } | |
12387 | } | |
12388 | { | |
4268f798 | 12389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12390 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
12391 | ||
4268f798 | 12392 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12393 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12394 | } _resultobj = Py_BuildValue("i",_result); |
12395 | return _resultobj; | |
12396 | } | |
12397 | ||
12398 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
12399 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12400 | PyObject * _resultobj; | |
12401 | bool _result; | |
12402 | wxRegion * _arg0; | |
12403 | PyObject * _argo0 = 0; | |
12404 | char *_kwnames[] = { "self", NULL }; | |
12405 | ||
12406 | self = self; | |
12407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
12408 | return NULL; | |
12409 | if (_argo0) { | |
12410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
12413 | return NULL; | |
12414 | } | |
12415 | } | |
12416 | { | |
4268f798 | 12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12418 | _result = (bool )wxRegion_IsEmpty(_arg0); |
12419 | ||
4268f798 | 12420 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12421 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12422 | } _resultobj = Py_BuildValue("i",_result); |
12423 | return _resultobj; | |
12424 | } | |
12425 | ||
12426 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12427 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12428 | PyObject * _resultobj; | |
12429 | bool _result; | |
12430 | wxRegion * _arg0; | |
12431 | long _arg1; | |
12432 | long _arg2; | |
12433 | long _arg3; | |
12434 | long _arg4; | |
12435 | PyObject * _argo0 = 0; | |
12436 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12437 | ||
12438 | self = self; | |
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12440 | return NULL; | |
12441 | if (_argo0) { | |
12442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
12445 | return NULL; | |
12446 | } | |
12447 | } | |
12448 | { | |
4268f798 | 12449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12450 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
12451 | ||
4268f798 | 12452 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12453 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12454 | } _resultobj = Py_BuildValue("i",_result); |
12455 | return _resultobj; | |
12456 | } | |
12457 | ||
12458 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12459 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12460 | PyObject * _resultobj; | |
12461 | bool _result; | |
12462 | wxRegion * _arg0; | |
12463 | wxRect * _arg1; | |
12464 | PyObject * _argo0 = 0; | |
12465 | wxRect temp; | |
12466 | PyObject * _obj1 = 0; | |
12467 | char *_kwnames[] = { "self","rect", NULL }; | |
12468 | ||
12469 | self = self; | |
12470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
12471 | return NULL; | |
12472 | if (_argo0) { | |
12473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
12476 | return NULL; | |
12477 | } | |
12478 | } | |
12479 | { | |
12480 | _arg1 = &temp; | |
12481 | if (! wxRect_helper(_obj1, &_arg1)) | |
12482 | return NULL; | |
12483 | } | |
12484 | { | |
4268f798 | 12485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12486 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
12487 | ||
4268f798 | 12488 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12489 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12490 | } _resultobj = Py_BuildValue("i",_result); |
12491 | return _resultobj; | |
12492 | } | |
12493 | ||
12494 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12495 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12496 | PyObject * _resultobj; | |
12497 | bool _result; | |
12498 | wxRegion * _arg0; | |
12499 | wxRegion * _arg1; | |
12500 | PyObject * _argo0 = 0; | |
12501 | PyObject * _argo1 = 0; | |
12502 | char *_kwnames[] = { "self","region", NULL }; | |
12503 | ||
12504 | self = self; | |
12505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
12506 | return NULL; | |
12507 | if (_argo0) { | |
12508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12511 | return NULL; | |
12512 | } | |
12513 | } | |
12514 | if (_argo1) { | |
12515 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12516 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12518 | return NULL; | |
12519 | } | |
12520 | } | |
12521 | { | |
4268f798 | 12522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12523 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
12524 | ||
4268f798 | 12525 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12526 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12527 | } _resultobj = Py_BuildValue("i",_result); |
12528 | return _resultobj; | |
12529 | } | |
12530 | ||
12531 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12532 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12533 | PyObject * _resultobj; | |
12534 | bool _result; | |
12535 | wxRegion * _arg0; | |
12536 | long _arg1; | |
12537 | long _arg2; | |
12538 | long _arg3; | |
12539 | long _arg4; | |
12540 | PyObject * _argo0 = 0; | |
12541 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12542 | ||
12543 | self = self; | |
12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12545 | return NULL; | |
12546 | if (_argo0) { | |
12547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
12550 | return NULL; | |
12551 | } | |
12552 | } | |
12553 | { | |
4268f798 | 12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12555 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
12556 | ||
4268f798 | 12557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12558 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12559 | } _resultobj = Py_BuildValue("i",_result); |
12560 | return _resultobj; | |
12561 | } | |
12562 | ||
12563 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12564 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12565 | PyObject * _resultobj; | |
12566 | bool _result; | |
12567 | wxRegion * _arg0; | |
12568 | wxRect * _arg1; | |
12569 | PyObject * _argo0 = 0; | |
12570 | wxRect temp; | |
12571 | PyObject * _obj1 = 0; | |
12572 | char *_kwnames[] = { "self","rect", NULL }; | |
12573 | ||
12574 | self = self; | |
12575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
12576 | return NULL; | |
12577 | if (_argo0) { | |
12578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
12581 | return NULL; | |
12582 | } | |
12583 | } | |
12584 | { | |
12585 | _arg1 = &temp; | |
12586 | if (! wxRect_helper(_obj1, &_arg1)) | |
12587 | return NULL; | |
12588 | } | |
12589 | { | |
4268f798 | 12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12591 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
12592 | ||
4268f798 | 12593 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12594 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12595 | } _resultobj = Py_BuildValue("i",_result); |
12596 | return _resultobj; | |
12597 | } | |
12598 | ||
12599 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12600 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12601 | PyObject * _resultobj; | |
12602 | bool _result; | |
12603 | wxRegion * _arg0; | |
12604 | wxRegion * _arg1; | |
12605 | PyObject * _argo0 = 0; | |
12606 | PyObject * _argo1 = 0; | |
12607 | char *_kwnames[] = { "self","region", NULL }; | |
12608 | ||
12609 | self = self; | |
12610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
12611 | return NULL; | |
12612 | if (_argo0) { | |
12613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12616 | return NULL; | |
12617 | } | |
12618 | } | |
12619 | if (_argo1) { | |
12620 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12621 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12623 | return NULL; | |
12624 | } | |
12625 | } | |
12626 | { | |
4268f798 | 12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12628 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
12629 | ||
4268f798 | 12630 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12631 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12632 | } _resultobj = Py_BuildValue("i",_result); |
12633 | return _resultobj; | |
12634 | } | |
12635 | ||
12636 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12637 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12638 | PyObject * _resultobj; | |
12639 | bool _result; | |
12640 | wxRegion * _arg0; | |
12641 | long _arg1; | |
12642 | long _arg2; | |
12643 | long _arg3; | |
12644 | long _arg4; | |
12645 | PyObject * _argo0 = 0; | |
12646 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12647 | ||
12648 | self = self; | |
12649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12650 | return NULL; | |
12651 | if (_argo0) { | |
12652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
12655 | return NULL; | |
12656 | } | |
12657 | } | |
12658 | { | |
4268f798 | 12659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12660 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
12661 | ||
4268f798 | 12662 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12663 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12664 | } _resultobj = Py_BuildValue("i",_result); |
12665 | return _resultobj; | |
12666 | } | |
12667 | ||
12668 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12669 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12670 | PyObject * _resultobj; | |
12671 | bool _result; | |
12672 | wxRegion * _arg0; | |
12673 | wxRect * _arg1; | |
12674 | PyObject * _argo0 = 0; | |
12675 | wxRect temp; | |
12676 | PyObject * _obj1 = 0; | |
12677 | char *_kwnames[] = { "self","rect", NULL }; | |
12678 | ||
12679 | self = self; | |
12680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
12681 | return NULL; | |
12682 | if (_argo0) { | |
12683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
12686 | return NULL; | |
12687 | } | |
12688 | } | |
12689 | { | |
12690 | _arg1 = &temp; | |
12691 | if (! wxRect_helper(_obj1, &_arg1)) | |
12692 | return NULL; | |
12693 | } | |
12694 | { | |
4268f798 | 12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12696 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
12697 | ||
4268f798 | 12698 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12699 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12700 | } _resultobj = Py_BuildValue("i",_result); |
12701 | return _resultobj; | |
12702 | } | |
12703 | ||
12704 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12705 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12706 | PyObject * _resultobj; | |
12707 | bool _result; | |
12708 | wxRegion * _arg0; | |
12709 | wxRegion * _arg1; | |
12710 | PyObject * _argo0 = 0; | |
12711 | PyObject * _argo1 = 0; | |
12712 | char *_kwnames[] = { "self","region", NULL }; | |
12713 | ||
12714 | self = self; | |
12715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
12716 | return NULL; | |
12717 | if (_argo0) { | |
12718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12721 | return NULL; | |
12722 | } | |
12723 | } | |
12724 | if (_argo1) { | |
12725 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12726 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12728 | return NULL; | |
12729 | } | |
12730 | } | |
12731 | { | |
4268f798 | 12732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12733 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
12734 | ||
4268f798 | 12735 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12736 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12737 | } _resultobj = Py_BuildValue("i",_result); |
12738 | return _resultobj; | |
12739 | } | |
12740 | ||
12741 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
12742 | wxRegionIterator *src; | |
12743 | wxObject *dest; | |
12744 | src = (wxRegionIterator *) ptr; | |
12745 | dest = (wxObject *) src; | |
12746 | return (void *) dest; | |
12747 | } | |
12748 | ||
12749 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
12750 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12751 | PyObject * _resultobj; | |
12752 | wxRegionIterator * _result; | |
12753 | wxRegion * _arg0; | |
12754 | PyObject * _argo0 = 0; | |
12755 | char *_kwnames[] = { "region", NULL }; | |
12756 | char _ptemp[128]; | |
12757 | ||
12758 | self = self; | |
12759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
12760 | return NULL; | |
12761 | if (_argo0) { | |
12762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
12765 | return NULL; | |
12766 | } | |
12767 | } | |
12768 | { | |
4268f798 | 12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12770 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
12771 | ||
4268f798 | 12772 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12773 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12774 | } if (_result) { |
12775 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
12776 | _resultobj = Py_BuildValue("s",_ptemp); | |
12777 | } else { | |
12778 | Py_INCREF(Py_None); | |
12779 | _resultobj = Py_None; | |
12780 | } | |
12781 | return _resultobj; | |
12782 | } | |
12783 | ||
12784 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
12785 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12786 | PyObject * _resultobj; | |
12787 | wxRegionIterator * _arg0; | |
12788 | PyObject * _argo0 = 0; | |
12789 | char *_kwnames[] = { "self", NULL }; | |
12790 | ||
12791 | self = self; | |
12792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
12793 | return NULL; | |
12794 | if (_argo0) { | |
12795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
12798 | return NULL; | |
12799 | } | |
12800 | } | |
12801 | { | |
4268f798 | 12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12803 | delete_wxRegionIterator(_arg0); |
12804 | ||
4268f798 | 12805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12806 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12807 | } Py_INCREF(Py_None); |
12808 | _resultobj = Py_None; | |
12809 | return _resultobj; | |
12810 | } | |
12811 | ||
12812 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
12813 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12814 | PyObject * _resultobj; | |
12815 | long _result; | |
12816 | wxRegionIterator * _arg0; | |
12817 | PyObject * _argo0 = 0; | |
12818 | char *_kwnames[] = { "self", NULL }; | |
12819 | ||
12820 | self = self; | |
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
12822 | return NULL; | |
12823 | if (_argo0) { | |
12824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
12827 | return NULL; | |
12828 | } | |
12829 | } | |
12830 | { | |
4268f798 | 12831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12832 | _result = (long )wxRegionIterator_GetX(_arg0); |
12833 | ||
4268f798 | 12834 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12835 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12836 | } _resultobj = Py_BuildValue("l",_result); |
12837 | return _resultobj; | |
12838 | } | |
12839 | ||
12840 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
12841 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12842 | PyObject * _resultobj; | |
12843 | long _result; | |
12844 | wxRegionIterator * _arg0; | |
12845 | PyObject * _argo0 = 0; | |
12846 | char *_kwnames[] = { "self", NULL }; | |
12847 | ||
12848 | self = self; | |
12849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
12850 | return NULL; | |
12851 | if (_argo0) { | |
12852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
12855 | return NULL; | |
12856 | } | |
12857 | } | |
12858 | { | |
4268f798 | 12859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12860 | _result = (long )wxRegionIterator_GetY(_arg0); |
12861 | ||
4268f798 | 12862 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12863 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12864 | } _resultobj = Py_BuildValue("l",_result); |
12865 | return _resultobj; | |
12866 | } | |
12867 | ||
12868 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
12869 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12870 | PyObject * _resultobj; | |
12871 | long _result; | |
12872 | wxRegionIterator * _arg0; | |
12873 | PyObject * _argo0 = 0; | |
12874 | char *_kwnames[] = { "self", NULL }; | |
12875 | ||
12876 | self = self; | |
12877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
12878 | return NULL; | |
12879 | if (_argo0) { | |
12880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
12883 | return NULL; | |
12884 | } | |
12885 | } | |
12886 | { | |
4268f798 | 12887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12888 | _result = (long )wxRegionIterator_GetW(_arg0); |
12889 | ||
4268f798 | 12890 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12891 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12892 | } _resultobj = Py_BuildValue("l",_result); |
12893 | return _resultobj; | |
12894 | } | |
12895 | ||
12896 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
12897 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12898 | PyObject * _resultobj; | |
12899 | long _result; | |
12900 | wxRegionIterator * _arg0; | |
12901 | PyObject * _argo0 = 0; | |
12902 | char *_kwnames[] = { "self", NULL }; | |
12903 | ||
12904 | self = self; | |
12905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
12906 | return NULL; | |
12907 | if (_argo0) { | |
12908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
12911 | return NULL; | |
12912 | } | |
12913 | } | |
12914 | { | |
4268f798 | 12915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12916 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
12917 | ||
4268f798 | 12918 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12919 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12920 | } _resultobj = Py_BuildValue("l",_result); |
12921 | return _resultobj; | |
12922 | } | |
12923 | ||
12924 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
12925 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12926 | PyObject * _resultobj; | |
12927 | long _result; | |
12928 | wxRegionIterator * _arg0; | |
12929 | PyObject * _argo0 = 0; | |
12930 | char *_kwnames[] = { "self", NULL }; | |
12931 | ||
12932 | self = self; | |
12933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
12934 | return NULL; | |
12935 | if (_argo0) { | |
12936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
12939 | return NULL; | |
12940 | } | |
12941 | } | |
12942 | { | |
4268f798 | 12943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12944 | _result = (long )wxRegionIterator_GetH(_arg0); |
12945 | ||
4268f798 | 12946 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12947 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12948 | } _resultobj = Py_BuildValue("l",_result); |
12949 | return _resultobj; | |
12950 | } | |
12951 | ||
12952 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
12953 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12954 | PyObject * _resultobj; | |
12955 | long _result; | |
12956 | wxRegionIterator * _arg0; | |
12957 | PyObject * _argo0 = 0; | |
12958 | char *_kwnames[] = { "self", NULL }; | |
12959 | ||
12960 | self = self; | |
12961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
12962 | return NULL; | |
12963 | if (_argo0) { | |
12964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
12967 | return NULL; | |
12968 | } | |
12969 | } | |
12970 | { | |
4268f798 | 12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
12972 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
12973 | ||
4268f798 | 12974 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12975 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12976 | } _resultobj = Py_BuildValue("l",_result); |
12977 | return _resultobj; | |
12978 | } | |
12979 | ||
12980 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
12981 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12982 | PyObject * _resultobj; | |
12983 | wxRect * _result; | |
12984 | wxRegionIterator * _arg0; | |
12985 | PyObject * _argo0 = 0; | |
12986 | char *_kwnames[] = { "self", NULL }; | |
12987 | char _ptemp[128]; | |
12988 | ||
12989 | self = self; | |
12990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
12991 | return NULL; | |
12992 | if (_argo0) { | |
12993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
12996 | return NULL; | |
12997 | } | |
12998 | } | |
12999 | { | |
4268f798 | 13000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
13001 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
13002 | ||
4268f798 | 13003 | wxPyEndAllowThreads(__tstate); |
493f1553 | 13004 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
13005 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
13006 | _resultobj = Py_BuildValue("s",_ptemp); | |
13007 | return _resultobj; | |
13008 | } | |
13009 | ||
13010 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
13011 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13012 | PyObject * _resultobj; | |
13013 | bool _result; | |
13014 | wxRegionIterator * _arg0; | |
13015 | PyObject * _argo0 = 0; | |
13016 | char *_kwnames[] = { "self", NULL }; | |
13017 | ||
13018 | self = self; | |
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
13020 | return NULL; | |
13021 | if (_argo0) { | |
13022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
13023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
13024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
13025 | return NULL; | |
13026 | } | |
13027 | } | |
13028 | { | |
4268f798 | 13029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
13030 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
13031 | ||
4268f798 | 13032 | wxPyEndAllowThreads(__tstate); |
493f1553 | 13033 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
13034 | } _resultobj = Py_BuildValue("i",_result); |
13035 | return _resultobj; | |
13036 | } | |
13037 | ||
13038 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
13039 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13040 | PyObject * _resultobj; | |
13041 | wxRegionIterator * _arg0; | |
13042 | PyObject * _argo0 = 0; | |
13043 | char *_kwnames[] = { "self", NULL }; | |
13044 | ||
13045 | self = self; | |
13046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
13047 | return NULL; | |
13048 | if (_argo0) { | |
13049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
13050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
13051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
13052 | return NULL; | |
13053 | } | |
13054 | } | |
13055 | { | |
4268f798 | 13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
13057 | wxRegionIterator_Reset(_arg0); |
13058 | ||
4268f798 | 13059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 13060 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
13061 | } Py_INCREF(Py_None); |
13062 | _resultobj = Py_None; | |
13063 | return _resultobj; | |
13064 | } | |
13065 | ||
13066 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
13067 | (*self) ++; | |
13068 | } | |
13069 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject * _resultobj; | |
13071 | wxRegionIterator * _arg0; | |
13072 | PyObject * _argo0 = 0; | |
13073 | char *_kwnames[] = { "self", NULL }; | |
13074 | ||
13075 | self = self; | |
13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
13077 | return NULL; | |
13078 | if (_argo0) { | |
13079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
13080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
13081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
13082 | return NULL; | |
13083 | } | |
13084 | } | |
13085 | { | |
4268f798 | 13086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9416aa89 RD |
13087 | wxRegionIterator_Next(_arg0); |
13088 | ||
4268f798 | 13089 | wxPyEndAllowThreads(__tstate); |
493f1553 | 13090 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
13091 | } Py_INCREF(Py_None); |
13092 | _resultobj = Py_None; | |
13093 | return _resultobj; | |
13094 | } | |
13095 | ||
8ab979d7 | 13096 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
13097 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
13098 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
13099 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
13100 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
13101 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13102 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
13103 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13104 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
13105 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
13106 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
13107 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
13108 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
13109 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
13110 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
13111 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
13112 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
13113 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
13114 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
13115 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
13116 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
13117 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
13118 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
13119 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
13120 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
13121 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
13122 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
13123 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
13124 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
13125 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
13126 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 13127 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
13128 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
13129 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
13130 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 13131 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13132 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
13133 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
13134 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
13135 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13136 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
13137 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
13138 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
13139 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
13140 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
13141 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
13142 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13143 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
13144 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
13145 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
13146 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
13147 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
13148 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17c0e08c RD |
13149 | { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, |
13150 | { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13151 | { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13152 | { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
13153 | { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
13154 | { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13155 | { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
13156 | { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13157 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
13158 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
13159 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
13160 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13161 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 13162 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13163 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
13164 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
13165 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
9d37f964 RD |
13166 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
13167 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 13168 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
9d37f964 | 13169 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
13170 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
13171 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
13172 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
13173 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13174 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13175 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13176 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
13177 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13178 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13179 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13180 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
13181 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
13182 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
13183 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
13184 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
13185 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
13186 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
13187 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
13188 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13189 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13190 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
13191 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
13192 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
13193 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
19a97bd6 | 13194 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13195 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
13196 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
13197 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
13198 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
13199 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13200 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
13201 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
13202 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
13203 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
13204 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
13205 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
13206 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
13207 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13208 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13209 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
13210 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13211 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
13212 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13213 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13214 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
13215 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
13216 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
13217 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
13218 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
13219 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 13220 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13221 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
13222 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
13223 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
13224 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
13225 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
13226 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
13227 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
13228 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
13229 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
13230 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
13231 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
13232 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
13233 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
13234 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 13235 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13236 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
13237 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
13238 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
13239 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
13240 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 RD |
13241 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
13242 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13243 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
13244 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
13245 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
13246 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
13247 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
13248 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
13249 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
13250 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
13251 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
13252 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
13253 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
13254 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
13255 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
13256 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
13257 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13258 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13259 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
13260 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
13261 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13262 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
13263 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13264 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13265 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13266 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13267 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13268 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13269 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13270 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 13271 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13272 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
13273 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
13274 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
13275 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
13276 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
13277 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13278 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13279 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 13280 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13281 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
13282 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13283 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13284 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13285 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
13286 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13287 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13288 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13289 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13290 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
13291 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13292 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13293 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13294 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
13295 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
13296 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13297 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
13298 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
13299 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13300 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
13301 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
13302 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
13303 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
13304 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13305 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13306 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
13307 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
13308 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13309 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
13310 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
13311 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
13312 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
13313 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 | 13314 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13315 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13316 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13317 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13318 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
13319 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13320 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13321 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13322 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
b5a5d647 RD |
13323 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
13324 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d | 13325 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
68320e40 | 13326 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13327 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13328 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13329 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13330 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13331 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13332 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13333 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 13334 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 13335 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13336 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13337 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13338 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
13339 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
13340 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
13341 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
13342 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
13343 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
13344 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
13345 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13346 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
13347 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13348 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
13349 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13350 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
13351 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13352 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
13353 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
13354 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13355 | { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
13356 | { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13357 | { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13358 | { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13359 | { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13360 | { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13361 | { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13362 | { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13363 | { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13364 | { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13365 | { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13366 | { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13367 | { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13368 | { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13369 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
13370 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13371 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13372 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13373 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13374 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13375 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13376 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13377 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13378 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13379 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13380 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13381 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
13382 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13383 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
13384 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13385 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13386 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13387 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13388 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13389 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13390 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13391 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13392 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13393 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13394 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13395 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
13396 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13397 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13398 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
13399 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
13400 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
13401 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
13402 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
13403 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13404 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13405 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13406 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13407 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13408 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13409 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13410 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13411 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13412 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13413 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13414 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
13415 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13416 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13417 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13418 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
13419 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13420 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
13421 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
13422 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
13423 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13424 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13425 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
13426 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13427 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
13428 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
13429 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 RD |
13430 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
13431 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13432 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 13433 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
13434 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
13435 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13436 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
13437 | { NULL, NULL } |
13438 | }; | |
1d99702e RD |
13439 | #ifdef __cplusplus |
13440 | } | |
13441 | #endif | |
13442 | /* | |
13443 | * This table is used by the pointer type-checker | |
13444 | */ | |
13445 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 13446 | { "_signed_long","_long",0}, |
b1462dfa | 13447 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
13448 | { "_wxPrintQuality","_int",0}, |
13449 | { "_wxPrintQuality","_signed_int",0}, | |
13450 | { "_wxPrintQuality","_unsigned_int",0}, | |
13451 | { "_wxPrintQuality","_wxWindowID",0}, | |
13452 | { "_wxPrintQuality","_uint",0}, | |
13453 | { "_wxPrintQuality","_EBool",0}, | |
13454 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 13455 | { "_wxPrintQuality","_time_t",0}, |
ecc08ead | 13456 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
1d99702e | 13457 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
13458 | { "_long","_unsigned_long",0}, |
13459 | { "_long","_signed_long",0}, | |
9416aa89 | 13460 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 13461 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 13462 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
ecc08ead | 13463 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9416aa89 | 13464 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 13465 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 13466 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 13467 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 13468 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 13469 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 13470 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 13471 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 13472 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 13473 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
1d99702e | 13474 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 13475 | { "_size_t","_wxCoord",0}, |
1d99702e | 13476 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 13477 | { "_size_t","_time_t",0}, |
1d99702e RD |
13478 | { "_size_t","_unsigned_int",0}, |
13479 | { "_size_t","_int",0}, | |
13480 | { "_size_t","_wxWindowID",0}, | |
13481 | { "_size_t","_uint",0}, | |
b1462dfa | 13482 | { "_uint","_wxCoord",0}, |
1d99702e | 13483 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 13484 | { "_uint","_time_t",0}, |
1d99702e RD |
13485 | { "_uint","_size_t",0}, |
13486 | { "_uint","_unsigned_int",0}, | |
13487 | { "_uint","_int",0}, | |
13488 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 13489 | { "_wxChar","_char",0}, |
f6bcfd97 | 13490 | { "_char","_wxChar",0}, |
6d8b4f8d | 13491 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 13492 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
13493 | { "_EBool","_wxPrintQuality",0}, |
13494 | { "_EBool","_signed_int",0}, | |
13495 | { "_EBool","_int",0}, | |
13496 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 13497 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 13498 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 13499 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
13500 | { "_signed_int","_wxPrintQuality",0}, |
13501 | { "_signed_int","_EBool",0}, | |
13502 | { "_signed_int","_wxWindowID",0}, | |
13503 | { "_signed_int","_int",0}, | |
1d99702e RD |
13504 | { "_WXTYPE","_short",0}, |
13505 | { "_WXTYPE","_signed_short",0}, | |
13506 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
13507 | { "_unsigned_short","_WXTYPE",0}, |
13508 | { "_unsigned_short","_short",0}, | |
9416aa89 | 13509 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 13510 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 13511 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 13512 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 13513 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
17c0e08c | 13514 | { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject}, |
9416aa89 | 13515 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 13516 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 13517 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 13518 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9416aa89 | 13519 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 13520 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
6ee2116b | 13521 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9416aa89 | 13522 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 13523 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
ecc08ead | 13524 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9416aa89 | 13525 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 13526 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 13527 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 13528 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 13529 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 13530 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 13531 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 13532 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 13533 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 13534 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
13535 | { "_signed_short","_WXTYPE",0}, |
13536 | { "_signed_short","_short",0}, | |
1d99702e | 13537 | { "_unsigned_char","_byte",0}, |
b1462dfa | 13538 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 13539 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 13540 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
13541 | { "_unsigned_int","_size_t",0}, |
13542 | { "_unsigned_int","_uint",0}, | |
13543 | { "_unsigned_int","_wxWindowID",0}, | |
13544 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
13545 | { "_short","_WXTYPE",0}, |
13546 | { "_short","_unsigned_short",0}, | |
13547 | { "_short","_signed_short",0}, | |
b1462dfa | 13548 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 13549 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 13550 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
13551 | { "_wxWindowID","_size_t",0}, |
13552 | { "_wxWindowID","_EBool",0}, | |
13553 | { "_wxWindowID","_uint",0}, | |
13554 | { "_wxWindowID","_int",0}, | |
13555 | { "_wxWindowID","_signed_int",0}, | |
13556 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 13557 | { "_int","_wxCoord",0}, |
1d99702e | 13558 | { "_int","_wxPrintQuality",0}, |
c368d904 | 13559 | { "_int","_time_t",0}, |
1d99702e RD |
13560 | { "_int","_size_t",0}, |
13561 | { "_int","_EBool",0}, | |
13562 | { "_int","_uint",0}, | |
13563 | { "_int","_wxWindowID",0}, | |
13564 | { "_int","_unsigned_int",0}, | |
13565 | { "_int","_signed_int",0}, | |
c368d904 RD |
13566 | { "_time_t","_wxCoord",0}, |
13567 | { "_time_t","_wxPrintQuality",0}, | |
13568 | { "_time_t","_unsigned_int",0}, | |
13569 | { "_time_t","_int",0}, | |
13570 | { "_time_t","_wxWindowID",0}, | |
13571 | { "_time_t","_uint",0}, | |
13572 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
13573 | { "_wxCoord","_int",0}, |
13574 | { "_wxCoord","_signed_int",0}, | |
13575 | { "_wxCoord","_unsigned_int",0}, | |
13576 | { "_wxCoord","_wxWindowID",0}, | |
13577 | { "_wxCoord","_uint",0}, | |
13578 | { "_wxCoord","_EBool",0}, | |
13579 | { "_wxCoord","_size_t",0}, | |
c368d904 | 13580 | { "_wxCoord","_time_t",0}, |
b1462dfa | 13581 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
13582 | {0,0,0}}; |
13583 | ||
8ab979d7 RD |
13584 | static PyObject *SWIG_globals; |
13585 | #ifdef __cplusplus | |
13586 | extern "C" | |
13587 | #endif | |
1d99702e | 13588 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
13589 | PyObject *m, *d; |
13590 | SWIG_globals = SWIG_newvarlink(); | |
13591 | m = Py_InitModule("gdic", gdicMethods); | |
13592 | d = PyModule_GetDict(m); | |
6d8b4f8d RD |
13593 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
13594 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
13595 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
13596 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
13597 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
13598 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
13599 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
13600 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
ce914f73 | 13601 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
6d8b4f8d RD |
13602 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
13603 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
13604 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
13605 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
13606 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
13607 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
13608 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
13609 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
f0261a72 RD |
13610 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
13611 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
13612 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
13613 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
13614 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
13615 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
13616 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
13617 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
13618 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
13619 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
13620 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
13621 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
13622 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
13623 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
13624 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
13625 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
13626 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
6d8b4f8d | 13627 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
f0261a72 RD |
13628 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
13629 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
13630 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
13631 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
13632 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
13633 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
13634 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
13635 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
6d8b4f8d | 13636 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
98624b49 RD |
13637 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
13638 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
13639 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
13640 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
f0261a72 RD |
13641 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
13642 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
13643 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
6d8b4f8d RD |
13644 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
13645 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
13646 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
13647 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
13648 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
13649 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
13650 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
13651 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
13652 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
f0261a72 | 13653 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
c5943253 RD |
13654 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
13655 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
13656 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
13657 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
13658 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
13659 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
13660 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
13661 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
13662 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
13663 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
8ab979d7 RD |
13664 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
13665 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
13666 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
13667 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
13668 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
13669 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
13670 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
13671 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
13672 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
13673 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
13674 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
13675 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
13676 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
13677 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
13678 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
13679 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
13680 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
13681 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
13682 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
13683 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
13684 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
13685 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
13686 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
13687 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
13688 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
13689 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
13690 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
13691 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
13692 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
13693 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
13694 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
13695 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
13696 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
13697 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
13698 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
13699 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
13700 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
13701 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
13702 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
13703 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
13704 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
13705 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
13706 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
13707 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
13708 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
13709 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
13710 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
1d99702e RD |
13711 | { |
13712 | int i; | |
13713 | for (i = 0; _swig_mapping[i].n1; i++) | |
13714 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
13715 | } | |
8ab979d7 | 13716 | } |